configure 884 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for dirsrv 1.2.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell [email protected] about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. # Check that we are running under the correct shell.
  476. SHELL=${CONFIG_SHELL-/bin/sh}
  477. case X$ECHO in
  478. X*--fallback-echo)
  479. # Remove one level of quotation (which was required for Make).
  480. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  481. ;;
  482. esac
  483. echo=${ECHO-echo}
  484. if test "X$1" = X--no-reexec; then
  485. # Discard the --no-reexec flag, and continue.
  486. shift
  487. elif test "X$1" = X--fallback-echo; then
  488. # Avoid inline document here, it may be left over
  489. :
  490. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  491. # Yippee, $echo works!
  492. :
  493. else
  494. # Restart under the correct shell.
  495. exec $SHELL "$0" --no-reexec ${1+"$@"}
  496. fi
  497. if test "X$1" = X--fallback-echo; then
  498. # used as fallback echo
  499. shift
  500. cat <<EOF
  501. $*
  502. EOF
  503. exit 0
  504. fi
  505. # The HP-UX ksh and POSIX shell print the target directory to stdout
  506. # if CDPATH is set.
  507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  508. if test -z "$ECHO"; then
  509. if test "X${echo_test_string+set}" != Xset; then
  510. # find a string as large as possible, as long as the shell can cope with it
  511. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  512. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  513. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  514. echo_test_string=`eval $cmd` &&
  515. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  516. then
  517. break
  518. fi
  519. done
  520. fi
  521. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  522. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  523. test "X$echo_testing_string" = "X$echo_test_string"; then
  524. :
  525. else
  526. # The Solaris, AIX, and Digital Unix default echo programs unquote
  527. # backslashes. This makes it impossible to quote backslashes using
  528. # echo "$something" | sed 's/\\/\\\\/g'
  529. #
  530. # So, first we look for a working echo in the user's PATH.
  531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  532. for dir in $PATH /usr/ucb; do
  533. IFS="$lt_save_ifs"
  534. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  535. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. echo="$dir/echo"
  539. break
  540. fi
  541. done
  542. IFS="$lt_save_ifs"
  543. if test "X$echo" = Xecho; then
  544. # We didn't find a better echo, so look for alternatives.
  545. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. # This shell has a builtin print -r that does the trick.
  549. echo='print -r'
  550. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  551. test "X$CONFIG_SHELL" != X/bin/ksh; then
  552. # If we have ksh, try running configure again with it.
  553. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  554. export ORIGINAL_CONFIG_SHELL
  555. CONFIG_SHELL=/bin/ksh
  556. export CONFIG_SHELL
  557. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  558. else
  559. # Try using printf.
  560. echo='printf %s\n'
  561. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  562. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. # Cool, printf works
  565. :
  566. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  567. test "X$echo_testing_string" = 'X\t' &&
  568. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  571. export CONFIG_SHELL
  572. SHELL="$CONFIG_SHELL"
  573. export SHELL
  574. echo="$CONFIG_SHELL $0 --fallback-echo"
  575. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. echo="$CONFIG_SHELL $0 --fallback-echo"
  580. else
  581. # maybe with a smaller string...
  582. prev=:
  583. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  584. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  585. then
  586. break
  587. fi
  588. prev="$cmd"
  589. done
  590. if test "$prev" != 'sed 50q "$0"'; then
  591. echo_test_string=`eval $prev`
  592. export echo_test_string
  593. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  594. else
  595. # Oops. We lost completely, so just stick with echo.
  596. echo=echo
  597. fi
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. # Copy echo and quote the copy suitably for passing to libtool from
  604. # the Makefile, instead of quoting the original, which is used later.
  605. ECHO=$echo
  606. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  607. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  608. fi
  609. tagnames=${tagnames+${tagnames},}CXX
  610. tagnames=${tagnames+${tagnames},}F77
  611. exec 7<&0 </dev/null 6>&1
  612. # Name of the host.
  613. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  614. # so uname gets run too.
  615. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  616. #
  617. # Initializations.
  618. #
  619. ac_default_prefix=/usr/local
  620. ac_clean_files=
  621. ac_config_libobj_dir=.
  622. LIBOBJS=
  623. cross_compiling=no
  624. subdirs=
  625. MFLAGS=
  626. MAKEFLAGS=
  627. SHELL=${CONFIG_SHELL-/bin/sh}
  628. # Identity of this package.
  629. PACKAGE_NAME='dirsrv'
  630. PACKAGE_TARNAME='dirsrv'
  631. PACKAGE_VERSION='1.2.0'
  632. PACKAGE_STRING='dirsrv 1.2.0'
  633. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_default_prefix=/opt/$PACKAGE_NAME
  670. ac_subst_vars='SHELL
  671. PATH_SEPARATOR
  672. PACKAGE_NAME
  673. PACKAGE_TARNAME
  674. PACKAGE_VERSION
  675. PACKAGE_STRING
  676. PACKAGE_BUGREPORT
  677. exec_prefix
  678. prefix
  679. program_transform_name
  680. bindir
  681. sbindir
  682. libexecdir
  683. datarootdir
  684. datadir
  685. sysconfdir
  686. sharedstatedir
  687. localstatedir
  688. includedir
  689. oldincludedir
  690. docdir
  691. infodir
  692. htmldir
  693. dvidir
  694. pdfdir
  695. psdir
  696. libdir
  697. localedir
  698. mandir
  699. DEFS
  700. ECHO_C
  701. ECHO_N
  702. ECHO_T
  703. LIBS
  704. build_alias
  705. host_alias
  706. target_alias
  707. INSTALL_PROGRAM
  708. INSTALL_SCRIPT
  709. INSTALL_DATA
  710. am__isrc
  711. CYGPATH_W
  712. PACKAGE
  713. VERSION
  714. ACLOCAL
  715. AUTOCONF
  716. AUTOMAKE
  717. AUTOHEADER
  718. MAKEINFO
  719. install_sh
  720. STRIP
  721. INSTALL_STRIP_PROGRAM
  722. mkdir_p
  723. AWK
  724. SET_MAKE
  725. am__leading_dot
  726. AMTAR
  727. am__tar
  728. am__untar
  729. MAINTAINER_MODE_TRUE
  730. MAINTAINER_MODE_FALSE
  731. MAINT
  732. build
  733. build_cpu
  734. build_vendor
  735. build_os
  736. host
  737. host_cpu
  738. host_vendor
  739. host_os
  740. CXX
  741. CXXFLAGS
  742. LDFLAGS
  743. CPPFLAGS
  744. ac_ct_CXX
  745. EXEEXT
  746. OBJEXT
  747. DEPDIR
  748. am__include
  749. am__quote
  750. AMDEP_TRUE
  751. AMDEP_FALSE
  752. AMDEPBACKSLASH
  753. CXXDEPMODE
  754. am__fastdepCXX_TRUE
  755. am__fastdepCXX_FALSE
  756. CC
  757. CFLAGS
  758. ac_ct_CC
  759. CCDEPMODE
  760. am__fastdepCC_TRUE
  761. am__fastdepCC_FALSE
  762. CCAS
  763. CCASFLAGS
  764. CCASDEPMODE
  765. am__fastdepCCAS_TRUE
  766. am__fastdepCCAS_FALSE
  767. SED
  768. GREP
  769. EGREP
  770. LN_S
  771. ECHO
  772. AR
  773. RANLIB
  774. CPP
  775. CXXCPP
  776. F77
  777. FFLAGS
  778. ac_ct_F77
  779. LIBTOOL
  780. LIBOBJS
  781. debug_defs
  782. BUNDLE_TRUE
  783. BUNDLE_FALSE
  784. enable_pam_passthru_TRUE
  785. enable_pam_passthru_FALSE
  786. enable_dna_TRUE
  787. enable_dna_FALSE
  788. enable_ldapi_TRUE
  789. enable_ldapi_FALSE
  790. enable_autobind_TRUE
  791. enable_autobind_FALSE
  792. enable_auto_dn_suffix_TRUE
  793. enable_auto_dn_suffix_FALSE
  794. enable_bitwise_TRUE
  795. enable_bitwise_FALSE
  796. enable_presence_TRUE
  797. enable_presence_FALSE
  798. with_fhs_opt
  799. configdir
  800. sampledatadir
  801. propertydir
  802. schemadir
  803. serverdir
  804. serverplugindir
  805. scripttemplatedir
  806. perldir
  807. infdir
  808. mibdir
  809. defaultuser
  810. defaultgroup
  811. instconfigdir
  812. WINNT_TRUE
  813. WINNT_FALSE
  814. LIBSOCKET
  815. LIBNSL
  816. LIBDL
  817. LIBCSTD
  818. LIBCRUN
  819. initdir
  820. perlexec
  821. initconfigdir
  822. HPUX_TRUE
  823. HPUX_FALSE
  824. SOLARIS_TRUE
  825. SOLARIS_FALSE
  826. PKG_CONFIG
  827. ICU_CONFIG
  828. NETSNMP_CONFIG
  829. KRB5_CONFIG_BIN
  830. kerberos_inc
  831. kerberos_lib
  832. kerberos_libdir
  833. PACKAGE_BASE_VERSION
  834. nspr_inc
  835. nspr_lib
  836. nspr_libdir
  837. nss_inc
  838. nss_lib
  839. nss_libdir
  840. ldapsdk_inc
  841. ldapsdk_lib
  842. ldapsdk_libdir
  843. ldapsdk_bindir
  844. db_inc
  845. db_incdir
  846. db_lib
  847. db_libdir
  848. db_bindir
  849. db_libver
  850. sasl_inc
  851. sasl_lib
  852. sasl_libdir
  853. sasl_path
  854. svrcore_inc
  855. svrcore_lib
  856. icu_lib
  857. icu_inc
  858. icu_bin
  859. netsnmp_inc
  860. netsnmp_lib
  861. netsnmp_libdir
  862. netsnmp_link
  863. brand
  864. capbrand
  865. vendor
  866. LTLIBOBJS'
  867. ac_subst_files=''
  868. ac_precious_vars='build_alias
  869. host_alias
  870. target_alias
  871. CXX
  872. CXXFLAGS
  873. LDFLAGS
  874. LIBS
  875. CPPFLAGS
  876. CCC
  877. CC
  878. CFLAGS
  879. CCAS
  880. CCASFLAGS
  881. CPP
  882. CXXCPP
  883. F77
  884. FFLAGS'
  885. # Initialize some variables set by options.
  886. ac_init_help=
  887. ac_init_version=false
  888. # The variables have the same names as the options, with
  889. # dashes changed to underlines.
  890. cache_file=/dev/null
  891. exec_prefix=NONE
  892. no_create=
  893. no_recursion=
  894. prefix=NONE
  895. program_prefix=NONE
  896. program_suffix=NONE
  897. program_transform_name=s,x,x,
  898. silent=
  899. site=
  900. srcdir=
  901. verbose=
  902. x_includes=NONE
  903. x_libraries=NONE
  904. # Installation directory options.
  905. # These are left unexpanded so users can "make install exec_prefix=/foo"
  906. # and all the variables that are supposed to be based on exec_prefix
  907. # by default will actually change.
  908. # Use braces instead of parens because sh, perl, etc. also accept them.
  909. # (The list follows the same order as the GNU Coding Standards.)
  910. bindir='${exec_prefix}/bin'
  911. sbindir='${exec_prefix}/sbin'
  912. libexecdir='${exec_prefix}/libexec'
  913. datarootdir='${prefix}/share'
  914. datadir='${datarootdir}'
  915. sysconfdir='${prefix}/etc'
  916. sharedstatedir='${prefix}/com'
  917. localstatedir='${prefix}/var'
  918. includedir='${prefix}/include'
  919. oldincludedir='/usr/include'
  920. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  921. infodir='${datarootdir}/info'
  922. htmldir='${docdir}'
  923. dvidir='${docdir}'
  924. pdfdir='${docdir}'
  925. psdir='${docdir}'
  926. libdir='${exec_prefix}/lib'
  927. localedir='${datarootdir}/locale'
  928. mandir='${datarootdir}/man'
  929. ac_prev=
  930. ac_dashdash=
  931. for ac_option
  932. do
  933. # If the previous option needs an argument, assign it.
  934. if test -n "$ac_prev"; then
  935. eval $ac_prev=\$ac_option
  936. ac_prev=
  937. continue
  938. fi
  939. case $ac_option in
  940. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  941. *) ac_optarg=yes ;;
  942. esac
  943. # Accept the important Cygnus configure options, so we can diagnose typos.
  944. case $ac_dashdash$ac_option in
  945. --)
  946. ac_dashdash=yes ;;
  947. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  948. ac_prev=bindir ;;
  949. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  950. bindir=$ac_optarg ;;
  951. -build | --build | --buil | --bui | --bu)
  952. ac_prev=build_alias ;;
  953. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  954. build_alias=$ac_optarg ;;
  955. -cache-file | --cache-file | --cache-fil | --cache-fi \
  956. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  957. ac_prev=cache_file ;;
  958. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  959. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  960. cache_file=$ac_optarg ;;
  961. --config-cache | -C)
  962. cache_file=config.cache ;;
  963. -datadir | --datadir | --datadi | --datad)
  964. ac_prev=datadir ;;
  965. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  966. datadir=$ac_optarg ;;
  967. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  968. | --dataroo | --dataro | --datar)
  969. ac_prev=datarootdir ;;
  970. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  971. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  972. datarootdir=$ac_optarg ;;
  973. -disable-* | --disable-*)
  974. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  975. # Reject names that are not valid shell variable names.
  976. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  977. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  978. { (exit 1); exit 1; }; }
  979. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  980. eval enable_$ac_feature=no ;;
  981. -docdir | --docdir | --docdi | --doc | --do)
  982. ac_prev=docdir ;;
  983. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  984. docdir=$ac_optarg ;;
  985. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  986. ac_prev=dvidir ;;
  987. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  988. dvidir=$ac_optarg ;;
  989. -enable-* | --enable-*)
  990. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  991. # Reject names that are not valid shell variable names.
  992. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  993. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  994. { (exit 1); exit 1; }; }
  995. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  996. eval enable_$ac_feature=\$ac_optarg ;;
  997. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  998. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  999. | --exec | --exe | --ex)
  1000. ac_prev=exec_prefix ;;
  1001. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1002. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1003. | --exec=* | --exe=* | --ex=*)
  1004. exec_prefix=$ac_optarg ;;
  1005. -gas | --gas | --ga | --g)
  1006. # Obsolete; use --with-gas.
  1007. with_gas=yes ;;
  1008. -help | --help | --hel | --he | -h)
  1009. ac_init_help=long ;;
  1010. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1011. ac_init_help=recursive ;;
  1012. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1013. ac_init_help=short ;;
  1014. -host | --host | --hos | --ho)
  1015. ac_prev=host_alias ;;
  1016. -host=* | --host=* | --hos=* | --ho=*)
  1017. host_alias=$ac_optarg ;;
  1018. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1019. ac_prev=htmldir ;;
  1020. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1021. | --ht=*)
  1022. htmldir=$ac_optarg ;;
  1023. -includedir | --includedir | --includedi | --included | --include \
  1024. | --includ | --inclu | --incl | --inc)
  1025. ac_prev=includedir ;;
  1026. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1027. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1028. includedir=$ac_optarg ;;
  1029. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1030. ac_prev=infodir ;;
  1031. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1032. infodir=$ac_optarg ;;
  1033. -libdir | --libdir | --libdi | --libd)
  1034. ac_prev=libdir ;;
  1035. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1036. libdir=$ac_optarg ;;
  1037. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1038. | --libexe | --libex | --libe)
  1039. ac_prev=libexecdir ;;
  1040. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1041. | --libexe=* | --libex=* | --libe=*)
  1042. libexecdir=$ac_optarg ;;
  1043. -localedir | --localedir | --localedi | --localed | --locale)
  1044. ac_prev=localedir ;;
  1045. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1046. localedir=$ac_optarg ;;
  1047. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1048. | --localstate | --localstat | --localsta | --localst | --locals)
  1049. ac_prev=localstatedir ;;
  1050. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1051. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1052. localstatedir=$ac_optarg ;;
  1053. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1054. ac_prev=mandir ;;
  1055. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1056. mandir=$ac_optarg ;;
  1057. -nfp | --nfp | --nf)
  1058. # Obsolete; use --without-fp.
  1059. with_fp=no ;;
  1060. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1061. | --no-cr | --no-c | -n)
  1062. no_create=yes ;;
  1063. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1064. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1065. no_recursion=yes ;;
  1066. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1067. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1068. | --oldin | --oldi | --old | --ol | --o)
  1069. ac_prev=oldincludedir ;;
  1070. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1071. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1072. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1073. oldincludedir=$ac_optarg ;;
  1074. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1075. ac_prev=prefix ;;
  1076. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1077. prefix=$ac_optarg ;;
  1078. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1079. | --program-pre | --program-pr | --program-p)
  1080. ac_prev=program_prefix ;;
  1081. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1082. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1083. program_prefix=$ac_optarg ;;
  1084. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1085. | --program-suf | --program-su | --program-s)
  1086. ac_prev=program_suffix ;;
  1087. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1088. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1089. program_suffix=$ac_optarg ;;
  1090. -program-transform-name | --program-transform-name \
  1091. | --program-transform-nam | --program-transform-na \
  1092. | --program-transform-n | --program-transform- \
  1093. | --program-transform | --program-transfor \
  1094. | --program-transfo | --program-transf \
  1095. | --program-trans | --program-tran \
  1096. | --progr-tra | --program-tr | --program-t)
  1097. ac_prev=program_transform_name ;;
  1098. -program-transform-name=* | --program-transform-name=* \
  1099. | --program-transform-nam=* | --program-transform-na=* \
  1100. | --program-transform-n=* | --program-transform-=* \
  1101. | --program-transform=* | --program-transfor=* \
  1102. | --program-transfo=* | --program-transf=* \
  1103. | --program-trans=* | --program-tran=* \
  1104. | --progr-tra=* | --program-tr=* | --program-t=*)
  1105. program_transform_name=$ac_optarg ;;
  1106. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1107. ac_prev=pdfdir ;;
  1108. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1109. pdfdir=$ac_optarg ;;
  1110. -psdir | --psdir | --psdi | --psd | --ps)
  1111. ac_prev=psdir ;;
  1112. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1113. psdir=$ac_optarg ;;
  1114. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1115. | -silent | --silent | --silen | --sile | --sil)
  1116. silent=yes ;;
  1117. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1118. ac_prev=sbindir ;;
  1119. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1120. | --sbi=* | --sb=*)
  1121. sbindir=$ac_optarg ;;
  1122. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1123. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1124. | --sharedst | --shareds | --shared | --share | --shar \
  1125. | --sha | --sh)
  1126. ac_prev=sharedstatedir ;;
  1127. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1128. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1129. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1130. | --sha=* | --sh=*)
  1131. sharedstatedir=$ac_optarg ;;
  1132. -site | --site | --sit)
  1133. ac_prev=site ;;
  1134. -site=* | --site=* | --sit=*)
  1135. site=$ac_optarg ;;
  1136. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1137. ac_prev=srcdir ;;
  1138. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1139. srcdir=$ac_optarg ;;
  1140. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1141. | --syscon | --sysco | --sysc | --sys | --sy)
  1142. ac_prev=sysconfdir ;;
  1143. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1144. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1145. sysconfdir=$ac_optarg ;;
  1146. -target | --target | --targe | --targ | --tar | --ta | --t)
  1147. ac_prev=target_alias ;;
  1148. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1149. target_alias=$ac_optarg ;;
  1150. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1151. verbose=yes ;;
  1152. -version | --version | --versio | --versi | --vers | -V)
  1153. ac_init_version=: ;;
  1154. -with-* | --with-*)
  1155. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1156. # Reject names that are not valid shell variable names.
  1157. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1158. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1159. { (exit 1); exit 1; }; }
  1160. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1161. eval with_$ac_package=\$ac_optarg ;;
  1162. -without-* | --without-*)
  1163. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1164. # Reject names that are not valid shell variable names.
  1165. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1166. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1167. { (exit 1); exit 1; }; }
  1168. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1169. eval with_$ac_package=no ;;
  1170. --x)
  1171. # Obsolete; use --with-x.
  1172. with_x=yes ;;
  1173. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1174. | --x-incl | --x-inc | --x-in | --x-i)
  1175. ac_prev=x_includes ;;
  1176. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1177. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1178. x_includes=$ac_optarg ;;
  1179. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1180. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1181. ac_prev=x_libraries ;;
  1182. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1183. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1184. x_libraries=$ac_optarg ;;
  1185. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1186. Try \`$0 --help' for more information." >&2
  1187. { (exit 1); exit 1; }; }
  1188. ;;
  1189. *=*)
  1190. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1191. # Reject names that are not valid shell variable names.
  1192. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1193. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1194. { (exit 1); exit 1; }; }
  1195. eval $ac_envvar=\$ac_optarg
  1196. export $ac_envvar ;;
  1197. *)
  1198. # FIXME: should be removed in autoconf 3.0.
  1199. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1200. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1201. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1202. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1203. ;;
  1204. esac
  1205. done
  1206. if test -n "$ac_prev"; then
  1207. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1208. { echo "$as_me: error: missing argument to $ac_option" >&2
  1209. { (exit 1); exit 1; }; }
  1210. fi
  1211. # Be sure to have absolute directory names.
  1212. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1213. datadir sysconfdir sharedstatedir localstatedir includedir \
  1214. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1215. libdir localedir mandir
  1216. do
  1217. eval ac_val=\$$ac_var
  1218. case $ac_val in
  1219. [\\/$]* | ?:[\\/]* ) continue;;
  1220. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1221. esac
  1222. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1223. { (exit 1); exit 1; }; }
  1224. done
  1225. # There might be people who depend on the old broken behavior: `$host'
  1226. # used to hold the argument of --host etc.
  1227. # FIXME: To remove some day.
  1228. build=$build_alias
  1229. host=$host_alias
  1230. target=$target_alias
  1231. # FIXME: To remove some day.
  1232. if test "x$host_alias" != x; then
  1233. if test "x$build_alias" = x; then
  1234. cross_compiling=maybe
  1235. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1236. If a cross compiler is detected then cross compile mode will be used." >&2
  1237. elif test "x$build_alias" != "x$host_alias"; then
  1238. cross_compiling=yes
  1239. fi
  1240. fi
  1241. ac_tool_prefix=
  1242. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1243. test "$silent" = yes && exec 6>/dev/null
  1244. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1245. ac_ls_di=`ls -di .` &&
  1246. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1247. { echo "$as_me: error: Working directory cannot be determined" >&2
  1248. { (exit 1); exit 1; }; }
  1249. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1250. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1251. { (exit 1); exit 1; }; }
  1252. # Find the source files, if location was not specified.
  1253. if test -z "$srcdir"; then
  1254. ac_srcdir_defaulted=yes
  1255. # Try the directory containing this script, then the parent directory.
  1256. ac_confdir=`$as_dirname -- "$0" ||
  1257. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1258. X"$0" : 'X\(//\)[^/]' \| \
  1259. X"$0" : 'X\(//\)$' \| \
  1260. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1261. echo X"$0" |
  1262. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)[^/].*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\/\)$/{
  1271. s//\1/
  1272. q
  1273. }
  1274. /^X\(\/\).*/{
  1275. s//\1/
  1276. q
  1277. }
  1278. s/.*/./; q'`
  1279. srcdir=$ac_confdir
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. srcdir=..
  1282. fi
  1283. else
  1284. ac_srcdir_defaulted=no
  1285. fi
  1286. if test ! -r "$srcdir/$ac_unique_file"; then
  1287. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1288. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1289. { (exit 1); exit 1; }; }
  1290. fi
  1291. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1292. ac_abs_confdir=`(
  1293. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1294. { (exit 1); exit 1; }; }
  1295. pwd)`
  1296. # When building in place, set srcdir=.
  1297. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1298. srcdir=.
  1299. fi
  1300. # Remove unnecessary trailing slashes from srcdir.
  1301. # Double slashes in file names in object file debugging info
  1302. # mess up M-x gdb in Emacs.
  1303. case $srcdir in
  1304. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1305. esac
  1306. for ac_var in $ac_precious_vars; do
  1307. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1308. eval ac_env_${ac_var}_value=\$${ac_var}
  1309. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1310. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1311. done
  1312. #
  1313. # Report the --help message.
  1314. #
  1315. if test "$ac_init_help" = "long"; then
  1316. # Omit some internal or obsolete options to make the list less imposing.
  1317. # This message is too long to be a string in the A/UX 3.1 sh.
  1318. cat <<_ACEOF
  1319. \`configure' configures dirsrv 1.2.0 to adapt to many kinds of systems.
  1320. Usage: $0 [OPTION]... [VAR=VALUE]...
  1321. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1322. VAR=VALUE. See below for descriptions of some of the useful variables.
  1323. Defaults for the options are specified in brackets.
  1324. Configuration:
  1325. -h, --help display this help and exit
  1326. --help=short display options specific to this package
  1327. --help=recursive display the short help of all the included packages
  1328. -V, --version display version information and exit
  1329. -q, --quiet, --silent do not print \`checking...' messages
  1330. --cache-file=FILE cache test results in FILE [disabled]
  1331. -C, --config-cache alias for \`--cache-file=config.cache'
  1332. -n, --no-create do not create output files
  1333. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1334. Installation directories:
  1335. --prefix=PREFIX install architecture-independent files in PREFIX
  1336. [$ac_default_prefix]
  1337. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1338. [PREFIX]
  1339. By default, \`make install' will install all the files in
  1340. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1341. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1342. for instance \`--prefix=\$HOME'.
  1343. For better control, use the options below.
  1344. Fine tuning of the installation directories:
  1345. --bindir=DIR user executables [EPREFIX/bin]
  1346. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1347. --libexecdir=DIR program executables [EPREFIX/libexec]
  1348. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1349. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1350. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1351. --libdir=DIR object code libraries [EPREFIX/lib]
  1352. --includedir=DIR C header files [PREFIX/include]
  1353. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1354. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1355. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1356. --infodir=DIR info documentation [DATAROOTDIR/info]
  1357. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1358. --mandir=DIR man documentation [DATAROOTDIR/man]
  1359. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1360. --htmldir=DIR html documentation [DOCDIR]
  1361. --dvidir=DIR dvi documentation [DOCDIR]
  1362. --pdfdir=DIR pdf documentation [DOCDIR]
  1363. --psdir=DIR ps documentation [DOCDIR]
  1364. _ACEOF
  1365. cat <<\_ACEOF
  1366. Program names:
  1367. --program-prefix=PREFIX prepend PREFIX to installed program names
  1368. --program-suffix=SUFFIX append SUFFIX to installed program names
  1369. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1370. System types:
  1371. --build=BUILD configure for building on BUILD [guessed]
  1372. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1373. _ACEOF
  1374. fi
  1375. if test -n "$ac_init_help"; then
  1376. case $ac_init_help in
  1377. short | recursive ) echo "Configuration of dirsrv 1.2.0:";;
  1378. esac
  1379. cat <<\_ACEOF
  1380. Optional Features:
  1381. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1382. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1383. --enable-maintainer-mode enable make rules and dependencies not useful
  1384. (and sometimes confusing) to the casual installer
  1385. --disable-dependency-tracking speeds up one-time build
  1386. --enable-dependency-tracking do not reject slow dependency extractors
  1387. --enable-static[=PKGS] build static libraries [default=no]
  1388. --enable-shared[=PKGS] build shared libraries [default=yes]
  1389. --enable-fast-install[=PKGS]
  1390. optimize for fast installation [default=yes]
  1391. --disable-libtool-lock avoid locking (might break parallel builds)
  1392. --enable-debug Enable debug features (default: no)
  1393. --enable-bundle Enable bundled dependencies (default: no)
  1394. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1395. yes)
  1396. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1397. plugin (default: yes)
  1398. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1399. (default: yes)
  1400. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1401. support (default: no)
  1402. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1403. domain socket (LDAPI) support (default: no)
  1404. --enable-bitwise enable the bitwise matching rule plugin (default:
  1405. yes)
  1406. --enable-presence enable the presence plugin (default: no)
  1407. Optional Packages:
  1408. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1409. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1410. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1411. --with-pic try to use only PIC/non-PIC objects [default=use
  1412. both]
  1413. --with-tags[=TAGS] include additional configurations [automatic]
  1414. --with-fhs Use FHS layout
  1415. --with-fhs-opt Use FHS optional layout
  1416. --with-instconfigdir=/path
  1417. Base directory for instance specific writable
  1418. configuration directories (default
  1419. $sysconfdir/$PACKAGE_NAME)
  1420. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  1421. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  1422. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1423. --with-nss=PATH Network Security Services (NSS) directory
  1424. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1425. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1426. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  1427. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1428. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1429. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1430. --with-db=PATH Berkeley DB directory
  1431. --with-sasl=PATH Use sasl from supplied path
  1432. --with-sasl-inc=PATH SASL include file directory
  1433. --with-sasl-lib=PATH SASL library directory
  1434. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  1435. --with-svrcore-inc=PATH SVRCORE include file directory
  1436. --with-svrcore-lib=PATH SVRCORE library directory
  1437. --with-icu=PATH ICU directory
  1438. --with-icu-inc=PATH ICU include directory
  1439. --with-icu-lib=PATH ICU library directory
  1440. --with-icu-bin=PATH ICU binary directory
  1441. --with-netsnmp=PATH Net-SNMP directory
  1442. --with-netsnmp-inc=PATH Net-SNMP include directory
  1443. --with-netsnmp-lib=PATH Net-SNMP library directory
  1444. --with-kerberos=PATH Use the kerberos API in the server directly - allows
  1445. the server to authenticate directly with a keytab -
  1446. otherwise, SASL/GSSAPI auth depends on underlying
  1447. SASL libraries and external kinit with a keytab - if
  1448. PATH is not specified, look for kerberos in the
  1449. system locations. This will attempt to use
  1450. krb5-config from the PATH to find the libs and
  1451. include dirs - you can specify KRB5_CONFIG_BIN to
  1452. specify a different filename or absolute path. If
  1453. krb5-config does not work, this will attempt to look
  1454. in various system directories
  1455. --with-kerberos-inc=PATH
  1456. Allows you to explicitly set the directory
  1457. containing the kerberos include files - implies use
  1458. of kerberos
  1459. --with-kerberos-lib=PATH
  1460. Allows you to explicitly set the directory
  1461. containing the kerberos libraries - implies use of
  1462. kerberos
  1463. Some influential environment variables:
  1464. CXX C++ compiler command
  1465. CXXFLAGS C++ compiler flags
  1466. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1467. nonstandard directory <lib dir>
  1468. LIBS libraries to pass to the linker, e.g. -l<library>
  1469. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1470. you have headers in a nonstandard directory <include dir>
  1471. CC C compiler command
  1472. CFLAGS C compiler flags
  1473. CCAS assembler compiler command (defaults to CC)
  1474. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1475. CPP C preprocessor
  1476. CXXCPP C++ preprocessor
  1477. F77 Fortran 77 compiler command
  1478. FFLAGS Fortran 77 compiler flags
  1479. Use these variables to override the choices made by `configure' or to help
  1480. it to find libraries and programs with nonstandard names/locations.
  1481. Report bugs to <http://bugzilla.redhat.com/>.
  1482. _ACEOF
  1483. ac_status=$?
  1484. fi
  1485. if test "$ac_init_help" = "recursive"; then
  1486. # If there are subdirs, report their specific --help.
  1487. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1488. test -d "$ac_dir" || continue
  1489. ac_builddir=.
  1490. case "$ac_dir" in
  1491. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1492. *)
  1493. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1494. # A ".." for each directory in $ac_dir_suffix.
  1495. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1496. case $ac_top_builddir_sub in
  1497. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1498. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1499. esac ;;
  1500. esac
  1501. ac_abs_top_builddir=$ac_pwd
  1502. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1503. # for backward compatibility:
  1504. ac_top_builddir=$ac_top_build_prefix
  1505. case $srcdir in
  1506. .) # We are building in place.
  1507. ac_srcdir=.
  1508. ac_top_srcdir=$ac_top_builddir_sub
  1509. ac_abs_top_srcdir=$ac_pwd ;;
  1510. [\\/]* | ?:[\\/]* ) # Absolute name.
  1511. ac_srcdir=$srcdir$ac_dir_suffix;
  1512. ac_top_srcdir=$srcdir
  1513. ac_abs_top_srcdir=$srcdir ;;
  1514. *) # Relative name.
  1515. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1516. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1517. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1518. esac
  1519. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1520. cd "$ac_dir" || { ac_status=$?; continue; }
  1521. # Check for guested configure.
  1522. if test -f "$ac_srcdir/configure.gnu"; then
  1523. echo &&
  1524. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1525. elif test -f "$ac_srcdir/configure"; then
  1526. echo &&
  1527. $SHELL "$ac_srcdir/configure" --help=recursive
  1528. else
  1529. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1530. fi || ac_status=$?
  1531. cd "$ac_pwd" || { ac_status=$?; break; }
  1532. done
  1533. fi
  1534. test -n "$ac_init_help" && exit $ac_status
  1535. if $ac_init_version; then
  1536. cat <<\_ACEOF
  1537. dirsrv configure 1.2.0
  1538. generated by GNU Autoconf 2.61
  1539. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1540. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1541. This configure script is free software; the Free Software Foundation
  1542. gives unlimited permission to copy, distribute and modify it.
  1543. _ACEOF
  1544. exit
  1545. fi
  1546. cat >config.log <<_ACEOF
  1547. This file contains any messages produced by compilers while
  1548. running configure, to aid debugging if configure makes a mistake.
  1549. It was created by dirsrv $as_me 1.2.0, which was
  1550. generated by GNU Autoconf 2.61. Invocation command line was
  1551. $ $0 $@
  1552. _ACEOF
  1553. exec 5>>config.log
  1554. {
  1555. cat <<_ASUNAME
  1556. ## --------- ##
  1557. ## Platform. ##
  1558. ## --------- ##
  1559. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1560. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1561. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1562. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1563. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1564. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1565. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1566. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1567. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1568. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1569. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1570. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1571. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1572. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1573. _ASUNAME
  1574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1575. for as_dir in $PATH
  1576. do
  1577. IFS=$as_save_IFS
  1578. test -z "$as_dir" && as_dir=.
  1579. echo "PATH: $as_dir"
  1580. done
  1581. IFS=$as_save_IFS
  1582. } >&5
  1583. cat >&5 <<_ACEOF
  1584. ## ----------- ##
  1585. ## Core tests. ##
  1586. ## ----------- ##
  1587. _ACEOF
  1588. # Keep a trace of the command line.
  1589. # Strip out --no-create and --no-recursion so they do not pile up.
  1590. # Strip out --silent because we don't want to record it for future runs.
  1591. # Also quote any args containing shell meta-characters.
  1592. # Make two passes to allow for proper duplicate-argument suppression.
  1593. ac_configure_args=
  1594. ac_configure_args0=
  1595. ac_configure_args1=
  1596. ac_must_keep_next=false
  1597. for ac_pass in 1 2
  1598. do
  1599. for ac_arg
  1600. do
  1601. case $ac_arg in
  1602. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1603. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1604. | -silent | --silent | --silen | --sile | --sil)
  1605. continue ;;
  1606. *\'*)
  1607. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1608. esac
  1609. case $ac_pass in
  1610. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1611. 2)
  1612. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1613. if test $ac_must_keep_next = true; then
  1614. ac_must_keep_next=false # Got value, back to normal.
  1615. else
  1616. case $ac_arg in
  1617. *=* | --config-cache | -C | -disable-* | --disable-* \
  1618. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1619. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1620. | -with-* | --with-* | -without-* | --without-* | --x)
  1621. case "$ac_configure_args0 " in
  1622. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1623. esac
  1624. ;;
  1625. -* ) ac_must_keep_next=true ;;
  1626. esac
  1627. fi
  1628. ac_configure_args="$ac_configure_args '$ac_arg'"
  1629. ;;
  1630. esac
  1631. done
  1632. done
  1633. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1634. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1635. # When interrupted or exit'd, cleanup temporary files, and complete
  1636. # config.log. We remove comments because anyway the quotes in there
  1637. # would cause problems or look ugly.
  1638. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1639. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1640. trap 'exit_status=$?
  1641. # Save into config.log some information that might help in debugging.
  1642. {
  1643. echo
  1644. cat <<\_ASBOX
  1645. ## ---------------- ##
  1646. ## Cache variables. ##
  1647. ## ---------------- ##
  1648. _ASBOX
  1649. echo
  1650. # The following way of writing the cache mishandles newlines in values,
  1651. (
  1652. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1653. eval ac_val=\$$ac_var
  1654. case $ac_val in #(
  1655. *${as_nl}*)
  1656. case $ac_var in #(
  1657. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1658. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1659. esac
  1660. case $ac_var in #(
  1661. _ | IFS | as_nl) ;; #(
  1662. *) $as_unset $ac_var ;;
  1663. esac ;;
  1664. esac
  1665. done
  1666. (set) 2>&1 |
  1667. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1668. *${as_nl}ac_space=\ *)
  1669. sed -n \
  1670. "s/'\''/'\''\\\\'\'''\''/g;
  1671. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1672. ;; #(
  1673. *)
  1674. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1675. ;;
  1676. esac |
  1677. sort
  1678. )
  1679. echo
  1680. cat <<\_ASBOX
  1681. ## ----------------- ##
  1682. ## Output variables. ##
  1683. ## ----------------- ##
  1684. _ASBOX
  1685. echo
  1686. for ac_var in $ac_subst_vars
  1687. do
  1688. eval ac_val=\$$ac_var
  1689. case $ac_val in
  1690. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1691. esac
  1692. echo "$ac_var='\''$ac_val'\''"
  1693. done | sort
  1694. echo
  1695. if test -n "$ac_subst_files"; then
  1696. cat <<\_ASBOX
  1697. ## ------------------- ##
  1698. ## File substitutions. ##
  1699. ## ------------------- ##
  1700. _ASBOX
  1701. echo
  1702. for ac_var in $ac_subst_files
  1703. do
  1704. eval ac_val=\$$ac_var
  1705. case $ac_val in
  1706. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1707. esac
  1708. echo "$ac_var='\''$ac_val'\''"
  1709. done | sort
  1710. echo
  1711. fi
  1712. if test -s confdefs.h; then
  1713. cat <<\_ASBOX
  1714. ## ----------- ##
  1715. ## confdefs.h. ##
  1716. ## ----------- ##
  1717. _ASBOX
  1718. echo
  1719. cat confdefs.h
  1720. echo
  1721. fi
  1722. test "$ac_signal" != 0 &&
  1723. echo "$as_me: caught signal $ac_signal"
  1724. echo "$as_me: exit $exit_status"
  1725. } >&5
  1726. rm -f core *.core core.conftest.* &&
  1727. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1728. exit $exit_status
  1729. ' 0
  1730. for ac_signal in 1 2 13 15; do
  1731. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1732. done
  1733. ac_signal=0
  1734. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1735. rm -f -r conftest* confdefs.h
  1736. # Predefined preprocessor variables.
  1737. cat >>confdefs.h <<_ACEOF
  1738. #define PACKAGE_NAME "$PACKAGE_NAME"
  1739. _ACEOF
  1740. cat >>confdefs.h <<_ACEOF
  1741. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1742. _ACEOF
  1743. cat >>confdefs.h <<_ACEOF
  1744. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1745. _ACEOF
  1746. cat >>confdefs.h <<_ACEOF
  1747. #define PACKAGE_STRING "$PACKAGE_STRING"
  1748. _ACEOF
  1749. cat >>confdefs.h <<_ACEOF
  1750. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1751. _ACEOF
  1752. # Let the site file select an alternate cache file if it wants to.
  1753. # Prefer explicitly selected file to automatically selected ones.
  1754. if test -n "$CONFIG_SITE"; then
  1755. set x "$CONFIG_SITE"
  1756. elif test "x$prefix" != xNONE; then
  1757. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1758. else
  1759. set x "$ac_default_prefix/share/config.site" \
  1760. "$ac_default_prefix/etc/config.site"
  1761. fi
  1762. shift
  1763. for ac_site_file
  1764. do
  1765. if test -r "$ac_site_file"; then
  1766. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1767. echo "$as_me: loading site script $ac_site_file" >&6;}
  1768. sed 's/^/| /' "$ac_site_file" >&5
  1769. . "$ac_site_file"
  1770. fi
  1771. done
  1772. if test -r "$cache_file"; then
  1773. # Some versions of bash will fail to source /dev/null (special
  1774. # files actually), so we avoid doing that.
  1775. if test -f "$cache_file"; then
  1776. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1777. echo "$as_me: loading cache $cache_file" >&6;}
  1778. case $cache_file in
  1779. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1780. *) . "./$cache_file";;
  1781. esac
  1782. fi
  1783. else
  1784. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1785. echo "$as_me: creating cache $cache_file" >&6;}
  1786. >$cache_file
  1787. fi
  1788. # Check that the precious variables saved in the cache have kept the same
  1789. # value.
  1790. ac_cache_corrupted=false
  1791. for ac_var in $ac_precious_vars; do
  1792. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1793. eval ac_new_set=\$ac_env_${ac_var}_set
  1794. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1795. eval ac_new_val=\$ac_env_${ac_var}_value
  1796. case $ac_old_set,$ac_new_set in
  1797. set,)
  1798. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1799. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1800. ac_cache_corrupted=: ;;
  1801. ,set)
  1802. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1803. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1804. ac_cache_corrupted=: ;;
  1805. ,);;
  1806. *)
  1807. if test "x$ac_old_val" != "x$ac_new_val"; then
  1808. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1809. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1810. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1811. echo "$as_me: former value: $ac_old_val" >&2;}
  1812. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1813. echo "$as_me: current value: $ac_new_val" >&2;}
  1814. ac_cache_corrupted=:
  1815. fi;;
  1816. esac
  1817. # Pass precious variables to config.status.
  1818. if test "$ac_new_set" = set; then
  1819. case $ac_new_val in
  1820. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1821. *) ac_arg=$ac_var=$ac_new_val ;;
  1822. esac
  1823. case " $ac_configure_args " in
  1824. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1825. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1826. esac
  1827. fi
  1828. done
  1829. if $ac_cache_corrupted; then
  1830. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1831. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1832. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1833. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1834. { (exit 1); exit 1; }; }
  1835. fi
  1836. ac_ext=c
  1837. ac_cpp='$CPP $CPPFLAGS'
  1838. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1839. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1840. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1841. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1842. ac_config_headers="$ac_config_headers config.h"
  1843. am__api_version='1.10'
  1844. ac_aux_dir=
  1845. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1846. if test -f "$ac_dir/install-sh"; then
  1847. ac_aux_dir=$ac_dir
  1848. ac_install_sh="$ac_aux_dir/install-sh -c"
  1849. break
  1850. elif test -f "$ac_dir/install.sh"; then
  1851. ac_aux_dir=$ac_dir
  1852. ac_install_sh="$ac_aux_dir/install.sh -c"
  1853. break
  1854. elif test -f "$ac_dir/shtool"; then
  1855. ac_aux_dir=$ac_dir
  1856. ac_install_sh="$ac_aux_dir/shtool install -c"
  1857. break
  1858. fi
  1859. done
  1860. if test -z "$ac_aux_dir"; then
  1861. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1862. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1863. { (exit 1); exit 1; }; }
  1864. fi
  1865. # These three variables are undocumented and unsupported,
  1866. # and are intended to be withdrawn in a future Autoconf release.
  1867. # They can cause serious problems if a builder's source tree is in a directory
  1868. # whose full name contains unusual characters.
  1869. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1870. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1871. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1872. # Find a good install program. We prefer a C program (faster),
  1873. # so one script is as good as another. But avoid the broken or
  1874. # incompatible versions:
  1875. # SysV /etc/install, /usr/sbin/install
  1876. # SunOS /usr/etc/install
  1877. # IRIX /sbin/install
  1878. # AIX /bin/install
  1879. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1880. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1881. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1882. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1883. # OS/2's system install, which has a completely different semantic
  1884. # ./install, which can be erroneously created by make from ./install.sh.
  1885. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1886. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1887. if test -z "$INSTALL"; then
  1888. if test "${ac_cv_path_install+set}" = set; then
  1889. echo $ECHO_N "(cached) $ECHO_C" >&6
  1890. else
  1891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1892. for as_dir in $PATH
  1893. do
  1894. IFS=$as_save_IFS
  1895. test -z "$as_dir" && as_dir=.
  1896. # Account for people who put trailing slashes in PATH elements.
  1897. case $as_dir/ in
  1898. ./ | .// | /cC/* | \
  1899. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1900. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1901. /usr/ucb/* ) ;;
  1902. *)
  1903. # OSF1 and SCO ODT 3.0 have their own names for install.
  1904. # Don't use installbsd from OSF since it installs stuff as root
  1905. # by default.
  1906. for ac_prog in ginstall scoinst install; do
  1907. for ac_exec_ext in '' $ac_executable_extensions; do
  1908. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1909. if test $ac_prog = install &&
  1910. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1911. # AIX install. It has an incompatible calling convention.
  1912. :
  1913. elif test $ac_prog = install &&
  1914. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1915. # program-specific install script used by HP pwplus--don't use.
  1916. :
  1917. else
  1918. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1919. break 3
  1920. fi
  1921. fi
  1922. done
  1923. done
  1924. ;;
  1925. esac
  1926. done
  1927. IFS=$as_save_IFS
  1928. fi
  1929. if test "${ac_cv_path_install+set}" = set; then
  1930. INSTALL=$ac_cv_path_install
  1931. else
  1932. # As a last resort, use the slow shell script. Don't cache a
  1933. # value for INSTALL within a source directory, because that will
  1934. # break other packages using the cache if that directory is
  1935. # removed, or if the value is a relative name.
  1936. INSTALL=$ac_install_sh
  1937. fi
  1938. fi
  1939. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1940. echo "${ECHO_T}$INSTALL" >&6; }
  1941. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1942. # It thinks the first close brace ends the variable substitution.
  1943. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1944. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1945. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1946. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1947. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1948. # Just in case
  1949. sleep 1
  1950. echo timestamp > conftest.file
  1951. # Do `set' in a subshell so we don't clobber the current shell's
  1952. # arguments. Must try -L first in case configure is actually a
  1953. # symlink; some systems play weird games with the mod time of symlinks
  1954. # (eg FreeBSD returns the mod time of the symlink's containing
  1955. # directory).
  1956. if (
  1957. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1958. if test "$*" = "X"; then
  1959. # -L didn't work.
  1960. set X `ls -t $srcdir/configure conftest.file`
  1961. fi
  1962. rm -f conftest.file
  1963. if test "$*" != "X $srcdir/configure conftest.file" \
  1964. && test "$*" != "X conftest.file $srcdir/configure"; then
  1965. # If neither matched, then we have a broken ls. This can happen
  1966. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1967. # broken ls alias from the environment. This has actually
  1968. # happened. Such a system could not be considered "sane".
  1969. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1970. alias in your environment" >&5
  1971. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1972. alias in your environment" >&2;}
  1973. { (exit 1); exit 1; }; }
  1974. fi
  1975. test "$2" = conftest.file
  1976. )
  1977. then
  1978. # Ok.
  1979. :
  1980. else
  1981. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1982. Check your system clock" >&5
  1983. echo "$as_me: error: newly created file is older than distributed files!
  1984. Check your system clock" >&2;}
  1985. { (exit 1); exit 1; }; }
  1986. fi
  1987. { echo "$as_me:$LINENO: result: yes" >&5
  1988. echo "${ECHO_T}yes" >&6; }
  1989. test "$program_prefix" != NONE &&
  1990. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1991. # Use a double $ so make ignores it.
  1992. test "$program_suffix" != NONE &&
  1993. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1994. # Double any \ or $. echo might interpret backslashes.
  1995. # By default was `s,x,x', remove it if useless.
  1996. cat <<\_ACEOF >conftest.sed
  1997. s/[\\$]/&&/g;s/;s,x,x,$//
  1998. _ACEOF
  1999. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2000. rm -f conftest.sed
  2001. # expand $ac_aux_dir to an absolute path
  2002. am_aux_dir=`cd $ac_aux_dir && pwd`
  2003. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2004. # Use eval to expand $SHELL
  2005. if eval "$MISSING --run true"; then
  2006. am_missing_run="$MISSING --run "
  2007. else
  2008. am_missing_run=
  2009. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2010. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2011. fi
  2012. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2013. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  2014. if test -z "$MKDIR_P"; then
  2015. if test "${ac_cv_path_mkdir+set}" = set; then
  2016. echo $ECHO_N "(cached) $ECHO_C" >&6
  2017. else
  2018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2019. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2020. do
  2021. IFS=$as_save_IFS
  2022. test -z "$as_dir" && as_dir=.
  2023. for ac_prog in mkdir gmkdir; do
  2024. for ac_exec_ext in '' $ac_executable_extensions; do
  2025. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2026. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2027. 'mkdir (GNU coreutils) '* | \
  2028. 'mkdir (coreutils) '* | \
  2029. 'mkdir (fileutils) '4.1*)
  2030. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2031. break 3;;
  2032. esac
  2033. done
  2034. done
  2035. done
  2036. IFS=$as_save_IFS
  2037. fi
  2038. if test "${ac_cv_path_mkdir+set}" = set; then
  2039. MKDIR_P="$ac_cv_path_mkdir -p"
  2040. else
  2041. # As a last resort, use the slow shell script. Don't cache a
  2042. # value for MKDIR_P within a source directory, because that will
  2043. # break other packages using the cache if that directory is
  2044. # removed, or if the value is a relative name.
  2045. test -d ./--version && rmdir ./--version
  2046. MKDIR_P="$ac_install_sh -d"
  2047. fi
  2048. fi
  2049. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2050. echo "${ECHO_T}$MKDIR_P" >&6; }
  2051. mkdir_p="$MKDIR_P"
  2052. case $mkdir_p in
  2053. [\\/$]* | ?:[\\/]*) ;;
  2054. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2055. esac
  2056. for ac_prog in gawk mawk nawk awk
  2057. do
  2058. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2059. set dummy $ac_prog; ac_word=$2
  2060. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2061. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2062. if test "${ac_cv_prog_AWK+set}" = set; then
  2063. echo $ECHO_N "(cached) $ECHO_C" >&6
  2064. else
  2065. if test -n "$AWK"; then
  2066. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2067. else
  2068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2069. for as_dir in $PATH
  2070. do
  2071. IFS=$as_save_IFS
  2072. test -z "$as_dir" && as_dir=.
  2073. for ac_exec_ext in '' $ac_executable_extensions; do
  2074. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2075. ac_cv_prog_AWK="$ac_prog"
  2076. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2077. break 2
  2078. fi
  2079. done
  2080. done
  2081. IFS=$as_save_IFS
  2082. fi
  2083. fi
  2084. AWK=$ac_cv_prog_AWK
  2085. if test -n "$AWK"; then
  2086. { echo "$as_me:$LINENO: result: $AWK" >&5
  2087. echo "${ECHO_T}$AWK" >&6; }
  2088. else
  2089. { echo "$as_me:$LINENO: result: no" >&5
  2090. echo "${ECHO_T}no" >&6; }
  2091. fi
  2092. test -n "$AWK" && break
  2093. done
  2094. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2095. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2096. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2097. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2098. echo $ECHO_N "(cached) $ECHO_C" >&6
  2099. else
  2100. cat >conftest.make <<\_ACEOF
  2101. SHELL = /bin/sh
  2102. all:
  2103. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2104. _ACEOF
  2105. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2106. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2107. *@@@%%%=?*=@@@%%%*)
  2108. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2109. *)
  2110. eval ac_cv_prog_make_${ac_make}_set=no;;
  2111. esac
  2112. rm -f conftest.make
  2113. fi
  2114. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2115. { echo "$as_me:$LINENO: result: yes" >&5
  2116. echo "${ECHO_T}yes" >&6; }
  2117. SET_MAKE=
  2118. else
  2119. { echo "$as_me:$LINENO: result: no" >&5
  2120. echo "${ECHO_T}no" >&6; }
  2121. SET_MAKE="MAKE=${MAKE-make}"
  2122. fi
  2123. rm -rf .tst 2>/dev/null
  2124. mkdir .tst 2>/dev/null
  2125. if test -d .tst; then
  2126. am__leading_dot=.
  2127. else
  2128. am__leading_dot=_
  2129. fi
  2130. rmdir .tst 2>/dev/null
  2131. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2132. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2133. # is not polluted with repeated "-I."
  2134. am__isrc=' -I$(srcdir)'
  2135. # test to see if srcdir already configured
  2136. if test -f $srcdir/config.status; then
  2137. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2138. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2139. { (exit 1); exit 1; }; }
  2140. fi
  2141. fi
  2142. # test whether we have cygpath
  2143. if test -z "$CYGPATH_W"; then
  2144. if (cygpath --version) >/dev/null 2>/dev/null; then
  2145. CYGPATH_W='cygpath -w'
  2146. else
  2147. CYGPATH_W=echo
  2148. fi
  2149. fi
  2150. # Define the identity of the package.
  2151. PACKAGE='dirsrv'
  2152. VERSION='1.2.0'
  2153. cat >>confdefs.h <<_ACEOF
  2154. #define PACKAGE "$PACKAGE"
  2155. _ACEOF
  2156. cat >>confdefs.h <<_ACEOF
  2157. #define VERSION "$VERSION"
  2158. _ACEOF
  2159. # Some tools Automake needs.
  2160. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2161. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2162. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2163. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2164. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2165. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2166. # Installed binaries are usually stripped using `strip' when the user
  2167. # run `make install-strip'. However `strip' might not be the right
  2168. # tool to use in cross-compilation environments, therefore Automake
  2169. # will honor the `STRIP' environment variable to overrule this program.
  2170. if test "$cross_compiling" != no; then
  2171. if test -n "$ac_tool_prefix"; then
  2172. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2173. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2174. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2176. if test "${ac_cv_prog_STRIP+set}" = set; then
  2177. echo $ECHO_N "(cached) $ECHO_C" >&6
  2178. else
  2179. if test -n "$STRIP"; then
  2180. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2181. else
  2182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2183. for as_dir in $PATH
  2184. do
  2185. IFS=$as_save_IFS
  2186. test -z "$as_dir" && as_dir=.
  2187. for ac_exec_ext in '' $ac_executable_extensions; do
  2188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2189. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2191. break 2
  2192. fi
  2193. done
  2194. done
  2195. IFS=$as_save_IFS
  2196. fi
  2197. fi
  2198. STRIP=$ac_cv_prog_STRIP
  2199. if test -n "$STRIP"; then
  2200. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2201. echo "${ECHO_T}$STRIP" >&6; }
  2202. else
  2203. { echo "$as_me:$LINENO: result: no" >&5
  2204. echo "${ECHO_T}no" >&6; }
  2205. fi
  2206. fi
  2207. if test -z "$ac_cv_prog_STRIP"; then
  2208. ac_ct_STRIP=$STRIP
  2209. # Extract the first word of "strip", so it can be a program name with args.
  2210. set dummy strip; ac_word=$2
  2211. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2212. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2213. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2214. echo $ECHO_N "(cached) $ECHO_C" >&6
  2215. else
  2216. if test -n "$ac_ct_STRIP"; then
  2217. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2218. else
  2219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2220. for as_dir in $PATH
  2221. do
  2222. IFS=$as_save_IFS
  2223. test -z "$as_dir" && as_dir=.
  2224. for ac_exec_ext in '' $ac_executable_extensions; do
  2225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2226. ac_cv_prog_ac_ct_STRIP="strip"
  2227. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2228. break 2
  2229. fi
  2230. done
  2231. done
  2232. IFS=$as_save_IFS
  2233. fi
  2234. fi
  2235. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2236. if test -n "$ac_ct_STRIP"; then
  2237. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2238. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2239. else
  2240. { echo "$as_me:$LINENO: result: no" >&5
  2241. echo "${ECHO_T}no" >&6; }
  2242. fi
  2243. if test "x$ac_ct_STRIP" = x; then
  2244. STRIP=":"
  2245. else
  2246. case $cross_compiling:$ac_tool_warned in
  2247. yes:)
  2248. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2249. whose name does not start with the host triplet. If you think this
  2250. configuration is useful to you, please write to [email protected]." >&5
  2251. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2252. whose name does not start with the host triplet. If you think this
  2253. configuration is useful to you, please write to [email protected]." >&2;}
  2254. ac_tool_warned=yes ;;
  2255. esac
  2256. STRIP=$ac_ct_STRIP
  2257. fi
  2258. else
  2259. STRIP="$ac_cv_prog_STRIP"
  2260. fi
  2261. fi
  2262. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2263. # We need awk for the "check" target. The system "awk" is bad on
  2264. # some platforms.
  2265. # Always define AMTAR for backward compatibility.
  2266. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2267. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2268. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2269. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2270. # Check whether --enable-maintainer-mode was given.
  2271. if test "${enable_maintainer_mode+set}" = set; then
  2272. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2273. else
  2274. USE_MAINTAINER_MODE=no
  2275. fi
  2276. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2277. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2278. if test $USE_MAINTAINER_MODE = yes; then
  2279. MAINTAINER_MODE_TRUE=
  2280. MAINTAINER_MODE_FALSE='#'
  2281. else
  2282. MAINTAINER_MODE_TRUE='#'
  2283. MAINTAINER_MODE_FALSE=
  2284. fi
  2285. MAINT=$MAINTAINER_MODE_TRUE
  2286. # Make sure we can run config.sub.
  2287. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2288. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2289. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2290. { (exit 1); exit 1; }; }
  2291. { echo "$as_me:$LINENO: checking build system type" >&5
  2292. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2293. if test "${ac_cv_build+set}" = set; then
  2294. echo $ECHO_N "(cached) $ECHO_C" >&6
  2295. else
  2296. ac_build_alias=$build_alias
  2297. test "x$ac_build_alias" = x &&
  2298. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2299. test "x$ac_build_alias" = x &&
  2300. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2301. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2302. { (exit 1); exit 1; }; }
  2303. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2304. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2305. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2306. { (exit 1); exit 1; }; }
  2307. fi
  2308. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2309. echo "${ECHO_T}$ac_cv_build" >&6; }
  2310. case $ac_cv_build in
  2311. *-*-*) ;;
  2312. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2313. echo "$as_me: error: invalid value of canonical build" >&2;}
  2314. { (exit 1); exit 1; }; };;
  2315. esac
  2316. build=$ac_cv_build
  2317. ac_save_IFS=$IFS; IFS='-'
  2318. set x $ac_cv_build
  2319. shift
  2320. build_cpu=$1
  2321. build_vendor=$2
  2322. shift; shift
  2323. # Remember, the first character of IFS is used to create $*,
  2324. # except with old shells:
  2325. build_os=$*
  2326. IFS=$ac_save_IFS
  2327. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2328. { echo "$as_me:$LINENO: checking host system type" >&5
  2329. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2330. if test "${ac_cv_host+set}" = set; then
  2331. echo $ECHO_N "(cached) $ECHO_C" >&6
  2332. else
  2333. if test "x$host_alias" = x; then
  2334. ac_cv_host=$ac_cv_build
  2335. else
  2336. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2337. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2338. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2339. { (exit 1); exit 1; }; }
  2340. fi
  2341. fi
  2342. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2343. echo "${ECHO_T}$ac_cv_host" >&6; }
  2344. case $ac_cv_host in
  2345. *-*-*) ;;
  2346. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2347. echo "$as_me: error: invalid value of canonical host" >&2;}
  2348. { (exit 1); exit 1; }; };;
  2349. esac
  2350. host=$ac_cv_host
  2351. ac_save_IFS=$IFS; IFS='-'
  2352. set x $ac_cv_host
  2353. shift
  2354. host_cpu=$1
  2355. host_vendor=$2
  2356. shift; shift
  2357. # Remember, the first character of IFS is used to create $*,
  2358. # except with old shells:
  2359. host_os=$*
  2360. IFS=$ac_save_IFS
  2361. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2362. # Checks for programs.
  2363. ac_ext=cpp
  2364. ac_cpp='$CXXCPP $CPPFLAGS'
  2365. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2366. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2367. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2368. if test -z "$CXX"; then
  2369. if test -n "$CCC"; then
  2370. CXX=$CCC
  2371. else
  2372. if test -n "$ac_tool_prefix"; then
  2373. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2374. do
  2375. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2376. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2377. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2378. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2379. if test "${ac_cv_prog_CXX+set}" = set; then
  2380. echo $ECHO_N "(cached) $ECHO_C" >&6
  2381. else
  2382. if test -n "$CXX"; then
  2383. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2384. else
  2385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2386. for as_dir in $PATH
  2387. do
  2388. IFS=$as_save_IFS
  2389. test -z "$as_dir" && as_dir=.
  2390. for ac_exec_ext in '' $ac_executable_extensions; do
  2391. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2392. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2393. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2394. break 2
  2395. fi
  2396. done
  2397. done
  2398. IFS=$as_save_IFS
  2399. fi
  2400. fi
  2401. CXX=$ac_cv_prog_CXX
  2402. if test -n "$CXX"; then
  2403. { echo "$as_me:$LINENO: result: $CXX" >&5
  2404. echo "${ECHO_T}$CXX" >&6; }
  2405. else
  2406. { echo "$as_me:$LINENO: result: no" >&5
  2407. echo "${ECHO_T}no" >&6; }
  2408. fi
  2409. test -n "$CXX" && break
  2410. done
  2411. fi
  2412. if test -z "$CXX"; then
  2413. ac_ct_CXX=$CXX
  2414. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2415. do
  2416. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2417. set dummy $ac_prog; ac_word=$2
  2418. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2419. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2420. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2421. echo $ECHO_N "(cached) $ECHO_C" >&6
  2422. else
  2423. if test -n "$ac_ct_CXX"; then
  2424. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2425. else
  2426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2427. for as_dir in $PATH
  2428. do
  2429. IFS=$as_save_IFS
  2430. test -z "$as_dir" && as_dir=.
  2431. for ac_exec_ext in '' $ac_executable_extensions; do
  2432. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2433. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2434. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2435. break 2
  2436. fi
  2437. done
  2438. done
  2439. IFS=$as_save_IFS
  2440. fi
  2441. fi
  2442. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2443. if test -n "$ac_ct_CXX"; then
  2444. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2445. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2446. else
  2447. { echo "$as_me:$LINENO: result: no" >&5
  2448. echo "${ECHO_T}no" >&6; }
  2449. fi
  2450. test -n "$ac_ct_CXX" && break
  2451. done
  2452. if test "x$ac_ct_CXX" = x; then
  2453. CXX="g++"
  2454. else
  2455. case $cross_compiling:$ac_tool_warned in
  2456. yes:)
  2457. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2458. whose name does not start with the host triplet. If you think this
  2459. configuration is useful to you, please write to [email protected]." >&5
  2460. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2461. whose name does not start with the host triplet. If you think this
  2462. configuration is useful to you, please write to [email protected]." >&2;}
  2463. ac_tool_warned=yes ;;
  2464. esac
  2465. CXX=$ac_ct_CXX
  2466. fi
  2467. fi
  2468. fi
  2469. fi
  2470. # Provide some information about the compiler.
  2471. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2472. ac_compiler=`set X $ac_compile; echo $2`
  2473. { (ac_try="$ac_compiler --version >&5"
  2474. case "(($ac_try" in
  2475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2476. *) ac_try_echo=$ac_try;;
  2477. esac
  2478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2479. (eval "$ac_compiler --version >&5") 2>&5
  2480. ac_status=$?
  2481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2482. (exit $ac_status); }
  2483. { (ac_try="$ac_compiler -v >&5"
  2484. case "(($ac_try" in
  2485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2486. *) ac_try_echo=$ac_try;;
  2487. esac
  2488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2489. (eval "$ac_compiler -v >&5") 2>&5
  2490. ac_status=$?
  2491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2492. (exit $ac_status); }
  2493. { (ac_try="$ac_compiler -V >&5"
  2494. case "(($ac_try" in
  2495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2496. *) ac_try_echo=$ac_try;;
  2497. esac
  2498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2499. (eval "$ac_compiler -V >&5") 2>&5
  2500. ac_status=$?
  2501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2502. (exit $ac_status); }
  2503. cat >conftest.$ac_ext <<_ACEOF
  2504. /* confdefs.h. */
  2505. _ACEOF
  2506. cat confdefs.h >>conftest.$ac_ext
  2507. cat >>conftest.$ac_ext <<_ACEOF
  2508. /* end confdefs.h. */
  2509. int
  2510. main ()
  2511. {
  2512. ;
  2513. return 0;
  2514. }
  2515. _ACEOF
  2516. ac_clean_files_save=$ac_clean_files
  2517. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2518. # Try to create an executable without -o first, disregard a.out.
  2519. # It will help us diagnose broken compilers, and finding out an intuition
  2520. # of exeext.
  2521. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2522. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2523. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2524. #
  2525. # List of possible output files, starting from the most likely.
  2526. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2527. # only as a last resort. b.out is created by i960 compilers.
  2528. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2529. #
  2530. # The IRIX 6 linker writes into existing files which may not be
  2531. # executable, retaining their permissions. Remove them first so a
  2532. # subsequent execution test works.
  2533. ac_rmfiles=
  2534. for ac_file in $ac_files
  2535. do
  2536. case $ac_file in
  2537. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2538. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2539. esac
  2540. done
  2541. rm -f $ac_rmfiles
  2542. if { (ac_try="$ac_link_default"
  2543. case "(($ac_try" in
  2544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2545. *) ac_try_echo=$ac_try;;
  2546. esac
  2547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2548. (eval "$ac_link_default") 2>&5
  2549. ac_status=$?
  2550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2551. (exit $ac_status); }; then
  2552. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2553. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2554. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2555. # so that the user can short-circuit this test for compilers unknown to
  2556. # Autoconf.
  2557. for ac_file in $ac_files ''
  2558. do
  2559. test -f "$ac_file" || continue
  2560. case $ac_file in
  2561. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2562. ;;
  2563. [ab].out )
  2564. # We found the default executable, but exeext='' is most
  2565. # certainly right.
  2566. break;;
  2567. *.* )
  2568. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2569. then :; else
  2570. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2571. fi
  2572. # We set ac_cv_exeext here because the later test for it is not
  2573. # safe: cross compilers may not add the suffix if given an `-o'
  2574. # argument, so we may need to know it at that point already.
  2575. # Even if this section looks crufty: it has the advantage of
  2576. # actually working.
  2577. break;;
  2578. * )
  2579. break;;
  2580. esac
  2581. done
  2582. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2583. else
  2584. ac_file=''
  2585. fi
  2586. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2587. echo "${ECHO_T}$ac_file" >&6; }
  2588. if test -z "$ac_file"; then
  2589. echo "$as_me: failed program was:" >&5
  2590. sed 's/^/| /' conftest.$ac_ext >&5
  2591. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2592. See \`config.log' for more details." >&5
  2593. echo "$as_me: error: C++ compiler cannot create executables
  2594. See \`config.log' for more details." >&2;}
  2595. { (exit 77); exit 77; }; }
  2596. fi
  2597. ac_exeext=$ac_cv_exeext
  2598. # Check that the compiler produces executables we can run. If not, either
  2599. # the compiler is broken, or we cross compile.
  2600. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2601. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2602. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2603. # If not cross compiling, check that we can run a simple program.
  2604. if test "$cross_compiling" != yes; then
  2605. if { ac_try='./$ac_file'
  2606. { (case "(($ac_try" in
  2607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2608. *) ac_try_echo=$ac_try;;
  2609. esac
  2610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2611. (eval "$ac_try") 2>&5
  2612. ac_status=$?
  2613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2614. (exit $ac_status); }; }; then
  2615. cross_compiling=no
  2616. else
  2617. if test "$cross_compiling" = maybe; then
  2618. cross_compiling=yes
  2619. else
  2620. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2621. If you meant to cross compile, use \`--host'.
  2622. See \`config.log' for more details." >&5
  2623. echo "$as_me: error: cannot run C++ compiled programs.
  2624. If you meant to cross compile, use \`--host'.
  2625. See \`config.log' for more details." >&2;}
  2626. { (exit 1); exit 1; }; }
  2627. fi
  2628. fi
  2629. fi
  2630. { echo "$as_me:$LINENO: result: yes" >&5
  2631. echo "${ECHO_T}yes" >&6; }
  2632. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2633. ac_clean_files=$ac_clean_files_save
  2634. # Check that the compiler produces executables we can run. If not, either
  2635. # the compiler is broken, or we cross compile.
  2636. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2637. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2638. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2639. echo "${ECHO_T}$cross_compiling" >&6; }
  2640. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2641. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2642. if { (ac_try="$ac_link"
  2643. case "(($ac_try" in
  2644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2645. *) ac_try_echo=$ac_try;;
  2646. esac
  2647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2648. (eval "$ac_link") 2>&5
  2649. ac_status=$?
  2650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2651. (exit $ac_status); }; then
  2652. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2653. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2654. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2655. # `rm'.
  2656. for ac_file in conftest.exe conftest conftest.*; do
  2657. test -f "$ac_file" || continue
  2658. case $ac_file in
  2659. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2660. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2661. break;;
  2662. * ) break;;
  2663. esac
  2664. done
  2665. else
  2666. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2667. See \`config.log' for more details." >&5
  2668. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2669. See \`config.log' for more details." >&2;}
  2670. { (exit 1); exit 1; }; }
  2671. fi
  2672. rm -f conftest$ac_cv_exeext
  2673. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2674. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2675. rm -f conftest.$ac_ext
  2676. EXEEXT=$ac_cv_exeext
  2677. ac_exeext=$EXEEXT
  2678. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2679. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2680. if test "${ac_cv_objext+set}" = set; then
  2681. echo $ECHO_N "(cached) $ECHO_C" >&6
  2682. else
  2683. cat >conftest.$ac_ext <<_ACEOF
  2684. /* confdefs.h. */
  2685. _ACEOF
  2686. cat confdefs.h >>conftest.$ac_ext
  2687. cat >>conftest.$ac_ext <<_ACEOF
  2688. /* end confdefs.h. */
  2689. int
  2690. main ()
  2691. {
  2692. ;
  2693. return 0;
  2694. }
  2695. _ACEOF
  2696. rm -f conftest.o conftest.obj
  2697. if { (ac_try="$ac_compile"
  2698. case "(($ac_try" in
  2699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2700. *) ac_try_echo=$ac_try;;
  2701. esac
  2702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2703. (eval "$ac_compile") 2>&5
  2704. ac_status=$?
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); }; then
  2707. for ac_file in conftest.o conftest.obj conftest.*; do
  2708. test -f "$ac_file" || continue;
  2709. case $ac_file in
  2710. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2711. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2712. break;;
  2713. esac
  2714. done
  2715. else
  2716. echo "$as_me: failed program was:" >&5
  2717. sed 's/^/| /' conftest.$ac_ext >&5
  2718. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2719. See \`config.log' for more details." >&5
  2720. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2721. See \`config.log' for more details." >&2;}
  2722. { (exit 1); exit 1; }; }
  2723. fi
  2724. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2725. fi
  2726. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2727. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2728. OBJEXT=$ac_cv_objext
  2729. ac_objext=$OBJEXT
  2730. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2731. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2732. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2733. echo $ECHO_N "(cached) $ECHO_C" >&6
  2734. else
  2735. cat >conftest.$ac_ext <<_ACEOF
  2736. /* confdefs.h. */
  2737. _ACEOF
  2738. cat confdefs.h >>conftest.$ac_ext
  2739. cat >>conftest.$ac_ext <<_ACEOF
  2740. /* end confdefs.h. */
  2741. int
  2742. main ()
  2743. {
  2744. #ifndef __GNUC__
  2745. choke me
  2746. #endif
  2747. ;
  2748. return 0;
  2749. }
  2750. _ACEOF
  2751. rm -f conftest.$ac_objext
  2752. if { (ac_try="$ac_compile"
  2753. case "(($ac_try" in
  2754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2755. *) ac_try_echo=$ac_try;;
  2756. esac
  2757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2758. (eval "$ac_compile") 2>conftest.er1
  2759. ac_status=$?
  2760. grep -v '^ *+' conftest.er1 >conftest.err
  2761. rm -f conftest.er1
  2762. cat conftest.err >&5
  2763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2764. (exit $ac_status); } && {
  2765. test -z "$ac_cxx_werror_flag" ||
  2766. test ! -s conftest.err
  2767. } && test -s conftest.$ac_objext; then
  2768. ac_compiler_gnu=yes
  2769. else
  2770. echo "$as_me: failed program was:" >&5
  2771. sed 's/^/| /' conftest.$ac_ext >&5
  2772. ac_compiler_gnu=no
  2773. fi
  2774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2775. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2776. fi
  2777. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2778. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2779. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2780. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2781. ac_save_CXXFLAGS=$CXXFLAGS
  2782. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2783. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2784. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2785. echo $ECHO_N "(cached) $ECHO_C" >&6
  2786. else
  2787. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2788. ac_cxx_werror_flag=yes
  2789. ac_cv_prog_cxx_g=no
  2790. CXXFLAGS="-g"
  2791. cat >conftest.$ac_ext <<_ACEOF
  2792. /* confdefs.h. */
  2793. _ACEOF
  2794. cat confdefs.h >>conftest.$ac_ext
  2795. cat >>conftest.$ac_ext <<_ACEOF
  2796. /* end confdefs.h. */
  2797. int
  2798. main ()
  2799. {
  2800. ;
  2801. return 0;
  2802. }
  2803. _ACEOF
  2804. rm -f conftest.$ac_objext
  2805. if { (ac_try="$ac_compile"
  2806. case "(($ac_try" in
  2807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2808. *) ac_try_echo=$ac_try;;
  2809. esac
  2810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2811. (eval "$ac_compile") 2>conftest.er1
  2812. ac_status=$?
  2813. grep -v '^ *+' conftest.er1 >conftest.err
  2814. rm -f conftest.er1
  2815. cat conftest.err >&5
  2816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2817. (exit $ac_status); } && {
  2818. test -z "$ac_cxx_werror_flag" ||
  2819. test ! -s conftest.err
  2820. } && test -s conftest.$ac_objext; then
  2821. ac_cv_prog_cxx_g=yes
  2822. else
  2823. echo "$as_me: failed program was:" >&5
  2824. sed 's/^/| /' conftest.$ac_ext >&5
  2825. CXXFLAGS=""
  2826. cat >conftest.$ac_ext <<_ACEOF
  2827. /* confdefs.h. */
  2828. _ACEOF
  2829. cat confdefs.h >>conftest.$ac_ext
  2830. cat >>conftest.$ac_ext <<_ACEOF
  2831. /* end confdefs.h. */
  2832. int
  2833. main ()
  2834. {
  2835. ;
  2836. return 0;
  2837. }
  2838. _ACEOF
  2839. rm -f conftest.$ac_objext
  2840. if { (ac_try="$ac_compile"
  2841. case "(($ac_try" in
  2842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843. *) ac_try_echo=$ac_try;;
  2844. esac
  2845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2846. (eval "$ac_compile") 2>conftest.er1
  2847. ac_status=$?
  2848. grep -v '^ *+' conftest.er1 >conftest.err
  2849. rm -f conftest.er1
  2850. cat conftest.err >&5
  2851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852. (exit $ac_status); } && {
  2853. test -z "$ac_cxx_werror_flag" ||
  2854. test ! -s conftest.err
  2855. } && test -s conftest.$ac_objext; then
  2856. :
  2857. else
  2858. echo "$as_me: failed program was:" >&5
  2859. sed 's/^/| /' conftest.$ac_ext >&5
  2860. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2861. CXXFLAGS="-g"
  2862. cat >conftest.$ac_ext <<_ACEOF
  2863. /* confdefs.h. */
  2864. _ACEOF
  2865. cat confdefs.h >>conftest.$ac_ext
  2866. cat >>conftest.$ac_ext <<_ACEOF
  2867. /* end confdefs.h. */
  2868. int
  2869. main ()
  2870. {
  2871. ;
  2872. return 0;
  2873. }
  2874. _ACEOF
  2875. rm -f conftest.$ac_objext
  2876. if { (ac_try="$ac_compile"
  2877. case "(($ac_try" in
  2878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2879. *) ac_try_echo=$ac_try;;
  2880. esac
  2881. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2882. (eval "$ac_compile") 2>conftest.er1
  2883. ac_status=$?
  2884. grep -v '^ *+' conftest.er1 >conftest.err
  2885. rm -f conftest.er1
  2886. cat conftest.err >&5
  2887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888. (exit $ac_status); } && {
  2889. test -z "$ac_cxx_werror_flag" ||
  2890. test ! -s conftest.err
  2891. } && test -s conftest.$ac_objext; then
  2892. ac_cv_prog_cxx_g=yes
  2893. else
  2894. echo "$as_me: failed program was:" >&5
  2895. sed 's/^/| /' conftest.$ac_ext >&5
  2896. fi
  2897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2898. fi
  2899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2900. fi
  2901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2902. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2903. fi
  2904. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2905. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2906. if test "$ac_test_CXXFLAGS" = set; then
  2907. CXXFLAGS=$ac_save_CXXFLAGS
  2908. elif test $ac_cv_prog_cxx_g = yes; then
  2909. if test "$GXX" = yes; then
  2910. CXXFLAGS="-g -O2"
  2911. else
  2912. CXXFLAGS="-g"
  2913. fi
  2914. else
  2915. if test "$GXX" = yes; then
  2916. CXXFLAGS="-O2"
  2917. else
  2918. CXXFLAGS=
  2919. fi
  2920. fi
  2921. ac_ext=c
  2922. ac_cpp='$CPP $CPPFLAGS'
  2923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2926. DEPDIR="${am__leading_dot}deps"
  2927. ac_config_commands="$ac_config_commands depfiles"
  2928. am_make=${MAKE-make}
  2929. cat > confinc << 'END'
  2930. am__doit:
  2931. @echo done
  2932. .PHONY: am__doit
  2933. END
  2934. # If we don't find an include directive, just comment out the code.
  2935. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2936. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2937. am__include="#"
  2938. am__quote=
  2939. _am_result=none
  2940. # First try GNU make style include.
  2941. echo "include confinc" > confmf
  2942. # We grep out `Entering directory' and `Leaving directory'
  2943. # messages which can occur if `w' ends up in MAKEFLAGS.
  2944. # In particular we don't look at `^make:' because GNU make might
  2945. # be invoked under some other name (usually "gmake"), in which
  2946. # case it prints its new name instead of `make'.
  2947. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2948. am__include=include
  2949. am__quote=
  2950. _am_result=GNU
  2951. fi
  2952. # Now try BSD make style include.
  2953. if test "$am__include" = "#"; then
  2954. echo '.include "confinc"' > confmf
  2955. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2956. am__include=.include
  2957. am__quote="\""
  2958. _am_result=BSD
  2959. fi
  2960. fi
  2961. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2962. echo "${ECHO_T}$_am_result" >&6; }
  2963. rm -f confinc confmf
  2964. # Check whether --enable-dependency-tracking was given.
  2965. if test "${enable_dependency_tracking+set}" = set; then
  2966. enableval=$enable_dependency_tracking;
  2967. fi
  2968. if test "x$enable_dependency_tracking" != xno; then
  2969. am_depcomp="$ac_aux_dir/depcomp"
  2970. AMDEPBACKSLASH='\'
  2971. fi
  2972. if test "x$enable_dependency_tracking" != xno; then
  2973. AMDEP_TRUE=
  2974. AMDEP_FALSE='#'
  2975. else
  2976. AMDEP_TRUE='#'
  2977. AMDEP_FALSE=
  2978. fi
  2979. depcc="$CXX" am_compiler_list=
  2980. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2981. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2982. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2983. echo $ECHO_N "(cached) $ECHO_C" >&6
  2984. else
  2985. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2986. # We make a subdir and do the tests there. Otherwise we can end up
  2987. # making bogus files that we don't know about and never remove. For
  2988. # instance it was reported that on HP-UX the gcc test will end up
  2989. # making a dummy file named `D' -- because `-MD' means `put the output
  2990. # in D'.
  2991. mkdir conftest.dir
  2992. # Copy depcomp to subdir because otherwise we won't find it if we're
  2993. # using a relative directory.
  2994. cp "$am_depcomp" conftest.dir
  2995. cd conftest.dir
  2996. # We will build objects and dependencies in a subdirectory because
  2997. # it helps to detect inapplicable dependency modes. For instance
  2998. # both Tru64's cc and ICC support -MD to output dependencies as a
  2999. # side effect of compilation, but ICC will put the dependencies in
  3000. # the current directory while Tru64 will put them in the object
  3001. # directory.
  3002. mkdir sub
  3003. am_cv_CXX_dependencies_compiler_type=none
  3004. if test "$am_compiler_list" = ""; then
  3005. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3006. fi
  3007. for depmode in $am_compiler_list; do
  3008. # Setup a source with many dependencies, because some compilers
  3009. # like to wrap large dependency lists on column 80 (with \), and
  3010. # we should not choose a depcomp mode which is confused by this.
  3011. #
  3012. # We need to recreate these files for each test, as the compiler may
  3013. # overwrite some of them when testing with obscure command lines.
  3014. # This happens at least with the AIX C compiler.
  3015. : > sub/conftest.c
  3016. for i in 1 2 3 4 5 6; do
  3017. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3018. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3019. # Solaris 8's {/usr,}/bin/sh.
  3020. touch sub/conftst$i.h
  3021. done
  3022. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3023. case $depmode in
  3024. nosideeffect)
  3025. # after this tag, mechanisms are not by side-effect, so they'll
  3026. # only be used when explicitly requested
  3027. if test "x$enable_dependency_tracking" = xyes; then
  3028. continue
  3029. else
  3030. break
  3031. fi
  3032. ;;
  3033. none) break ;;
  3034. esac
  3035. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3036. # mode. It turns out that the SunPro C++ compiler does not properly
  3037. # handle `-M -o', and we need to detect this.
  3038. if depmode=$depmode \
  3039. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3040. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3041. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3042. >/dev/null 2>conftest.err &&
  3043. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3044. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3045. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3046. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3047. # icc doesn't choke on unknown options, it will just issue warnings
  3048. # or remarks (even with -Werror). So we grep stderr for any message
  3049. # that says an option was ignored or not supported.
  3050. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3051. # icc: Command line warning: ignoring option '-M'; no argument required
  3052. # The diagnosis changed in icc 8.0:
  3053. # icc: Command line remark: option '-MP' not supported
  3054. if (grep 'ignoring option' conftest.err ||
  3055. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3056. am_cv_CXX_dependencies_compiler_type=$depmode
  3057. break
  3058. fi
  3059. fi
  3060. done
  3061. cd ..
  3062. rm -rf conftest.dir
  3063. else
  3064. am_cv_CXX_dependencies_compiler_type=none
  3065. fi
  3066. fi
  3067. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3068. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3069. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3070. if
  3071. test "x$enable_dependency_tracking" != xno \
  3072. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3073. am__fastdepCXX_TRUE=
  3074. am__fastdepCXX_FALSE='#'
  3075. else
  3076. am__fastdepCXX_TRUE='#'
  3077. am__fastdepCXX_FALSE=
  3078. fi
  3079. ac_ext=c
  3080. ac_cpp='$CPP $CPPFLAGS'
  3081. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3082. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3083. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3084. if test -n "$ac_tool_prefix"; then
  3085. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3086. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3087. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3088. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3089. if test "${ac_cv_prog_CC+set}" = set; then
  3090. echo $ECHO_N "(cached) $ECHO_C" >&6
  3091. else
  3092. if test -n "$CC"; then
  3093. ac_cv_prog_CC="$CC" # Let the user override the test.
  3094. else
  3095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3096. for as_dir in $PATH
  3097. do
  3098. IFS=$as_save_IFS
  3099. test -z "$as_dir" && as_dir=.
  3100. for ac_exec_ext in '' $ac_executable_extensions; do
  3101. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3102. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3103. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3104. break 2
  3105. fi
  3106. done
  3107. done
  3108. IFS=$as_save_IFS
  3109. fi
  3110. fi
  3111. CC=$ac_cv_prog_CC
  3112. if test -n "$CC"; then
  3113. { echo "$as_me:$LINENO: result: $CC" >&5
  3114. echo "${ECHO_T}$CC" >&6; }
  3115. else
  3116. { echo "$as_me:$LINENO: result: no" >&5
  3117. echo "${ECHO_T}no" >&6; }
  3118. fi
  3119. fi
  3120. if test -z "$ac_cv_prog_CC"; then
  3121. ac_ct_CC=$CC
  3122. # Extract the first word of "gcc", so it can be a program name with args.
  3123. set dummy gcc; ac_word=$2
  3124. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3125. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3126. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3127. echo $ECHO_N "(cached) $ECHO_C" >&6
  3128. else
  3129. if test -n "$ac_ct_CC"; then
  3130. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3131. else
  3132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3133. for as_dir in $PATH
  3134. do
  3135. IFS=$as_save_IFS
  3136. test -z "$as_dir" && as_dir=.
  3137. for ac_exec_ext in '' $ac_executable_extensions; do
  3138. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3139. ac_cv_prog_ac_ct_CC="gcc"
  3140. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3141. break 2
  3142. fi
  3143. done
  3144. done
  3145. IFS=$as_save_IFS
  3146. fi
  3147. fi
  3148. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3149. if test -n "$ac_ct_CC"; then
  3150. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3151. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3152. else
  3153. { echo "$as_me:$LINENO: result: no" >&5
  3154. echo "${ECHO_T}no" >&6; }
  3155. fi
  3156. if test "x$ac_ct_CC" = x; then
  3157. CC=""
  3158. else
  3159. case $cross_compiling:$ac_tool_warned in
  3160. yes:)
  3161. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3162. whose name does not start with the host triplet. If you think this
  3163. configuration is useful to you, please write to [email protected]." >&5
  3164. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3165. whose name does not start with the host triplet. If you think this
  3166. configuration is useful to you, please write to [email protected]." >&2;}
  3167. ac_tool_warned=yes ;;
  3168. esac
  3169. CC=$ac_ct_CC
  3170. fi
  3171. else
  3172. CC="$ac_cv_prog_CC"
  3173. fi
  3174. if test -z "$CC"; then
  3175. if test -n "$ac_tool_prefix"; then
  3176. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3177. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3178. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3179. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3180. if test "${ac_cv_prog_CC+set}" = set; then
  3181. echo $ECHO_N "(cached) $ECHO_C" >&6
  3182. else
  3183. if test -n "$CC"; then
  3184. ac_cv_prog_CC="$CC" # Let the user override the test.
  3185. else
  3186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3187. for as_dir in $PATH
  3188. do
  3189. IFS=$as_save_IFS
  3190. test -z "$as_dir" && as_dir=.
  3191. for ac_exec_ext in '' $ac_executable_extensions; do
  3192. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3193. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3194. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3195. break 2
  3196. fi
  3197. done
  3198. done
  3199. IFS=$as_save_IFS
  3200. fi
  3201. fi
  3202. CC=$ac_cv_prog_CC
  3203. if test -n "$CC"; then
  3204. { echo "$as_me:$LINENO: result: $CC" >&5
  3205. echo "${ECHO_T}$CC" >&6; }
  3206. else
  3207. { echo "$as_me:$LINENO: result: no" >&5
  3208. echo "${ECHO_T}no" >&6; }
  3209. fi
  3210. fi
  3211. fi
  3212. if test -z "$CC"; then
  3213. # Extract the first word of "cc", so it can be a program name with args.
  3214. set dummy cc; ac_word=$2
  3215. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3216. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3217. if test "${ac_cv_prog_CC+set}" = set; then
  3218. echo $ECHO_N "(cached) $ECHO_C" >&6
  3219. else
  3220. if test -n "$CC"; then
  3221. ac_cv_prog_CC="$CC" # Let the user override the test.
  3222. else
  3223. ac_prog_rejected=no
  3224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3225. for as_dir in $PATH
  3226. do
  3227. IFS=$as_save_IFS
  3228. test -z "$as_dir" && as_dir=.
  3229. for ac_exec_ext in '' $ac_executable_extensions; do
  3230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3231. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3232. ac_prog_rejected=yes
  3233. continue
  3234. fi
  3235. ac_cv_prog_CC="cc"
  3236. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3237. break 2
  3238. fi
  3239. done
  3240. done
  3241. IFS=$as_save_IFS
  3242. if test $ac_prog_rejected = yes; then
  3243. # We found a bogon in the path, so make sure we never use it.
  3244. set dummy $ac_cv_prog_CC
  3245. shift
  3246. if test $# != 0; then
  3247. # We chose a different compiler from the bogus one.
  3248. # However, it has the same basename, so the bogon will be chosen
  3249. # first if we set CC to just the basename; use the full file name.
  3250. shift
  3251. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3252. fi
  3253. fi
  3254. fi
  3255. fi
  3256. CC=$ac_cv_prog_CC
  3257. if test -n "$CC"; then
  3258. { echo "$as_me:$LINENO: result: $CC" >&5
  3259. echo "${ECHO_T}$CC" >&6; }
  3260. else
  3261. { echo "$as_me:$LINENO: result: no" >&5
  3262. echo "${ECHO_T}no" >&6; }
  3263. fi
  3264. fi
  3265. if test -z "$CC"; then
  3266. if test -n "$ac_tool_prefix"; then
  3267. for ac_prog in cl.exe
  3268. do
  3269. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3270. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3271. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3272. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3273. if test "${ac_cv_prog_CC+set}" = set; then
  3274. echo $ECHO_N "(cached) $ECHO_C" >&6
  3275. else
  3276. if test -n "$CC"; then
  3277. ac_cv_prog_CC="$CC" # Let the user override the test.
  3278. else
  3279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3280. for as_dir in $PATH
  3281. do
  3282. IFS=$as_save_IFS
  3283. test -z "$as_dir" && as_dir=.
  3284. for ac_exec_ext in '' $ac_executable_extensions; do
  3285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3286. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3287. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3288. break 2
  3289. fi
  3290. done
  3291. done
  3292. IFS=$as_save_IFS
  3293. fi
  3294. fi
  3295. CC=$ac_cv_prog_CC
  3296. if test -n "$CC"; then
  3297. { echo "$as_me:$LINENO: result: $CC" >&5
  3298. echo "${ECHO_T}$CC" >&6; }
  3299. else
  3300. { echo "$as_me:$LINENO: result: no" >&5
  3301. echo "${ECHO_T}no" >&6; }
  3302. fi
  3303. test -n "$CC" && break
  3304. done
  3305. fi
  3306. if test -z "$CC"; then
  3307. ac_ct_CC=$CC
  3308. for ac_prog in cl.exe
  3309. do
  3310. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3311. set dummy $ac_prog; ac_word=$2
  3312. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3313. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3314. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3315. echo $ECHO_N "(cached) $ECHO_C" >&6
  3316. else
  3317. if test -n "$ac_ct_CC"; then
  3318. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3319. else
  3320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3321. for as_dir in $PATH
  3322. do
  3323. IFS=$as_save_IFS
  3324. test -z "$as_dir" && as_dir=.
  3325. for ac_exec_ext in '' $ac_executable_extensions; do
  3326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3327. ac_cv_prog_ac_ct_CC="$ac_prog"
  3328. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3329. break 2
  3330. fi
  3331. done
  3332. done
  3333. IFS=$as_save_IFS
  3334. fi
  3335. fi
  3336. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3337. if test -n "$ac_ct_CC"; then
  3338. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3339. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3340. else
  3341. { echo "$as_me:$LINENO: result: no" >&5
  3342. echo "${ECHO_T}no" >&6; }
  3343. fi
  3344. test -n "$ac_ct_CC" && break
  3345. done
  3346. if test "x$ac_ct_CC" = x; then
  3347. CC=""
  3348. else
  3349. case $cross_compiling:$ac_tool_warned in
  3350. yes:)
  3351. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3352. whose name does not start with the host triplet. If you think this
  3353. configuration is useful to you, please write to [email protected]." >&5
  3354. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3355. whose name does not start with the host triplet. If you think this
  3356. configuration is useful to you, please write to [email protected]." >&2;}
  3357. ac_tool_warned=yes ;;
  3358. esac
  3359. CC=$ac_ct_CC
  3360. fi
  3361. fi
  3362. fi
  3363. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3364. See \`config.log' for more details." >&5
  3365. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3366. See \`config.log' for more details." >&2;}
  3367. { (exit 1); exit 1; }; }
  3368. # Provide some information about the compiler.
  3369. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3370. ac_compiler=`set X $ac_compile; echo $2`
  3371. { (ac_try="$ac_compiler --version >&5"
  3372. case "(($ac_try" in
  3373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3374. *) ac_try_echo=$ac_try;;
  3375. esac
  3376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3377. (eval "$ac_compiler --version >&5") 2>&5
  3378. ac_status=$?
  3379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3380. (exit $ac_status); }
  3381. { (ac_try="$ac_compiler -v >&5"
  3382. case "(($ac_try" in
  3383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3384. *) ac_try_echo=$ac_try;;
  3385. esac
  3386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3387. (eval "$ac_compiler -v >&5") 2>&5
  3388. ac_status=$?
  3389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3390. (exit $ac_status); }
  3391. { (ac_try="$ac_compiler -V >&5"
  3392. case "(($ac_try" in
  3393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3394. *) ac_try_echo=$ac_try;;
  3395. esac
  3396. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3397. (eval "$ac_compiler -V >&5") 2>&5
  3398. ac_status=$?
  3399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3400. (exit $ac_status); }
  3401. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3402. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3403. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3404. echo $ECHO_N "(cached) $ECHO_C" >&6
  3405. else
  3406. cat >conftest.$ac_ext <<_ACEOF
  3407. /* confdefs.h. */
  3408. _ACEOF
  3409. cat confdefs.h >>conftest.$ac_ext
  3410. cat >>conftest.$ac_ext <<_ACEOF
  3411. /* end confdefs.h. */
  3412. int
  3413. main ()
  3414. {
  3415. #ifndef __GNUC__
  3416. choke me
  3417. #endif
  3418. ;
  3419. return 0;
  3420. }
  3421. _ACEOF
  3422. rm -f conftest.$ac_objext
  3423. if { (ac_try="$ac_compile"
  3424. case "(($ac_try" in
  3425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3426. *) ac_try_echo=$ac_try;;
  3427. esac
  3428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3429. (eval "$ac_compile") 2>conftest.er1
  3430. ac_status=$?
  3431. grep -v '^ *+' conftest.er1 >conftest.err
  3432. rm -f conftest.er1
  3433. cat conftest.err >&5
  3434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3435. (exit $ac_status); } && {
  3436. test -z "$ac_c_werror_flag" ||
  3437. test ! -s conftest.err
  3438. } && test -s conftest.$ac_objext; then
  3439. ac_compiler_gnu=yes
  3440. else
  3441. echo "$as_me: failed program was:" >&5
  3442. sed 's/^/| /' conftest.$ac_ext >&5
  3443. ac_compiler_gnu=no
  3444. fi
  3445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3446. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3447. fi
  3448. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3449. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3450. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3451. ac_test_CFLAGS=${CFLAGS+set}
  3452. ac_save_CFLAGS=$CFLAGS
  3453. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3454. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3455. if test "${ac_cv_prog_cc_g+set}" = set; then
  3456. echo $ECHO_N "(cached) $ECHO_C" >&6
  3457. else
  3458. ac_save_c_werror_flag=$ac_c_werror_flag
  3459. ac_c_werror_flag=yes
  3460. ac_cv_prog_cc_g=no
  3461. CFLAGS="-g"
  3462. cat >conftest.$ac_ext <<_ACEOF
  3463. /* confdefs.h. */
  3464. _ACEOF
  3465. cat confdefs.h >>conftest.$ac_ext
  3466. cat >>conftest.$ac_ext <<_ACEOF
  3467. /* end confdefs.h. */
  3468. int
  3469. main ()
  3470. {
  3471. ;
  3472. return 0;
  3473. }
  3474. _ACEOF
  3475. rm -f conftest.$ac_objext
  3476. if { (ac_try="$ac_compile"
  3477. case "(($ac_try" in
  3478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3479. *) ac_try_echo=$ac_try;;
  3480. esac
  3481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3482. (eval "$ac_compile") 2>conftest.er1
  3483. ac_status=$?
  3484. grep -v '^ *+' conftest.er1 >conftest.err
  3485. rm -f conftest.er1
  3486. cat conftest.err >&5
  3487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3488. (exit $ac_status); } && {
  3489. test -z "$ac_c_werror_flag" ||
  3490. test ! -s conftest.err
  3491. } && test -s conftest.$ac_objext; then
  3492. ac_cv_prog_cc_g=yes
  3493. else
  3494. echo "$as_me: failed program was:" >&5
  3495. sed 's/^/| /' conftest.$ac_ext >&5
  3496. CFLAGS=""
  3497. cat >conftest.$ac_ext <<_ACEOF
  3498. /* confdefs.h. */
  3499. _ACEOF
  3500. cat confdefs.h >>conftest.$ac_ext
  3501. cat >>conftest.$ac_ext <<_ACEOF
  3502. /* end confdefs.h. */
  3503. int
  3504. main ()
  3505. {
  3506. ;
  3507. return 0;
  3508. }
  3509. _ACEOF
  3510. rm -f conftest.$ac_objext
  3511. if { (ac_try="$ac_compile"
  3512. case "(($ac_try" in
  3513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3514. *) ac_try_echo=$ac_try;;
  3515. esac
  3516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3517. (eval "$ac_compile") 2>conftest.er1
  3518. ac_status=$?
  3519. grep -v '^ *+' conftest.er1 >conftest.err
  3520. rm -f conftest.er1
  3521. cat conftest.err >&5
  3522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3523. (exit $ac_status); } && {
  3524. test -z "$ac_c_werror_flag" ||
  3525. test ! -s conftest.err
  3526. } && test -s conftest.$ac_objext; then
  3527. :
  3528. else
  3529. echo "$as_me: failed program was:" >&5
  3530. sed 's/^/| /' conftest.$ac_ext >&5
  3531. ac_c_werror_flag=$ac_save_c_werror_flag
  3532. CFLAGS="-g"
  3533. cat >conftest.$ac_ext <<_ACEOF
  3534. /* confdefs.h. */
  3535. _ACEOF
  3536. cat confdefs.h >>conftest.$ac_ext
  3537. cat >>conftest.$ac_ext <<_ACEOF
  3538. /* end confdefs.h. */
  3539. int
  3540. main ()
  3541. {
  3542. ;
  3543. return 0;
  3544. }
  3545. _ACEOF
  3546. rm -f conftest.$ac_objext
  3547. if { (ac_try="$ac_compile"
  3548. case "(($ac_try" in
  3549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3550. *) ac_try_echo=$ac_try;;
  3551. esac
  3552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3553. (eval "$ac_compile") 2>conftest.er1
  3554. ac_status=$?
  3555. grep -v '^ *+' conftest.er1 >conftest.err
  3556. rm -f conftest.er1
  3557. cat conftest.err >&5
  3558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3559. (exit $ac_status); } && {
  3560. test -z "$ac_c_werror_flag" ||
  3561. test ! -s conftest.err
  3562. } && test -s conftest.$ac_objext; then
  3563. ac_cv_prog_cc_g=yes
  3564. else
  3565. echo "$as_me: failed program was:" >&5
  3566. sed 's/^/| /' conftest.$ac_ext >&5
  3567. fi
  3568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3569. fi
  3570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3571. fi
  3572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3573. ac_c_werror_flag=$ac_save_c_werror_flag
  3574. fi
  3575. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3576. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3577. if test "$ac_test_CFLAGS" = set; then
  3578. CFLAGS=$ac_save_CFLAGS
  3579. elif test $ac_cv_prog_cc_g = yes; then
  3580. if test "$GCC" = yes; then
  3581. CFLAGS="-g -O2"
  3582. else
  3583. CFLAGS="-g"
  3584. fi
  3585. else
  3586. if test "$GCC" = yes; then
  3587. CFLAGS="-O2"
  3588. else
  3589. CFLAGS=
  3590. fi
  3591. fi
  3592. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3593. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3594. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3595. echo $ECHO_N "(cached) $ECHO_C" >&6
  3596. else
  3597. ac_cv_prog_cc_c89=no
  3598. ac_save_CC=$CC
  3599. cat >conftest.$ac_ext <<_ACEOF
  3600. /* confdefs.h. */
  3601. _ACEOF
  3602. cat confdefs.h >>conftest.$ac_ext
  3603. cat >>conftest.$ac_ext <<_ACEOF
  3604. /* end confdefs.h. */
  3605. #include <stdarg.h>
  3606. #include <stdio.h>
  3607. #include <sys/types.h>
  3608. #include <sys/stat.h>
  3609. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3610. struct buf { int x; };
  3611. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3612. static char *e (p, i)
  3613. char **p;
  3614. int i;
  3615. {
  3616. return p[i];
  3617. }
  3618. static char *f (char * (*g) (char **, int), char **p, ...)
  3619. {
  3620. char *s;
  3621. va_list v;
  3622. va_start (v,p);
  3623. s = g (p, va_arg (v,int));
  3624. va_end (v);
  3625. return s;
  3626. }
  3627. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3628. function prototypes and stuff, but not '\xHH' hex character constants.
  3629. These don't provoke an error unfortunately, instead are silently treated
  3630. as 'x'. The following induces an error, until -std is added to get
  3631. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3632. array size at least. It's necessary to write '\x00'==0 to get something
  3633. that's true only with -std. */
  3634. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3635. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3636. inside strings and character constants. */
  3637. #define FOO(x) 'x'
  3638. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3639. int test (int i, double x);
  3640. struct s1 {int (*f) (int a);};
  3641. struct s2 {int (*f) (double a);};
  3642. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3643. int argc;
  3644. char **argv;
  3645. int
  3646. main ()
  3647. {
  3648. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3649. ;
  3650. return 0;
  3651. }
  3652. _ACEOF
  3653. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3654. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3655. do
  3656. CC="$ac_save_CC $ac_arg"
  3657. rm -f conftest.$ac_objext
  3658. if { (ac_try="$ac_compile"
  3659. case "(($ac_try" in
  3660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3661. *) ac_try_echo=$ac_try;;
  3662. esac
  3663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3664. (eval "$ac_compile") 2>conftest.er1
  3665. ac_status=$?
  3666. grep -v '^ *+' conftest.er1 >conftest.err
  3667. rm -f conftest.er1
  3668. cat conftest.err >&5
  3669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3670. (exit $ac_status); } && {
  3671. test -z "$ac_c_werror_flag" ||
  3672. test ! -s conftest.err
  3673. } && test -s conftest.$ac_objext; then
  3674. ac_cv_prog_cc_c89=$ac_arg
  3675. else
  3676. echo "$as_me: failed program was:" >&5
  3677. sed 's/^/| /' conftest.$ac_ext >&5
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext
  3680. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3681. done
  3682. rm -f conftest.$ac_ext
  3683. CC=$ac_save_CC
  3684. fi
  3685. # AC_CACHE_VAL
  3686. case "x$ac_cv_prog_cc_c89" in
  3687. x)
  3688. { echo "$as_me:$LINENO: result: none needed" >&5
  3689. echo "${ECHO_T}none needed" >&6; } ;;
  3690. xno)
  3691. { echo "$as_me:$LINENO: result: unsupported" >&5
  3692. echo "${ECHO_T}unsupported" >&6; } ;;
  3693. *)
  3694. CC="$CC $ac_cv_prog_cc_c89"
  3695. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3696. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3697. esac
  3698. ac_ext=c
  3699. ac_cpp='$CPP $CPPFLAGS'
  3700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3703. depcc="$CC" am_compiler_list=
  3704. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3705. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3706. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3707. echo $ECHO_N "(cached) $ECHO_C" >&6
  3708. else
  3709. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3710. # We make a subdir and do the tests there. Otherwise we can end up
  3711. # making bogus files that we don't know about and never remove. For
  3712. # instance it was reported that on HP-UX the gcc test will end up
  3713. # making a dummy file named `D' -- because `-MD' means `put the output
  3714. # in D'.
  3715. mkdir conftest.dir
  3716. # Copy depcomp to subdir because otherwise we won't find it if we're
  3717. # using a relative directory.
  3718. cp "$am_depcomp" conftest.dir
  3719. cd conftest.dir
  3720. # We will build objects and dependencies in a subdirectory because
  3721. # it helps to detect inapplicable dependency modes. For instance
  3722. # both Tru64's cc and ICC support -MD to output dependencies as a
  3723. # side effect of compilation, but ICC will put the dependencies in
  3724. # the current directory while Tru64 will put them in the object
  3725. # directory.
  3726. mkdir sub
  3727. am_cv_CC_dependencies_compiler_type=none
  3728. if test "$am_compiler_list" = ""; then
  3729. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3730. fi
  3731. for depmode in $am_compiler_list; do
  3732. # Setup a source with many dependencies, because some compilers
  3733. # like to wrap large dependency lists on column 80 (with \), and
  3734. # we should not choose a depcomp mode which is confused by this.
  3735. #
  3736. # We need to recreate these files for each test, as the compiler may
  3737. # overwrite some of them when testing with obscure command lines.
  3738. # This happens at least with the AIX C compiler.
  3739. : > sub/conftest.c
  3740. for i in 1 2 3 4 5 6; do
  3741. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3742. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3743. # Solaris 8's {/usr,}/bin/sh.
  3744. touch sub/conftst$i.h
  3745. done
  3746. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3747. case $depmode in
  3748. nosideeffect)
  3749. # after this tag, mechanisms are not by side-effect, so they'll
  3750. # only be used when explicitly requested
  3751. if test "x$enable_dependency_tracking" = xyes; then
  3752. continue
  3753. else
  3754. break
  3755. fi
  3756. ;;
  3757. none) break ;;
  3758. esac
  3759. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3760. # mode. It turns out that the SunPro C++ compiler does not properly
  3761. # handle `-M -o', and we need to detect this.
  3762. if depmode=$depmode \
  3763. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3764. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3765. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3766. >/dev/null 2>conftest.err &&
  3767. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3768. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3769. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3770. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3771. # icc doesn't choke on unknown options, it will just issue warnings
  3772. # or remarks (even with -Werror). So we grep stderr for any message
  3773. # that says an option was ignored or not supported.
  3774. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3775. # icc: Command line warning: ignoring option '-M'; no argument required
  3776. # The diagnosis changed in icc 8.0:
  3777. # icc: Command line remark: option '-MP' not supported
  3778. if (grep 'ignoring option' conftest.err ||
  3779. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3780. am_cv_CC_dependencies_compiler_type=$depmode
  3781. break
  3782. fi
  3783. fi
  3784. done
  3785. cd ..
  3786. rm -rf conftest.dir
  3787. else
  3788. am_cv_CC_dependencies_compiler_type=none
  3789. fi
  3790. fi
  3791. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3792. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3793. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3794. if
  3795. test "x$enable_dependency_tracking" != xno \
  3796. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3797. am__fastdepCC_TRUE=
  3798. am__fastdepCC_FALSE='#'
  3799. else
  3800. am__fastdepCC_TRUE='#'
  3801. am__fastdepCC_FALSE=
  3802. fi
  3803. if test "x$CC" != xcc; then
  3804. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3805. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3806. else
  3807. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3808. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3809. fi
  3810. set dummy $CC; ac_cc=`echo $2 |
  3811. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3812. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3813. echo $ECHO_N "(cached) $ECHO_C" >&6
  3814. else
  3815. cat >conftest.$ac_ext <<_ACEOF
  3816. /* confdefs.h. */
  3817. _ACEOF
  3818. cat confdefs.h >>conftest.$ac_ext
  3819. cat >>conftest.$ac_ext <<_ACEOF
  3820. /* end confdefs.h. */
  3821. int
  3822. main ()
  3823. {
  3824. ;
  3825. return 0;
  3826. }
  3827. _ACEOF
  3828. # Make sure it works both with $CC and with simple cc.
  3829. # We do the test twice because some compilers refuse to overwrite an
  3830. # existing .o file with -o, though they will create one.
  3831. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3832. rm -f conftest2.*
  3833. if { (case "(($ac_try" in
  3834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3835. *) ac_try_echo=$ac_try;;
  3836. esac
  3837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3838. (eval "$ac_try") 2>&5
  3839. ac_status=$?
  3840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3841. (exit $ac_status); } &&
  3842. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3844. *) ac_try_echo=$ac_try;;
  3845. esac
  3846. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3847. (eval "$ac_try") 2>&5
  3848. ac_status=$?
  3849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3850. (exit $ac_status); };
  3851. then
  3852. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3853. if test "x$CC" != xcc; then
  3854. # Test first that cc exists at all.
  3855. if { ac_try='cc -c conftest.$ac_ext >&5'
  3856. { (case "(($ac_try" in
  3857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3858. *) ac_try_echo=$ac_try;;
  3859. esac
  3860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3861. (eval "$ac_try") 2>&5
  3862. ac_status=$?
  3863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3864. (exit $ac_status); }; }; then
  3865. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3866. rm -f conftest2.*
  3867. if { (case "(($ac_try" in
  3868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3869. *) ac_try_echo=$ac_try;;
  3870. esac
  3871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3872. (eval "$ac_try") 2>&5
  3873. ac_status=$?
  3874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3875. (exit $ac_status); } &&
  3876. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3878. *) ac_try_echo=$ac_try;;
  3879. esac
  3880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3881. (eval "$ac_try") 2>&5
  3882. ac_status=$?
  3883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3884. (exit $ac_status); };
  3885. then
  3886. # cc works too.
  3887. :
  3888. else
  3889. # cc exists but doesn't like -o.
  3890. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3891. fi
  3892. fi
  3893. fi
  3894. else
  3895. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3896. fi
  3897. rm -f core conftest*
  3898. fi
  3899. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3900. { echo "$as_me:$LINENO: result: yes" >&5
  3901. echo "${ECHO_T}yes" >&6; }
  3902. else
  3903. { echo "$as_me:$LINENO: result: no" >&5
  3904. echo "${ECHO_T}no" >&6; }
  3905. cat >>confdefs.h <<\_ACEOF
  3906. #define NO_MINUS_C_MINUS_O 1
  3907. _ACEOF
  3908. fi
  3909. # FIXME: we rely on the cache variable name because
  3910. # there is no other way.
  3911. set dummy $CC
  3912. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3913. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3914. # Losing compiler, so override with the script.
  3915. # FIXME: It is wrong to rewrite CC.
  3916. # But if we don't then we get into trouble of one sort or another.
  3917. # A longer-term fix would be to have automake use am__CC in this case,
  3918. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3919. CC="$am_aux_dir/compile $CC"
  3920. fi
  3921. # By default we simply use the C compiler to build assembly code.
  3922. test "${CCAS+set}" = set || CCAS=$CC
  3923. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3924. depcc="$CCAS" am_compiler_list=
  3925. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3926. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3927. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  3928. echo $ECHO_N "(cached) $ECHO_C" >&6
  3929. else
  3930. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3931. # We make a subdir and do the tests there. Otherwise we can end up
  3932. # making bogus files that we don't know about and never remove. For
  3933. # instance it was reported that on HP-UX the gcc test will end up
  3934. # making a dummy file named `D' -- because `-MD' means `put the output
  3935. # in D'.
  3936. mkdir conftest.dir
  3937. # Copy depcomp to subdir because otherwise we won't find it if we're
  3938. # using a relative directory.
  3939. cp "$am_depcomp" conftest.dir
  3940. cd conftest.dir
  3941. # We will build objects and dependencies in a subdirectory because
  3942. # it helps to detect inapplicable dependency modes. For instance
  3943. # both Tru64's cc and ICC support -MD to output dependencies as a
  3944. # side effect of compilation, but ICC will put the dependencies in
  3945. # the current directory while Tru64 will put them in the object
  3946. # directory.
  3947. mkdir sub
  3948. am_cv_CCAS_dependencies_compiler_type=none
  3949. if test "$am_compiler_list" = ""; then
  3950. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3951. fi
  3952. for depmode in $am_compiler_list; do
  3953. # Setup a source with many dependencies, because some compilers
  3954. # like to wrap large dependency lists on column 80 (with \), and
  3955. # we should not choose a depcomp mode which is confused by this.
  3956. #
  3957. # We need to recreate these files for each test, as the compiler may
  3958. # overwrite some of them when testing with obscure command lines.
  3959. # This happens at least with the AIX C compiler.
  3960. : > sub/conftest.c
  3961. for i in 1 2 3 4 5 6; do
  3962. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3963. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3964. # Solaris 8's {/usr,}/bin/sh.
  3965. touch sub/conftst$i.h
  3966. done
  3967. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3968. case $depmode in
  3969. nosideeffect)
  3970. # after this tag, mechanisms are not by side-effect, so they'll
  3971. # only be used when explicitly requested
  3972. if test "x$enable_dependency_tracking" = xyes; then
  3973. continue
  3974. else
  3975. break
  3976. fi
  3977. ;;
  3978. none) break ;;
  3979. esac
  3980. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3981. # mode. It turns out that the SunPro C++ compiler does not properly
  3982. # handle `-M -o', and we need to detect this.
  3983. if depmode=$depmode \
  3984. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3985. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3986. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3987. >/dev/null 2>conftest.err &&
  3988. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3989. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3990. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3991. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3992. # icc doesn't choke on unknown options, it will just issue warnings
  3993. # or remarks (even with -Werror). So we grep stderr for any message
  3994. # that says an option was ignored or not supported.
  3995. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3996. # icc: Command line warning: ignoring option '-M'; no argument required
  3997. # The diagnosis changed in icc 8.0:
  3998. # icc: Command line remark: option '-MP' not supported
  3999. if (grep 'ignoring option' conftest.err ||
  4000. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4001. am_cv_CCAS_dependencies_compiler_type=$depmode
  4002. break
  4003. fi
  4004. fi
  4005. done
  4006. cd ..
  4007. rm -rf conftest.dir
  4008. else
  4009. am_cv_CCAS_dependencies_compiler_type=none
  4010. fi
  4011. fi
  4012. { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4013. echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4014. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4015. if
  4016. test "x$enable_dependency_tracking" != xno \
  4017. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4018. am__fastdepCCAS_TRUE=
  4019. am__fastdepCCAS_FALSE='#'
  4020. else
  4021. am__fastdepCCAS_TRUE='#'
  4022. am__fastdepCCAS_FALSE=
  4023. fi
  4024. # disable static libs by default - we only use a couple
  4025. # Check whether --enable-static was given.
  4026. if test "${enable_static+set}" = set; then
  4027. enableval=$enable_static; p=${PACKAGE-default}
  4028. case $enableval in
  4029. yes) enable_static=yes ;;
  4030. no) enable_static=no ;;
  4031. *)
  4032. enable_static=no
  4033. # Look at the argument we got. We use all the common list separators.
  4034. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4035. for pkg in $enableval; do
  4036. IFS="$lt_save_ifs"
  4037. if test "X$pkg" = "X$p"; then
  4038. enable_static=yes
  4039. fi
  4040. done
  4041. IFS="$lt_save_ifs"
  4042. ;;
  4043. esac
  4044. else
  4045. enable_static=no
  4046. fi
  4047. # Check whether --enable-shared was given.
  4048. if test "${enable_shared+set}" = set; then
  4049. enableval=$enable_shared; p=${PACKAGE-default}
  4050. case $enableval in
  4051. yes) enable_shared=yes ;;
  4052. no) enable_shared=no ;;
  4053. *)
  4054. enable_shared=no
  4055. # Look at the argument we got. We use all the common list separators.
  4056. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4057. for pkg in $enableval; do
  4058. IFS="$lt_save_ifs"
  4059. if test "X$pkg" = "X$p"; then
  4060. enable_shared=yes
  4061. fi
  4062. done
  4063. IFS="$lt_save_ifs"
  4064. ;;
  4065. esac
  4066. else
  4067. enable_shared=yes
  4068. fi
  4069. # Check whether --enable-fast-install was given.
  4070. if test "${enable_fast_install+set}" = set; then
  4071. enableval=$enable_fast_install; p=${PACKAGE-default}
  4072. case $enableval in
  4073. yes) enable_fast_install=yes ;;
  4074. no) enable_fast_install=no ;;
  4075. *)
  4076. enable_fast_install=no
  4077. # Look at the argument we got. We use all the common list separators.
  4078. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4079. for pkg in $enableval; do
  4080. IFS="$lt_save_ifs"
  4081. if test "X$pkg" = "X$p"; then
  4082. enable_fast_install=yes
  4083. fi
  4084. done
  4085. IFS="$lt_save_ifs"
  4086. ;;
  4087. esac
  4088. else
  4089. enable_fast_install=yes
  4090. fi
  4091. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4092. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  4093. if test "${lt_cv_path_SED+set}" = set; then
  4094. echo $ECHO_N "(cached) $ECHO_C" >&6
  4095. else
  4096. # Loop through the user's path and test for sed and gsed.
  4097. # Then use that list of sed's as ones to test for truncation.
  4098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4099. for as_dir in $PATH
  4100. do
  4101. IFS=$as_save_IFS
  4102. test -z "$as_dir" && as_dir=.
  4103. for lt_ac_prog in sed gsed; do
  4104. for ac_exec_ext in '' $ac_executable_extensions; do
  4105. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  4106. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  4107. fi
  4108. done
  4109. done
  4110. done
  4111. IFS=$as_save_IFS
  4112. lt_ac_max=0
  4113. lt_ac_count=0
  4114. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4115. # along with /bin/sed that truncates output.
  4116. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  4117. test ! -f $lt_ac_sed && continue
  4118. cat /dev/null > conftest.in
  4119. lt_ac_count=0
  4120. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  4121. # Check for GNU sed and select it if it is found.
  4122. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  4123. lt_cv_path_SED=$lt_ac_sed
  4124. break
  4125. fi
  4126. while true; do
  4127. cat conftest.in conftest.in >conftest.tmp
  4128. mv conftest.tmp conftest.in
  4129. cp conftest.in conftest.nl
  4130. echo >>conftest.nl
  4131. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  4132. cmp -s conftest.out conftest.nl || break
  4133. # 10000 chars as input seems more than enough
  4134. test $lt_ac_count -gt 10 && break
  4135. lt_ac_count=`expr $lt_ac_count + 1`
  4136. if test $lt_ac_count -gt $lt_ac_max; then
  4137. lt_ac_max=$lt_ac_count
  4138. lt_cv_path_SED=$lt_ac_sed
  4139. fi
  4140. done
  4141. done
  4142. fi
  4143. SED=$lt_cv_path_SED
  4144. { echo "$as_me:$LINENO: result: $SED" >&5
  4145. echo "${ECHO_T}$SED" >&6; }
  4146. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4147. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4148. if test "${ac_cv_path_GREP+set}" = set; then
  4149. echo $ECHO_N "(cached) $ECHO_C" >&6
  4150. else
  4151. # Extract the first word of "grep ggrep" to use in msg output
  4152. if test -z "$GREP"; then
  4153. set dummy grep ggrep; ac_prog_name=$2
  4154. if test "${ac_cv_path_GREP+set}" = set; then
  4155. echo $ECHO_N "(cached) $ECHO_C" >&6
  4156. else
  4157. ac_path_GREP_found=false
  4158. # Loop through the user's path and test for each of PROGNAME-LIST
  4159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4160. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4161. do
  4162. IFS=$as_save_IFS
  4163. test -z "$as_dir" && as_dir=.
  4164. for ac_prog in grep ggrep; do
  4165. for ac_exec_ext in '' $ac_executable_extensions; do
  4166. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4167. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4168. # Check for GNU ac_path_GREP and select it if it is found.
  4169. # Check for GNU $ac_path_GREP
  4170. case `"$ac_path_GREP" --version 2>&1` in
  4171. *GNU*)
  4172. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4173. *)
  4174. ac_count=0
  4175. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4176. while :
  4177. do
  4178. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4179. mv "conftest.tmp" "conftest.in"
  4180. cp "conftest.in" "conftest.nl"
  4181. echo 'GREP' >> "conftest.nl"
  4182. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4183. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4184. ac_count=`expr $ac_count + 1`
  4185. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4186. # Best one so far, save it but keep looking for a better one
  4187. ac_cv_path_GREP="$ac_path_GREP"
  4188. ac_path_GREP_max=$ac_count
  4189. fi
  4190. # 10*(2^10) chars as input seems more than enough
  4191. test $ac_count -gt 10 && break
  4192. done
  4193. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4194. esac
  4195. $ac_path_GREP_found && break 3
  4196. done
  4197. done
  4198. done
  4199. IFS=$as_save_IFS
  4200. fi
  4201. GREP="$ac_cv_path_GREP"
  4202. if test -z "$GREP"; then
  4203. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4204. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4205. { (exit 1); exit 1; }; }
  4206. fi
  4207. else
  4208. ac_cv_path_GREP=$GREP
  4209. fi
  4210. fi
  4211. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4212. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4213. GREP="$ac_cv_path_GREP"
  4214. { echo "$as_me:$LINENO: checking for egrep" >&5
  4215. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4216. if test "${ac_cv_path_EGREP+set}" = set; then
  4217. echo $ECHO_N "(cached) $ECHO_C" >&6
  4218. else
  4219. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4220. then ac_cv_path_EGREP="$GREP -E"
  4221. else
  4222. # Extract the first word of "egrep" to use in msg output
  4223. if test -z "$EGREP"; then
  4224. set dummy egrep; ac_prog_name=$2
  4225. if test "${ac_cv_path_EGREP+set}" = set; then
  4226. echo $ECHO_N "(cached) $ECHO_C" >&6
  4227. else
  4228. ac_path_EGREP_found=false
  4229. # Loop through the user's path and test for each of PROGNAME-LIST
  4230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4231. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4232. do
  4233. IFS=$as_save_IFS
  4234. test -z "$as_dir" && as_dir=.
  4235. for ac_prog in egrep; do
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4238. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4239. # Check for GNU ac_path_EGREP and select it if it is found.
  4240. # Check for GNU $ac_path_EGREP
  4241. case `"$ac_path_EGREP" --version 2>&1` in
  4242. *GNU*)
  4243. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4244. *)
  4245. ac_count=0
  4246. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4247. while :
  4248. do
  4249. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4250. mv "conftest.tmp" "conftest.in"
  4251. cp "conftest.in" "conftest.nl"
  4252. echo 'EGREP' >> "conftest.nl"
  4253. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4254. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4255. ac_count=`expr $ac_count + 1`
  4256. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4257. # Best one so far, save it but keep looking for a better one
  4258. ac_cv_path_EGREP="$ac_path_EGREP"
  4259. ac_path_EGREP_max=$ac_count
  4260. fi
  4261. # 10*(2^10) chars as input seems more than enough
  4262. test $ac_count -gt 10 && break
  4263. done
  4264. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4265. esac
  4266. $ac_path_EGREP_found && break 3
  4267. done
  4268. done
  4269. done
  4270. IFS=$as_save_IFS
  4271. fi
  4272. EGREP="$ac_cv_path_EGREP"
  4273. if test -z "$EGREP"; then
  4274. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4275. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4276. { (exit 1); exit 1; }; }
  4277. fi
  4278. else
  4279. ac_cv_path_EGREP=$EGREP
  4280. fi
  4281. fi
  4282. fi
  4283. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4284. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4285. EGREP="$ac_cv_path_EGREP"
  4286. # Check whether --with-gnu-ld was given.
  4287. if test "${with_gnu_ld+set}" = set; then
  4288. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4289. else
  4290. with_gnu_ld=no
  4291. fi
  4292. ac_prog=ld
  4293. if test "$GCC" = yes; then
  4294. # Check if gcc -print-prog-name=ld gives a path.
  4295. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4296. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  4297. case $host in
  4298. *-*-mingw*)
  4299. # gcc leaves a trailing carriage return which upsets mingw
  4300. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4301. *)
  4302. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4303. esac
  4304. case $ac_prog in
  4305. # Accept absolute paths.
  4306. [\\/]* | ?:[\\/]*)
  4307. re_direlt='/[^/][^/]*/\.\./'
  4308. # Canonicalize the pathname of ld
  4309. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4310. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4311. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4312. done
  4313. test -z "$LD" && LD="$ac_prog"
  4314. ;;
  4315. "")
  4316. # If it fails, then pretend we aren't using GCC.
  4317. ac_prog=ld
  4318. ;;
  4319. *)
  4320. # If it is relative, then search for the first ld in PATH.
  4321. with_gnu_ld=unknown
  4322. ;;
  4323. esac
  4324. elif test "$with_gnu_ld" = yes; then
  4325. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  4326. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  4327. else
  4328. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4329. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  4330. fi
  4331. if test "${lt_cv_path_LD+set}" = set; then
  4332. echo $ECHO_N "(cached) $ECHO_C" >&6
  4333. else
  4334. if test -z "$LD"; then
  4335. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4336. for ac_dir in $PATH; do
  4337. IFS="$lt_save_ifs"
  4338. test -z "$ac_dir" && ac_dir=.
  4339. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4340. lt_cv_path_LD="$ac_dir/$ac_prog"
  4341. # Check to see if the program is GNU ld. I'd rather use --version,
  4342. # but apparently some variants of GNU ld only accept -v.
  4343. # Break only if it was the GNU/non-GNU ld that we prefer.
  4344. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4345. *GNU* | *'with BFD'*)
  4346. test "$with_gnu_ld" != no && break
  4347. ;;
  4348. *)
  4349. test "$with_gnu_ld" != yes && break
  4350. ;;
  4351. esac
  4352. fi
  4353. done
  4354. IFS="$lt_save_ifs"
  4355. else
  4356. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4357. fi
  4358. fi
  4359. LD="$lt_cv_path_LD"
  4360. if test -n "$LD"; then
  4361. { echo "$as_me:$LINENO: result: $LD" >&5
  4362. echo "${ECHO_T}$LD" >&6; }
  4363. else
  4364. { echo "$as_me:$LINENO: result: no" >&5
  4365. echo "${ECHO_T}no" >&6; }
  4366. fi
  4367. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4368. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4369. { (exit 1); exit 1; }; }
  4370. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4371. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  4372. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4373. echo $ECHO_N "(cached) $ECHO_C" >&6
  4374. else
  4375. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4376. case `$LD -v 2>&1 </dev/null` in
  4377. *GNU* | *'with BFD'*)
  4378. lt_cv_prog_gnu_ld=yes
  4379. ;;
  4380. *)
  4381. lt_cv_prog_gnu_ld=no
  4382. ;;
  4383. esac
  4384. fi
  4385. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4386. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  4387. with_gnu_ld=$lt_cv_prog_gnu_ld
  4388. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4389. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  4390. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4391. echo $ECHO_N "(cached) $ECHO_C" >&6
  4392. else
  4393. lt_cv_ld_reload_flag='-r'
  4394. fi
  4395. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4396. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  4397. reload_flag=$lt_cv_ld_reload_flag
  4398. case $reload_flag in
  4399. "" | " "*) ;;
  4400. *) reload_flag=" $reload_flag" ;;
  4401. esac
  4402. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4403. case $host_os in
  4404. darwin*)
  4405. if test "$GCC" = yes; then
  4406. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4407. else
  4408. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4409. fi
  4410. ;;
  4411. esac
  4412. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4413. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  4414. if test "${lt_cv_path_NM+set}" = set; then
  4415. echo $ECHO_N "(cached) $ECHO_C" >&6
  4416. else
  4417. if test -n "$NM"; then
  4418. # Let the user override the test.
  4419. lt_cv_path_NM="$NM"
  4420. else
  4421. lt_nm_to_check="${ac_tool_prefix}nm"
  4422. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4423. lt_nm_to_check="$lt_nm_to_check nm"
  4424. fi
  4425. for lt_tmp_nm in $lt_nm_to_check; do
  4426. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4427. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4428. IFS="$lt_save_ifs"
  4429. test -z "$ac_dir" && ac_dir=.
  4430. tmp_nm="$ac_dir/$lt_tmp_nm"
  4431. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4432. # Check to see if the nm accepts a BSD-compat flag.
  4433. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4434. # nm: unknown option "B" ignored
  4435. # Tru64's nm complains that /dev/null is an invalid object file
  4436. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4437. */dev/null* | *'Invalid file or object type'*)
  4438. lt_cv_path_NM="$tmp_nm -B"
  4439. break
  4440. ;;
  4441. *)
  4442. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4443. */dev/null*)
  4444. lt_cv_path_NM="$tmp_nm -p"
  4445. break
  4446. ;;
  4447. *)
  4448. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4449. continue # so that we can try to find one that supports BSD flags
  4450. ;;
  4451. esac
  4452. ;;
  4453. esac
  4454. fi
  4455. done
  4456. IFS="$lt_save_ifs"
  4457. done
  4458. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4459. fi
  4460. fi
  4461. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4462. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  4463. NM="$lt_cv_path_NM"
  4464. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4465. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  4466. LN_S=$as_ln_s
  4467. if test "$LN_S" = "ln -s"; then
  4468. { echo "$as_me:$LINENO: result: yes" >&5
  4469. echo "${ECHO_T}yes" >&6; }
  4470. else
  4471. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4472. echo "${ECHO_T}no, using $LN_S" >&6; }
  4473. fi
  4474. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4475. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  4476. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4477. echo $ECHO_N "(cached) $ECHO_C" >&6
  4478. else
  4479. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4480. lt_cv_file_magic_test_file=
  4481. lt_cv_deplibs_check_method='unknown'
  4482. # Need to set the preceding variable on all platforms that support
  4483. # interlibrary dependencies.
  4484. # 'none' -- dependencies not supported.
  4485. # `unknown' -- same as none, but documents that we really don't know.
  4486. # 'pass_all' -- all dependencies passed with no checks.
  4487. # 'test_compile' -- check by making test program.
  4488. # 'file_magic [[regex]]' -- check by looking for files in library path
  4489. # which responds to the $file_magic_cmd with a given extended regex.
  4490. # If you have `file' or equivalent on your system and you're not sure
  4491. # whether `pass_all' will *always* work, you probably want this one.
  4492. case $host_os in
  4493. aix4* | aix5*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. beos*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. bsdi[45]*)
  4500. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4501. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4502. lt_cv_file_magic_test_file=/shlib/libc.so
  4503. ;;
  4504. cygwin*)
  4505. # func_win32_libid is a shell function defined in ltmain.sh
  4506. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4507. lt_cv_file_magic_cmd='func_win32_libid'
  4508. ;;
  4509. mingw* | pw32*)
  4510. # Base MSYS/MinGW do not provide the 'file' command needed by
  4511. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4512. # unless we find 'file', for example because we are cross-compiling.
  4513. if ( file / ) >/dev/null 2>&1; then
  4514. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4515. lt_cv_file_magic_cmd='func_win32_libid'
  4516. else
  4517. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4518. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4519. fi
  4520. ;;
  4521. darwin* | rhapsody*)
  4522. lt_cv_deplibs_check_method=pass_all
  4523. ;;
  4524. freebsd* | dragonfly*)
  4525. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4526. case $host_cpu in
  4527. i*86 )
  4528. # Not sure whether the presence of OpenBSD here was a mistake.
  4529. # Let's accept both of them until this is cleared up.
  4530. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4531. lt_cv_file_magic_cmd=/usr/bin/file
  4532. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4533. ;;
  4534. esac
  4535. else
  4536. lt_cv_deplibs_check_method=pass_all
  4537. fi
  4538. ;;
  4539. gnu*)
  4540. lt_cv_deplibs_check_method=pass_all
  4541. ;;
  4542. hpux10.20* | hpux11*)
  4543. lt_cv_file_magic_cmd=/usr/bin/file
  4544. case $host_cpu in
  4545. ia64*)
  4546. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4547. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4548. ;;
  4549. hppa*64*)
  4550. 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]'
  4551. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4552. ;;
  4553. *)
  4554. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4555. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4556. ;;
  4557. esac
  4558. ;;
  4559. interix[3-9]*)
  4560. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4561. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4562. ;;
  4563. irix5* | irix6* | nonstopux*)
  4564. case $LD in
  4565. *-32|*"-32 ") libmagic=32-bit;;
  4566. *-n32|*"-n32 ") libmagic=N32;;
  4567. *-64|*"-64 ") libmagic=64-bit;;
  4568. *) libmagic=never-match;;
  4569. esac
  4570. lt_cv_deplibs_check_method=pass_all
  4571. ;;
  4572. # This must be Linux ELF.
  4573. linux* | k*bsd*-gnu)
  4574. lt_cv_deplibs_check_method=pass_all
  4575. ;;
  4576. netbsd*)
  4577. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4578. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4579. else
  4580. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4581. fi
  4582. ;;
  4583. newos6*)
  4584. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4585. lt_cv_file_magic_cmd=/usr/bin/file
  4586. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4587. ;;
  4588. nto-qnx*)
  4589. lt_cv_deplibs_check_method=unknown
  4590. ;;
  4591. openbsd*)
  4592. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4593. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4594. else
  4595. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4596. fi
  4597. ;;
  4598. osf3* | osf4* | osf5*)
  4599. lt_cv_deplibs_check_method=pass_all
  4600. ;;
  4601. rdos*)
  4602. lt_cv_deplibs_check_method=pass_all
  4603. ;;
  4604. solaris*)
  4605. lt_cv_deplibs_check_method=pass_all
  4606. ;;
  4607. sysv4 | sysv4.3*)
  4608. case $host_vendor in
  4609. motorola)
  4610. 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]'
  4611. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4612. ;;
  4613. ncr)
  4614. lt_cv_deplibs_check_method=pass_all
  4615. ;;
  4616. sequent)
  4617. lt_cv_file_magic_cmd='/bin/file'
  4618. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4619. ;;
  4620. sni)
  4621. lt_cv_file_magic_cmd='/bin/file'
  4622. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4623. lt_cv_file_magic_test_file=/lib/libc.so
  4624. ;;
  4625. siemens)
  4626. lt_cv_deplibs_check_method=pass_all
  4627. ;;
  4628. pc)
  4629. lt_cv_deplibs_check_method=pass_all
  4630. ;;
  4631. esac
  4632. ;;
  4633. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4634. lt_cv_deplibs_check_method=pass_all
  4635. ;;
  4636. esac
  4637. fi
  4638. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4639. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4640. file_magic_cmd=$lt_cv_file_magic_cmd
  4641. deplibs_check_method=$lt_cv_deplibs_check_method
  4642. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4643. # If no C compiler was specified, use CC.
  4644. LTCC=${LTCC-"$CC"}
  4645. # If no C compiler flags were specified, use CFLAGS.
  4646. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4647. # Allow CC to be a program name with arguments.
  4648. compiler=$CC
  4649. # Check whether --enable-libtool-lock was given.
  4650. if test "${enable_libtool_lock+set}" = set; then
  4651. enableval=$enable_libtool_lock;
  4652. fi
  4653. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4654. # Some flags need to be propagated to the compiler or linker for good
  4655. # libtool support.
  4656. case $host in
  4657. ia64-*-hpux*)
  4658. # Find out which ABI we are using.
  4659. echo 'int i;' > conftest.$ac_ext
  4660. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4661. (eval $ac_compile) 2>&5
  4662. ac_status=$?
  4663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4664. (exit $ac_status); }; then
  4665. case `/usr/bin/file conftest.$ac_objext` in
  4666. *ELF-32*)
  4667. HPUX_IA64_MODE="32"
  4668. ;;
  4669. *ELF-64*)
  4670. HPUX_IA64_MODE="64"
  4671. ;;
  4672. esac
  4673. fi
  4674. rm -rf conftest*
  4675. ;;
  4676. *-*-irix6*)
  4677. # Find out which ABI we are using.
  4678. echo '#line 5218 "configure"' > conftest.$ac_ext
  4679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4680. (eval $ac_compile) 2>&5
  4681. ac_status=$?
  4682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4683. (exit $ac_status); }; then
  4684. if test "$lt_cv_prog_gnu_ld" = yes; then
  4685. case `/usr/bin/file conftest.$ac_objext` in
  4686. *32-bit*)
  4687. LD="${LD-ld} -melf32bsmip"
  4688. ;;
  4689. *N32*)
  4690. LD="${LD-ld} -melf32bmipn32"
  4691. ;;
  4692. *64-bit*)
  4693. LD="${LD-ld} -melf64bmip"
  4694. ;;
  4695. esac
  4696. else
  4697. case `/usr/bin/file conftest.$ac_objext` in
  4698. *32-bit*)
  4699. LD="${LD-ld} -32"
  4700. ;;
  4701. *N32*)
  4702. LD="${LD-ld} -n32"
  4703. ;;
  4704. *64-bit*)
  4705. LD="${LD-ld} -64"
  4706. ;;
  4707. esac
  4708. fi
  4709. fi
  4710. rm -rf conftest*
  4711. ;;
  4712. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4713. s390*-*linux*|sparc*-*linux*)
  4714. # Find out which ABI we are using.
  4715. echo 'int i;' > conftest.$ac_ext
  4716. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4717. (eval $ac_compile) 2>&5
  4718. ac_status=$?
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); }; then
  4721. case `/usr/bin/file conftest.o` in
  4722. *32-bit*)
  4723. case $host in
  4724. x86_64-*kfreebsd*-gnu)
  4725. LD="${LD-ld} -m elf_i386_fbsd"
  4726. ;;
  4727. x86_64-*linux*)
  4728. LD="${LD-ld} -m elf_i386"
  4729. ;;
  4730. ppc64-*linux*|powerpc64-*linux*)
  4731. LD="${LD-ld} -m elf32ppclinux"
  4732. ;;
  4733. s390x-*linux*)
  4734. LD="${LD-ld} -m elf_s390"
  4735. ;;
  4736. sparc64-*linux*)
  4737. LD="${LD-ld} -m elf32_sparc"
  4738. ;;
  4739. esac
  4740. ;;
  4741. *64-bit*)
  4742. libsuff=64
  4743. case $host in
  4744. x86_64-*kfreebsd*-gnu)
  4745. LD="${LD-ld} -m elf_x86_64_fbsd"
  4746. ;;
  4747. x86_64-*linux*)
  4748. LD="${LD-ld} -m elf_x86_64"
  4749. ;;
  4750. ppc*-*linux*|powerpc*-*linux*)
  4751. LD="${LD-ld} -m elf64ppc"
  4752. ;;
  4753. s390*-*linux*)
  4754. LD="${LD-ld} -m elf64_s390"
  4755. ;;
  4756. sparc*-*linux*)
  4757. LD="${LD-ld} -m elf64_sparc"
  4758. ;;
  4759. esac
  4760. ;;
  4761. esac
  4762. fi
  4763. rm -rf conftest*
  4764. ;;
  4765. *-*-sco3.2v5*)
  4766. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4767. SAVE_CFLAGS="$CFLAGS"
  4768. CFLAGS="$CFLAGS -belf"
  4769. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4770. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4771. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4772. echo $ECHO_N "(cached) $ECHO_C" >&6
  4773. else
  4774. ac_ext=c
  4775. ac_cpp='$CPP $CPPFLAGS'
  4776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4779. cat >conftest.$ac_ext <<_ACEOF
  4780. /* confdefs.h. */
  4781. _ACEOF
  4782. cat confdefs.h >>conftest.$ac_ext
  4783. cat >>conftest.$ac_ext <<_ACEOF
  4784. /* end confdefs.h. */
  4785. int
  4786. main ()
  4787. {
  4788. ;
  4789. return 0;
  4790. }
  4791. _ACEOF
  4792. rm -f conftest.$ac_objext conftest$ac_exeext
  4793. if { (ac_try="$ac_link"
  4794. case "(($ac_try" in
  4795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4796. *) ac_try_echo=$ac_try;;
  4797. esac
  4798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4799. (eval "$ac_link") 2>conftest.er1
  4800. ac_status=$?
  4801. grep -v '^ *+' conftest.er1 >conftest.err
  4802. rm -f conftest.er1
  4803. cat conftest.err >&5
  4804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4805. (exit $ac_status); } && {
  4806. test -z "$ac_c_werror_flag" ||
  4807. test ! -s conftest.err
  4808. } && test -s conftest$ac_exeext &&
  4809. $as_test_x conftest$ac_exeext; then
  4810. lt_cv_cc_needs_belf=yes
  4811. else
  4812. echo "$as_me: failed program was:" >&5
  4813. sed 's/^/| /' conftest.$ac_ext >&5
  4814. lt_cv_cc_needs_belf=no
  4815. fi
  4816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4817. conftest$ac_exeext conftest.$ac_ext
  4818. ac_ext=c
  4819. ac_cpp='$CPP $CPPFLAGS'
  4820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4823. fi
  4824. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4825. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4826. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4827. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4828. CFLAGS="$SAVE_CFLAGS"
  4829. fi
  4830. ;;
  4831. sparc*-*solaris*)
  4832. # Find out which ABI we are using.
  4833. echo 'int i;' > conftest.$ac_ext
  4834. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4835. (eval $ac_compile) 2>&5
  4836. ac_status=$?
  4837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4838. (exit $ac_status); }; then
  4839. case `/usr/bin/file conftest.o` in
  4840. *64-bit*)
  4841. case $lt_cv_prog_gnu_ld in
  4842. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4843. *) LD="${LD-ld} -64" ;;
  4844. esac
  4845. ;;
  4846. esac
  4847. fi
  4848. rm -rf conftest*
  4849. ;;
  4850. esac
  4851. need_locks="$enable_libtool_lock"
  4852. ac_ext=c
  4853. ac_cpp='$CPP $CPPFLAGS'
  4854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4857. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4858. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4859. # On Suns, sometimes $CPP names a directory.
  4860. if test -n "$CPP" && test -d "$CPP"; then
  4861. CPP=
  4862. fi
  4863. if test -z "$CPP"; then
  4864. if test "${ac_cv_prog_CPP+set}" = set; then
  4865. echo $ECHO_N "(cached) $ECHO_C" >&6
  4866. else
  4867. # Double quotes because CPP needs to be expanded
  4868. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4869. do
  4870. ac_preproc_ok=false
  4871. for ac_c_preproc_warn_flag in '' yes
  4872. do
  4873. # Use a header file that comes with gcc, so configuring glibc
  4874. # with a fresh cross-compiler works.
  4875. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4876. # <limits.h> exists even on freestanding compilers.
  4877. # On the NeXT, cc -E runs the code through the compiler's parser,
  4878. # not just through cpp. "Syntax error" is here to catch this case.
  4879. cat >conftest.$ac_ext <<_ACEOF
  4880. /* confdefs.h. */
  4881. _ACEOF
  4882. cat confdefs.h >>conftest.$ac_ext
  4883. cat >>conftest.$ac_ext <<_ACEOF
  4884. /* end confdefs.h. */
  4885. #ifdef __STDC__
  4886. # include <limits.h>
  4887. #else
  4888. # include <assert.h>
  4889. #endif
  4890. Syntax error
  4891. _ACEOF
  4892. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4893. case "(($ac_try" in
  4894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4895. *) ac_try_echo=$ac_try;;
  4896. esac
  4897. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4898. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4899. ac_status=$?
  4900. grep -v '^ *+' conftest.er1 >conftest.err
  4901. rm -f conftest.er1
  4902. cat conftest.err >&5
  4903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4904. (exit $ac_status); } >/dev/null && {
  4905. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4906. test ! -s conftest.err
  4907. }; then
  4908. :
  4909. else
  4910. echo "$as_me: failed program was:" >&5
  4911. sed 's/^/| /' conftest.$ac_ext >&5
  4912. # Broken: fails on valid input.
  4913. continue
  4914. fi
  4915. rm -f conftest.err conftest.$ac_ext
  4916. # OK, works on sane cases. Now check whether nonexistent headers
  4917. # can be detected and how.
  4918. cat >conftest.$ac_ext <<_ACEOF
  4919. /* confdefs.h. */
  4920. _ACEOF
  4921. cat confdefs.h >>conftest.$ac_ext
  4922. cat >>conftest.$ac_ext <<_ACEOF
  4923. /* end confdefs.h. */
  4924. #include <ac_nonexistent.h>
  4925. _ACEOF
  4926. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4927. case "(($ac_try" in
  4928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4929. *) ac_try_echo=$ac_try;;
  4930. esac
  4931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4932. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4933. ac_status=$?
  4934. grep -v '^ *+' conftest.er1 >conftest.err
  4935. rm -f conftest.er1
  4936. cat conftest.err >&5
  4937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4938. (exit $ac_status); } >/dev/null && {
  4939. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4940. test ! -s conftest.err
  4941. }; then
  4942. # Broken: success on invalid input.
  4943. continue
  4944. else
  4945. echo "$as_me: failed program was:" >&5
  4946. sed 's/^/| /' conftest.$ac_ext >&5
  4947. # Passes both tests.
  4948. ac_preproc_ok=:
  4949. break
  4950. fi
  4951. rm -f conftest.err conftest.$ac_ext
  4952. done
  4953. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4954. rm -f conftest.err conftest.$ac_ext
  4955. if $ac_preproc_ok; then
  4956. break
  4957. fi
  4958. done
  4959. ac_cv_prog_CPP=$CPP
  4960. fi
  4961. CPP=$ac_cv_prog_CPP
  4962. else
  4963. ac_cv_prog_CPP=$CPP
  4964. fi
  4965. { echo "$as_me:$LINENO: result: $CPP" >&5
  4966. echo "${ECHO_T}$CPP" >&6; }
  4967. ac_preproc_ok=false
  4968. for ac_c_preproc_warn_flag in '' yes
  4969. do
  4970. # Use a header file that comes with gcc, so configuring glibc
  4971. # with a fresh cross-compiler works.
  4972. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4973. # <limits.h> exists even on freestanding compilers.
  4974. # On the NeXT, cc -E runs the code through the compiler's parser,
  4975. # not just through cpp. "Syntax error" is here to catch this case.
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. #ifdef __STDC__
  4983. # include <limits.h>
  4984. #else
  4985. # include <assert.h>
  4986. #endif
  4987. Syntax error
  4988. _ACEOF
  4989. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4990. case "(($ac_try" in
  4991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4992. *) ac_try_echo=$ac_try;;
  4993. esac
  4994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4995. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4996. ac_status=$?
  4997. grep -v '^ *+' conftest.er1 >conftest.err
  4998. rm -f conftest.er1
  4999. cat conftest.err >&5
  5000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5001. (exit $ac_status); } >/dev/null && {
  5002. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5003. test ! -s conftest.err
  5004. }; then
  5005. :
  5006. else
  5007. echo "$as_me: failed program was:" >&5
  5008. sed 's/^/| /' conftest.$ac_ext >&5
  5009. # Broken: fails on valid input.
  5010. continue
  5011. fi
  5012. rm -f conftest.err conftest.$ac_ext
  5013. # OK, works on sane cases. Now check whether nonexistent headers
  5014. # can be detected and how.
  5015. cat >conftest.$ac_ext <<_ACEOF
  5016. /* confdefs.h. */
  5017. _ACEOF
  5018. cat confdefs.h >>conftest.$ac_ext
  5019. cat >>conftest.$ac_ext <<_ACEOF
  5020. /* end confdefs.h. */
  5021. #include <ac_nonexistent.h>
  5022. _ACEOF
  5023. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5024. case "(($ac_try" in
  5025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5026. *) ac_try_echo=$ac_try;;
  5027. esac
  5028. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5029. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5030. ac_status=$?
  5031. grep -v '^ *+' conftest.er1 >conftest.err
  5032. rm -f conftest.er1
  5033. cat conftest.err >&5
  5034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5035. (exit $ac_status); } >/dev/null && {
  5036. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5037. test ! -s conftest.err
  5038. }; then
  5039. # Broken: success on invalid input.
  5040. continue
  5041. else
  5042. echo "$as_me: failed program was:" >&5
  5043. sed 's/^/| /' conftest.$ac_ext >&5
  5044. # Passes both tests.
  5045. ac_preproc_ok=:
  5046. break
  5047. fi
  5048. rm -f conftest.err conftest.$ac_ext
  5049. done
  5050. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5051. rm -f conftest.err conftest.$ac_ext
  5052. if $ac_preproc_ok; then
  5053. :
  5054. else
  5055. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5056. See \`config.log' for more details." >&5
  5057. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5058. See \`config.log' for more details." >&2;}
  5059. { (exit 1); exit 1; }; }
  5060. fi
  5061. ac_ext=c
  5062. ac_cpp='$CPP $CPPFLAGS'
  5063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5066. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5067. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5068. if test "${ac_cv_header_stdc+set}" = set; then
  5069. echo $ECHO_N "(cached) $ECHO_C" >&6
  5070. else
  5071. cat >conftest.$ac_ext <<_ACEOF
  5072. /* confdefs.h. */
  5073. _ACEOF
  5074. cat confdefs.h >>conftest.$ac_ext
  5075. cat >>conftest.$ac_ext <<_ACEOF
  5076. /* end confdefs.h. */
  5077. #include <stdlib.h>
  5078. #include <stdarg.h>
  5079. #include <string.h>
  5080. #include <float.h>
  5081. int
  5082. main ()
  5083. {
  5084. ;
  5085. return 0;
  5086. }
  5087. _ACEOF
  5088. rm -f conftest.$ac_objext
  5089. if { (ac_try="$ac_compile"
  5090. case "(($ac_try" in
  5091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5092. *) ac_try_echo=$ac_try;;
  5093. esac
  5094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5095. (eval "$ac_compile") 2>conftest.er1
  5096. ac_status=$?
  5097. grep -v '^ *+' conftest.er1 >conftest.err
  5098. rm -f conftest.er1
  5099. cat conftest.err >&5
  5100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5101. (exit $ac_status); } && {
  5102. test -z "$ac_c_werror_flag" ||
  5103. test ! -s conftest.err
  5104. } && test -s conftest.$ac_objext; then
  5105. ac_cv_header_stdc=yes
  5106. else
  5107. echo "$as_me: failed program was:" >&5
  5108. sed 's/^/| /' conftest.$ac_ext >&5
  5109. ac_cv_header_stdc=no
  5110. fi
  5111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5112. if test $ac_cv_header_stdc = yes; then
  5113. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5114. cat >conftest.$ac_ext <<_ACEOF
  5115. /* confdefs.h. */
  5116. _ACEOF
  5117. cat confdefs.h >>conftest.$ac_ext
  5118. cat >>conftest.$ac_ext <<_ACEOF
  5119. /* end confdefs.h. */
  5120. #include <string.h>
  5121. _ACEOF
  5122. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5123. $EGREP "memchr" >/dev/null 2>&1; then
  5124. :
  5125. else
  5126. ac_cv_header_stdc=no
  5127. fi
  5128. rm -f conftest*
  5129. fi
  5130. if test $ac_cv_header_stdc = yes; then
  5131. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5132. cat >conftest.$ac_ext <<_ACEOF
  5133. /* confdefs.h. */
  5134. _ACEOF
  5135. cat confdefs.h >>conftest.$ac_ext
  5136. cat >>conftest.$ac_ext <<_ACEOF
  5137. /* end confdefs.h. */
  5138. #include <stdlib.h>
  5139. _ACEOF
  5140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5141. $EGREP "free" >/dev/null 2>&1; then
  5142. :
  5143. else
  5144. ac_cv_header_stdc=no
  5145. fi
  5146. rm -f conftest*
  5147. fi
  5148. if test $ac_cv_header_stdc = yes; then
  5149. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5150. if test "$cross_compiling" = yes; then
  5151. :
  5152. else
  5153. cat >conftest.$ac_ext <<_ACEOF
  5154. /* confdefs.h. */
  5155. _ACEOF
  5156. cat confdefs.h >>conftest.$ac_ext
  5157. cat >>conftest.$ac_ext <<_ACEOF
  5158. /* end confdefs.h. */
  5159. #include <ctype.h>
  5160. #include <stdlib.h>
  5161. #if ((' ' & 0x0FF) == 0x020)
  5162. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5163. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5164. #else
  5165. # define ISLOWER(c) \
  5166. (('a' <= (c) && (c) <= 'i') \
  5167. || ('j' <= (c) && (c) <= 'r') \
  5168. || ('s' <= (c) && (c) <= 'z'))
  5169. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5170. #endif
  5171. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5172. int
  5173. main ()
  5174. {
  5175. int i;
  5176. for (i = 0; i < 256; i++)
  5177. if (XOR (islower (i), ISLOWER (i))
  5178. || toupper (i) != TOUPPER (i))
  5179. return 2;
  5180. return 0;
  5181. }
  5182. _ACEOF
  5183. rm -f conftest$ac_exeext
  5184. if { (ac_try="$ac_link"
  5185. case "(($ac_try" in
  5186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5187. *) ac_try_echo=$ac_try;;
  5188. esac
  5189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5190. (eval "$ac_link") 2>&5
  5191. ac_status=$?
  5192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5193. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5194. { (case "(($ac_try" in
  5195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5196. *) ac_try_echo=$ac_try;;
  5197. esac
  5198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5199. (eval "$ac_try") 2>&5
  5200. ac_status=$?
  5201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5202. (exit $ac_status); }; }; then
  5203. :
  5204. else
  5205. echo "$as_me: program exited with status $ac_status" >&5
  5206. echo "$as_me: failed program was:" >&5
  5207. sed 's/^/| /' conftest.$ac_ext >&5
  5208. ( exit $ac_status )
  5209. ac_cv_header_stdc=no
  5210. fi
  5211. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5212. fi
  5213. fi
  5214. fi
  5215. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5216. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5217. if test $ac_cv_header_stdc = yes; then
  5218. cat >>confdefs.h <<\_ACEOF
  5219. #define STDC_HEADERS 1
  5220. _ACEOF
  5221. fi
  5222. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5223. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5224. inttypes.h stdint.h unistd.h
  5225. do
  5226. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5227. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5228. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5229. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5230. echo $ECHO_N "(cached) $ECHO_C" >&6
  5231. else
  5232. cat >conftest.$ac_ext <<_ACEOF
  5233. /* confdefs.h. */
  5234. _ACEOF
  5235. cat confdefs.h >>conftest.$ac_ext
  5236. cat >>conftest.$ac_ext <<_ACEOF
  5237. /* end confdefs.h. */
  5238. $ac_includes_default
  5239. #include <$ac_header>
  5240. _ACEOF
  5241. rm -f conftest.$ac_objext
  5242. if { (ac_try="$ac_compile"
  5243. case "(($ac_try" in
  5244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5245. *) ac_try_echo=$ac_try;;
  5246. esac
  5247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5248. (eval "$ac_compile") 2>conftest.er1
  5249. ac_status=$?
  5250. grep -v '^ *+' conftest.er1 >conftest.err
  5251. rm -f conftest.er1
  5252. cat conftest.err >&5
  5253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5254. (exit $ac_status); } && {
  5255. test -z "$ac_c_werror_flag" ||
  5256. test ! -s conftest.err
  5257. } && test -s conftest.$ac_objext; then
  5258. eval "$as_ac_Header=yes"
  5259. else
  5260. echo "$as_me: failed program was:" >&5
  5261. sed 's/^/| /' conftest.$ac_ext >&5
  5262. eval "$as_ac_Header=no"
  5263. fi
  5264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5265. fi
  5266. ac_res=`eval echo '${'$as_ac_Header'}'`
  5267. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5268. echo "${ECHO_T}$ac_res" >&6; }
  5269. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5270. cat >>confdefs.h <<_ACEOF
  5271. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5272. _ACEOF
  5273. fi
  5274. done
  5275. for ac_header in dlfcn.h
  5276. do
  5277. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5278. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5279. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5280. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5281. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5282. echo $ECHO_N "(cached) $ECHO_C" >&6
  5283. fi
  5284. ac_res=`eval echo '${'$as_ac_Header'}'`
  5285. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5286. echo "${ECHO_T}$ac_res" >&6; }
  5287. else
  5288. # Is the header compilable?
  5289. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5290. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5291. cat >conftest.$ac_ext <<_ACEOF
  5292. /* confdefs.h. */
  5293. _ACEOF
  5294. cat confdefs.h >>conftest.$ac_ext
  5295. cat >>conftest.$ac_ext <<_ACEOF
  5296. /* end confdefs.h. */
  5297. $ac_includes_default
  5298. #include <$ac_header>
  5299. _ACEOF
  5300. rm -f conftest.$ac_objext
  5301. if { (ac_try="$ac_compile"
  5302. case "(($ac_try" in
  5303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5304. *) ac_try_echo=$ac_try;;
  5305. esac
  5306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5307. (eval "$ac_compile") 2>conftest.er1
  5308. ac_status=$?
  5309. grep -v '^ *+' conftest.er1 >conftest.err
  5310. rm -f conftest.er1
  5311. cat conftest.err >&5
  5312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5313. (exit $ac_status); } && {
  5314. test -z "$ac_c_werror_flag" ||
  5315. test ! -s conftest.err
  5316. } && test -s conftest.$ac_objext; then
  5317. ac_header_compiler=yes
  5318. else
  5319. echo "$as_me: failed program was:" >&5
  5320. sed 's/^/| /' conftest.$ac_ext >&5
  5321. ac_header_compiler=no
  5322. fi
  5323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5324. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5325. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5326. # Is the header present?
  5327. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5328. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5329. cat >conftest.$ac_ext <<_ACEOF
  5330. /* confdefs.h. */
  5331. _ACEOF
  5332. cat confdefs.h >>conftest.$ac_ext
  5333. cat >>conftest.$ac_ext <<_ACEOF
  5334. /* end confdefs.h. */
  5335. #include <$ac_header>
  5336. _ACEOF
  5337. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5338. case "(($ac_try" in
  5339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5340. *) ac_try_echo=$ac_try;;
  5341. esac
  5342. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5343. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5344. ac_status=$?
  5345. grep -v '^ *+' conftest.er1 >conftest.err
  5346. rm -f conftest.er1
  5347. cat conftest.err >&5
  5348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5349. (exit $ac_status); } >/dev/null && {
  5350. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5351. test ! -s conftest.err
  5352. }; then
  5353. ac_header_preproc=yes
  5354. else
  5355. echo "$as_me: failed program was:" >&5
  5356. sed 's/^/| /' conftest.$ac_ext >&5
  5357. ac_header_preproc=no
  5358. fi
  5359. rm -f conftest.err conftest.$ac_ext
  5360. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5361. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5362. # So? What about this header?
  5363. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5364. yes:no: )
  5365. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5366. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5367. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5368. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5369. ac_header_preproc=yes
  5370. ;;
  5371. no:yes:* )
  5372. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5373. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5374. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5375. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5376. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5377. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5378. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5379. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5380. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5381. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5382. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5383. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5384. ( cat <<\_ASBOX
  5385. ## ------------------------------------------ ##
  5386. ## Report this to http://bugzilla.redhat.com/ ##
  5387. ## ------------------------------------------ ##
  5388. _ASBOX
  5389. ) | sed "s/^/$as_me: WARNING: /" >&2
  5390. ;;
  5391. esac
  5392. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5393. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5394. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5395. echo $ECHO_N "(cached) $ECHO_C" >&6
  5396. else
  5397. eval "$as_ac_Header=\$ac_header_preproc"
  5398. fi
  5399. ac_res=`eval echo '${'$as_ac_Header'}'`
  5400. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5401. echo "${ECHO_T}$ac_res" >&6; }
  5402. fi
  5403. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5404. cat >>confdefs.h <<_ACEOF
  5405. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5406. _ACEOF
  5407. fi
  5408. done
  5409. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5410. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5411. (test "X$CXX" != "Xg++"))) ; then
  5412. ac_ext=cpp
  5413. ac_cpp='$CXXCPP $CPPFLAGS'
  5414. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5415. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5416. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5417. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5418. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5419. if test -z "$CXXCPP"; then
  5420. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5421. echo $ECHO_N "(cached) $ECHO_C" >&6
  5422. else
  5423. # Double quotes because CXXCPP needs to be expanded
  5424. for CXXCPP in "$CXX -E" "/lib/cpp"
  5425. do
  5426. ac_preproc_ok=false
  5427. for ac_cxx_preproc_warn_flag in '' yes
  5428. do
  5429. # Use a header file that comes with gcc, so configuring glibc
  5430. # with a fresh cross-compiler works.
  5431. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5432. # <limits.h> exists even on freestanding compilers.
  5433. # On the NeXT, cc -E runs the code through the compiler's parser,
  5434. # not just through cpp. "Syntax error" is here to catch this case.
  5435. cat >conftest.$ac_ext <<_ACEOF
  5436. /* confdefs.h. */
  5437. _ACEOF
  5438. cat confdefs.h >>conftest.$ac_ext
  5439. cat >>conftest.$ac_ext <<_ACEOF
  5440. /* end confdefs.h. */
  5441. #ifdef __STDC__
  5442. # include <limits.h>
  5443. #else
  5444. # include <assert.h>
  5445. #endif
  5446. Syntax error
  5447. _ACEOF
  5448. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5449. case "(($ac_try" in
  5450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5451. *) ac_try_echo=$ac_try;;
  5452. esac
  5453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5454. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5455. ac_status=$?
  5456. grep -v '^ *+' conftest.er1 >conftest.err
  5457. rm -f conftest.er1
  5458. cat conftest.err >&5
  5459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5460. (exit $ac_status); } >/dev/null && {
  5461. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5462. test ! -s conftest.err
  5463. }; then
  5464. :
  5465. else
  5466. echo "$as_me: failed program was:" >&5
  5467. sed 's/^/| /' conftest.$ac_ext >&5
  5468. # Broken: fails on valid input.
  5469. continue
  5470. fi
  5471. rm -f conftest.err conftest.$ac_ext
  5472. # OK, works on sane cases. Now check whether nonexistent headers
  5473. # can be detected and how.
  5474. cat >conftest.$ac_ext <<_ACEOF
  5475. /* confdefs.h. */
  5476. _ACEOF
  5477. cat confdefs.h >>conftest.$ac_ext
  5478. cat >>conftest.$ac_ext <<_ACEOF
  5479. /* end confdefs.h. */
  5480. #include <ac_nonexistent.h>
  5481. _ACEOF
  5482. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5483. case "(($ac_try" in
  5484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5485. *) ac_try_echo=$ac_try;;
  5486. esac
  5487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5488. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5489. ac_status=$?
  5490. grep -v '^ *+' conftest.er1 >conftest.err
  5491. rm -f conftest.er1
  5492. cat conftest.err >&5
  5493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5494. (exit $ac_status); } >/dev/null && {
  5495. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5496. test ! -s conftest.err
  5497. }; then
  5498. # Broken: success on invalid input.
  5499. continue
  5500. else
  5501. echo "$as_me: failed program was:" >&5
  5502. sed 's/^/| /' conftest.$ac_ext >&5
  5503. # Passes both tests.
  5504. ac_preproc_ok=:
  5505. break
  5506. fi
  5507. rm -f conftest.err conftest.$ac_ext
  5508. done
  5509. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5510. rm -f conftest.err conftest.$ac_ext
  5511. if $ac_preproc_ok; then
  5512. break
  5513. fi
  5514. done
  5515. ac_cv_prog_CXXCPP=$CXXCPP
  5516. fi
  5517. CXXCPP=$ac_cv_prog_CXXCPP
  5518. else
  5519. ac_cv_prog_CXXCPP=$CXXCPP
  5520. fi
  5521. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5522. echo "${ECHO_T}$CXXCPP" >&6; }
  5523. ac_preproc_ok=false
  5524. for ac_cxx_preproc_warn_flag in '' yes
  5525. do
  5526. # Use a header file that comes with gcc, so configuring glibc
  5527. # with a fresh cross-compiler works.
  5528. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5529. # <limits.h> exists even on freestanding compilers.
  5530. # On the NeXT, cc -E runs the code through the compiler's parser,
  5531. # not just through cpp. "Syntax error" is here to catch this case.
  5532. cat >conftest.$ac_ext <<_ACEOF
  5533. /* confdefs.h. */
  5534. _ACEOF
  5535. cat confdefs.h >>conftest.$ac_ext
  5536. cat >>conftest.$ac_ext <<_ACEOF
  5537. /* end confdefs.h. */
  5538. #ifdef __STDC__
  5539. # include <limits.h>
  5540. #else
  5541. # include <assert.h>
  5542. #endif
  5543. Syntax error
  5544. _ACEOF
  5545. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5546. case "(($ac_try" in
  5547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5548. *) ac_try_echo=$ac_try;;
  5549. esac
  5550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5551. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5552. ac_status=$?
  5553. grep -v '^ *+' conftest.er1 >conftest.err
  5554. rm -f conftest.er1
  5555. cat conftest.err >&5
  5556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5557. (exit $ac_status); } >/dev/null && {
  5558. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5559. test ! -s conftest.err
  5560. }; then
  5561. :
  5562. else
  5563. echo "$as_me: failed program was:" >&5
  5564. sed 's/^/| /' conftest.$ac_ext >&5
  5565. # Broken: fails on valid input.
  5566. continue
  5567. fi
  5568. rm -f conftest.err conftest.$ac_ext
  5569. # OK, works on sane cases. Now check whether nonexistent headers
  5570. # can be detected and how.
  5571. cat >conftest.$ac_ext <<_ACEOF
  5572. /* confdefs.h. */
  5573. _ACEOF
  5574. cat confdefs.h >>conftest.$ac_ext
  5575. cat >>conftest.$ac_ext <<_ACEOF
  5576. /* end confdefs.h. */
  5577. #include <ac_nonexistent.h>
  5578. _ACEOF
  5579. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5580. case "(($ac_try" in
  5581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5582. *) ac_try_echo=$ac_try;;
  5583. esac
  5584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5585. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5586. ac_status=$?
  5587. grep -v '^ *+' conftest.er1 >conftest.err
  5588. rm -f conftest.er1
  5589. cat conftest.err >&5
  5590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5591. (exit $ac_status); } >/dev/null && {
  5592. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5593. test ! -s conftest.err
  5594. }; then
  5595. # Broken: success on invalid input.
  5596. continue
  5597. else
  5598. echo "$as_me: failed program was:" >&5
  5599. sed 's/^/| /' conftest.$ac_ext >&5
  5600. # Passes both tests.
  5601. ac_preproc_ok=:
  5602. break
  5603. fi
  5604. rm -f conftest.err conftest.$ac_ext
  5605. done
  5606. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5607. rm -f conftest.err conftest.$ac_ext
  5608. if $ac_preproc_ok; then
  5609. :
  5610. else
  5611. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5612. See \`config.log' for more details." >&5
  5613. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5614. See \`config.log' for more details." >&2;}
  5615. { (exit 1); exit 1; }; }
  5616. fi
  5617. ac_ext=cpp
  5618. ac_cpp='$CXXCPP $CPPFLAGS'
  5619. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5620. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5621. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5622. fi
  5623. ac_ext=f
  5624. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5625. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5626. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5627. if test -n "$ac_tool_prefix"; then
  5628. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5629. do
  5630. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5631. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5632. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5633. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5634. if test "${ac_cv_prog_F77+set}" = set; then
  5635. echo $ECHO_N "(cached) $ECHO_C" >&6
  5636. else
  5637. if test -n "$F77"; then
  5638. ac_cv_prog_F77="$F77" # Let the user override the test.
  5639. else
  5640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5641. for as_dir in $PATH
  5642. do
  5643. IFS=$as_save_IFS
  5644. test -z "$as_dir" && as_dir=.
  5645. for ac_exec_ext in '' $ac_executable_extensions; do
  5646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5647. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5648. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5649. break 2
  5650. fi
  5651. done
  5652. done
  5653. IFS=$as_save_IFS
  5654. fi
  5655. fi
  5656. F77=$ac_cv_prog_F77
  5657. if test -n "$F77"; then
  5658. { echo "$as_me:$LINENO: result: $F77" >&5
  5659. echo "${ECHO_T}$F77" >&6; }
  5660. else
  5661. { echo "$as_me:$LINENO: result: no" >&5
  5662. echo "${ECHO_T}no" >&6; }
  5663. fi
  5664. test -n "$F77" && break
  5665. done
  5666. fi
  5667. if test -z "$F77"; then
  5668. ac_ct_F77=$F77
  5669. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5670. do
  5671. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5672. set dummy $ac_prog; ac_word=$2
  5673. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5674. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5675. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5676. echo $ECHO_N "(cached) $ECHO_C" >&6
  5677. else
  5678. if test -n "$ac_ct_F77"; then
  5679. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5688. ac_cv_prog_ac_ct_F77="$ac_prog"
  5689. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. IFS=$as_save_IFS
  5695. fi
  5696. fi
  5697. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5698. if test -n "$ac_ct_F77"; then
  5699. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5700. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5701. else
  5702. { echo "$as_me:$LINENO: result: no" >&5
  5703. echo "${ECHO_T}no" >&6; }
  5704. fi
  5705. test -n "$ac_ct_F77" && break
  5706. done
  5707. if test "x$ac_ct_F77" = x; then
  5708. F77=""
  5709. else
  5710. case $cross_compiling:$ac_tool_warned in
  5711. yes:)
  5712. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5713. whose name does not start with the host triplet. If you think this
  5714. configuration is useful to you, please write to [email protected]." >&5
  5715. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5716. whose name does not start with the host triplet. If you think this
  5717. configuration is useful to you, please write to [email protected]." >&2;}
  5718. ac_tool_warned=yes ;;
  5719. esac
  5720. F77=$ac_ct_F77
  5721. fi
  5722. fi
  5723. # Provide some information about the compiler.
  5724. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5725. ac_compiler=`set X $ac_compile; echo $2`
  5726. { (ac_try="$ac_compiler --version >&5"
  5727. case "(($ac_try" in
  5728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5729. *) ac_try_echo=$ac_try;;
  5730. esac
  5731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5732. (eval "$ac_compiler --version >&5") 2>&5
  5733. ac_status=$?
  5734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5735. (exit $ac_status); }
  5736. { (ac_try="$ac_compiler -v >&5"
  5737. case "(($ac_try" in
  5738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5739. *) ac_try_echo=$ac_try;;
  5740. esac
  5741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5742. (eval "$ac_compiler -v >&5") 2>&5
  5743. ac_status=$?
  5744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5745. (exit $ac_status); }
  5746. { (ac_try="$ac_compiler -V >&5"
  5747. case "(($ac_try" in
  5748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5749. *) ac_try_echo=$ac_try;;
  5750. esac
  5751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5752. (eval "$ac_compiler -V >&5") 2>&5
  5753. ac_status=$?
  5754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5755. (exit $ac_status); }
  5756. rm -f a.out
  5757. # If we don't use `.F' as extension, the preprocessor is not run on the
  5758. # input file. (Note that this only needs to work for GNU compilers.)
  5759. ac_save_ext=$ac_ext
  5760. ac_ext=F
  5761. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5762. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5763. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5764. echo $ECHO_N "(cached) $ECHO_C" >&6
  5765. else
  5766. cat >conftest.$ac_ext <<_ACEOF
  5767. program main
  5768. #ifndef __GNUC__
  5769. choke me
  5770. #endif
  5771. end
  5772. _ACEOF
  5773. rm -f conftest.$ac_objext
  5774. if { (ac_try="$ac_compile"
  5775. case "(($ac_try" in
  5776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5777. *) ac_try_echo=$ac_try;;
  5778. esac
  5779. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5780. (eval "$ac_compile") 2>conftest.er1
  5781. ac_status=$?
  5782. grep -v '^ *+' conftest.er1 >conftest.err
  5783. rm -f conftest.er1
  5784. cat conftest.err >&5
  5785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5786. (exit $ac_status); } && {
  5787. test -z "$ac_f77_werror_flag" ||
  5788. test ! -s conftest.err
  5789. } && test -s conftest.$ac_objext; then
  5790. ac_compiler_gnu=yes
  5791. else
  5792. echo "$as_me: failed program was:" >&5
  5793. sed 's/^/| /' conftest.$ac_ext >&5
  5794. ac_compiler_gnu=no
  5795. fi
  5796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5797. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5798. fi
  5799. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5800. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5801. ac_ext=$ac_save_ext
  5802. ac_test_FFLAGS=${FFLAGS+set}
  5803. ac_save_FFLAGS=$FFLAGS
  5804. FFLAGS=
  5805. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5806. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5807. if test "${ac_cv_prog_f77_g+set}" = set; then
  5808. echo $ECHO_N "(cached) $ECHO_C" >&6
  5809. else
  5810. FFLAGS=-g
  5811. cat >conftest.$ac_ext <<_ACEOF
  5812. program main
  5813. end
  5814. _ACEOF
  5815. rm -f conftest.$ac_objext
  5816. if { (ac_try="$ac_compile"
  5817. case "(($ac_try" in
  5818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5819. *) ac_try_echo=$ac_try;;
  5820. esac
  5821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5822. (eval "$ac_compile") 2>conftest.er1
  5823. ac_status=$?
  5824. grep -v '^ *+' conftest.er1 >conftest.err
  5825. rm -f conftest.er1
  5826. cat conftest.err >&5
  5827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5828. (exit $ac_status); } && {
  5829. test -z "$ac_f77_werror_flag" ||
  5830. test ! -s conftest.err
  5831. } && test -s conftest.$ac_objext; then
  5832. ac_cv_prog_f77_g=yes
  5833. else
  5834. echo "$as_me: failed program was:" >&5
  5835. sed 's/^/| /' conftest.$ac_ext >&5
  5836. ac_cv_prog_f77_g=no
  5837. fi
  5838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5839. fi
  5840. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5841. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5842. if test "$ac_test_FFLAGS" = set; then
  5843. FFLAGS=$ac_save_FFLAGS
  5844. elif test $ac_cv_prog_f77_g = yes; then
  5845. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5846. FFLAGS="-g -O2"
  5847. else
  5848. FFLAGS="-g"
  5849. fi
  5850. else
  5851. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5852. FFLAGS="-O2"
  5853. else
  5854. FFLAGS=
  5855. fi
  5856. fi
  5857. G77=`test $ac_compiler_gnu = yes && echo yes`
  5858. ac_ext=c
  5859. ac_cpp='$CPP $CPPFLAGS'
  5860. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5861. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5862. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5863. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5864. # find the maximum length of command line arguments
  5865. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5866. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5867. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5868. echo $ECHO_N "(cached) $ECHO_C" >&6
  5869. else
  5870. i=0
  5871. teststring="ABCD"
  5872. case $build_os in
  5873. msdosdjgpp*)
  5874. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5875. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5876. # during glob expansion). Even if it were fixed, the result of this
  5877. # check would be larger than it should be.
  5878. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5879. ;;
  5880. gnu*)
  5881. # Under GNU Hurd, this test is not required because there is
  5882. # no limit to the length of command line arguments.
  5883. # Libtool will interpret -1 as no limit whatsoever
  5884. lt_cv_sys_max_cmd_len=-1;
  5885. ;;
  5886. cygwin* | mingw*)
  5887. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5888. # about 5 minutes as the teststring grows exponentially.
  5889. # Worse, since 9x/ME are not pre-emptively multitasking,
  5890. # you end up with a "frozen" computer, even though with patience
  5891. # the test eventually succeeds (with a max line length of 256k).
  5892. # Instead, let's just punt: use the minimum linelength reported by
  5893. # all of the supported platforms: 8192 (on NT/2K/XP).
  5894. lt_cv_sys_max_cmd_len=8192;
  5895. ;;
  5896. amigaos*)
  5897. # On AmigaOS with pdksh, this test takes hours, literally.
  5898. # So we just punt and use a minimum line length of 8192.
  5899. lt_cv_sys_max_cmd_len=8192;
  5900. ;;
  5901. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5902. # This has been around since 386BSD, at least. Likely further.
  5903. if test -x /sbin/sysctl; then
  5904. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5905. elif test -x /usr/sbin/sysctl; then
  5906. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5907. else
  5908. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5909. fi
  5910. # And add a safety zone
  5911. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5912. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5913. ;;
  5914. interix*)
  5915. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5916. lt_cv_sys_max_cmd_len=196608
  5917. ;;
  5918. osf*)
  5919. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5920. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5921. # nice to cause kernel panics so lets avoid the loop below.
  5922. # First set a reasonable default.
  5923. lt_cv_sys_max_cmd_len=16384
  5924. #
  5925. if test -x /sbin/sysconfig; then
  5926. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5927. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5928. esac
  5929. fi
  5930. ;;
  5931. sco3.2v5*)
  5932. lt_cv_sys_max_cmd_len=102400
  5933. ;;
  5934. sysv5* | sco5v6* | sysv4.2uw2*)
  5935. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5936. if test -n "$kargmax"; then
  5937. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5938. else
  5939. lt_cv_sys_max_cmd_len=32768
  5940. fi
  5941. ;;
  5942. *)
  5943. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5944. if test -n "$lt_cv_sys_max_cmd_len"; then
  5945. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5946. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5947. else
  5948. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5949. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5950. = "XX$teststring") >/dev/null 2>&1 &&
  5951. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5952. lt_cv_sys_max_cmd_len=$new_result &&
  5953. test $i != 17 # 1/2 MB should be enough
  5954. do
  5955. i=`expr $i + 1`
  5956. teststring=$teststring$teststring
  5957. done
  5958. teststring=
  5959. # Add a significant safety factor because C++ compilers can tack on massive
  5960. # amounts of additional arguments before passing them to the linker.
  5961. # It appears as though 1/2 is a usable value.
  5962. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5963. fi
  5964. ;;
  5965. esac
  5966. fi
  5967. if test -n $lt_cv_sys_max_cmd_len ; then
  5968. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5969. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5970. else
  5971. { echo "$as_me:$LINENO: result: none" >&5
  5972. echo "${ECHO_T}none" >&6; }
  5973. fi
  5974. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5975. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5976. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5977. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5978. echo $ECHO_N "(cached) $ECHO_C" >&6
  5979. else
  5980. # These are sane defaults that work on at least a few old systems.
  5981. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5982. # Character class describing NM global symbol codes.
  5983. symcode='[BCDEGRST]'
  5984. # Regexp to match symbols that can be accessed directly from C.
  5985. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5986. # Transform an extracted symbol line into a proper C declaration
  5987. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5988. # Transform an extracted symbol line into symbol name and symbol address
  5989. 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'"
  5990. # Define system-specific variables.
  5991. case $host_os in
  5992. aix*)
  5993. symcode='[BCDT]'
  5994. ;;
  5995. cygwin* | mingw* | pw32*)
  5996. symcode='[ABCDGISTW]'
  5997. ;;
  5998. hpux*) # Its linker distinguishes data from code symbols
  5999. if test "$host_cpu" = ia64; then
  6000. symcode='[ABCDEGRST]'
  6001. fi
  6002. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6003. 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'"
  6004. ;;
  6005. linux* | k*bsd*-gnu)
  6006. if test "$host_cpu" = ia64; then
  6007. symcode='[ABCDGIRSTW]'
  6008. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6009. 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'"
  6010. fi
  6011. ;;
  6012. irix* | nonstopux*)
  6013. symcode='[BCDEGRST]'
  6014. ;;
  6015. osf*)
  6016. symcode='[BCDEGQRST]'
  6017. ;;
  6018. solaris*)
  6019. symcode='[BDRT]'
  6020. ;;
  6021. sco3.2v5*)
  6022. symcode='[DT]'
  6023. ;;
  6024. sysv4.2uw2*)
  6025. symcode='[DT]'
  6026. ;;
  6027. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6028. symcode='[ABDT]'
  6029. ;;
  6030. sysv4)
  6031. symcode='[DFNSTU]'
  6032. ;;
  6033. esac
  6034. # Handle CRLF in mingw tool chain
  6035. opt_cr=
  6036. case $build_os in
  6037. mingw*)
  6038. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6039. ;;
  6040. esac
  6041. # If we're using GNU nm, then use its standard symbol codes.
  6042. case `$NM -V 2>&1` in
  6043. *GNU* | *'with BFD'*)
  6044. symcode='[ABCDGIRSTW]' ;;
  6045. esac
  6046. # Try without a prefix undercore, then with it.
  6047. for ac_symprfx in "" "_"; do
  6048. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6049. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6050. # Write the raw and C identifiers.
  6051. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6052. # Check to see that the pipe works correctly.
  6053. pipe_works=no
  6054. rm -f conftest*
  6055. cat > conftest.$ac_ext <<EOF
  6056. #ifdef __cplusplus
  6057. extern "C" {
  6058. #endif
  6059. char nm_test_var;
  6060. void nm_test_func(){}
  6061. #ifdef __cplusplus
  6062. }
  6063. #endif
  6064. int main(){nm_test_var='a';nm_test_func();return(0);}
  6065. EOF
  6066. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6067. (eval $ac_compile) 2>&5
  6068. ac_status=$?
  6069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6070. (exit $ac_status); }; then
  6071. # Now try to grab the symbols.
  6072. nlist=conftest.nm
  6073. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6074. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6075. ac_status=$?
  6076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6077. (exit $ac_status); } && test -s "$nlist"; then
  6078. # Try sorting and uniquifying the output.
  6079. if sort "$nlist" | uniq > "$nlist"T; then
  6080. mv -f "$nlist"T "$nlist"
  6081. else
  6082. rm -f "$nlist"T
  6083. fi
  6084. # Make sure that we snagged all the symbols we need.
  6085. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6086. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6087. cat <<EOF > conftest.$ac_ext
  6088. #ifdef __cplusplus
  6089. extern "C" {
  6090. #endif
  6091. EOF
  6092. # Now generate the symbol file.
  6093. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6094. cat <<EOF >> conftest.$ac_ext
  6095. #if defined (__STDC__) && __STDC__
  6096. # define lt_ptr_t void *
  6097. #else
  6098. # define lt_ptr_t char *
  6099. # define const
  6100. #endif
  6101. /* The mapping between symbol names and symbols. */
  6102. const struct {
  6103. const char *name;
  6104. lt_ptr_t address;
  6105. }
  6106. lt_preloaded_symbols[] =
  6107. {
  6108. EOF
  6109. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6110. cat <<\EOF >> conftest.$ac_ext
  6111. {0, (lt_ptr_t) 0}
  6112. };
  6113. #ifdef __cplusplus
  6114. }
  6115. #endif
  6116. EOF
  6117. # Now try linking the two files.
  6118. mv conftest.$ac_objext conftstm.$ac_objext
  6119. lt_save_LIBS="$LIBS"
  6120. lt_save_CFLAGS="$CFLAGS"
  6121. LIBS="conftstm.$ac_objext"
  6122. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6123. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6124. (eval $ac_link) 2>&5
  6125. ac_status=$?
  6126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6127. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6128. pipe_works=yes
  6129. fi
  6130. LIBS="$lt_save_LIBS"
  6131. CFLAGS="$lt_save_CFLAGS"
  6132. else
  6133. echo "cannot find nm_test_func in $nlist" >&5
  6134. fi
  6135. else
  6136. echo "cannot find nm_test_var in $nlist" >&5
  6137. fi
  6138. else
  6139. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6140. fi
  6141. else
  6142. echo "$progname: failed program was:" >&5
  6143. cat conftest.$ac_ext >&5
  6144. fi
  6145. rm -f conftest* conftst*
  6146. # Do not use the global_symbol_pipe unless it works.
  6147. if test "$pipe_works" = yes; then
  6148. break
  6149. else
  6150. lt_cv_sys_global_symbol_pipe=
  6151. fi
  6152. done
  6153. fi
  6154. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6155. lt_cv_sys_global_symbol_to_cdecl=
  6156. fi
  6157. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6158. { echo "$as_me:$LINENO: result: failed" >&5
  6159. echo "${ECHO_T}failed" >&6; }
  6160. else
  6161. { echo "$as_me:$LINENO: result: ok" >&5
  6162. echo "${ECHO_T}ok" >&6; }
  6163. fi
  6164. { echo "$as_me:$LINENO: checking for objdir" >&5
  6165. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6166. if test "${lt_cv_objdir+set}" = set; then
  6167. echo $ECHO_N "(cached) $ECHO_C" >&6
  6168. else
  6169. rm -f .libs 2>/dev/null
  6170. mkdir .libs 2>/dev/null
  6171. if test -d .libs; then
  6172. lt_cv_objdir=.libs
  6173. else
  6174. # MS-DOS does not allow filenames that begin with a dot.
  6175. lt_cv_objdir=_libs
  6176. fi
  6177. rmdir .libs 2>/dev/null
  6178. fi
  6179. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6180. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6181. objdir=$lt_cv_objdir
  6182. case $host_os in
  6183. aix3*)
  6184. # AIX sometimes has problems with the GCC collect2 program. For some
  6185. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6186. # vanish in a puff of smoke.
  6187. if test "X${COLLECT_NAMES+set}" != Xset; then
  6188. COLLECT_NAMES=
  6189. export COLLECT_NAMES
  6190. fi
  6191. ;;
  6192. esac
  6193. # Sed substitution that helps us do robust quoting. It backslashifies
  6194. # metacharacters that are still active within double-quoted strings.
  6195. Xsed='sed -e 1s/^X//'
  6196. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6197. # Same as above, but do not quote variable references.
  6198. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6199. # Sed substitution to delay expansion of an escaped shell variable in a
  6200. # double_quote_subst'ed string.
  6201. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6202. # Sed substitution to avoid accidental globbing in evaled expressions
  6203. no_glob_subst='s/\*/\\\*/g'
  6204. # Constants:
  6205. rm="rm -f"
  6206. # Global variables:
  6207. default_ofile=libtool
  6208. can_build_shared=yes
  6209. # All known linkers require a `.a' archive for static linking (except MSVC,
  6210. # which needs '.lib').
  6211. libext=a
  6212. ltmain="$ac_aux_dir/ltmain.sh"
  6213. ofile="$default_ofile"
  6214. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6215. if test -n "$ac_tool_prefix"; then
  6216. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6217. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6218. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6219. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6220. if test "${ac_cv_prog_AR+set}" = set; then
  6221. echo $ECHO_N "(cached) $ECHO_C" >&6
  6222. else
  6223. if test -n "$AR"; then
  6224. ac_cv_prog_AR="$AR" # Let the user override the test.
  6225. else
  6226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6227. for as_dir in $PATH
  6228. do
  6229. IFS=$as_save_IFS
  6230. test -z "$as_dir" && as_dir=.
  6231. for ac_exec_ext in '' $ac_executable_extensions; do
  6232. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6233. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6234. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6235. break 2
  6236. fi
  6237. done
  6238. done
  6239. IFS=$as_save_IFS
  6240. fi
  6241. fi
  6242. AR=$ac_cv_prog_AR
  6243. if test -n "$AR"; then
  6244. { echo "$as_me:$LINENO: result: $AR" >&5
  6245. echo "${ECHO_T}$AR" >&6; }
  6246. else
  6247. { echo "$as_me:$LINENO: result: no" >&5
  6248. echo "${ECHO_T}no" >&6; }
  6249. fi
  6250. fi
  6251. if test -z "$ac_cv_prog_AR"; then
  6252. ac_ct_AR=$AR
  6253. # Extract the first word of "ar", so it can be a program name with args.
  6254. set dummy ar; ac_word=$2
  6255. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6256. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6257. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6258. echo $ECHO_N "(cached) $ECHO_C" >&6
  6259. else
  6260. if test -n "$ac_ct_AR"; then
  6261. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6262. else
  6263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6264. for as_dir in $PATH
  6265. do
  6266. IFS=$as_save_IFS
  6267. test -z "$as_dir" && as_dir=.
  6268. for ac_exec_ext in '' $ac_executable_extensions; do
  6269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6270. ac_cv_prog_ac_ct_AR="ar"
  6271. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6272. break 2
  6273. fi
  6274. done
  6275. done
  6276. IFS=$as_save_IFS
  6277. fi
  6278. fi
  6279. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6280. if test -n "$ac_ct_AR"; then
  6281. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6282. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6283. else
  6284. { echo "$as_me:$LINENO: result: no" >&5
  6285. echo "${ECHO_T}no" >&6; }
  6286. fi
  6287. if test "x$ac_ct_AR" = x; then
  6288. AR="false"
  6289. else
  6290. case $cross_compiling:$ac_tool_warned in
  6291. yes:)
  6292. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6293. whose name does not start with the host triplet. If you think this
  6294. configuration is useful to you, please write to [email protected]." >&5
  6295. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6296. whose name does not start with the host triplet. If you think this
  6297. configuration is useful to you, please write to [email protected]." >&2;}
  6298. ac_tool_warned=yes ;;
  6299. esac
  6300. AR=$ac_ct_AR
  6301. fi
  6302. else
  6303. AR="$ac_cv_prog_AR"
  6304. fi
  6305. if test -n "$ac_tool_prefix"; then
  6306. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6307. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6308. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6309. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6310. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6311. echo $ECHO_N "(cached) $ECHO_C" >&6
  6312. else
  6313. if test -n "$RANLIB"; then
  6314. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6315. else
  6316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6317. for as_dir in $PATH
  6318. do
  6319. IFS=$as_save_IFS
  6320. test -z "$as_dir" && as_dir=.
  6321. for ac_exec_ext in '' $ac_executable_extensions; do
  6322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6323. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6324. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6325. break 2
  6326. fi
  6327. done
  6328. done
  6329. IFS=$as_save_IFS
  6330. fi
  6331. fi
  6332. RANLIB=$ac_cv_prog_RANLIB
  6333. if test -n "$RANLIB"; then
  6334. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6335. echo "${ECHO_T}$RANLIB" >&6; }
  6336. else
  6337. { echo "$as_me:$LINENO: result: no" >&5
  6338. echo "${ECHO_T}no" >&6; }
  6339. fi
  6340. fi
  6341. if test -z "$ac_cv_prog_RANLIB"; then
  6342. ac_ct_RANLIB=$RANLIB
  6343. # Extract the first word of "ranlib", so it can be a program name with args.
  6344. set dummy ranlib; ac_word=$2
  6345. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6346. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6347. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6348. echo $ECHO_N "(cached) $ECHO_C" >&6
  6349. else
  6350. if test -n "$ac_ct_RANLIB"; then
  6351. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6352. else
  6353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6354. for as_dir in $PATH
  6355. do
  6356. IFS=$as_save_IFS
  6357. test -z "$as_dir" && as_dir=.
  6358. for ac_exec_ext in '' $ac_executable_extensions; do
  6359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6360. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6361. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6362. break 2
  6363. fi
  6364. done
  6365. done
  6366. IFS=$as_save_IFS
  6367. fi
  6368. fi
  6369. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6370. if test -n "$ac_ct_RANLIB"; then
  6371. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6372. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6373. else
  6374. { echo "$as_me:$LINENO: result: no" >&5
  6375. echo "${ECHO_T}no" >&6; }
  6376. fi
  6377. if test "x$ac_ct_RANLIB" = x; then
  6378. RANLIB=":"
  6379. else
  6380. case $cross_compiling:$ac_tool_warned in
  6381. yes:)
  6382. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6383. whose name does not start with the host triplet. If you think this
  6384. configuration is useful to you, please write to [email protected]." >&5
  6385. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6386. whose name does not start with the host triplet. If you think this
  6387. configuration is useful to you, please write to [email protected]." >&2;}
  6388. ac_tool_warned=yes ;;
  6389. esac
  6390. RANLIB=$ac_ct_RANLIB
  6391. fi
  6392. else
  6393. RANLIB="$ac_cv_prog_RANLIB"
  6394. fi
  6395. if test -n "$ac_tool_prefix"; then
  6396. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6397. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6398. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6399. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6400. if test "${ac_cv_prog_STRIP+set}" = set; then
  6401. echo $ECHO_N "(cached) $ECHO_C" >&6
  6402. else
  6403. if test -n "$STRIP"; then
  6404. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6405. else
  6406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6407. for as_dir in $PATH
  6408. do
  6409. IFS=$as_save_IFS
  6410. test -z "$as_dir" && as_dir=.
  6411. for ac_exec_ext in '' $ac_executable_extensions; do
  6412. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6413. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6414. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6415. break 2
  6416. fi
  6417. done
  6418. done
  6419. IFS=$as_save_IFS
  6420. fi
  6421. fi
  6422. STRIP=$ac_cv_prog_STRIP
  6423. if test -n "$STRIP"; then
  6424. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6425. echo "${ECHO_T}$STRIP" >&6; }
  6426. else
  6427. { echo "$as_me:$LINENO: result: no" >&5
  6428. echo "${ECHO_T}no" >&6; }
  6429. fi
  6430. fi
  6431. if test -z "$ac_cv_prog_STRIP"; then
  6432. ac_ct_STRIP=$STRIP
  6433. # Extract the first word of "strip", so it can be a program name with args.
  6434. set dummy strip; ac_word=$2
  6435. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6436. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6437. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6438. echo $ECHO_N "(cached) $ECHO_C" >&6
  6439. else
  6440. if test -n "$ac_ct_STRIP"; then
  6441. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6442. else
  6443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6444. for as_dir in $PATH
  6445. do
  6446. IFS=$as_save_IFS
  6447. test -z "$as_dir" && as_dir=.
  6448. for ac_exec_ext in '' $ac_executable_extensions; do
  6449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6450. ac_cv_prog_ac_ct_STRIP="strip"
  6451. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6452. break 2
  6453. fi
  6454. done
  6455. done
  6456. IFS=$as_save_IFS
  6457. fi
  6458. fi
  6459. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6460. if test -n "$ac_ct_STRIP"; then
  6461. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6462. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6463. else
  6464. { echo "$as_me:$LINENO: result: no" >&5
  6465. echo "${ECHO_T}no" >&6; }
  6466. fi
  6467. if test "x$ac_ct_STRIP" = x; then
  6468. STRIP=":"
  6469. else
  6470. case $cross_compiling:$ac_tool_warned in
  6471. yes:)
  6472. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6473. whose name does not start with the host triplet. If you think this
  6474. configuration is useful to you, please write to [email protected]." >&5
  6475. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6476. whose name does not start with the host triplet. If you think this
  6477. configuration is useful to you, please write to [email protected]." >&2;}
  6478. ac_tool_warned=yes ;;
  6479. esac
  6480. STRIP=$ac_ct_STRIP
  6481. fi
  6482. else
  6483. STRIP="$ac_cv_prog_STRIP"
  6484. fi
  6485. old_CC="$CC"
  6486. old_CFLAGS="$CFLAGS"
  6487. # Set sane defaults for various variables
  6488. test -z "$AR" && AR=ar
  6489. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6490. test -z "$AS" && AS=as
  6491. test -z "$CC" && CC=cc
  6492. test -z "$LTCC" && LTCC=$CC
  6493. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6494. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6495. test -z "$LD" && LD=ld
  6496. test -z "$LN_S" && LN_S="ln -s"
  6497. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6498. test -z "$NM" && NM=nm
  6499. test -z "$SED" && SED=sed
  6500. test -z "$OBJDUMP" && OBJDUMP=objdump
  6501. test -z "$RANLIB" && RANLIB=:
  6502. test -z "$STRIP" && STRIP=:
  6503. test -z "$ac_objext" && ac_objext=o
  6504. # Determine commands to create old-style static archives.
  6505. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6506. old_postinstall_cmds='chmod 644 $oldlib'
  6507. old_postuninstall_cmds=
  6508. if test -n "$RANLIB"; then
  6509. case $host_os in
  6510. openbsd*)
  6511. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6512. ;;
  6513. *)
  6514. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6515. ;;
  6516. esac
  6517. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6518. fi
  6519. for cc_temp in $compiler""; do
  6520. case $cc_temp in
  6521. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6522. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6523. \-*) ;;
  6524. *) break;;
  6525. esac
  6526. done
  6527. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6528. # Only perform the check for file, if the check method requires it
  6529. case $deplibs_check_method in
  6530. file_magic*)
  6531. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6532. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6533. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6534. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6535. echo $ECHO_N "(cached) $ECHO_C" >&6
  6536. else
  6537. case $MAGIC_CMD in
  6538. [\\/*] | ?:[\\/]*)
  6539. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6540. ;;
  6541. *)
  6542. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6544. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6545. for ac_dir in $ac_dummy; do
  6546. IFS="$lt_save_ifs"
  6547. test -z "$ac_dir" && ac_dir=.
  6548. if test -f $ac_dir/${ac_tool_prefix}file; then
  6549. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6550. if test -n "$file_magic_test_file"; then
  6551. case $deplibs_check_method in
  6552. "file_magic "*)
  6553. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6554. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6555. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6556. $EGREP "$file_magic_regex" > /dev/null; then
  6557. :
  6558. else
  6559. cat <<EOF 1>&2
  6560. *** Warning: the command libtool uses to detect shared libraries,
  6561. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6562. *** The result is that libtool may fail to recognize shared libraries
  6563. *** as such. This will affect the creation of libtool libraries that
  6564. *** depend on shared libraries, but programs linked with such libtool
  6565. *** libraries will work regardless of this problem. Nevertheless, you
  6566. *** may want to report the problem to your system manager and/or to
  6567. *** [email protected]
  6568. EOF
  6569. fi ;;
  6570. esac
  6571. fi
  6572. break
  6573. fi
  6574. done
  6575. IFS="$lt_save_ifs"
  6576. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6577. ;;
  6578. esac
  6579. fi
  6580. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6581. if test -n "$MAGIC_CMD"; then
  6582. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6583. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6584. else
  6585. { echo "$as_me:$LINENO: result: no" >&5
  6586. echo "${ECHO_T}no" >&6; }
  6587. fi
  6588. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6589. if test -n "$ac_tool_prefix"; then
  6590. { echo "$as_me:$LINENO: checking for file" >&5
  6591. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6592. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6593. echo $ECHO_N "(cached) $ECHO_C" >&6
  6594. else
  6595. case $MAGIC_CMD in
  6596. [\\/*] | ?:[\\/]*)
  6597. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6598. ;;
  6599. *)
  6600. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6601. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6602. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6603. for ac_dir in $ac_dummy; do
  6604. IFS="$lt_save_ifs"
  6605. test -z "$ac_dir" && ac_dir=.
  6606. if test -f $ac_dir/file; then
  6607. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6608. if test -n "$file_magic_test_file"; then
  6609. case $deplibs_check_method in
  6610. "file_magic "*)
  6611. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6612. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6613. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6614. $EGREP "$file_magic_regex" > /dev/null; then
  6615. :
  6616. else
  6617. cat <<EOF 1>&2
  6618. *** Warning: the command libtool uses to detect shared libraries,
  6619. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6620. *** The result is that libtool may fail to recognize shared libraries
  6621. *** as such. This will affect the creation of libtool libraries that
  6622. *** depend on shared libraries, but programs linked with such libtool
  6623. *** libraries will work regardless of this problem. Nevertheless, you
  6624. *** may want to report the problem to your system manager and/or to
  6625. *** [email protected]
  6626. EOF
  6627. fi ;;
  6628. esac
  6629. fi
  6630. break
  6631. fi
  6632. done
  6633. IFS="$lt_save_ifs"
  6634. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6635. ;;
  6636. esac
  6637. fi
  6638. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6639. if test -n "$MAGIC_CMD"; then
  6640. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6641. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6642. else
  6643. { echo "$as_me:$LINENO: result: no" >&5
  6644. echo "${ECHO_T}no" >&6; }
  6645. fi
  6646. else
  6647. MAGIC_CMD=:
  6648. fi
  6649. fi
  6650. fi
  6651. ;;
  6652. esac
  6653. enable_dlopen=no
  6654. enable_win32_dll=no
  6655. # Check whether --enable-libtool-lock was given.
  6656. if test "${enable_libtool_lock+set}" = set; then
  6657. enableval=$enable_libtool_lock;
  6658. fi
  6659. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6660. # Check whether --with-pic was given.
  6661. if test "${with_pic+set}" = set; then
  6662. withval=$with_pic; pic_mode="$withval"
  6663. else
  6664. pic_mode=default
  6665. fi
  6666. test -z "$pic_mode" && pic_mode=default
  6667. # Use C for the default configuration in the libtool script
  6668. tagname=
  6669. lt_save_CC="$CC"
  6670. ac_ext=c
  6671. ac_cpp='$CPP $CPPFLAGS'
  6672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6675. # Source file extension for C test sources.
  6676. ac_ext=c
  6677. # Object file extension for compiled C test sources.
  6678. objext=o
  6679. objext=$objext
  6680. # Code to be used in simple compile tests
  6681. lt_simple_compile_test_code="int some_variable = 0;"
  6682. # Code to be used in simple link tests
  6683. lt_simple_link_test_code='int main(){return(0);}'
  6684. # If no C compiler was specified, use CC.
  6685. LTCC=${LTCC-"$CC"}
  6686. # If no C compiler flags were specified, use CFLAGS.
  6687. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6688. # Allow CC to be a program name with arguments.
  6689. compiler=$CC
  6690. # save warnings/boilerplate of simple test code
  6691. ac_outfile=conftest.$ac_objext
  6692. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6693. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6694. _lt_compiler_boilerplate=`cat conftest.err`
  6695. $rm conftest*
  6696. ac_outfile=conftest.$ac_objext
  6697. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6698. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6699. _lt_linker_boilerplate=`cat conftest.err`
  6700. $rm conftest*
  6701. lt_prog_compiler_no_builtin_flag=
  6702. if test "$GCC" = yes; then
  6703. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6704. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6705. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6706. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6707. echo $ECHO_N "(cached) $ECHO_C" >&6
  6708. else
  6709. lt_cv_prog_compiler_rtti_exceptions=no
  6710. ac_outfile=conftest.$ac_objext
  6711. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6712. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6713. # Insert the option either (1) after the last *FLAGS variable, or
  6714. # (2) before a word containing "conftest.", or (3) at the end.
  6715. # Note that $ac_compile itself does not contain backslashes and begins
  6716. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6717. # The option is referenced via a variable to avoid confusing sed.
  6718. lt_compile=`echo "$ac_compile" | $SED \
  6719. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6720. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6721. -e 's:$: $lt_compiler_flag:'`
  6722. (eval echo "\"\$as_me:7489: $lt_compile\"" >&5)
  6723. (eval "$lt_compile" 2>conftest.err)
  6724. ac_status=$?
  6725. cat conftest.err >&5
  6726. echo "$as_me:7493: \$? = $ac_status" >&5
  6727. if (exit $ac_status) && test -s "$ac_outfile"; then
  6728. # The compiler can only warn and ignore the option if not recognized
  6729. # So say no if there are warnings other than the usual output.
  6730. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6731. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6732. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6733. lt_cv_prog_compiler_rtti_exceptions=yes
  6734. fi
  6735. fi
  6736. $rm conftest*
  6737. fi
  6738. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6739. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6740. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6741. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6742. else
  6743. :
  6744. fi
  6745. fi
  6746. lt_prog_compiler_wl=
  6747. lt_prog_compiler_pic=
  6748. lt_prog_compiler_static=
  6749. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6750. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6751. if test "$GCC" = yes; then
  6752. lt_prog_compiler_wl='-Wl,'
  6753. lt_prog_compiler_static='-static'
  6754. case $host_os in
  6755. aix*)
  6756. # All AIX code is PIC.
  6757. if test "$host_cpu" = ia64; then
  6758. # AIX 5 now supports IA64 processor
  6759. lt_prog_compiler_static='-Bstatic'
  6760. fi
  6761. ;;
  6762. amigaos*)
  6763. # FIXME: we need at least 68020 code to build shared libraries, but
  6764. # adding the `-m68020' flag to GCC prevents building anything better,
  6765. # like `-m68040'.
  6766. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6767. ;;
  6768. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6769. # PIC is the default for these OSes.
  6770. ;;
  6771. mingw* | cygwin* | pw32* | os2*)
  6772. # This hack is so that the source file can tell whether it is being
  6773. # built for inclusion in a dll (and should export symbols for example).
  6774. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6775. # (--disable-auto-import) libraries
  6776. lt_prog_compiler_pic='-DDLL_EXPORT'
  6777. ;;
  6778. darwin* | rhapsody*)
  6779. # PIC is the default on this platform
  6780. # Common symbols not allowed in MH_DYLIB files
  6781. lt_prog_compiler_pic='-fno-common'
  6782. ;;
  6783. interix[3-9]*)
  6784. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6785. # Instead, we relocate shared libraries at runtime.
  6786. ;;
  6787. msdosdjgpp*)
  6788. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6789. # on systems that don't support them.
  6790. lt_prog_compiler_can_build_shared=no
  6791. enable_shared=no
  6792. ;;
  6793. sysv4*MP*)
  6794. if test -d /usr/nec; then
  6795. lt_prog_compiler_pic=-Kconform_pic
  6796. fi
  6797. ;;
  6798. hpux*)
  6799. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6800. # not for PA HP-UX.
  6801. case $host_cpu in
  6802. hppa*64*|ia64*)
  6803. # +Z the default
  6804. ;;
  6805. *)
  6806. lt_prog_compiler_pic='-fPIC'
  6807. ;;
  6808. esac
  6809. ;;
  6810. *)
  6811. lt_prog_compiler_pic='-fPIC'
  6812. ;;
  6813. esac
  6814. else
  6815. # PORTME Check for flag to pass linker flags through the system compiler.
  6816. case $host_os in
  6817. aix*)
  6818. lt_prog_compiler_wl='-Wl,'
  6819. if test "$host_cpu" = ia64; then
  6820. # AIX 5 now supports IA64 processor
  6821. lt_prog_compiler_static='-Bstatic'
  6822. else
  6823. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6824. fi
  6825. ;;
  6826. darwin*)
  6827. # PIC is the default on this platform
  6828. # Common symbols not allowed in MH_DYLIB files
  6829. case $cc_basename in
  6830. xlc*)
  6831. lt_prog_compiler_pic='-qnocommon'
  6832. lt_prog_compiler_wl='-Wl,'
  6833. ;;
  6834. esac
  6835. ;;
  6836. mingw* | cygwin* | pw32* | os2*)
  6837. # This hack is so that the source file can tell whether it is being
  6838. # built for inclusion in a dll (and should export symbols for example).
  6839. lt_prog_compiler_pic='-DDLL_EXPORT'
  6840. ;;
  6841. hpux9* | hpux10* | hpux11*)
  6842. lt_prog_compiler_wl='-Wl,'
  6843. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6844. # not for PA HP-UX.
  6845. case $host_cpu in
  6846. hppa*64*|ia64*)
  6847. # +Z the default
  6848. ;;
  6849. *)
  6850. lt_prog_compiler_pic='+Z'
  6851. ;;
  6852. esac
  6853. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6854. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6855. ;;
  6856. irix5* | irix6* | nonstopux*)
  6857. lt_prog_compiler_wl='-Wl,'
  6858. # PIC (with -KPIC) is the default.
  6859. lt_prog_compiler_static='-non_shared'
  6860. ;;
  6861. newsos6)
  6862. lt_prog_compiler_pic='-KPIC'
  6863. lt_prog_compiler_static='-Bstatic'
  6864. ;;
  6865. linux* | k*bsd*-gnu)
  6866. case $cc_basename in
  6867. icc* | ecc*)
  6868. lt_prog_compiler_wl='-Wl,'
  6869. lt_prog_compiler_pic='-KPIC'
  6870. lt_prog_compiler_static='-static'
  6871. ;;
  6872. pgcc* | pgf77* | pgf90* | pgf95*)
  6873. # Portland Group compilers (*not* the Pentium gcc compiler,
  6874. # which looks to be a dead project)
  6875. lt_prog_compiler_wl='-Wl,'
  6876. lt_prog_compiler_pic='-fpic'
  6877. lt_prog_compiler_static='-Bstatic'
  6878. ;;
  6879. ccc*)
  6880. lt_prog_compiler_wl='-Wl,'
  6881. # All Alpha code is PIC.
  6882. lt_prog_compiler_static='-non_shared'
  6883. ;;
  6884. *)
  6885. case `$CC -V 2>&1 | sed 5q` in
  6886. *Sun\ C*)
  6887. # Sun C 5.9
  6888. lt_prog_compiler_pic='-KPIC'
  6889. lt_prog_compiler_static='-Bstatic'
  6890. lt_prog_compiler_wl='-Wl,'
  6891. ;;
  6892. *Sun\ F*)
  6893. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6894. lt_prog_compiler_pic='-KPIC'
  6895. lt_prog_compiler_static='-Bstatic'
  6896. lt_prog_compiler_wl=''
  6897. ;;
  6898. esac
  6899. ;;
  6900. esac
  6901. ;;
  6902. osf3* | osf4* | osf5*)
  6903. lt_prog_compiler_wl='-Wl,'
  6904. # All OSF/1 code is PIC.
  6905. lt_prog_compiler_static='-non_shared'
  6906. ;;
  6907. rdos*)
  6908. lt_prog_compiler_static='-non_shared'
  6909. ;;
  6910. solaris*)
  6911. lt_prog_compiler_pic='-KPIC'
  6912. lt_prog_compiler_static='-Bstatic'
  6913. case $cc_basename in
  6914. f77* | f90* | f95*)
  6915. lt_prog_compiler_wl='-Qoption ld ';;
  6916. *)
  6917. lt_prog_compiler_wl='-Wl,';;
  6918. esac
  6919. ;;
  6920. sunos4*)
  6921. lt_prog_compiler_wl='-Qoption ld '
  6922. lt_prog_compiler_pic='-PIC'
  6923. lt_prog_compiler_static='-Bstatic'
  6924. ;;
  6925. sysv4 | sysv4.2uw2* | sysv4.3*)
  6926. lt_prog_compiler_wl='-Wl,'
  6927. lt_prog_compiler_pic='-KPIC'
  6928. lt_prog_compiler_static='-Bstatic'
  6929. ;;
  6930. sysv4*MP*)
  6931. if test -d /usr/nec ;then
  6932. lt_prog_compiler_pic='-Kconform_pic'
  6933. lt_prog_compiler_static='-Bstatic'
  6934. fi
  6935. ;;
  6936. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6937. lt_prog_compiler_wl='-Wl,'
  6938. lt_prog_compiler_pic='-KPIC'
  6939. lt_prog_compiler_static='-Bstatic'
  6940. ;;
  6941. unicos*)
  6942. lt_prog_compiler_wl='-Wl,'
  6943. lt_prog_compiler_can_build_shared=no
  6944. ;;
  6945. uts4*)
  6946. lt_prog_compiler_pic='-pic'
  6947. lt_prog_compiler_static='-Bstatic'
  6948. ;;
  6949. *)
  6950. lt_prog_compiler_can_build_shared=no
  6951. ;;
  6952. esac
  6953. fi
  6954. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6955. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6956. #
  6957. # Check to make sure the PIC flag actually works.
  6958. #
  6959. if test -n "$lt_prog_compiler_pic"; then
  6960. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6961. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6962. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6963. echo $ECHO_N "(cached) $ECHO_C" >&6
  6964. else
  6965. lt_prog_compiler_pic_works=no
  6966. ac_outfile=conftest.$ac_objext
  6967. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6968. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6969. # Insert the option either (1) after the last *FLAGS variable, or
  6970. # (2) before a word containing "conftest.", or (3) at the end.
  6971. # Note that $ac_compile itself does not contain backslashes and begins
  6972. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6973. # The option is referenced via a variable to avoid confusing sed.
  6974. lt_compile=`echo "$ac_compile" | $SED \
  6975. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6976. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6977. -e 's:$: $lt_compiler_flag:'`
  6978. (eval echo "\"\$as_me:7779: $lt_compile\"" >&5)
  6979. (eval "$lt_compile" 2>conftest.err)
  6980. ac_status=$?
  6981. cat conftest.err >&5
  6982. echo "$as_me:7783: \$? = $ac_status" >&5
  6983. if (exit $ac_status) && test -s "$ac_outfile"; then
  6984. # The compiler can only warn and ignore the option if not recognized
  6985. # So say no if there are warnings other than the usual output.
  6986. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6987. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6988. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6989. lt_prog_compiler_pic_works=yes
  6990. fi
  6991. fi
  6992. $rm conftest*
  6993. fi
  6994. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6995. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6996. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6997. case $lt_prog_compiler_pic in
  6998. "" | " "*) ;;
  6999. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7000. esac
  7001. else
  7002. lt_prog_compiler_pic=
  7003. lt_prog_compiler_can_build_shared=no
  7004. fi
  7005. fi
  7006. case $host_os in
  7007. # For platforms which do not support PIC, -DPIC is meaningless:
  7008. *djgpp*)
  7009. lt_prog_compiler_pic=
  7010. ;;
  7011. *)
  7012. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7013. ;;
  7014. esac
  7015. #
  7016. # Check to make sure the static flag actually works.
  7017. #
  7018. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7019. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7020. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  7021. if test "${lt_prog_compiler_static_works+set}" = set; then
  7022. echo $ECHO_N "(cached) $ECHO_C" >&6
  7023. else
  7024. lt_prog_compiler_static_works=no
  7025. save_LDFLAGS="$LDFLAGS"
  7026. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7027. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7028. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7029. # The linker can only warn and ignore the option if not recognized
  7030. # So say no if there are warnings
  7031. if test -s conftest.err; then
  7032. # Append any errors to the config.log.
  7033. cat conftest.err 1>&5
  7034. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7036. if diff conftest.exp conftest.er2 >/dev/null; then
  7037. lt_prog_compiler_static_works=yes
  7038. fi
  7039. else
  7040. lt_prog_compiler_static_works=yes
  7041. fi
  7042. fi
  7043. $rm conftest*
  7044. LDFLAGS="$save_LDFLAGS"
  7045. fi
  7046. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  7047. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  7048. if test x"$lt_prog_compiler_static_works" = xyes; then
  7049. :
  7050. else
  7051. lt_prog_compiler_static=
  7052. fi
  7053. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7054. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  7055. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7056. echo $ECHO_N "(cached) $ECHO_C" >&6
  7057. else
  7058. lt_cv_prog_compiler_c_o=no
  7059. $rm -r conftest 2>/dev/null
  7060. mkdir conftest
  7061. cd conftest
  7062. mkdir out
  7063. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7064. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7065. # Insert the option either (1) after the last *FLAGS variable, or
  7066. # (2) before a word containing "conftest.", or (3) at the end.
  7067. # Note that $ac_compile itself does not contain backslashes and begins
  7068. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7069. lt_compile=`echo "$ac_compile" | $SED \
  7070. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7071. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7072. -e 's:$: $lt_compiler_flag:'`
  7073. (eval echo "\"\$as_me:7883: $lt_compile\"" >&5)
  7074. (eval "$lt_compile" 2>out/conftest.err)
  7075. ac_status=$?
  7076. cat out/conftest.err >&5
  7077. echo "$as_me:7887: \$? = $ac_status" >&5
  7078. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7079. then
  7080. # The compiler can only warn and ignore the option if not recognized
  7081. # So say no if there are warnings
  7082. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7083. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7084. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7085. lt_cv_prog_compiler_c_o=yes
  7086. fi
  7087. fi
  7088. chmod u+w . 2>&5
  7089. $rm conftest*
  7090. # SGI C++ compiler will create directory out/ii_files/ for
  7091. # template instantiation
  7092. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7093. $rm out/* && rmdir out
  7094. cd ..
  7095. rmdir conftest
  7096. $rm conftest*
  7097. fi
  7098. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7099. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  7100. hard_links="nottested"
  7101. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7102. # do not overwrite the value of need_locks provided by the user
  7103. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7104. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  7105. hard_links=yes
  7106. $rm conftest*
  7107. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7108. touch conftest.a
  7109. ln conftest.a conftest.b 2>&5 || hard_links=no
  7110. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7111. { echo "$as_me:$LINENO: result: $hard_links" >&5
  7112. echo "${ECHO_T}$hard_links" >&6; }
  7113. if test "$hard_links" = no; then
  7114. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7115. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7116. need_locks=warn
  7117. fi
  7118. else
  7119. need_locks=no
  7120. fi
  7121. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7122. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  7123. runpath_var=
  7124. allow_undefined_flag=
  7125. enable_shared_with_static_runtimes=no
  7126. archive_cmds=
  7127. archive_expsym_cmds=
  7128. old_archive_From_new_cmds=
  7129. old_archive_from_expsyms_cmds=
  7130. export_dynamic_flag_spec=
  7131. whole_archive_flag_spec=
  7132. thread_safe_flag_spec=
  7133. hardcode_libdir_flag_spec=
  7134. hardcode_libdir_flag_spec_ld=
  7135. hardcode_libdir_separator=
  7136. hardcode_direct=no
  7137. hardcode_minus_L=no
  7138. hardcode_shlibpath_var=unsupported
  7139. link_all_deplibs=unknown
  7140. hardcode_automatic=no
  7141. module_cmds=
  7142. module_expsym_cmds=
  7143. always_export_symbols=no
  7144. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7145. # include_expsyms should be a list of space-separated symbols to be *always*
  7146. # included in the symbol list
  7147. include_expsyms=
  7148. # exclude_expsyms can be an extended regexp of symbols to exclude
  7149. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7150. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7151. # as well as any symbol that contains `d'.
  7152. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7153. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7154. # platforms (ab)use it in PIC code, but their linkers get confused if
  7155. # the symbol is explicitly referenced. Since portable code cannot
  7156. # rely on this symbol name, it's probably fine to never include it in
  7157. # preloaded symbol tables.
  7158. extract_expsyms_cmds=
  7159. # Just being paranoid about ensuring that cc_basename is set.
  7160. for cc_temp in $compiler""; do
  7161. case $cc_temp in
  7162. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7163. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7164. \-*) ;;
  7165. *) break;;
  7166. esac
  7167. done
  7168. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7169. case $host_os in
  7170. cygwin* | mingw* | pw32*)
  7171. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7172. # When not using gcc, we currently assume that we are using
  7173. # Microsoft Visual C++.
  7174. if test "$GCC" != yes; then
  7175. with_gnu_ld=no
  7176. fi
  7177. ;;
  7178. interix*)
  7179. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7180. with_gnu_ld=yes
  7181. ;;
  7182. openbsd*)
  7183. with_gnu_ld=no
  7184. ;;
  7185. esac
  7186. ld_shlibs=yes
  7187. if test "$with_gnu_ld" = yes; then
  7188. # If archive_cmds runs LD, not CC, wlarc should be empty
  7189. wlarc='${wl}'
  7190. # Set some defaults for GNU ld with shared library support. These
  7191. # are reset later if shared libraries are not supported. Putting them
  7192. # here allows them to be overridden if necessary.
  7193. runpath_var=LD_RUN_PATH
  7194. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7195. export_dynamic_flag_spec='${wl}--export-dynamic'
  7196. # ancient GNU ld didn't support --whole-archive et. al.
  7197. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7198. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7199. else
  7200. whole_archive_flag_spec=
  7201. fi
  7202. supports_anon_versioning=no
  7203. case `$LD -v 2>/dev/null` in
  7204. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7205. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7206. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7207. *\ 2.11.*) ;; # other 2.11 versions
  7208. *) supports_anon_versioning=yes ;;
  7209. esac
  7210. # See if GNU ld supports shared libraries.
  7211. case $host_os in
  7212. aix3* | aix4* | aix5*)
  7213. # On AIX/PPC, the GNU linker is very broken
  7214. if test "$host_cpu" != ia64; then
  7215. ld_shlibs=no
  7216. cat <<EOF 1>&2
  7217. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7218. *** to be unable to reliably create shared libraries on AIX.
  7219. *** Therefore, libtool is disabling shared libraries support. If you
  7220. *** really care for shared libraries, you may want to modify your PATH
  7221. *** so that a non-GNU linker is found, and then restart.
  7222. EOF
  7223. fi
  7224. ;;
  7225. amigaos*)
  7226. 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)'
  7227. hardcode_libdir_flag_spec='-L$libdir'
  7228. hardcode_minus_L=yes
  7229. # Samuel A. Falvo II <[email protected]> reports
  7230. # that the semantics of dynamic libraries on AmigaOS, at least up
  7231. # to version 4, is to share data among multiple programs linked
  7232. # with the same dynamic library. Since this doesn't match the
  7233. # behavior of shared libraries on other platforms, we can't use
  7234. # them.
  7235. ld_shlibs=no
  7236. ;;
  7237. beos*)
  7238. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7239. allow_undefined_flag=unsupported
  7240. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7241. # support --undefined. This deserves some investigation. FIXME
  7242. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7243. else
  7244. ld_shlibs=no
  7245. fi
  7246. ;;
  7247. cygwin* | mingw* | pw32*)
  7248. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7249. # as there is no search path for DLLs.
  7250. hardcode_libdir_flag_spec='-L$libdir'
  7251. allow_undefined_flag=unsupported
  7252. always_export_symbols=no
  7253. enable_shared_with_static_runtimes=yes
  7254. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7255. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7256. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7257. # If the export-symbols file already is a .def file (1st line
  7258. # is EXPORTS), use it as is; otherwise, prepend...
  7259. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7260. cp $export_symbols $output_objdir/$soname.def;
  7261. else
  7262. echo EXPORTS > $output_objdir/$soname.def;
  7263. cat $export_symbols >> $output_objdir/$soname.def;
  7264. fi~
  7265. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7266. else
  7267. ld_shlibs=no
  7268. fi
  7269. ;;
  7270. interix[3-9]*)
  7271. hardcode_direct=no
  7272. hardcode_shlibpath_var=no
  7273. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7274. export_dynamic_flag_spec='${wl}-E'
  7275. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7276. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7277. # default) and relocated if they conflict, which is a slow very memory
  7278. # consuming and fragmenting process. To avoid this, we pick a random,
  7279. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7280. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7281. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7282. 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'
  7283. ;;
  7284. gnu* | linux* | k*bsd*-gnu)
  7285. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7286. tmp_addflag=
  7287. case $cc_basename,$host_cpu in
  7288. pgcc*) # Portland Group C compiler
  7289. 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'
  7290. tmp_addflag=' $pic_flag'
  7291. ;;
  7292. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7293. 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'
  7294. tmp_addflag=' $pic_flag -Mnomain' ;;
  7295. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7296. tmp_addflag=' -i_dynamic' ;;
  7297. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7298. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7299. ifc* | ifort*) # Intel Fortran compiler
  7300. tmp_addflag=' -nofor_main' ;;
  7301. esac
  7302. case `$CC -V 2>&1 | sed 5q` in
  7303. *Sun\ C*) # Sun C 5.9
  7304. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7305. tmp_sharedflag='-G' ;;
  7306. *Sun\ F*) # Sun Fortran 8.3
  7307. tmp_sharedflag='-G' ;;
  7308. *)
  7309. tmp_sharedflag='-shared' ;;
  7310. esac
  7311. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7312. if test $supports_anon_versioning = yes; then
  7313. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7314. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7315. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7316. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7317. fi
  7318. else
  7319. ld_shlibs=no
  7320. fi
  7321. ;;
  7322. netbsd*)
  7323. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7324. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7325. wlarc=
  7326. else
  7327. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7328. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7329. fi
  7330. ;;
  7331. solaris*)
  7332. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7333. ld_shlibs=no
  7334. cat <<EOF 1>&2
  7335. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7336. *** create shared libraries on Solaris systems. Therefore, libtool
  7337. *** is disabling shared libraries support. We urge you to upgrade GNU
  7338. *** binutils to release 2.9.1 or newer. Another option is to modify
  7339. *** your PATH or compiler configuration so that the native linker is
  7340. *** used, and then restart.
  7341. EOF
  7342. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7343. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7344. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7345. else
  7346. ld_shlibs=no
  7347. fi
  7348. ;;
  7349. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7350. case `$LD -v 2>&1` in
  7351. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7352. ld_shlibs=no
  7353. cat <<_LT_EOF 1>&2
  7354. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7355. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7356. *** is disabling shared libraries support. We urge you to upgrade GNU
  7357. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7358. *** your PATH or compiler configuration so that the native linker is
  7359. *** used, and then restart.
  7360. _LT_EOF
  7361. ;;
  7362. *)
  7363. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7364. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7365. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7366. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7367. else
  7368. ld_shlibs=no
  7369. fi
  7370. ;;
  7371. esac
  7372. ;;
  7373. sunos4*)
  7374. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7375. wlarc=
  7376. hardcode_direct=yes
  7377. hardcode_shlibpath_var=no
  7378. ;;
  7379. *)
  7380. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7381. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7382. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7383. else
  7384. ld_shlibs=no
  7385. fi
  7386. ;;
  7387. esac
  7388. if test "$ld_shlibs" = no; then
  7389. runpath_var=
  7390. hardcode_libdir_flag_spec=
  7391. export_dynamic_flag_spec=
  7392. whole_archive_flag_spec=
  7393. fi
  7394. else
  7395. # PORTME fill in a description of your system's linker (not GNU ld)
  7396. case $host_os in
  7397. aix3*)
  7398. allow_undefined_flag=unsupported
  7399. always_export_symbols=yes
  7400. 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'
  7401. # Note: this linker hardcodes the directories in LIBPATH if there
  7402. # are no directories specified by -L.
  7403. hardcode_minus_L=yes
  7404. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7405. # Neither direct hardcoding nor static linking is supported with a
  7406. # broken collect2.
  7407. hardcode_direct=unsupported
  7408. fi
  7409. ;;
  7410. aix4* | aix5*)
  7411. if test "$host_cpu" = ia64; then
  7412. # On IA64, the linker does run time linking by default, so we don't
  7413. # have to do anything special.
  7414. aix_use_runtimelinking=no
  7415. exp_sym_flag='-Bexport'
  7416. no_entry_flag=""
  7417. else
  7418. # If we're using GNU nm, then we don't want the "-C" option.
  7419. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7420. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7421. 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'
  7422. else
  7423. 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'
  7424. fi
  7425. aix_use_runtimelinking=no
  7426. # Test if we are trying to use run time linking or normal
  7427. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7428. # need to do runtime linking.
  7429. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7430. for ld_flag in $LDFLAGS; do
  7431. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7432. aix_use_runtimelinking=yes
  7433. break
  7434. fi
  7435. done
  7436. ;;
  7437. esac
  7438. exp_sym_flag='-bexport'
  7439. no_entry_flag='-bnoentry'
  7440. fi
  7441. # When large executables or shared objects are built, AIX ld can
  7442. # have problems creating the table of contents. If linking a library
  7443. # or program results in "error TOC overflow" add -mminimal-toc to
  7444. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7445. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7446. archive_cmds=''
  7447. hardcode_direct=yes
  7448. hardcode_libdir_separator=':'
  7449. link_all_deplibs=yes
  7450. if test "$GCC" = yes; then
  7451. case $host_os in aix4.[012]|aix4.[012].*)
  7452. # We only want to do this on AIX 4.2 and lower, the check
  7453. # below for broken collect2 doesn't work under 4.3+
  7454. collect2name=`${CC} -print-prog-name=collect2`
  7455. if test -f "$collect2name" && \
  7456. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7457. then
  7458. # We have reworked collect2
  7459. :
  7460. else
  7461. # We have old collect2
  7462. hardcode_direct=unsupported
  7463. # It fails to find uninstalled libraries when the uninstalled
  7464. # path is not listed in the libpath. Setting hardcode_minus_L
  7465. # to unsupported forces relinking
  7466. hardcode_minus_L=yes
  7467. hardcode_libdir_flag_spec='-L$libdir'
  7468. hardcode_libdir_separator=
  7469. fi
  7470. ;;
  7471. esac
  7472. shared_flag='-shared'
  7473. if test "$aix_use_runtimelinking" = yes; then
  7474. shared_flag="$shared_flag "'${wl}-G'
  7475. fi
  7476. else
  7477. # not using gcc
  7478. if test "$host_cpu" = ia64; then
  7479. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7480. # chokes on -Wl,-G. The following line is correct:
  7481. shared_flag='-G'
  7482. else
  7483. if test "$aix_use_runtimelinking" = yes; then
  7484. shared_flag='${wl}-G'
  7485. else
  7486. shared_flag='${wl}-bM:SRE'
  7487. fi
  7488. fi
  7489. fi
  7490. # It seems that -bexpall does not export symbols beginning with
  7491. # underscore (_), so it is better to generate a list of symbols to export.
  7492. always_export_symbols=yes
  7493. if test "$aix_use_runtimelinking" = yes; then
  7494. # Warning - without using the other runtime loading flags (-brtl),
  7495. # -berok will link without error, but may produce a broken library.
  7496. allow_undefined_flag='-berok'
  7497. # Determine the default libpath from the value encoded in an empty executable.
  7498. cat >conftest.$ac_ext <<_ACEOF
  7499. /* confdefs.h. */
  7500. _ACEOF
  7501. cat confdefs.h >>conftest.$ac_ext
  7502. cat >>conftest.$ac_ext <<_ACEOF
  7503. /* end confdefs.h. */
  7504. int
  7505. main ()
  7506. {
  7507. ;
  7508. return 0;
  7509. }
  7510. _ACEOF
  7511. rm -f conftest.$ac_objext conftest$ac_exeext
  7512. if { (ac_try="$ac_link"
  7513. case "(($ac_try" in
  7514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7515. *) ac_try_echo=$ac_try;;
  7516. esac
  7517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7518. (eval "$ac_link") 2>conftest.er1
  7519. ac_status=$?
  7520. grep -v '^ *+' conftest.er1 >conftest.err
  7521. rm -f conftest.er1
  7522. cat conftest.err >&5
  7523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7524. (exit $ac_status); } && {
  7525. test -z "$ac_c_werror_flag" ||
  7526. test ! -s conftest.err
  7527. } && test -s conftest$ac_exeext &&
  7528. $as_test_x conftest$ac_exeext; then
  7529. lt_aix_libpath_sed='
  7530. /Import File Strings/,/^$/ {
  7531. /^0/ {
  7532. s/^0 *\(.*\)$/\1/
  7533. p
  7534. }
  7535. }'
  7536. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7537. # Check for a 64-bit object if we didn't find anything.
  7538. if test -z "$aix_libpath"; then
  7539. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7540. fi
  7541. else
  7542. echo "$as_me: failed program was:" >&5
  7543. sed 's/^/| /' conftest.$ac_ext >&5
  7544. fi
  7545. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7546. conftest$ac_exeext conftest.$ac_ext
  7547. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7548. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7549. 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"
  7550. else
  7551. if test "$host_cpu" = ia64; then
  7552. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7553. allow_undefined_flag="-z nodefs"
  7554. 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"
  7555. else
  7556. # Determine the default libpath from the value encoded in an empty executable.
  7557. cat >conftest.$ac_ext <<_ACEOF
  7558. /* confdefs.h. */
  7559. _ACEOF
  7560. cat confdefs.h >>conftest.$ac_ext
  7561. cat >>conftest.$ac_ext <<_ACEOF
  7562. /* end confdefs.h. */
  7563. int
  7564. main ()
  7565. {
  7566. ;
  7567. return 0;
  7568. }
  7569. _ACEOF
  7570. rm -f conftest.$ac_objext conftest$ac_exeext
  7571. if { (ac_try="$ac_link"
  7572. case "(($ac_try" in
  7573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7574. *) ac_try_echo=$ac_try;;
  7575. esac
  7576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7577. (eval "$ac_link") 2>conftest.er1
  7578. ac_status=$?
  7579. grep -v '^ *+' conftest.er1 >conftest.err
  7580. rm -f conftest.er1
  7581. cat conftest.err >&5
  7582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7583. (exit $ac_status); } && {
  7584. test -z "$ac_c_werror_flag" ||
  7585. test ! -s conftest.err
  7586. } && test -s conftest$ac_exeext &&
  7587. $as_test_x conftest$ac_exeext; then
  7588. lt_aix_libpath_sed='
  7589. /Import File Strings/,/^$/ {
  7590. /^0/ {
  7591. s/^0 *\(.*\)$/\1/
  7592. p
  7593. }
  7594. }'
  7595. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7596. # Check for a 64-bit object if we didn't find anything.
  7597. if test -z "$aix_libpath"; then
  7598. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7599. fi
  7600. else
  7601. echo "$as_me: failed program was:" >&5
  7602. sed 's/^/| /' conftest.$ac_ext >&5
  7603. fi
  7604. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7605. conftest$ac_exeext conftest.$ac_ext
  7606. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7607. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7608. # Warning - without using the other run time loading flags,
  7609. # -berok will link without error, but may produce a broken library.
  7610. no_undefined_flag=' ${wl}-bernotok'
  7611. allow_undefined_flag=' ${wl}-berok'
  7612. # Exported symbols can be pulled into shared objects from archives
  7613. whole_archive_flag_spec='$convenience'
  7614. archive_cmds_need_lc=yes
  7615. # This is similar to how AIX traditionally builds its shared libraries.
  7616. 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'
  7617. fi
  7618. fi
  7619. ;;
  7620. amigaos*)
  7621. 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)'
  7622. hardcode_libdir_flag_spec='-L$libdir'
  7623. hardcode_minus_L=yes
  7624. # see comment about different semantics on the GNU ld section
  7625. ld_shlibs=no
  7626. ;;
  7627. bsdi[45]*)
  7628. export_dynamic_flag_spec=-rdynamic
  7629. ;;
  7630. cygwin* | mingw* | pw32*)
  7631. # When not using gcc, we currently assume that we are using
  7632. # Microsoft Visual C++.
  7633. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7634. # no search path for DLLs.
  7635. hardcode_libdir_flag_spec=' '
  7636. allow_undefined_flag=unsupported
  7637. # Tell ltmain to make .lib files, not .a files.
  7638. libext=lib
  7639. # Tell ltmain to make .dll files, not .so files.
  7640. shrext_cmds=".dll"
  7641. # FIXME: Setting linknames here is a bad hack.
  7642. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7643. # The linker will automatically build a .lib file if we build a DLL.
  7644. old_archive_From_new_cmds='true'
  7645. # FIXME: Should let the user specify the lib program.
  7646. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7647. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7648. enable_shared_with_static_runtimes=yes
  7649. ;;
  7650. darwin* | rhapsody*)
  7651. case $host_os in
  7652. rhapsody* | darwin1.[012])
  7653. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7654. ;;
  7655. *) # Darwin 1.3 on
  7656. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7657. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7658. else
  7659. case ${MACOSX_DEPLOYMENT_TARGET} in
  7660. 10.[012])
  7661. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7662. ;;
  7663. 10.*)
  7664. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7665. ;;
  7666. esac
  7667. fi
  7668. ;;
  7669. esac
  7670. archive_cmds_need_lc=no
  7671. hardcode_direct=no
  7672. hardcode_automatic=yes
  7673. hardcode_shlibpath_var=unsupported
  7674. whole_archive_flag_spec=''
  7675. link_all_deplibs=yes
  7676. if test "$GCC" = yes ; then
  7677. output_verbose_link_cmd='echo'
  7678. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7679. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7680. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7681. 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}'
  7682. 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}'
  7683. else
  7684. case $cc_basename in
  7685. xlc*)
  7686. output_verbose_link_cmd='echo'
  7687. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7688. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7689. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7690. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7691. 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}'
  7692. ;;
  7693. *)
  7694. ld_shlibs=no
  7695. ;;
  7696. esac
  7697. fi
  7698. ;;
  7699. dgux*)
  7700. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7701. hardcode_libdir_flag_spec='-L$libdir'
  7702. hardcode_shlibpath_var=no
  7703. ;;
  7704. freebsd1*)
  7705. ld_shlibs=no
  7706. ;;
  7707. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7708. # support. Future versions do this automatically, but an explicit c++rt0.o
  7709. # does not break anything, and helps significantly (at the cost of a little
  7710. # extra space).
  7711. freebsd2.2*)
  7712. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7713. hardcode_libdir_flag_spec='-R$libdir'
  7714. hardcode_direct=yes
  7715. hardcode_shlibpath_var=no
  7716. ;;
  7717. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7718. freebsd2*)
  7719. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7720. hardcode_direct=yes
  7721. hardcode_minus_L=yes
  7722. hardcode_shlibpath_var=no
  7723. ;;
  7724. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7725. freebsd* | dragonfly*)
  7726. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7727. hardcode_libdir_flag_spec='-R$libdir'
  7728. hardcode_direct=yes
  7729. hardcode_shlibpath_var=no
  7730. ;;
  7731. hpux9*)
  7732. if test "$GCC" = yes; then
  7733. 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'
  7734. else
  7735. 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'
  7736. fi
  7737. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7738. hardcode_libdir_separator=:
  7739. hardcode_direct=yes
  7740. # hardcode_minus_L: Not really in the search PATH,
  7741. # but as the default location of the library.
  7742. hardcode_minus_L=yes
  7743. export_dynamic_flag_spec='${wl}-E'
  7744. ;;
  7745. hpux10*)
  7746. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7747. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7748. else
  7749. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7750. fi
  7751. if test "$with_gnu_ld" = no; then
  7752. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7753. hardcode_libdir_separator=:
  7754. hardcode_direct=yes
  7755. export_dynamic_flag_spec='${wl}-E'
  7756. # hardcode_minus_L: Not really in the search PATH,
  7757. # but as the default location of the library.
  7758. hardcode_minus_L=yes
  7759. fi
  7760. ;;
  7761. hpux11*)
  7762. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7763. case $host_cpu in
  7764. hppa*64*)
  7765. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7766. ;;
  7767. ia64*)
  7768. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7769. ;;
  7770. *)
  7771. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7772. ;;
  7773. esac
  7774. else
  7775. case $host_cpu in
  7776. hppa*64*)
  7777. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7778. ;;
  7779. ia64*)
  7780. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7781. ;;
  7782. *)
  7783. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7784. ;;
  7785. esac
  7786. fi
  7787. if test "$with_gnu_ld" = no; then
  7788. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7789. hardcode_libdir_separator=:
  7790. case $host_cpu in
  7791. hppa*64*|ia64*)
  7792. hardcode_libdir_flag_spec_ld='+b $libdir'
  7793. hardcode_direct=no
  7794. hardcode_shlibpath_var=no
  7795. ;;
  7796. *)
  7797. hardcode_direct=yes
  7798. export_dynamic_flag_spec='${wl}-E'
  7799. # hardcode_minus_L: Not really in the search PATH,
  7800. # but as the default location of the library.
  7801. hardcode_minus_L=yes
  7802. ;;
  7803. esac
  7804. fi
  7805. ;;
  7806. irix5* | irix6* | nonstopux*)
  7807. if test "$GCC" = yes; then
  7808. 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'
  7809. else
  7810. 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'
  7811. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7812. fi
  7813. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7814. hardcode_libdir_separator=:
  7815. link_all_deplibs=yes
  7816. ;;
  7817. netbsd*)
  7818. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7819. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7820. else
  7821. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7822. fi
  7823. hardcode_libdir_flag_spec='-R$libdir'
  7824. hardcode_direct=yes
  7825. hardcode_shlibpath_var=no
  7826. ;;
  7827. newsos6)
  7828. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7829. hardcode_direct=yes
  7830. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7831. hardcode_libdir_separator=:
  7832. hardcode_shlibpath_var=no
  7833. ;;
  7834. openbsd*)
  7835. if test -f /usr/libexec/ld.so; then
  7836. hardcode_direct=yes
  7837. hardcode_shlibpath_var=no
  7838. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7839. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7840. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7841. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7842. export_dynamic_flag_spec='${wl}-E'
  7843. else
  7844. case $host_os in
  7845. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7846. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7847. hardcode_libdir_flag_spec='-R$libdir'
  7848. ;;
  7849. *)
  7850. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7851. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7852. ;;
  7853. esac
  7854. fi
  7855. else
  7856. ld_shlibs=no
  7857. fi
  7858. ;;
  7859. os2*)
  7860. hardcode_libdir_flag_spec='-L$libdir'
  7861. hardcode_minus_L=yes
  7862. allow_undefined_flag=unsupported
  7863. 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'
  7864. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7865. ;;
  7866. osf3*)
  7867. if test "$GCC" = yes; then
  7868. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7869. 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'
  7870. else
  7871. allow_undefined_flag=' -expect_unresolved \*'
  7872. 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'
  7873. fi
  7874. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7875. hardcode_libdir_separator=:
  7876. ;;
  7877. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7878. if test "$GCC" = yes; then
  7879. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7880. 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'
  7881. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7882. else
  7883. allow_undefined_flag=' -expect_unresolved \*'
  7884. 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'
  7885. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7886. $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'
  7887. # Both c and cxx compiler support -rpath directly
  7888. hardcode_libdir_flag_spec='-rpath $libdir'
  7889. fi
  7890. hardcode_libdir_separator=:
  7891. ;;
  7892. solaris*)
  7893. no_undefined_flag=' -z text'
  7894. if test "$GCC" = yes; then
  7895. wlarc='${wl}'
  7896. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7897. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7898. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7899. else
  7900. wlarc=''
  7901. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7902. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7903. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7904. fi
  7905. hardcode_libdir_flag_spec='-R$libdir'
  7906. hardcode_shlibpath_var=no
  7907. case $host_os in
  7908. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7909. *)
  7910. # The compiler driver will combine and reorder linker options,
  7911. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7912. # but is careful enough not to reorder.
  7913. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7914. if test "$GCC" = yes; then
  7915. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7916. else
  7917. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7918. fi
  7919. ;;
  7920. esac
  7921. link_all_deplibs=yes
  7922. ;;
  7923. sunos4*)
  7924. if test "x$host_vendor" = xsequent; then
  7925. # Use $CC to link under sequent, because it throws in some extra .o
  7926. # files that make .init and .fini sections work.
  7927. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7928. else
  7929. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7930. fi
  7931. hardcode_libdir_flag_spec='-L$libdir'
  7932. hardcode_direct=yes
  7933. hardcode_minus_L=yes
  7934. hardcode_shlibpath_var=no
  7935. ;;
  7936. sysv4)
  7937. case $host_vendor in
  7938. sni)
  7939. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7940. hardcode_direct=yes # is this really true???
  7941. ;;
  7942. siemens)
  7943. ## LD is ld it makes a PLAMLIB
  7944. ## CC just makes a GrossModule.
  7945. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7946. reload_cmds='$CC -r -o $output$reload_objs'
  7947. hardcode_direct=no
  7948. ;;
  7949. motorola)
  7950. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7951. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7952. ;;
  7953. esac
  7954. runpath_var='LD_RUN_PATH'
  7955. hardcode_shlibpath_var=no
  7956. ;;
  7957. sysv4.3*)
  7958. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7959. hardcode_shlibpath_var=no
  7960. export_dynamic_flag_spec='-Bexport'
  7961. ;;
  7962. sysv4*MP*)
  7963. if test -d /usr/nec; then
  7964. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7965. hardcode_shlibpath_var=no
  7966. runpath_var=LD_RUN_PATH
  7967. hardcode_runpath_var=yes
  7968. ld_shlibs=yes
  7969. fi
  7970. ;;
  7971. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7972. no_undefined_flag='${wl}-z,text'
  7973. archive_cmds_need_lc=no
  7974. hardcode_shlibpath_var=no
  7975. runpath_var='LD_RUN_PATH'
  7976. if test "$GCC" = yes; then
  7977. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7978. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7979. else
  7980. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7981. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7982. fi
  7983. ;;
  7984. sysv5* | sco3.2v5* | sco5v6*)
  7985. # Note: We can NOT use -z defs as we might desire, because we do not
  7986. # link with -lc, and that would cause any symbols used from libc to
  7987. # always be unresolved, which means just about no library would
  7988. # ever link correctly. If we're not using GNU ld we use -z text
  7989. # though, which does catch some bad symbols but isn't as heavy-handed
  7990. # as -z defs.
  7991. no_undefined_flag='${wl}-z,text'
  7992. allow_undefined_flag='${wl}-z,nodefs'
  7993. archive_cmds_need_lc=no
  7994. hardcode_shlibpath_var=no
  7995. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7996. hardcode_libdir_separator=':'
  7997. link_all_deplibs=yes
  7998. export_dynamic_flag_spec='${wl}-Bexport'
  7999. runpath_var='LD_RUN_PATH'
  8000. if test "$GCC" = yes; then
  8001. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8002. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8003. else
  8004. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8005. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8006. fi
  8007. ;;
  8008. uts4*)
  8009. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8010. hardcode_libdir_flag_spec='-L$libdir'
  8011. hardcode_shlibpath_var=no
  8012. ;;
  8013. *)
  8014. ld_shlibs=no
  8015. ;;
  8016. esac
  8017. fi
  8018. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8019. echo "${ECHO_T}$ld_shlibs" >&6; }
  8020. test "$ld_shlibs" = no && can_build_shared=no
  8021. #
  8022. # Do we need to explicitly link libc?
  8023. #
  8024. case "x$archive_cmds_need_lc" in
  8025. x|xyes)
  8026. # Assume -lc should be added
  8027. archive_cmds_need_lc=yes
  8028. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8029. case $archive_cmds in
  8030. *'~'*)
  8031. # FIXME: we may have to deal with multi-command sequences.
  8032. ;;
  8033. '$CC '*)
  8034. # Test whether the compiler implicitly links with -lc since on some
  8035. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8036. # to ld, don't add -lc before -lgcc.
  8037. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8038. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  8039. $rm conftest*
  8040. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8041. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8042. (eval $ac_compile) 2>&5
  8043. ac_status=$?
  8044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8045. (exit $ac_status); } 2>conftest.err; then
  8046. soname=conftest
  8047. lib=conftest
  8048. libobjs=conftest.$ac_objext
  8049. deplibs=
  8050. wl=$lt_prog_compiler_wl
  8051. pic_flag=$lt_prog_compiler_pic
  8052. compiler_flags=-v
  8053. linker_flags=-v
  8054. verstring=
  8055. output_objdir=.
  8056. libname=conftest
  8057. lt_save_allow_undefined_flag=$allow_undefined_flag
  8058. allow_undefined_flag=
  8059. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8060. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8061. ac_status=$?
  8062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8063. (exit $ac_status); }
  8064. then
  8065. archive_cmds_need_lc=no
  8066. else
  8067. archive_cmds_need_lc=yes
  8068. fi
  8069. allow_undefined_flag=$lt_save_allow_undefined_flag
  8070. else
  8071. cat conftest.err 1>&5
  8072. fi
  8073. $rm conftest*
  8074. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8075. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  8076. ;;
  8077. esac
  8078. fi
  8079. ;;
  8080. esac
  8081. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8082. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8083. library_names_spec=
  8084. libname_spec='lib$name'
  8085. soname_spec=
  8086. shrext_cmds=".so"
  8087. postinstall_cmds=
  8088. postuninstall_cmds=
  8089. finish_cmds=
  8090. finish_eval=
  8091. shlibpath_var=
  8092. shlibpath_overrides_runpath=unknown
  8093. version_type=none
  8094. dynamic_linker="$host_os ld.so"
  8095. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8096. if test "$GCC" = yes; then
  8097. case $host_os in
  8098. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8099. *) lt_awk_arg="/^libraries:/" ;;
  8100. esac
  8101. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8102. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  8103. # if the path contains ";" then we assume it to be the separator
  8104. # otherwise default to the standard path separator (i.e. ":") - it is
  8105. # assumed that no part of a normal pathname contains ";" but that should
  8106. # okay in the real world where ";" in dirpaths is itself problematic.
  8107. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8108. else
  8109. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8110. fi
  8111. # Ok, now we have the path, separated by spaces, we can step through it
  8112. # and add multilib dir if necessary.
  8113. lt_tmp_lt_search_path_spec=
  8114. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8115. for lt_sys_path in $lt_search_path_spec; do
  8116. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8117. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8118. else
  8119. test -d "$lt_sys_path" && \
  8120. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8121. fi
  8122. done
  8123. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  8124. BEGIN {RS=" "; FS="/|\n";} {
  8125. lt_foo="";
  8126. lt_count=0;
  8127. for (lt_i = NF; lt_i > 0; lt_i--) {
  8128. if ($lt_i != "" && $lt_i != ".") {
  8129. if ($lt_i == "..") {
  8130. lt_count++;
  8131. } else {
  8132. if (lt_count == 0) {
  8133. lt_foo="/" $lt_i lt_foo;
  8134. } else {
  8135. lt_count--;
  8136. }
  8137. }
  8138. }
  8139. }
  8140. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8141. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8142. }'`
  8143. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  8144. else
  8145. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8146. fi
  8147. need_lib_prefix=unknown
  8148. hardcode_into_libs=no
  8149. # when you set need_version to no, make sure it does not cause -set_version
  8150. # flags to be left without arguments
  8151. need_version=unknown
  8152. case $host_os in
  8153. aix3*)
  8154. version_type=linux
  8155. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8156. shlibpath_var=LIBPATH
  8157. # AIX 3 has no versioning support, so we append a major version to the name.
  8158. soname_spec='${libname}${release}${shared_ext}$major'
  8159. ;;
  8160. aix4* | aix5*)
  8161. version_type=linux
  8162. need_lib_prefix=no
  8163. need_version=no
  8164. hardcode_into_libs=yes
  8165. if test "$host_cpu" = ia64; then
  8166. # AIX 5 supports IA64
  8167. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8168. shlibpath_var=LD_LIBRARY_PATH
  8169. else
  8170. # With GCC up to 2.95.x, collect2 would create an import file
  8171. # for dependence libraries. The import file would start with
  8172. # the line `#! .'. This would cause the generated library to
  8173. # depend on `.', always an invalid library. This was fixed in
  8174. # development snapshots of GCC prior to 3.0.
  8175. case $host_os in
  8176. aix4 | aix4.[01] | aix4.[01].*)
  8177. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8178. echo ' yes '
  8179. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8180. :
  8181. else
  8182. can_build_shared=no
  8183. fi
  8184. ;;
  8185. esac
  8186. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8187. # soname into executable. Probably we can add versioning support to
  8188. # collect2, so additional links can be useful in future.
  8189. if test "$aix_use_runtimelinking" = yes; then
  8190. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8191. # instead of lib<name>.a to let people know that these are not
  8192. # typical AIX shared libraries.
  8193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8194. else
  8195. # We preserve .a as extension for shared libraries through AIX4.2
  8196. # and later when we are not doing run time linking.
  8197. library_names_spec='${libname}${release}.a $libname.a'
  8198. soname_spec='${libname}${release}${shared_ext}$major'
  8199. fi
  8200. shlibpath_var=LIBPATH
  8201. fi
  8202. ;;
  8203. amigaos*)
  8204. library_names_spec='$libname.ixlibrary $libname.a'
  8205. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8206. 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'
  8207. ;;
  8208. beos*)
  8209. library_names_spec='${libname}${shared_ext}'
  8210. dynamic_linker="$host_os ld.so"
  8211. shlibpath_var=LIBRARY_PATH
  8212. ;;
  8213. bsdi[45]*)
  8214. version_type=linux
  8215. need_version=no
  8216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8217. soname_spec='${libname}${release}${shared_ext}$major'
  8218. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8219. shlibpath_var=LD_LIBRARY_PATH
  8220. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8221. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8222. # the default ld.so.conf also contains /usr/contrib/lib and
  8223. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8224. # libtool to hard-code these into programs
  8225. ;;
  8226. cygwin* | mingw* | pw32*)
  8227. version_type=windows
  8228. shrext_cmds=".dll"
  8229. need_version=no
  8230. need_lib_prefix=no
  8231. case $GCC,$host_os in
  8232. yes,cygwin* | yes,mingw* | yes,pw32*)
  8233. library_names_spec='$libname.dll.a'
  8234. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8235. postinstall_cmds='base_file=`basename \${file}`~
  8236. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8237. dldir=$destdir/`dirname \$dlpath`~
  8238. test -d \$dldir || mkdir -p \$dldir~
  8239. $install_prog $dir/$dlname \$dldir/$dlname~
  8240. chmod a+x \$dldir/$dlname'
  8241. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8242. dlpath=$dir/\$dldll~
  8243. $rm \$dlpath'
  8244. shlibpath_overrides_runpath=yes
  8245. case $host_os in
  8246. cygwin*)
  8247. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8248. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8249. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8250. ;;
  8251. mingw*)
  8252. # MinGW DLLs use traditional 'lib' prefix
  8253. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8254. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8255. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8256. # It is most probably a Windows format PATH printed by
  8257. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8258. # path with ; separators, and with drive letters. We can handle the
  8259. # drive letters (cygwin fileutils understands them), so leave them,
  8260. # especially as we might pass files found there to a mingw objdump,
  8261. # which wouldn't understand a cygwinified path. Ahh.
  8262. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8263. else
  8264. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8265. fi
  8266. ;;
  8267. pw32*)
  8268. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8269. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8270. ;;
  8271. esac
  8272. ;;
  8273. *)
  8274. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8275. ;;
  8276. esac
  8277. dynamic_linker='Win32 ld.exe'
  8278. # FIXME: first we should search . and the directory the executable is in
  8279. shlibpath_var=PATH
  8280. ;;
  8281. darwin* | rhapsody*)
  8282. dynamic_linker="$host_os dyld"
  8283. version_type=darwin
  8284. need_lib_prefix=no
  8285. need_version=no
  8286. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8287. soname_spec='${libname}${release}${major}$shared_ext'
  8288. shlibpath_overrides_runpath=yes
  8289. shlibpath_var=DYLD_LIBRARY_PATH
  8290. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8291. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8292. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8293. ;;
  8294. dgux*)
  8295. version_type=linux
  8296. need_lib_prefix=no
  8297. need_version=no
  8298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8299. soname_spec='${libname}${release}${shared_ext}$major'
  8300. shlibpath_var=LD_LIBRARY_PATH
  8301. ;;
  8302. freebsd1*)
  8303. dynamic_linker=no
  8304. ;;
  8305. freebsd* | dragonfly*)
  8306. # DragonFly does not have aout. When/if they implement a new
  8307. # versioning mechanism, adjust this.
  8308. if test -x /usr/bin/objformat; then
  8309. objformat=`/usr/bin/objformat`
  8310. else
  8311. case $host_os in
  8312. freebsd[123]*) objformat=aout ;;
  8313. *) objformat=elf ;;
  8314. esac
  8315. fi
  8316. version_type=freebsd-$objformat
  8317. case $version_type in
  8318. freebsd-elf*)
  8319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8320. need_version=no
  8321. need_lib_prefix=no
  8322. ;;
  8323. freebsd-*)
  8324. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8325. need_version=yes
  8326. ;;
  8327. esac
  8328. shlibpath_var=LD_LIBRARY_PATH
  8329. case $host_os in
  8330. freebsd2*)
  8331. shlibpath_overrides_runpath=yes
  8332. ;;
  8333. freebsd3.[01]* | freebsdelf3.[01]*)
  8334. shlibpath_overrides_runpath=yes
  8335. hardcode_into_libs=yes
  8336. ;;
  8337. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8338. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8339. shlibpath_overrides_runpath=no
  8340. hardcode_into_libs=yes
  8341. ;;
  8342. *) # from 4.6 on, and DragonFly
  8343. shlibpath_overrides_runpath=yes
  8344. hardcode_into_libs=yes
  8345. ;;
  8346. esac
  8347. ;;
  8348. gnu*)
  8349. version_type=linux
  8350. need_lib_prefix=no
  8351. need_version=no
  8352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8353. soname_spec='${libname}${release}${shared_ext}$major'
  8354. shlibpath_var=LD_LIBRARY_PATH
  8355. hardcode_into_libs=yes
  8356. ;;
  8357. hpux9* | hpux10* | hpux11*)
  8358. # Give a soname corresponding to the major version so that dld.sl refuses to
  8359. # link against other versions.
  8360. version_type=sunos
  8361. need_lib_prefix=no
  8362. need_version=no
  8363. case $host_cpu in
  8364. ia64*)
  8365. shrext_cmds='.so'
  8366. hardcode_into_libs=yes
  8367. dynamic_linker="$host_os dld.so"
  8368. shlibpath_var=LD_LIBRARY_PATH
  8369. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8371. soname_spec='${libname}${release}${shared_ext}$major'
  8372. if test "X$HPUX_IA64_MODE" = X32; then
  8373. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8374. else
  8375. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8376. fi
  8377. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8378. ;;
  8379. hppa*64*)
  8380. shrext_cmds='.sl'
  8381. hardcode_into_libs=yes
  8382. dynamic_linker="$host_os dld.sl"
  8383. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8384. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8386. soname_spec='${libname}${release}${shared_ext}$major'
  8387. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8388. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8389. ;;
  8390. *)
  8391. shrext_cmds='.sl'
  8392. dynamic_linker="$host_os dld.sl"
  8393. shlibpath_var=SHLIB_PATH
  8394. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8396. soname_spec='${libname}${release}${shared_ext}$major'
  8397. ;;
  8398. esac
  8399. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8400. postinstall_cmds='chmod 555 $lib'
  8401. ;;
  8402. interix[3-9]*)
  8403. version_type=linux
  8404. need_lib_prefix=no
  8405. need_version=no
  8406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8407. soname_spec='${libname}${release}${shared_ext}$major'
  8408. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8409. shlibpath_var=LD_LIBRARY_PATH
  8410. shlibpath_overrides_runpath=no
  8411. hardcode_into_libs=yes
  8412. ;;
  8413. irix5* | irix6* | nonstopux*)
  8414. case $host_os in
  8415. nonstopux*) version_type=nonstopux ;;
  8416. *)
  8417. if test "$lt_cv_prog_gnu_ld" = yes; then
  8418. version_type=linux
  8419. else
  8420. version_type=irix
  8421. fi ;;
  8422. esac
  8423. need_lib_prefix=no
  8424. need_version=no
  8425. soname_spec='${libname}${release}${shared_ext}$major'
  8426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8427. case $host_os in
  8428. irix5* | nonstopux*)
  8429. libsuff= shlibsuff=
  8430. ;;
  8431. *)
  8432. case $LD in # libtool.m4 will add one of these switches to LD
  8433. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8434. libsuff= shlibsuff= libmagic=32-bit;;
  8435. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8436. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8437. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8438. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8439. *) libsuff= shlibsuff= libmagic=never-match;;
  8440. esac
  8441. ;;
  8442. esac
  8443. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8444. shlibpath_overrides_runpath=no
  8445. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8446. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8447. hardcode_into_libs=yes
  8448. ;;
  8449. # No shared lib support for Linux oldld, aout, or coff.
  8450. linux*oldld* | linux*aout* | linux*coff*)
  8451. dynamic_linker=no
  8452. ;;
  8453. # This must be Linux ELF.
  8454. linux* | k*bsd*-gnu)
  8455. version_type=linux
  8456. need_lib_prefix=no
  8457. need_version=no
  8458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8459. soname_spec='${libname}${release}${shared_ext}$major'
  8460. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8461. shlibpath_var=LD_LIBRARY_PATH
  8462. shlibpath_overrides_runpath=no
  8463. # This implies no fast_install, which is unacceptable.
  8464. # Some rework will be needed to allow for fast_install
  8465. # before this can be enabled.
  8466. hardcode_into_libs=yes
  8467. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8468. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8469. # Append ld.so.conf contents to the search path
  8470. if test -f /etc/ld.so.conf; then
  8471. 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8472. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  8473. fi
  8474. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8475. # powerpc, because MkLinux only supported shared libraries with the
  8476. # GNU dynamic linker. Since this was broken with cross compilers,
  8477. # most powerpc-linux boxes support dynamic linking these days and
  8478. # people can always --disable-shared, the test was removed, and we
  8479. # assume the GNU/Linux dynamic linker is in use.
  8480. dynamic_linker='GNU/Linux ld.so'
  8481. ;;
  8482. netbsd*)
  8483. version_type=sunos
  8484. need_lib_prefix=no
  8485. need_version=no
  8486. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8488. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8489. dynamic_linker='NetBSD (a.out) ld.so'
  8490. else
  8491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8492. soname_spec='${libname}${release}${shared_ext}$major'
  8493. dynamic_linker='NetBSD ld.elf_so'
  8494. fi
  8495. shlibpath_var=LD_LIBRARY_PATH
  8496. shlibpath_overrides_runpath=yes
  8497. hardcode_into_libs=yes
  8498. ;;
  8499. newsos6)
  8500. version_type=linux
  8501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8502. shlibpath_var=LD_LIBRARY_PATH
  8503. shlibpath_overrides_runpath=yes
  8504. ;;
  8505. nto-qnx*)
  8506. version_type=linux
  8507. need_lib_prefix=no
  8508. need_version=no
  8509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8510. soname_spec='${libname}${release}${shared_ext}$major'
  8511. shlibpath_var=LD_LIBRARY_PATH
  8512. shlibpath_overrides_runpath=yes
  8513. ;;
  8514. openbsd*)
  8515. version_type=sunos
  8516. sys_lib_dlsearch_path_spec="/usr/lib"
  8517. need_lib_prefix=no
  8518. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8519. case $host_os in
  8520. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8521. *) need_version=no ;;
  8522. esac
  8523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8524. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8525. shlibpath_var=LD_LIBRARY_PATH
  8526. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8527. case $host_os in
  8528. openbsd2.[89] | openbsd2.[89].*)
  8529. shlibpath_overrides_runpath=no
  8530. ;;
  8531. *)
  8532. shlibpath_overrides_runpath=yes
  8533. ;;
  8534. esac
  8535. else
  8536. shlibpath_overrides_runpath=yes
  8537. fi
  8538. ;;
  8539. os2*)
  8540. libname_spec='$name'
  8541. shrext_cmds=".dll"
  8542. need_lib_prefix=no
  8543. library_names_spec='$libname${shared_ext} $libname.a'
  8544. dynamic_linker='OS/2 ld.exe'
  8545. shlibpath_var=LIBPATH
  8546. ;;
  8547. osf3* | osf4* | osf5*)
  8548. version_type=osf
  8549. need_lib_prefix=no
  8550. need_version=no
  8551. soname_spec='${libname}${release}${shared_ext}$major'
  8552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8553. shlibpath_var=LD_LIBRARY_PATH
  8554. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8555. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8556. ;;
  8557. rdos*)
  8558. dynamic_linker=no
  8559. ;;
  8560. solaris*)
  8561. version_type=linux
  8562. need_lib_prefix=no
  8563. need_version=no
  8564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8565. soname_spec='${libname}${release}${shared_ext}$major'
  8566. shlibpath_var=LD_LIBRARY_PATH
  8567. shlibpath_overrides_runpath=yes
  8568. hardcode_into_libs=yes
  8569. # ldd complains unless libraries are executable
  8570. postinstall_cmds='chmod +x $lib'
  8571. ;;
  8572. sunos4*)
  8573. version_type=sunos
  8574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8575. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8576. shlibpath_var=LD_LIBRARY_PATH
  8577. shlibpath_overrides_runpath=yes
  8578. if test "$with_gnu_ld" = yes; then
  8579. need_lib_prefix=no
  8580. fi
  8581. need_version=yes
  8582. ;;
  8583. sysv4 | sysv4.3*)
  8584. version_type=linux
  8585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8586. soname_spec='${libname}${release}${shared_ext}$major'
  8587. shlibpath_var=LD_LIBRARY_PATH
  8588. case $host_vendor in
  8589. sni)
  8590. shlibpath_overrides_runpath=no
  8591. need_lib_prefix=no
  8592. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8593. runpath_var=LD_RUN_PATH
  8594. ;;
  8595. siemens)
  8596. need_lib_prefix=no
  8597. ;;
  8598. motorola)
  8599. need_lib_prefix=no
  8600. need_version=no
  8601. shlibpath_overrides_runpath=no
  8602. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8603. ;;
  8604. esac
  8605. ;;
  8606. sysv4*MP*)
  8607. if test -d /usr/nec ;then
  8608. version_type=linux
  8609. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8610. soname_spec='$libname${shared_ext}.$major'
  8611. shlibpath_var=LD_LIBRARY_PATH
  8612. fi
  8613. ;;
  8614. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8615. version_type=freebsd-elf
  8616. need_lib_prefix=no
  8617. need_version=no
  8618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8619. soname_spec='${libname}${release}${shared_ext}$major'
  8620. shlibpath_var=LD_LIBRARY_PATH
  8621. hardcode_into_libs=yes
  8622. if test "$with_gnu_ld" = yes; then
  8623. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8624. shlibpath_overrides_runpath=no
  8625. else
  8626. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8627. shlibpath_overrides_runpath=yes
  8628. case $host_os in
  8629. sco3.2v5*)
  8630. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8631. ;;
  8632. esac
  8633. fi
  8634. sys_lib_dlsearch_path_spec='/usr/lib'
  8635. ;;
  8636. uts4*)
  8637. version_type=linux
  8638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8639. soname_spec='${libname}${release}${shared_ext}$major'
  8640. shlibpath_var=LD_LIBRARY_PATH
  8641. ;;
  8642. *)
  8643. dynamic_linker=no
  8644. ;;
  8645. esac
  8646. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8647. echo "${ECHO_T}$dynamic_linker" >&6; }
  8648. test "$dynamic_linker" = no && can_build_shared=no
  8649. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8650. if test "$GCC" = yes; then
  8651. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8652. fi
  8653. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8654. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8655. hardcode_action=
  8656. if test -n "$hardcode_libdir_flag_spec" || \
  8657. test -n "$runpath_var" || \
  8658. test "X$hardcode_automatic" = "Xyes" ; then
  8659. # We can hardcode non-existant directories.
  8660. if test "$hardcode_direct" != no &&
  8661. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8662. # have to relink, otherwise we might link with an installed library
  8663. # when we should be linking with a yet-to-be-installed one
  8664. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8665. test "$hardcode_minus_L" != no; then
  8666. # Linking always hardcodes the temporary library directory.
  8667. hardcode_action=relink
  8668. else
  8669. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8670. hardcode_action=immediate
  8671. fi
  8672. else
  8673. # We cannot hardcode anything, or else we can only hardcode existing
  8674. # directories.
  8675. hardcode_action=unsupported
  8676. fi
  8677. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8678. echo "${ECHO_T}$hardcode_action" >&6; }
  8679. if test "$hardcode_action" = relink; then
  8680. # Fast installation is not supported
  8681. enable_fast_install=no
  8682. elif test "$shlibpath_overrides_runpath" = yes ||
  8683. test "$enable_shared" = no; then
  8684. # Fast installation is not necessary
  8685. enable_fast_install=needless
  8686. fi
  8687. striplib=
  8688. old_striplib=
  8689. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8690. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8691. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8692. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8693. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8694. { echo "$as_me:$LINENO: result: yes" >&5
  8695. echo "${ECHO_T}yes" >&6; }
  8696. else
  8697. # FIXME - insert some real tests, host_os isn't really good enough
  8698. case $host_os in
  8699. darwin*)
  8700. if test -n "$STRIP" ; then
  8701. striplib="$STRIP -x"
  8702. old_striplib="$STRIP -S"
  8703. { echo "$as_me:$LINENO: result: yes" >&5
  8704. echo "${ECHO_T}yes" >&6; }
  8705. else
  8706. { echo "$as_me:$LINENO: result: no" >&5
  8707. echo "${ECHO_T}no" >&6; }
  8708. fi
  8709. ;;
  8710. *)
  8711. { echo "$as_me:$LINENO: result: no" >&5
  8712. echo "${ECHO_T}no" >&6; }
  8713. ;;
  8714. esac
  8715. fi
  8716. if test "x$enable_dlopen" != xyes; then
  8717. enable_dlopen=unknown
  8718. enable_dlopen_self=unknown
  8719. enable_dlopen_self_static=unknown
  8720. else
  8721. lt_cv_dlopen=no
  8722. lt_cv_dlopen_libs=
  8723. case $host_os in
  8724. beos*)
  8725. lt_cv_dlopen="load_add_on"
  8726. lt_cv_dlopen_libs=
  8727. lt_cv_dlopen_self=yes
  8728. ;;
  8729. mingw* | pw32*)
  8730. lt_cv_dlopen="LoadLibrary"
  8731. lt_cv_dlopen_libs=
  8732. ;;
  8733. cygwin*)
  8734. lt_cv_dlopen="dlopen"
  8735. lt_cv_dlopen_libs=
  8736. ;;
  8737. darwin*)
  8738. # if libdl is installed we need to link against it
  8739. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8740. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8741. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8742. echo $ECHO_N "(cached) $ECHO_C" >&6
  8743. else
  8744. ac_check_lib_save_LIBS=$LIBS
  8745. LIBS="-ldl $LIBS"
  8746. cat >conftest.$ac_ext <<_ACEOF
  8747. /* confdefs.h. */
  8748. _ACEOF
  8749. cat confdefs.h >>conftest.$ac_ext
  8750. cat >>conftest.$ac_ext <<_ACEOF
  8751. /* end confdefs.h. */
  8752. /* Override any GCC internal prototype to avoid an error.
  8753. Use char because int might match the return type of a GCC
  8754. builtin and then its argument prototype would still apply. */
  8755. #ifdef __cplusplus
  8756. extern "C"
  8757. #endif
  8758. char dlopen ();
  8759. int
  8760. main ()
  8761. {
  8762. return dlopen ();
  8763. ;
  8764. return 0;
  8765. }
  8766. _ACEOF
  8767. rm -f conftest.$ac_objext conftest$ac_exeext
  8768. if { (ac_try="$ac_link"
  8769. case "(($ac_try" in
  8770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8771. *) ac_try_echo=$ac_try;;
  8772. esac
  8773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8774. (eval "$ac_link") 2>conftest.er1
  8775. ac_status=$?
  8776. grep -v '^ *+' conftest.er1 >conftest.err
  8777. rm -f conftest.er1
  8778. cat conftest.err >&5
  8779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8780. (exit $ac_status); } && {
  8781. test -z "$ac_c_werror_flag" ||
  8782. test ! -s conftest.err
  8783. } && test -s conftest$ac_exeext &&
  8784. $as_test_x conftest$ac_exeext; then
  8785. ac_cv_lib_dl_dlopen=yes
  8786. else
  8787. echo "$as_me: failed program was:" >&5
  8788. sed 's/^/| /' conftest.$ac_ext >&5
  8789. ac_cv_lib_dl_dlopen=no
  8790. fi
  8791. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8792. conftest$ac_exeext conftest.$ac_ext
  8793. LIBS=$ac_check_lib_save_LIBS
  8794. fi
  8795. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8796. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8797. if test $ac_cv_lib_dl_dlopen = yes; then
  8798. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8799. else
  8800. lt_cv_dlopen="dyld"
  8801. lt_cv_dlopen_libs=
  8802. lt_cv_dlopen_self=yes
  8803. fi
  8804. ;;
  8805. *)
  8806. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8807. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8808. if test "${ac_cv_func_shl_load+set}" = set; then
  8809. echo $ECHO_N "(cached) $ECHO_C" >&6
  8810. else
  8811. cat >conftest.$ac_ext <<_ACEOF
  8812. /* confdefs.h. */
  8813. _ACEOF
  8814. cat confdefs.h >>conftest.$ac_ext
  8815. cat >>conftest.$ac_ext <<_ACEOF
  8816. /* end confdefs.h. */
  8817. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8818. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8819. #define shl_load innocuous_shl_load
  8820. /* System header to define __stub macros and hopefully few prototypes,
  8821. which can conflict with char shl_load (); below.
  8822. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8823. <limits.h> exists even on freestanding compilers. */
  8824. #ifdef __STDC__
  8825. # include <limits.h>
  8826. #else
  8827. # include <assert.h>
  8828. #endif
  8829. #undef shl_load
  8830. /* Override any GCC internal prototype to avoid an error.
  8831. Use char because int might match the return type of a GCC
  8832. builtin and then its argument prototype would still apply. */
  8833. #ifdef __cplusplus
  8834. extern "C"
  8835. #endif
  8836. char shl_load ();
  8837. /* The GNU C library defines this for functions which it implements
  8838. to always fail with ENOSYS. Some functions are actually named
  8839. something starting with __ and the normal name is an alias. */
  8840. #if defined __stub_shl_load || defined __stub___shl_load
  8841. choke me
  8842. #endif
  8843. int
  8844. main ()
  8845. {
  8846. return shl_load ();
  8847. ;
  8848. return 0;
  8849. }
  8850. _ACEOF
  8851. rm -f conftest.$ac_objext conftest$ac_exeext
  8852. if { (ac_try="$ac_link"
  8853. case "(($ac_try" in
  8854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8855. *) ac_try_echo=$ac_try;;
  8856. esac
  8857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8858. (eval "$ac_link") 2>conftest.er1
  8859. ac_status=$?
  8860. grep -v '^ *+' conftest.er1 >conftest.err
  8861. rm -f conftest.er1
  8862. cat conftest.err >&5
  8863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8864. (exit $ac_status); } && {
  8865. test -z "$ac_c_werror_flag" ||
  8866. test ! -s conftest.err
  8867. } && test -s conftest$ac_exeext &&
  8868. $as_test_x conftest$ac_exeext; then
  8869. ac_cv_func_shl_load=yes
  8870. else
  8871. echo "$as_me: failed program was:" >&5
  8872. sed 's/^/| /' conftest.$ac_ext >&5
  8873. ac_cv_func_shl_load=no
  8874. fi
  8875. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8876. conftest$ac_exeext conftest.$ac_ext
  8877. fi
  8878. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8879. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8880. if test $ac_cv_func_shl_load = yes; then
  8881. lt_cv_dlopen="shl_load"
  8882. else
  8883. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8884. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8885. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8886. echo $ECHO_N "(cached) $ECHO_C" >&6
  8887. else
  8888. ac_check_lib_save_LIBS=$LIBS
  8889. LIBS="-ldld $LIBS"
  8890. cat >conftest.$ac_ext <<_ACEOF
  8891. /* confdefs.h. */
  8892. _ACEOF
  8893. cat confdefs.h >>conftest.$ac_ext
  8894. cat >>conftest.$ac_ext <<_ACEOF
  8895. /* end confdefs.h. */
  8896. /* Override any GCC internal prototype to avoid an error.
  8897. Use char because int might match the return type of a GCC
  8898. builtin and then its argument prototype would still apply. */
  8899. #ifdef __cplusplus
  8900. extern "C"
  8901. #endif
  8902. char shl_load ();
  8903. int
  8904. main ()
  8905. {
  8906. return shl_load ();
  8907. ;
  8908. return 0;
  8909. }
  8910. _ACEOF
  8911. rm -f conftest.$ac_objext conftest$ac_exeext
  8912. if { (ac_try="$ac_link"
  8913. case "(($ac_try" in
  8914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8915. *) ac_try_echo=$ac_try;;
  8916. esac
  8917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8918. (eval "$ac_link") 2>conftest.er1
  8919. ac_status=$?
  8920. grep -v '^ *+' conftest.er1 >conftest.err
  8921. rm -f conftest.er1
  8922. cat conftest.err >&5
  8923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8924. (exit $ac_status); } && {
  8925. test -z "$ac_c_werror_flag" ||
  8926. test ! -s conftest.err
  8927. } && test -s conftest$ac_exeext &&
  8928. $as_test_x conftest$ac_exeext; then
  8929. ac_cv_lib_dld_shl_load=yes
  8930. else
  8931. echo "$as_me: failed program was:" >&5
  8932. sed 's/^/| /' conftest.$ac_ext >&5
  8933. ac_cv_lib_dld_shl_load=no
  8934. fi
  8935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8936. conftest$ac_exeext conftest.$ac_ext
  8937. LIBS=$ac_check_lib_save_LIBS
  8938. fi
  8939. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8940. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8941. if test $ac_cv_lib_dld_shl_load = yes; then
  8942. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8943. else
  8944. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8945. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8946. if test "${ac_cv_func_dlopen+set}" = set; then
  8947. echo $ECHO_N "(cached) $ECHO_C" >&6
  8948. else
  8949. cat >conftest.$ac_ext <<_ACEOF
  8950. /* confdefs.h. */
  8951. _ACEOF
  8952. cat confdefs.h >>conftest.$ac_ext
  8953. cat >>conftest.$ac_ext <<_ACEOF
  8954. /* end confdefs.h. */
  8955. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8956. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8957. #define dlopen innocuous_dlopen
  8958. /* System header to define __stub macros and hopefully few prototypes,
  8959. which can conflict with char dlopen (); below.
  8960. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8961. <limits.h> exists even on freestanding compilers. */
  8962. #ifdef __STDC__
  8963. # include <limits.h>
  8964. #else
  8965. # include <assert.h>
  8966. #endif
  8967. #undef dlopen
  8968. /* Override any GCC internal prototype to avoid an error.
  8969. Use char because int might match the return type of a GCC
  8970. builtin and then its argument prototype would still apply. */
  8971. #ifdef __cplusplus
  8972. extern "C"
  8973. #endif
  8974. char dlopen ();
  8975. /* The GNU C library defines this for functions which it implements
  8976. to always fail with ENOSYS. Some functions are actually named
  8977. something starting with __ and the normal name is an alias. */
  8978. #if defined __stub_dlopen || defined __stub___dlopen
  8979. choke me
  8980. #endif
  8981. int
  8982. main ()
  8983. {
  8984. return dlopen ();
  8985. ;
  8986. return 0;
  8987. }
  8988. _ACEOF
  8989. rm -f conftest.$ac_objext conftest$ac_exeext
  8990. if { (ac_try="$ac_link"
  8991. case "(($ac_try" in
  8992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8993. *) ac_try_echo=$ac_try;;
  8994. esac
  8995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8996. (eval "$ac_link") 2>conftest.er1
  8997. ac_status=$?
  8998. grep -v '^ *+' conftest.er1 >conftest.err
  8999. rm -f conftest.er1
  9000. cat conftest.err >&5
  9001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9002. (exit $ac_status); } && {
  9003. test -z "$ac_c_werror_flag" ||
  9004. test ! -s conftest.err
  9005. } && test -s conftest$ac_exeext &&
  9006. $as_test_x conftest$ac_exeext; then
  9007. ac_cv_func_dlopen=yes
  9008. else
  9009. echo "$as_me: failed program was:" >&5
  9010. sed 's/^/| /' conftest.$ac_ext >&5
  9011. ac_cv_func_dlopen=no
  9012. fi
  9013. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9014. conftest$ac_exeext conftest.$ac_ext
  9015. fi
  9016. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9017. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  9018. if test $ac_cv_func_dlopen = yes; then
  9019. lt_cv_dlopen="dlopen"
  9020. else
  9021. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9022. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9023. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9024. echo $ECHO_N "(cached) $ECHO_C" >&6
  9025. else
  9026. ac_check_lib_save_LIBS=$LIBS
  9027. LIBS="-ldl $LIBS"
  9028. cat >conftest.$ac_ext <<_ACEOF
  9029. /* confdefs.h. */
  9030. _ACEOF
  9031. cat confdefs.h >>conftest.$ac_ext
  9032. cat >>conftest.$ac_ext <<_ACEOF
  9033. /* end confdefs.h. */
  9034. /* Override any GCC internal prototype to avoid an error.
  9035. Use char because int might match the return type of a GCC
  9036. builtin and then its argument prototype would still apply. */
  9037. #ifdef __cplusplus
  9038. extern "C"
  9039. #endif
  9040. char dlopen ();
  9041. int
  9042. main ()
  9043. {
  9044. return dlopen ();
  9045. ;
  9046. return 0;
  9047. }
  9048. _ACEOF
  9049. rm -f conftest.$ac_objext conftest$ac_exeext
  9050. if { (ac_try="$ac_link"
  9051. case "(($ac_try" in
  9052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9053. *) ac_try_echo=$ac_try;;
  9054. esac
  9055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9056. (eval "$ac_link") 2>conftest.er1
  9057. ac_status=$?
  9058. grep -v '^ *+' conftest.er1 >conftest.err
  9059. rm -f conftest.er1
  9060. cat conftest.err >&5
  9061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9062. (exit $ac_status); } && {
  9063. test -z "$ac_c_werror_flag" ||
  9064. test ! -s conftest.err
  9065. } && test -s conftest$ac_exeext &&
  9066. $as_test_x conftest$ac_exeext; then
  9067. ac_cv_lib_dl_dlopen=yes
  9068. else
  9069. echo "$as_me: failed program was:" >&5
  9070. sed 's/^/| /' conftest.$ac_ext >&5
  9071. ac_cv_lib_dl_dlopen=no
  9072. fi
  9073. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9074. conftest$ac_exeext conftest.$ac_ext
  9075. LIBS=$ac_check_lib_save_LIBS
  9076. fi
  9077. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9078. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9079. if test $ac_cv_lib_dl_dlopen = yes; then
  9080. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9081. else
  9082. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9083. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9084. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9085. echo $ECHO_N "(cached) $ECHO_C" >&6
  9086. else
  9087. ac_check_lib_save_LIBS=$LIBS
  9088. LIBS="-lsvld $LIBS"
  9089. cat >conftest.$ac_ext <<_ACEOF
  9090. /* confdefs.h. */
  9091. _ACEOF
  9092. cat confdefs.h >>conftest.$ac_ext
  9093. cat >>conftest.$ac_ext <<_ACEOF
  9094. /* end confdefs.h. */
  9095. /* Override any GCC internal prototype to avoid an error.
  9096. Use char because int might match the return type of a GCC
  9097. builtin and then its argument prototype would still apply. */
  9098. #ifdef __cplusplus
  9099. extern "C"
  9100. #endif
  9101. char dlopen ();
  9102. int
  9103. main ()
  9104. {
  9105. return dlopen ();
  9106. ;
  9107. return 0;
  9108. }
  9109. _ACEOF
  9110. rm -f conftest.$ac_objext conftest$ac_exeext
  9111. if { (ac_try="$ac_link"
  9112. case "(($ac_try" in
  9113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9114. *) ac_try_echo=$ac_try;;
  9115. esac
  9116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9117. (eval "$ac_link") 2>conftest.er1
  9118. ac_status=$?
  9119. grep -v '^ *+' conftest.er1 >conftest.err
  9120. rm -f conftest.er1
  9121. cat conftest.err >&5
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } && {
  9124. test -z "$ac_c_werror_flag" ||
  9125. test ! -s conftest.err
  9126. } && test -s conftest$ac_exeext &&
  9127. $as_test_x conftest$ac_exeext; then
  9128. ac_cv_lib_svld_dlopen=yes
  9129. else
  9130. echo "$as_me: failed program was:" >&5
  9131. sed 's/^/| /' conftest.$ac_ext >&5
  9132. ac_cv_lib_svld_dlopen=no
  9133. fi
  9134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9135. conftest$ac_exeext conftest.$ac_ext
  9136. LIBS=$ac_check_lib_save_LIBS
  9137. fi
  9138. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9139. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9140. if test $ac_cv_lib_svld_dlopen = yes; then
  9141. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9142. else
  9143. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9144. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9145. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9146. echo $ECHO_N "(cached) $ECHO_C" >&6
  9147. else
  9148. ac_check_lib_save_LIBS=$LIBS
  9149. LIBS="-ldld $LIBS"
  9150. cat >conftest.$ac_ext <<_ACEOF
  9151. /* confdefs.h. */
  9152. _ACEOF
  9153. cat confdefs.h >>conftest.$ac_ext
  9154. cat >>conftest.$ac_ext <<_ACEOF
  9155. /* end confdefs.h. */
  9156. /* Override any GCC internal prototype to avoid an error.
  9157. Use char because int might match the return type of a GCC
  9158. builtin and then its argument prototype would still apply. */
  9159. #ifdef __cplusplus
  9160. extern "C"
  9161. #endif
  9162. char dld_link ();
  9163. int
  9164. main ()
  9165. {
  9166. return dld_link ();
  9167. ;
  9168. return 0;
  9169. }
  9170. _ACEOF
  9171. rm -f conftest.$ac_objext conftest$ac_exeext
  9172. if { (ac_try="$ac_link"
  9173. case "(($ac_try" in
  9174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9175. *) ac_try_echo=$ac_try;;
  9176. esac
  9177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9178. (eval "$ac_link") 2>conftest.er1
  9179. ac_status=$?
  9180. grep -v '^ *+' conftest.er1 >conftest.err
  9181. rm -f conftest.er1
  9182. cat conftest.err >&5
  9183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9184. (exit $ac_status); } && {
  9185. test -z "$ac_c_werror_flag" ||
  9186. test ! -s conftest.err
  9187. } && test -s conftest$ac_exeext &&
  9188. $as_test_x conftest$ac_exeext; then
  9189. ac_cv_lib_dld_dld_link=yes
  9190. else
  9191. echo "$as_me: failed program was:" >&5
  9192. sed 's/^/| /' conftest.$ac_ext >&5
  9193. ac_cv_lib_dld_dld_link=no
  9194. fi
  9195. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9196. conftest$ac_exeext conftest.$ac_ext
  9197. LIBS=$ac_check_lib_save_LIBS
  9198. fi
  9199. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9200. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9201. if test $ac_cv_lib_dld_dld_link = yes; then
  9202. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9203. fi
  9204. fi
  9205. fi
  9206. fi
  9207. fi
  9208. fi
  9209. ;;
  9210. esac
  9211. if test "x$lt_cv_dlopen" != xno; then
  9212. enable_dlopen=yes
  9213. else
  9214. enable_dlopen=no
  9215. fi
  9216. case $lt_cv_dlopen in
  9217. dlopen)
  9218. save_CPPFLAGS="$CPPFLAGS"
  9219. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9220. save_LDFLAGS="$LDFLAGS"
  9221. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9222. save_LIBS="$LIBS"
  9223. LIBS="$lt_cv_dlopen_libs $LIBS"
  9224. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9225. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9226. if test "${lt_cv_dlopen_self+set}" = set; then
  9227. echo $ECHO_N "(cached) $ECHO_C" >&6
  9228. else
  9229. if test "$cross_compiling" = yes; then :
  9230. lt_cv_dlopen_self=cross
  9231. else
  9232. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9233. lt_status=$lt_dlunknown
  9234. cat > conftest.$ac_ext <<EOF
  9235. #line 10234 "configure"
  9236. #include "confdefs.h"
  9237. #if HAVE_DLFCN_H
  9238. #include <dlfcn.h>
  9239. #endif
  9240. #include <stdio.h>
  9241. #ifdef RTLD_GLOBAL
  9242. # define LT_DLGLOBAL RTLD_GLOBAL
  9243. #else
  9244. # ifdef DL_GLOBAL
  9245. # define LT_DLGLOBAL DL_GLOBAL
  9246. # else
  9247. # define LT_DLGLOBAL 0
  9248. # endif
  9249. #endif
  9250. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9251. find out it does not work in some platform. */
  9252. #ifndef LT_DLLAZY_OR_NOW
  9253. # ifdef RTLD_LAZY
  9254. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9255. # else
  9256. # ifdef DL_LAZY
  9257. # define LT_DLLAZY_OR_NOW DL_LAZY
  9258. # else
  9259. # ifdef RTLD_NOW
  9260. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9261. # else
  9262. # ifdef DL_NOW
  9263. # define LT_DLLAZY_OR_NOW DL_NOW
  9264. # else
  9265. # define LT_DLLAZY_OR_NOW 0
  9266. # endif
  9267. # endif
  9268. # endif
  9269. # endif
  9270. #endif
  9271. #ifdef __cplusplus
  9272. extern "C" void exit (int);
  9273. #endif
  9274. void fnord() { int i=42;}
  9275. int main ()
  9276. {
  9277. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9278. int status = $lt_dlunknown;
  9279. if (self)
  9280. {
  9281. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9282. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9283. /* dlclose (self); */
  9284. }
  9285. else
  9286. puts (dlerror ());
  9287. exit (status);
  9288. }
  9289. EOF
  9290. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9291. (eval $ac_link) 2>&5
  9292. ac_status=$?
  9293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9294. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9295. (./conftest; exit; ) >&5 2>/dev/null
  9296. lt_status=$?
  9297. case x$lt_status in
  9298. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9299. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9300. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9301. esac
  9302. else :
  9303. # compilation failed
  9304. lt_cv_dlopen_self=no
  9305. fi
  9306. fi
  9307. rm -fr conftest*
  9308. fi
  9309. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9310. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9311. if test "x$lt_cv_dlopen_self" = xyes; then
  9312. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9313. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9314. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9315. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9316. echo $ECHO_N "(cached) $ECHO_C" >&6
  9317. else
  9318. if test "$cross_compiling" = yes; then :
  9319. lt_cv_dlopen_self_static=cross
  9320. else
  9321. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9322. lt_status=$lt_dlunknown
  9323. cat > conftest.$ac_ext <<EOF
  9324. #line 10334 "configure"
  9325. #include "confdefs.h"
  9326. #if HAVE_DLFCN_H
  9327. #include <dlfcn.h>
  9328. #endif
  9329. #include <stdio.h>
  9330. #ifdef RTLD_GLOBAL
  9331. # define LT_DLGLOBAL RTLD_GLOBAL
  9332. #else
  9333. # ifdef DL_GLOBAL
  9334. # define LT_DLGLOBAL DL_GLOBAL
  9335. # else
  9336. # define LT_DLGLOBAL 0
  9337. # endif
  9338. #endif
  9339. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9340. find out it does not work in some platform. */
  9341. #ifndef LT_DLLAZY_OR_NOW
  9342. # ifdef RTLD_LAZY
  9343. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9344. # else
  9345. # ifdef DL_LAZY
  9346. # define LT_DLLAZY_OR_NOW DL_LAZY
  9347. # else
  9348. # ifdef RTLD_NOW
  9349. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9350. # else
  9351. # ifdef DL_NOW
  9352. # define LT_DLLAZY_OR_NOW DL_NOW
  9353. # else
  9354. # define LT_DLLAZY_OR_NOW 0
  9355. # endif
  9356. # endif
  9357. # endif
  9358. # endif
  9359. #endif
  9360. #ifdef __cplusplus
  9361. extern "C" void exit (int);
  9362. #endif
  9363. void fnord() { int i=42;}
  9364. int main ()
  9365. {
  9366. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9367. int status = $lt_dlunknown;
  9368. if (self)
  9369. {
  9370. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9371. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9372. /* dlclose (self); */
  9373. }
  9374. else
  9375. puts (dlerror ());
  9376. exit (status);
  9377. }
  9378. EOF
  9379. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9380. (eval $ac_link) 2>&5
  9381. ac_status=$?
  9382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9383. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9384. (./conftest; exit; ) >&5 2>/dev/null
  9385. lt_status=$?
  9386. case x$lt_status in
  9387. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9388. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9389. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9390. esac
  9391. else :
  9392. # compilation failed
  9393. lt_cv_dlopen_self_static=no
  9394. fi
  9395. fi
  9396. rm -fr conftest*
  9397. fi
  9398. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9399. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9400. fi
  9401. CPPFLAGS="$save_CPPFLAGS"
  9402. LDFLAGS="$save_LDFLAGS"
  9403. LIBS="$save_LIBS"
  9404. ;;
  9405. esac
  9406. case $lt_cv_dlopen_self in
  9407. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9408. *) enable_dlopen_self=unknown ;;
  9409. esac
  9410. case $lt_cv_dlopen_self_static in
  9411. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9412. *) enable_dlopen_self_static=unknown ;;
  9413. esac
  9414. fi
  9415. # Report which library types will actually be built
  9416. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9417. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9418. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9419. echo "${ECHO_T}$can_build_shared" >&6; }
  9420. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9421. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9422. test "$can_build_shared" = "no" && enable_shared=no
  9423. # On AIX, shared libraries and static libraries use the same namespace, and
  9424. # are all built from PIC.
  9425. case $host_os in
  9426. aix3*)
  9427. test "$enable_shared" = yes && enable_static=no
  9428. if test -n "$RANLIB"; then
  9429. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9430. postinstall_cmds='$RANLIB $lib'
  9431. fi
  9432. ;;
  9433. aix4* | aix5*)
  9434. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9435. test "$enable_shared" = yes && enable_static=no
  9436. fi
  9437. ;;
  9438. esac
  9439. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9440. echo "${ECHO_T}$enable_shared" >&6; }
  9441. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9442. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9443. # Make sure either enable_shared or enable_static is yes.
  9444. test "$enable_shared" = yes || enable_static=yes
  9445. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9446. echo "${ECHO_T}$enable_static" >&6; }
  9447. # The else clause should only fire when bootstrapping the
  9448. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9449. # with your package, and you will get complaints that there are
  9450. # no rules to generate ltmain.sh.
  9451. if test -f "$ltmain"; then
  9452. # See if we are running on zsh, and set the options which allow our commands through
  9453. # without removal of \ escapes.
  9454. if test -n "${ZSH_VERSION+set}" ; then
  9455. setopt NO_GLOB_SUBST
  9456. fi
  9457. # Now quote all the things that may contain metacharacters while being
  9458. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9459. # variables and quote the copies for generation of the libtool script.
  9460. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9461. SED SHELL STRIP \
  9462. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9463. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9464. deplibs_check_method reload_flag reload_cmds need_locks \
  9465. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9466. lt_cv_sys_global_symbol_to_c_name_address \
  9467. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9468. old_postinstall_cmds old_postuninstall_cmds \
  9469. compiler \
  9470. CC \
  9471. LD \
  9472. lt_prog_compiler_wl \
  9473. lt_prog_compiler_pic \
  9474. lt_prog_compiler_static \
  9475. lt_prog_compiler_no_builtin_flag \
  9476. export_dynamic_flag_spec \
  9477. thread_safe_flag_spec \
  9478. whole_archive_flag_spec \
  9479. enable_shared_with_static_runtimes \
  9480. old_archive_cmds \
  9481. old_archive_from_new_cmds \
  9482. predep_objects \
  9483. postdep_objects \
  9484. predeps \
  9485. postdeps \
  9486. compiler_lib_search_path \
  9487. archive_cmds \
  9488. archive_expsym_cmds \
  9489. postinstall_cmds \
  9490. postuninstall_cmds \
  9491. old_archive_from_expsyms_cmds \
  9492. allow_undefined_flag \
  9493. no_undefined_flag \
  9494. export_symbols_cmds \
  9495. hardcode_libdir_flag_spec \
  9496. hardcode_libdir_flag_spec_ld \
  9497. hardcode_libdir_separator \
  9498. hardcode_automatic \
  9499. module_cmds \
  9500. module_expsym_cmds \
  9501. lt_cv_prog_compiler_c_o \
  9502. fix_srcfile_path \
  9503. exclude_expsyms \
  9504. include_expsyms; do
  9505. case $var in
  9506. old_archive_cmds | \
  9507. old_archive_from_new_cmds | \
  9508. archive_cmds | \
  9509. archive_expsym_cmds | \
  9510. module_cmds | \
  9511. module_expsym_cmds | \
  9512. old_archive_from_expsyms_cmds | \
  9513. export_symbols_cmds | \
  9514. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9515. postinstall_cmds | postuninstall_cmds | \
  9516. old_postinstall_cmds | old_postuninstall_cmds | \
  9517. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9518. # Double-quote double-evaled strings.
  9519. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9520. ;;
  9521. *)
  9522. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9523. ;;
  9524. esac
  9525. done
  9526. case $lt_echo in
  9527. *'\$0 --fallback-echo"')
  9528. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9529. ;;
  9530. esac
  9531. cfgfile="${ofile}T"
  9532. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9533. $rm -f "$cfgfile"
  9534. { echo "$as_me:$LINENO: creating $ofile" >&5
  9535. echo "$as_me: creating $ofile" >&6;}
  9536. cat <<__EOF__ >> "$cfgfile"
  9537. #! $SHELL
  9538. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9539. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9540. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9541. #
  9542. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9543. # Free Software Foundation, Inc.
  9544. #
  9545. # This file is part of GNU Libtool:
  9546. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  9547. #
  9548. # This program is free software; you can redistribute it and/or modify
  9549. # it under the terms of the GNU General Public License as published by
  9550. # the Free Software Foundation; either version 2 of the License, or
  9551. # (at your option) any later version.
  9552. #
  9553. # This program is distributed in the hope that it will be useful, but
  9554. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9555. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9556. # General Public License for more details.
  9557. #
  9558. # You should have received a copy of the GNU General Public License
  9559. # along with this program; if not, write to the Free Software
  9560. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9561. #
  9562. # As a special exception to the GNU General Public License, if you
  9563. # distribute this file as part of a program that contains a
  9564. # configuration script generated by Autoconf, you may include it under
  9565. # the same distribution terms that you use for the rest of that program.
  9566. # A sed program that does not truncate output.
  9567. SED=$lt_SED
  9568. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9569. Xsed="$SED -e 1s/^X//"
  9570. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9571. # if CDPATH is set.
  9572. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9573. # The names of the tagged configurations supported by this script.
  9574. available_tags=
  9575. # ### BEGIN LIBTOOL CONFIG
  9576. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9577. # Shell to use when invoking shell scripts.
  9578. SHELL=$lt_SHELL
  9579. # Whether or not to build shared libraries.
  9580. build_libtool_libs=$enable_shared
  9581. # Whether or not to build static libraries.
  9582. build_old_libs=$enable_static
  9583. # Whether or not to add -lc for building shared libraries.
  9584. build_libtool_need_lc=$archive_cmds_need_lc
  9585. # Whether or not to disallow shared libs when runtime libs are static
  9586. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9587. # Whether or not to optimize for fast installation.
  9588. fast_install=$enable_fast_install
  9589. # The host system.
  9590. host_alias=$host_alias
  9591. host=$host
  9592. host_os=$host_os
  9593. # The build system.
  9594. build_alias=$build_alias
  9595. build=$build
  9596. build_os=$build_os
  9597. # An echo program that does not interpret backslashes.
  9598. echo=$lt_echo
  9599. # The archiver.
  9600. AR=$lt_AR
  9601. AR_FLAGS=$lt_AR_FLAGS
  9602. # A C compiler.
  9603. LTCC=$lt_LTCC
  9604. # LTCC compiler flags.
  9605. LTCFLAGS=$lt_LTCFLAGS
  9606. # A language-specific compiler.
  9607. CC=$lt_compiler
  9608. # Is the compiler the GNU C compiler?
  9609. with_gcc=$GCC
  9610. # An ERE matcher.
  9611. EGREP=$lt_EGREP
  9612. # The linker used to build libraries.
  9613. LD=$lt_LD
  9614. # Whether we need hard or soft links.
  9615. LN_S=$lt_LN_S
  9616. # A BSD-compatible nm program.
  9617. NM=$lt_NM
  9618. # A symbol stripping program
  9619. STRIP=$lt_STRIP
  9620. # Used to examine libraries when file_magic_cmd begins "file"
  9621. MAGIC_CMD=$MAGIC_CMD
  9622. # Used on cygwin: DLL creation program.
  9623. DLLTOOL="$DLLTOOL"
  9624. # Used on cygwin: object dumper.
  9625. OBJDUMP="$OBJDUMP"
  9626. # Used on cygwin: assembler.
  9627. AS="$AS"
  9628. # The name of the directory that contains temporary libtool files.
  9629. objdir=$objdir
  9630. # How to create reloadable object files.
  9631. reload_flag=$lt_reload_flag
  9632. reload_cmds=$lt_reload_cmds
  9633. # How to pass a linker flag through the compiler.
  9634. wl=$lt_lt_prog_compiler_wl
  9635. # Object file suffix (normally "o").
  9636. objext="$ac_objext"
  9637. # Old archive suffix (normally "a").
  9638. libext="$libext"
  9639. # Shared library suffix (normally ".so").
  9640. shrext_cmds='$shrext_cmds'
  9641. # Executable file suffix (normally "").
  9642. exeext="$exeext"
  9643. # Additional compiler flags for building library objects.
  9644. pic_flag=$lt_lt_prog_compiler_pic
  9645. pic_mode=$pic_mode
  9646. # What is the maximum length of a command?
  9647. max_cmd_len=$lt_cv_sys_max_cmd_len
  9648. # Does compiler simultaneously support -c and -o options?
  9649. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9650. # Must we lock files when doing compilation?
  9651. need_locks=$lt_need_locks
  9652. # Do we need the lib prefix for modules?
  9653. need_lib_prefix=$need_lib_prefix
  9654. # Do we need a version for libraries?
  9655. need_version=$need_version
  9656. # Whether dlopen is supported.
  9657. dlopen_support=$enable_dlopen
  9658. # Whether dlopen of programs is supported.
  9659. dlopen_self=$enable_dlopen_self
  9660. # Whether dlopen of statically linked programs is supported.
  9661. dlopen_self_static=$enable_dlopen_self_static
  9662. # Compiler flag to prevent dynamic linking.
  9663. link_static_flag=$lt_lt_prog_compiler_static
  9664. # Compiler flag to turn off builtin functions.
  9665. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9666. # Compiler flag to allow reflexive dlopens.
  9667. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9668. # Compiler flag to generate shared objects directly from archives.
  9669. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9670. # Compiler flag to generate thread-safe objects.
  9671. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9672. # Library versioning type.
  9673. version_type=$version_type
  9674. # Format of library name prefix.
  9675. libname_spec=$lt_libname_spec
  9676. # List of archive names. First name is the real one, the rest are links.
  9677. # The last name is the one that the linker finds with -lNAME.
  9678. library_names_spec=$lt_library_names_spec
  9679. # The coded name of the library, if different from the real name.
  9680. soname_spec=$lt_soname_spec
  9681. # Commands used to build and install an old-style archive.
  9682. RANLIB=$lt_RANLIB
  9683. old_archive_cmds=$lt_old_archive_cmds
  9684. old_postinstall_cmds=$lt_old_postinstall_cmds
  9685. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9686. # Create an old-style archive from a shared archive.
  9687. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9688. # Create a temporary old-style archive to link instead of a shared archive.
  9689. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9690. # Commands used to build and install a shared archive.
  9691. archive_cmds=$lt_archive_cmds
  9692. archive_expsym_cmds=$lt_archive_expsym_cmds
  9693. postinstall_cmds=$lt_postinstall_cmds
  9694. postuninstall_cmds=$lt_postuninstall_cmds
  9695. # Commands used to build a loadable module (assumed same as above if empty)
  9696. module_cmds=$lt_module_cmds
  9697. module_expsym_cmds=$lt_module_expsym_cmds
  9698. # Commands to strip libraries.
  9699. old_striplib=$lt_old_striplib
  9700. striplib=$lt_striplib
  9701. # Dependencies to place before the objects being linked to create a
  9702. # shared library.
  9703. predep_objects=$lt_predep_objects
  9704. # Dependencies to place after the objects being linked to create a
  9705. # shared library.
  9706. postdep_objects=$lt_postdep_objects
  9707. # Dependencies to place before the objects being linked to create a
  9708. # shared library.
  9709. predeps=$lt_predeps
  9710. # Dependencies to place after the objects being linked to create a
  9711. # shared library.
  9712. postdeps=$lt_postdeps
  9713. # The library search path used internally by the compiler when linking
  9714. # a shared library.
  9715. compiler_lib_search_path=$lt_compiler_lib_search_path
  9716. # Method to check whether dependent libraries are shared objects.
  9717. deplibs_check_method=$lt_deplibs_check_method
  9718. # Command to use when deplibs_check_method == file_magic.
  9719. file_magic_cmd=$lt_file_magic_cmd
  9720. # Flag that allows shared libraries with undefined symbols to be built.
  9721. allow_undefined_flag=$lt_allow_undefined_flag
  9722. # Flag that forces no undefined symbols.
  9723. no_undefined_flag=$lt_no_undefined_flag
  9724. # Commands used to finish a libtool library installation in a directory.
  9725. finish_cmds=$lt_finish_cmds
  9726. # Same as above, but a single script fragment to be evaled but not shown.
  9727. finish_eval=$lt_finish_eval
  9728. # Take the output of nm and produce a listing of raw symbols and C names.
  9729. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9730. # Transform the output of nm in a proper C declaration
  9731. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9732. # Transform the output of nm in a C name address pair
  9733. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9734. # This is the shared library runtime path variable.
  9735. runpath_var=$runpath_var
  9736. # This is the shared library path variable.
  9737. shlibpath_var=$shlibpath_var
  9738. # Is shlibpath searched before the hard-coded library search path?
  9739. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9740. # How to hardcode a shared library path into an executable.
  9741. hardcode_action=$hardcode_action
  9742. # Whether we should hardcode library paths into libraries.
  9743. hardcode_into_libs=$hardcode_into_libs
  9744. # Flag to hardcode \$libdir into a binary during linking.
  9745. # This must work even if \$libdir does not exist.
  9746. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9747. # If ld is used when linking, flag to hardcode \$libdir into
  9748. # a binary during linking. This must work even if \$libdir does
  9749. # not exist.
  9750. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9751. # Whether we need a single -rpath flag with a separated argument.
  9752. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9753. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9754. # resulting binary.
  9755. hardcode_direct=$hardcode_direct
  9756. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9757. # resulting binary.
  9758. hardcode_minus_L=$hardcode_minus_L
  9759. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9760. # the resulting binary.
  9761. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9762. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9763. # and all subsequent libraries and executables linked against it.
  9764. hardcode_automatic=$hardcode_automatic
  9765. # Variables whose values should be saved in libtool wrapper scripts and
  9766. # restored at relink time.
  9767. variables_saved_for_relink="$variables_saved_for_relink"
  9768. # Whether libtool must link a program against all its dependency libraries.
  9769. link_all_deplibs=$link_all_deplibs
  9770. # Compile-time system search path for libraries
  9771. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9772. # Run-time system search path for libraries
  9773. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9774. # Fix the shell variable \$srcfile for the compiler.
  9775. fix_srcfile_path=$lt_fix_srcfile_path
  9776. # Set to yes if exported symbols are required.
  9777. always_export_symbols=$always_export_symbols
  9778. # The commands to list exported symbols.
  9779. export_symbols_cmds=$lt_export_symbols_cmds
  9780. # The commands to extract the exported symbol list from a shared archive.
  9781. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9782. # Symbols that should not be listed in the preloaded symbols.
  9783. exclude_expsyms=$lt_exclude_expsyms
  9784. # Symbols that must always be exported.
  9785. include_expsyms=$lt_include_expsyms
  9786. # ### END LIBTOOL CONFIG
  9787. __EOF__
  9788. case $host_os in
  9789. aix3*)
  9790. cat <<\EOF >> "$cfgfile"
  9791. # AIX sometimes has problems with the GCC collect2 program. For some
  9792. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9793. # vanish in a puff of smoke.
  9794. if test "X${COLLECT_NAMES+set}" != Xset; then
  9795. COLLECT_NAMES=
  9796. export COLLECT_NAMES
  9797. fi
  9798. EOF
  9799. ;;
  9800. esac
  9801. # We use sed instead of cat because bash on DJGPP gets confused if
  9802. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9803. # text mode, it properly converts lines to CR/LF. This bash problem
  9804. # is reportedly fixed, but why not run on old versions too?
  9805. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9806. mv -f "$cfgfile" "$ofile" || \
  9807. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9808. chmod +x "$ofile"
  9809. else
  9810. # If there is no Makefile yet, we rely on a make rule to execute
  9811. # `config.status --recheck' to rerun these tests and create the
  9812. # libtool script then.
  9813. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9814. if test -f "$ltmain_in"; then
  9815. test -f Makefile && make "$ltmain"
  9816. fi
  9817. fi
  9818. ac_ext=c
  9819. ac_cpp='$CPP $CPPFLAGS'
  9820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9823. CC="$lt_save_CC"
  9824. # Check whether --with-tags was given.
  9825. if test "${with_tags+set}" = set; then
  9826. withval=$with_tags; tagnames="$withval"
  9827. fi
  9828. if test -f "$ltmain" && test -n "$tagnames"; then
  9829. if test ! -f "${ofile}"; then
  9830. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9831. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9832. fi
  9833. if test -z "$LTCC"; then
  9834. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9835. if test -z "$LTCC"; then
  9836. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9837. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9838. else
  9839. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9840. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9841. fi
  9842. fi
  9843. if test -z "$LTCFLAGS"; then
  9844. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9845. fi
  9846. # Extract list of available tagged configurations in $ofile.
  9847. # Note that this assumes the entire list is on one line.
  9848. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9849. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9850. for tagname in $tagnames; do
  9851. IFS="$lt_save_ifs"
  9852. # Check whether tagname contains only valid characters
  9853. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9854. "") ;;
  9855. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9856. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9857. { (exit 1); exit 1; }; }
  9858. ;;
  9859. esac
  9860. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9861. then
  9862. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9863. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9864. { (exit 1); exit 1; }; }
  9865. fi
  9866. # Update the list of available tags.
  9867. if test -n "$tagname"; then
  9868. echo appending configuration tag \"$tagname\" to $ofile
  9869. case $tagname in
  9870. CXX)
  9871. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9872. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9873. (test "X$CXX" != "Xg++"))) ; then
  9874. ac_ext=cpp
  9875. ac_cpp='$CXXCPP $CPPFLAGS'
  9876. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9877. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9878. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9879. archive_cmds_need_lc_CXX=no
  9880. allow_undefined_flag_CXX=
  9881. always_export_symbols_CXX=no
  9882. archive_expsym_cmds_CXX=
  9883. export_dynamic_flag_spec_CXX=
  9884. hardcode_direct_CXX=no
  9885. hardcode_libdir_flag_spec_CXX=
  9886. hardcode_libdir_flag_spec_ld_CXX=
  9887. hardcode_libdir_separator_CXX=
  9888. hardcode_minus_L_CXX=no
  9889. hardcode_shlibpath_var_CXX=unsupported
  9890. hardcode_automatic_CXX=no
  9891. module_cmds_CXX=
  9892. module_expsym_cmds_CXX=
  9893. link_all_deplibs_CXX=unknown
  9894. old_archive_cmds_CXX=$old_archive_cmds
  9895. no_undefined_flag_CXX=
  9896. whole_archive_flag_spec_CXX=
  9897. enable_shared_with_static_runtimes_CXX=no
  9898. # Dependencies to place before and after the object being linked:
  9899. predep_objects_CXX=
  9900. postdep_objects_CXX=
  9901. predeps_CXX=
  9902. postdeps_CXX=
  9903. compiler_lib_search_path_CXX=
  9904. # Source file extension for C++ test sources.
  9905. ac_ext=cpp
  9906. # Object file extension for compiled C++ test sources.
  9907. objext=o
  9908. objext_CXX=$objext
  9909. # Code to be used in simple compile tests
  9910. lt_simple_compile_test_code="int some_variable = 0;"
  9911. # Code to be used in simple link tests
  9912. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9913. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9914. # If no C compiler was specified, use CC.
  9915. LTCC=${LTCC-"$CC"}
  9916. # If no C compiler flags were specified, use CFLAGS.
  9917. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9918. # Allow CC to be a program name with arguments.
  9919. compiler=$CC
  9920. # save warnings/boilerplate of simple test code
  9921. ac_outfile=conftest.$ac_objext
  9922. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9923. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9924. _lt_compiler_boilerplate=`cat conftest.err`
  9925. $rm conftest*
  9926. ac_outfile=conftest.$ac_objext
  9927. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9928. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9929. _lt_linker_boilerplate=`cat conftest.err`
  9930. $rm conftest*
  9931. # Allow CC to be a program name with arguments.
  9932. lt_save_CC=$CC
  9933. lt_save_LD=$LD
  9934. lt_save_GCC=$GCC
  9935. GCC=$GXX
  9936. lt_save_with_gnu_ld=$with_gnu_ld
  9937. lt_save_path_LD=$lt_cv_path_LD
  9938. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9939. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9940. else
  9941. $as_unset lt_cv_prog_gnu_ld
  9942. fi
  9943. if test -n "${lt_cv_path_LDCXX+set}"; then
  9944. lt_cv_path_LD=$lt_cv_path_LDCXX
  9945. else
  9946. $as_unset lt_cv_path_LD
  9947. fi
  9948. test -z "${LDCXX+set}" || LD=$LDCXX
  9949. CC=${CXX-"c++"}
  9950. compiler=$CC
  9951. compiler_CXX=$CC
  9952. for cc_temp in $compiler""; do
  9953. case $cc_temp in
  9954. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9955. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9956. \-*) ;;
  9957. *) break;;
  9958. esac
  9959. done
  9960. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9961. # We don't want -fno-exception wen compiling C++ code, so set the
  9962. # no_builtin_flag separately
  9963. if test "$GXX" = yes; then
  9964. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9965. else
  9966. lt_prog_compiler_no_builtin_flag_CXX=
  9967. fi
  9968. if test "$GXX" = yes; then
  9969. # Set up default GNU C++ configuration
  9970. # Check whether --with-gnu-ld was given.
  9971. if test "${with_gnu_ld+set}" = set; then
  9972. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9973. else
  9974. with_gnu_ld=no
  9975. fi
  9976. ac_prog=ld
  9977. if test "$GCC" = yes; then
  9978. # Check if gcc -print-prog-name=ld gives a path.
  9979. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9980. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9981. case $host in
  9982. *-*-mingw*)
  9983. # gcc leaves a trailing carriage return which upsets mingw
  9984. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9985. *)
  9986. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9987. esac
  9988. case $ac_prog in
  9989. # Accept absolute paths.
  9990. [\\/]* | ?:[\\/]*)
  9991. re_direlt='/[^/][^/]*/\.\./'
  9992. # Canonicalize the pathname of ld
  9993. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9994. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9995. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9996. done
  9997. test -z "$LD" && LD="$ac_prog"
  9998. ;;
  9999. "")
  10000. # If it fails, then pretend we aren't using GCC.
  10001. ac_prog=ld
  10002. ;;
  10003. *)
  10004. # If it is relative, then search for the first ld in PATH.
  10005. with_gnu_ld=unknown
  10006. ;;
  10007. esac
  10008. elif test "$with_gnu_ld" = yes; then
  10009. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10010. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10011. else
  10012. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10013. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10014. fi
  10015. if test "${lt_cv_path_LD+set}" = set; then
  10016. echo $ECHO_N "(cached) $ECHO_C" >&6
  10017. else
  10018. if test -z "$LD"; then
  10019. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10020. for ac_dir in $PATH; do
  10021. IFS="$lt_save_ifs"
  10022. test -z "$ac_dir" && ac_dir=.
  10023. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10024. lt_cv_path_LD="$ac_dir/$ac_prog"
  10025. # Check to see if the program is GNU ld. I'd rather use --version,
  10026. # but apparently some variants of GNU ld only accept -v.
  10027. # Break only if it was the GNU/non-GNU ld that we prefer.
  10028. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10029. *GNU* | *'with BFD'*)
  10030. test "$with_gnu_ld" != no && break
  10031. ;;
  10032. *)
  10033. test "$with_gnu_ld" != yes && break
  10034. ;;
  10035. esac
  10036. fi
  10037. done
  10038. IFS="$lt_save_ifs"
  10039. else
  10040. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10041. fi
  10042. fi
  10043. LD="$lt_cv_path_LD"
  10044. if test -n "$LD"; then
  10045. { echo "$as_me:$LINENO: result: $LD" >&5
  10046. echo "${ECHO_T}$LD" >&6; }
  10047. else
  10048. { echo "$as_me:$LINENO: result: no" >&5
  10049. echo "${ECHO_T}no" >&6; }
  10050. fi
  10051. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10052. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10053. { (exit 1); exit 1; }; }
  10054. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10055. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10056. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10057. echo $ECHO_N "(cached) $ECHO_C" >&6
  10058. else
  10059. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10060. case `$LD -v 2>&1 </dev/null` in
  10061. *GNU* | *'with BFD'*)
  10062. lt_cv_prog_gnu_ld=yes
  10063. ;;
  10064. *)
  10065. lt_cv_prog_gnu_ld=no
  10066. ;;
  10067. esac
  10068. fi
  10069. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10070. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  10071. with_gnu_ld=$lt_cv_prog_gnu_ld
  10072. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10073. # archiving commands below assume that GNU ld is being used.
  10074. if test "$with_gnu_ld" = yes; then
  10075. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10076. 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'
  10077. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10078. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10079. # If archive_cmds runs LD, not CC, wlarc should be empty
  10080. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10081. # investigate it a little bit more. (MM)
  10082. wlarc='${wl}'
  10083. # ancient GNU ld didn't support --whole-archive et. al.
  10084. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10085. grep 'no-whole-archive' > /dev/null; then
  10086. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10087. else
  10088. whole_archive_flag_spec_CXX=
  10089. fi
  10090. else
  10091. with_gnu_ld=no
  10092. wlarc=
  10093. # A generic and very simple default shared library creation
  10094. # command for GNU C++ for the case where it uses the native
  10095. # linker, instead of GNU ld. If possible, this setting should
  10096. # overridden to take advantage of the native linker features on
  10097. # the platform it is being used on.
  10098. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10099. fi
  10100. # Commands to make compiler produce verbose output that lists
  10101. # what "hidden" libraries, object files and flags are used when
  10102. # linking a shared library.
  10103. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10104. else
  10105. GXX=no
  10106. with_gnu_ld=no
  10107. wlarc=
  10108. fi
  10109. # PORTME: fill in a description of your system's C++ link characteristics
  10110. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10111. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10112. ld_shlibs_CXX=yes
  10113. case $host_os in
  10114. aix3*)
  10115. # FIXME: insert proper C++ library support
  10116. ld_shlibs_CXX=no
  10117. ;;
  10118. aix4* | aix5*)
  10119. if test "$host_cpu" = ia64; then
  10120. # On IA64, the linker does run time linking by default, so we don't
  10121. # have to do anything special.
  10122. aix_use_runtimelinking=no
  10123. exp_sym_flag='-Bexport'
  10124. no_entry_flag=""
  10125. else
  10126. aix_use_runtimelinking=no
  10127. # Test if we are trying to use run time linking or normal
  10128. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10129. # need to do runtime linking.
  10130. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10131. for ld_flag in $LDFLAGS; do
  10132. case $ld_flag in
  10133. *-brtl*)
  10134. aix_use_runtimelinking=yes
  10135. break
  10136. ;;
  10137. esac
  10138. done
  10139. ;;
  10140. esac
  10141. exp_sym_flag='-bexport'
  10142. no_entry_flag='-bnoentry'
  10143. fi
  10144. # When large executables or shared objects are built, AIX ld can
  10145. # have problems creating the table of contents. If linking a library
  10146. # or program results in "error TOC overflow" add -mminimal-toc to
  10147. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10148. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10149. archive_cmds_CXX=''
  10150. hardcode_direct_CXX=yes
  10151. hardcode_libdir_separator_CXX=':'
  10152. link_all_deplibs_CXX=yes
  10153. if test "$GXX" = yes; then
  10154. case $host_os in aix4.[012]|aix4.[012].*)
  10155. # We only want to do this on AIX 4.2 and lower, the check
  10156. # below for broken collect2 doesn't work under 4.3+
  10157. collect2name=`${CC} -print-prog-name=collect2`
  10158. if test -f "$collect2name" && \
  10159. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10160. then
  10161. # We have reworked collect2
  10162. :
  10163. else
  10164. # We have old collect2
  10165. hardcode_direct_CXX=unsupported
  10166. # It fails to find uninstalled libraries when the uninstalled
  10167. # path is not listed in the libpath. Setting hardcode_minus_L
  10168. # to unsupported forces relinking
  10169. hardcode_minus_L_CXX=yes
  10170. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10171. hardcode_libdir_separator_CXX=
  10172. fi
  10173. ;;
  10174. esac
  10175. shared_flag='-shared'
  10176. if test "$aix_use_runtimelinking" = yes; then
  10177. shared_flag="$shared_flag "'${wl}-G'
  10178. fi
  10179. else
  10180. # not using gcc
  10181. if test "$host_cpu" = ia64; then
  10182. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10183. # chokes on -Wl,-G. The following line is correct:
  10184. shared_flag='-G'
  10185. else
  10186. if test "$aix_use_runtimelinking" = yes; then
  10187. shared_flag='${wl}-G'
  10188. else
  10189. shared_flag='${wl}-bM:SRE'
  10190. fi
  10191. fi
  10192. fi
  10193. # It seems that -bexpall does not export symbols beginning with
  10194. # underscore (_), so it is better to generate a list of symbols to export.
  10195. always_export_symbols_CXX=yes
  10196. if test "$aix_use_runtimelinking" = yes; then
  10197. # Warning - without using the other runtime loading flags (-brtl),
  10198. # -berok will link without error, but may produce a broken library.
  10199. allow_undefined_flag_CXX='-berok'
  10200. # Determine the default libpath from the value encoded in an empty executable.
  10201. cat >conftest.$ac_ext <<_ACEOF
  10202. /* confdefs.h. */
  10203. _ACEOF
  10204. cat confdefs.h >>conftest.$ac_ext
  10205. cat >>conftest.$ac_ext <<_ACEOF
  10206. /* end confdefs.h. */
  10207. int
  10208. main ()
  10209. {
  10210. ;
  10211. return 0;
  10212. }
  10213. _ACEOF
  10214. rm -f conftest.$ac_objext conftest$ac_exeext
  10215. if { (ac_try="$ac_link"
  10216. case "(($ac_try" in
  10217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10218. *) ac_try_echo=$ac_try;;
  10219. esac
  10220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10221. (eval "$ac_link") 2>conftest.er1
  10222. ac_status=$?
  10223. grep -v '^ *+' conftest.er1 >conftest.err
  10224. rm -f conftest.er1
  10225. cat conftest.err >&5
  10226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10227. (exit $ac_status); } && {
  10228. test -z "$ac_cxx_werror_flag" ||
  10229. test ! -s conftest.err
  10230. } && test -s conftest$ac_exeext &&
  10231. $as_test_x conftest$ac_exeext; then
  10232. lt_aix_libpath_sed='
  10233. /Import File Strings/,/^$/ {
  10234. /^0/ {
  10235. s/^0 *\(.*\)$/\1/
  10236. p
  10237. }
  10238. }'
  10239. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10240. # Check for a 64-bit object if we didn't find anything.
  10241. if test -z "$aix_libpath"; then
  10242. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10243. fi
  10244. else
  10245. echo "$as_me: failed program was:" >&5
  10246. sed 's/^/| /' conftest.$ac_ext >&5
  10247. fi
  10248. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10249. conftest$ac_exeext conftest.$ac_ext
  10250. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10251. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10252. 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"
  10253. else
  10254. if test "$host_cpu" = ia64; then
  10255. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10256. allow_undefined_flag_CXX="-z nodefs"
  10257. 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"
  10258. else
  10259. # Determine the default libpath from the value encoded in an empty executable.
  10260. cat >conftest.$ac_ext <<_ACEOF
  10261. /* confdefs.h. */
  10262. _ACEOF
  10263. cat confdefs.h >>conftest.$ac_ext
  10264. cat >>conftest.$ac_ext <<_ACEOF
  10265. /* end confdefs.h. */
  10266. int
  10267. main ()
  10268. {
  10269. ;
  10270. return 0;
  10271. }
  10272. _ACEOF
  10273. rm -f conftest.$ac_objext conftest$ac_exeext
  10274. if { (ac_try="$ac_link"
  10275. case "(($ac_try" in
  10276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10277. *) ac_try_echo=$ac_try;;
  10278. esac
  10279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10280. (eval "$ac_link") 2>conftest.er1
  10281. ac_status=$?
  10282. grep -v '^ *+' conftest.er1 >conftest.err
  10283. rm -f conftest.er1
  10284. cat conftest.err >&5
  10285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10286. (exit $ac_status); } && {
  10287. test -z "$ac_cxx_werror_flag" ||
  10288. test ! -s conftest.err
  10289. } && test -s conftest$ac_exeext &&
  10290. $as_test_x conftest$ac_exeext; then
  10291. lt_aix_libpath_sed='
  10292. /Import File Strings/,/^$/ {
  10293. /^0/ {
  10294. s/^0 *\(.*\)$/\1/
  10295. p
  10296. }
  10297. }'
  10298. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10299. # Check for a 64-bit object if we didn't find anything.
  10300. if test -z "$aix_libpath"; then
  10301. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10302. fi
  10303. else
  10304. echo "$as_me: failed program was:" >&5
  10305. sed 's/^/| /' conftest.$ac_ext >&5
  10306. fi
  10307. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10308. conftest$ac_exeext conftest.$ac_ext
  10309. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10310. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10311. # Warning - without using the other run time loading flags,
  10312. # -berok will link without error, but may produce a broken library.
  10313. no_undefined_flag_CXX=' ${wl}-bernotok'
  10314. allow_undefined_flag_CXX=' ${wl}-berok'
  10315. # Exported symbols can be pulled into shared objects from archives
  10316. whole_archive_flag_spec_CXX='$convenience'
  10317. archive_cmds_need_lc_CXX=yes
  10318. # This is similar to how AIX traditionally builds its shared libraries.
  10319. 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'
  10320. fi
  10321. fi
  10322. ;;
  10323. beos*)
  10324. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10325. allow_undefined_flag_CXX=unsupported
  10326. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10327. # support --undefined. This deserves some investigation. FIXME
  10328. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10329. else
  10330. ld_shlibs_CXX=no
  10331. fi
  10332. ;;
  10333. chorus*)
  10334. case $cc_basename in
  10335. *)
  10336. # FIXME: insert proper C++ library support
  10337. ld_shlibs_CXX=no
  10338. ;;
  10339. esac
  10340. ;;
  10341. cygwin* | mingw* | pw32*)
  10342. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10343. # as there is no search path for DLLs.
  10344. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10345. allow_undefined_flag_CXX=unsupported
  10346. always_export_symbols_CXX=no
  10347. enable_shared_with_static_runtimes_CXX=yes
  10348. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10349. 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'
  10350. # If the export-symbols file already is a .def file (1st line
  10351. # is EXPORTS), use it as is; otherwise, prepend...
  10352. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10353. cp $export_symbols $output_objdir/$soname.def;
  10354. else
  10355. echo EXPORTS > $output_objdir/$soname.def;
  10356. cat $export_symbols >> $output_objdir/$soname.def;
  10357. fi~
  10358. $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'
  10359. else
  10360. ld_shlibs_CXX=no
  10361. fi
  10362. ;;
  10363. darwin* | rhapsody*)
  10364. case $host_os in
  10365. rhapsody* | darwin1.[012])
  10366. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10367. ;;
  10368. *) # Darwin 1.3 on
  10369. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10370. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10371. else
  10372. case ${MACOSX_DEPLOYMENT_TARGET} in
  10373. 10.[012])
  10374. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10375. ;;
  10376. 10.*)
  10377. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10378. ;;
  10379. esac
  10380. fi
  10381. ;;
  10382. esac
  10383. archive_cmds_need_lc_CXX=no
  10384. hardcode_direct_CXX=no
  10385. hardcode_automatic_CXX=yes
  10386. hardcode_shlibpath_var_CXX=unsupported
  10387. whole_archive_flag_spec_CXX=''
  10388. link_all_deplibs_CXX=yes
  10389. if test "$GXX" = yes ; then
  10390. lt_int_apple_cc_single_mod=no
  10391. output_verbose_link_cmd='echo'
  10392. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10393. lt_int_apple_cc_single_mod=yes
  10394. fi
  10395. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10396. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10397. else
  10398. 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'
  10399. fi
  10400. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10401. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10402. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10403. 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}'
  10404. else
  10405. 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}'
  10406. fi
  10407. 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}'
  10408. else
  10409. case $cc_basename in
  10410. xlc*)
  10411. output_verbose_link_cmd='echo'
  10412. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10413. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10414. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10415. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10416. 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}'
  10417. ;;
  10418. *)
  10419. ld_shlibs_CXX=no
  10420. ;;
  10421. esac
  10422. fi
  10423. ;;
  10424. dgux*)
  10425. case $cc_basename in
  10426. ec++*)
  10427. # FIXME: insert proper C++ library support
  10428. ld_shlibs_CXX=no
  10429. ;;
  10430. ghcx*)
  10431. # Green Hills C++ Compiler
  10432. # FIXME: insert proper C++ library support
  10433. ld_shlibs_CXX=no
  10434. ;;
  10435. *)
  10436. # FIXME: insert proper C++ library support
  10437. ld_shlibs_CXX=no
  10438. ;;
  10439. esac
  10440. ;;
  10441. freebsd[12]*)
  10442. # C++ shared libraries reported to be fairly broken before switch to ELF
  10443. ld_shlibs_CXX=no
  10444. ;;
  10445. freebsd-elf*)
  10446. archive_cmds_need_lc_CXX=no
  10447. ;;
  10448. freebsd* | dragonfly*)
  10449. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10450. # conventions
  10451. ld_shlibs_CXX=yes
  10452. ;;
  10453. gnu*)
  10454. ;;
  10455. hpux9*)
  10456. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10457. hardcode_libdir_separator_CXX=:
  10458. export_dynamic_flag_spec_CXX='${wl}-E'
  10459. hardcode_direct_CXX=yes
  10460. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10461. # but as the default
  10462. # location of the library.
  10463. case $cc_basename in
  10464. CC*)
  10465. # FIXME: insert proper C++ library support
  10466. ld_shlibs_CXX=no
  10467. ;;
  10468. aCC*)
  10469. 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'
  10470. # Commands to make compiler produce verbose output that lists
  10471. # what "hidden" libraries, object files and flags are used when
  10472. # linking a shared library.
  10473. #
  10474. # There doesn't appear to be a way to prevent this compiler from
  10475. # explicitly linking system object files so we need to strip them
  10476. # from the output so that they don't get included in the library
  10477. # dependencies.
  10478. 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'
  10479. ;;
  10480. *)
  10481. if test "$GXX" = yes; then
  10482. 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'
  10483. else
  10484. # FIXME: insert proper C++ library support
  10485. ld_shlibs_CXX=no
  10486. fi
  10487. ;;
  10488. esac
  10489. ;;
  10490. hpux10*|hpux11*)
  10491. if test $with_gnu_ld = no; then
  10492. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10493. hardcode_libdir_separator_CXX=:
  10494. case $host_cpu in
  10495. hppa*64*|ia64*) ;;
  10496. *)
  10497. export_dynamic_flag_spec_CXX='${wl}-E'
  10498. ;;
  10499. esac
  10500. fi
  10501. case $host_cpu in
  10502. hppa*64*|ia64*)
  10503. hardcode_direct_CXX=no
  10504. hardcode_shlibpath_var_CXX=no
  10505. ;;
  10506. *)
  10507. hardcode_direct_CXX=yes
  10508. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10509. # but as the default
  10510. # location of the library.
  10511. ;;
  10512. esac
  10513. case $cc_basename in
  10514. CC*)
  10515. # FIXME: insert proper C++ library support
  10516. ld_shlibs_CXX=no
  10517. ;;
  10518. aCC*)
  10519. case $host_cpu in
  10520. hppa*64*)
  10521. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10522. ;;
  10523. ia64*)
  10524. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10525. ;;
  10526. *)
  10527. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10528. ;;
  10529. esac
  10530. # Commands to make compiler produce verbose output that lists
  10531. # what "hidden" libraries, object files and flags are used when
  10532. # linking a shared library.
  10533. #
  10534. # There doesn't appear to be a way to prevent this compiler from
  10535. # explicitly linking system object files so we need to strip them
  10536. # from the output so that they don't get included in the library
  10537. # dependencies.
  10538. 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'
  10539. ;;
  10540. *)
  10541. if test "$GXX" = yes; then
  10542. if test $with_gnu_ld = no; then
  10543. case $host_cpu in
  10544. hppa*64*)
  10545. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10546. ;;
  10547. ia64*)
  10548. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10549. ;;
  10550. *)
  10551. 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'
  10552. ;;
  10553. esac
  10554. fi
  10555. else
  10556. # FIXME: insert proper C++ library support
  10557. ld_shlibs_CXX=no
  10558. fi
  10559. ;;
  10560. esac
  10561. ;;
  10562. interix[3-9]*)
  10563. hardcode_direct_CXX=no
  10564. hardcode_shlibpath_var_CXX=no
  10565. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10566. export_dynamic_flag_spec_CXX='${wl}-E'
  10567. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10568. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10569. # default) and relocated if they conflict, which is a slow very memory
  10570. # consuming and fragmenting process. To avoid this, we pick a random,
  10571. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10572. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10573. 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'
  10574. 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'
  10575. ;;
  10576. irix5* | irix6*)
  10577. case $cc_basename in
  10578. CC*)
  10579. # SGI C++
  10580. 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'
  10581. # Archives containing C++ object files must be created using
  10582. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10583. # necessary to make sure instantiated templates are included
  10584. # in the archive.
  10585. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10586. ;;
  10587. *)
  10588. if test "$GXX" = yes; then
  10589. if test "$with_gnu_ld" = no; then
  10590. 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'
  10591. else
  10592. 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'
  10593. fi
  10594. fi
  10595. link_all_deplibs_CXX=yes
  10596. ;;
  10597. esac
  10598. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10599. hardcode_libdir_separator_CXX=:
  10600. ;;
  10601. linux* | k*bsd*-gnu)
  10602. case $cc_basename in
  10603. KCC*)
  10604. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10605. # KCC will only create a shared library if the output file
  10606. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10607. # to its proper name (with version) after linking.
  10608. 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'
  10609. 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'
  10610. # Commands to make compiler produce verbose output that lists
  10611. # what "hidden" libraries, object files and flags are used when
  10612. # linking a shared library.
  10613. #
  10614. # There doesn't appear to be a way to prevent this compiler from
  10615. # explicitly linking system object files so we need to strip them
  10616. # from the output so that they don't get included in the library
  10617. # dependencies.
  10618. 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'
  10619. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10620. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10621. # Archives containing C++ object files must be created using
  10622. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10623. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10624. ;;
  10625. icpc*)
  10626. # Intel C++
  10627. with_gnu_ld=yes
  10628. # version 8.0 and above of icpc choke on multiply defined symbols
  10629. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10630. # earlier do not add the objects themselves.
  10631. case `$CC -V 2>&1` in
  10632. *"Version 7."*)
  10633. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10634. 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'
  10635. ;;
  10636. *) # Version 8.0 or newer
  10637. tmp_idyn=
  10638. case $host_cpu in
  10639. ia64*) tmp_idyn=' -i_dynamic';;
  10640. esac
  10641. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10642. 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'
  10643. ;;
  10644. esac
  10645. archive_cmds_need_lc_CXX=no
  10646. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10647. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10648. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10649. ;;
  10650. pgCC*)
  10651. # Portland Group C++ compiler
  10652. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10653. 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'
  10654. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10655. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10656. 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'
  10657. ;;
  10658. cxx*)
  10659. # Compaq C++
  10660. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10661. 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'
  10662. runpath_var=LD_RUN_PATH
  10663. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10664. hardcode_libdir_separator_CXX=:
  10665. # Commands to make compiler produce verbose output that lists
  10666. # what "hidden" libraries, object files and flags are used when
  10667. # linking a shared library.
  10668. #
  10669. # There doesn't appear to be a way to prevent this compiler from
  10670. # explicitly linking system object files so we need to strip them
  10671. # from the output so that they don't get included in the library
  10672. # dependencies.
  10673. 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'
  10674. ;;
  10675. *)
  10676. case `$CC -V 2>&1 | sed 5q` in
  10677. *Sun\ C*)
  10678. # Sun C++ 5.9
  10679. no_undefined_flag_CXX=' -zdefs'
  10680. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10681. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10682. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10683. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10684. # Not sure whether something based on
  10685. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10686. # would be better.
  10687. output_verbose_link_cmd='echo'
  10688. # Archives containing C++ object files must be created using
  10689. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10690. # necessary to make sure instantiated templates are included
  10691. # in the archive.
  10692. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10693. ;;
  10694. esac
  10695. ;;
  10696. esac
  10697. ;;
  10698. lynxos*)
  10699. # FIXME: insert proper C++ library support
  10700. ld_shlibs_CXX=no
  10701. ;;
  10702. m88k*)
  10703. # FIXME: insert proper C++ library support
  10704. ld_shlibs_CXX=no
  10705. ;;
  10706. mvs*)
  10707. case $cc_basename in
  10708. cxx*)
  10709. # FIXME: insert proper C++ library support
  10710. ld_shlibs_CXX=no
  10711. ;;
  10712. *)
  10713. # FIXME: insert proper C++ library support
  10714. ld_shlibs_CXX=no
  10715. ;;
  10716. esac
  10717. ;;
  10718. netbsd*)
  10719. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10720. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10721. wlarc=
  10722. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10723. hardcode_direct_CXX=yes
  10724. hardcode_shlibpath_var_CXX=no
  10725. fi
  10726. # Workaround some broken pre-1.5 toolchains
  10727. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10728. ;;
  10729. openbsd2*)
  10730. # C++ shared libraries are fairly broken
  10731. ld_shlibs_CXX=no
  10732. ;;
  10733. openbsd*)
  10734. if test -f /usr/libexec/ld.so; then
  10735. hardcode_direct_CXX=yes
  10736. hardcode_shlibpath_var_CXX=no
  10737. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10738. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10739. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10740. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10741. export_dynamic_flag_spec_CXX='${wl}-E'
  10742. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10743. fi
  10744. output_verbose_link_cmd='echo'
  10745. else
  10746. ld_shlibs_CXX=no
  10747. fi
  10748. ;;
  10749. osf3*)
  10750. case $cc_basename in
  10751. KCC*)
  10752. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10753. # KCC will only create a shared library if the output file
  10754. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10755. # to its proper name (with version) after linking.
  10756. 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'
  10757. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10758. hardcode_libdir_separator_CXX=:
  10759. # Archives containing C++ object files must be created using
  10760. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10761. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10762. ;;
  10763. RCC*)
  10764. # Rational C++ 2.4.1
  10765. # FIXME: insert proper C++ library support
  10766. ld_shlibs_CXX=no
  10767. ;;
  10768. cxx*)
  10769. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10770. 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'
  10771. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10772. hardcode_libdir_separator_CXX=:
  10773. # Commands to make compiler produce verbose output that lists
  10774. # what "hidden" libraries, object files and flags are used when
  10775. # linking a shared library.
  10776. #
  10777. # There doesn't appear to be a way to prevent this compiler from
  10778. # explicitly linking system object files so we need to strip them
  10779. # from the output so that they don't get included in the library
  10780. # dependencies.
  10781. 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'
  10782. ;;
  10783. *)
  10784. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10785. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10786. 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'
  10787. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10788. hardcode_libdir_separator_CXX=:
  10789. # Commands to make compiler produce verbose output that lists
  10790. # what "hidden" libraries, object files and flags are used when
  10791. # linking a shared library.
  10792. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10793. else
  10794. # FIXME: insert proper C++ library support
  10795. ld_shlibs_CXX=no
  10796. fi
  10797. ;;
  10798. esac
  10799. ;;
  10800. osf4* | osf5*)
  10801. case $cc_basename in
  10802. KCC*)
  10803. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10804. # KCC will only create a shared library if the output file
  10805. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10806. # to its proper name (with version) after linking.
  10807. 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'
  10808. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10809. hardcode_libdir_separator_CXX=:
  10810. # Archives containing C++ object files must be created using
  10811. # the KAI C++ compiler.
  10812. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10813. ;;
  10814. RCC*)
  10815. # Rational C++ 2.4.1
  10816. # FIXME: insert proper C++ library support
  10817. ld_shlibs_CXX=no
  10818. ;;
  10819. cxx*)
  10820. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10821. 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'
  10822. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10823. echo "-hidden">> $lib.exp~
  10824. $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~
  10825. $rm $lib.exp'
  10826. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10827. hardcode_libdir_separator_CXX=:
  10828. # Commands to make compiler produce verbose output that lists
  10829. # what "hidden" libraries, object files and flags are used when
  10830. # linking a shared library.
  10831. #
  10832. # There doesn't appear to be a way to prevent this compiler from
  10833. # explicitly linking system object files so we need to strip them
  10834. # from the output so that they don't get included in the library
  10835. # dependencies.
  10836. 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'
  10837. ;;
  10838. *)
  10839. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10840. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10841. 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'
  10842. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10843. hardcode_libdir_separator_CXX=:
  10844. # Commands to make compiler produce verbose output that lists
  10845. # what "hidden" libraries, object files and flags are used when
  10846. # linking a shared library.
  10847. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10848. else
  10849. # FIXME: insert proper C++ library support
  10850. ld_shlibs_CXX=no
  10851. fi
  10852. ;;
  10853. esac
  10854. ;;
  10855. psos*)
  10856. # FIXME: insert proper C++ library support
  10857. ld_shlibs_CXX=no
  10858. ;;
  10859. sunos4*)
  10860. case $cc_basename in
  10861. CC*)
  10862. # Sun C++ 4.x
  10863. # FIXME: insert proper C++ library support
  10864. ld_shlibs_CXX=no
  10865. ;;
  10866. lcc*)
  10867. # Lucid
  10868. # FIXME: insert proper C++ library support
  10869. ld_shlibs_CXX=no
  10870. ;;
  10871. *)
  10872. # FIXME: insert proper C++ library support
  10873. ld_shlibs_CXX=no
  10874. ;;
  10875. esac
  10876. ;;
  10877. solaris*)
  10878. case $cc_basename in
  10879. CC*)
  10880. # Sun C++ 4.2, 5.x and Centerline C++
  10881. archive_cmds_need_lc_CXX=yes
  10882. no_undefined_flag_CXX=' -zdefs'
  10883. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10884. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10885. $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'
  10886. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10887. hardcode_shlibpath_var_CXX=no
  10888. case $host_os in
  10889. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10890. *)
  10891. # The compiler driver will combine and reorder linker options,
  10892. # but understands `-z linker_flag'.
  10893. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10894. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10895. ;;
  10896. esac
  10897. link_all_deplibs_CXX=yes
  10898. output_verbose_link_cmd='echo'
  10899. # Archives containing C++ object files must be created using
  10900. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10901. # necessary to make sure instantiated templates are included
  10902. # in the archive.
  10903. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10904. ;;
  10905. gcx*)
  10906. # Green Hills C++ Compiler
  10907. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10908. # The C++ compiler must be used to create the archive.
  10909. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10910. ;;
  10911. *)
  10912. # GNU C++ compiler with Solaris linker
  10913. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10914. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10915. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10916. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10917. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10918. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10919. # Commands to make compiler produce verbose output that lists
  10920. # what "hidden" libraries, object files and flags are used when
  10921. # linking a shared library.
  10922. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10923. else
  10924. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10925. # platform.
  10926. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10927. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10928. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10929. # Commands to make compiler produce verbose output that lists
  10930. # what "hidden" libraries, object files and flags are used when
  10931. # linking a shared library.
  10932. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10933. fi
  10934. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10935. case $host_os in
  10936. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10937. *)
  10938. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10939. ;;
  10940. esac
  10941. fi
  10942. ;;
  10943. esac
  10944. ;;
  10945. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10946. no_undefined_flag_CXX='${wl}-z,text'
  10947. archive_cmds_need_lc_CXX=no
  10948. hardcode_shlibpath_var_CXX=no
  10949. runpath_var='LD_RUN_PATH'
  10950. case $cc_basename in
  10951. CC*)
  10952. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10953. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10954. ;;
  10955. *)
  10956. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10957. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10958. ;;
  10959. esac
  10960. ;;
  10961. sysv5* | sco3.2v5* | sco5v6*)
  10962. # Note: We can NOT use -z defs as we might desire, because we do not
  10963. # link with -lc, and that would cause any symbols used from libc to
  10964. # always be unresolved, which means just about no library would
  10965. # ever link correctly. If we're not using GNU ld we use -z text
  10966. # though, which does catch some bad symbols but isn't as heavy-handed
  10967. # as -z defs.
  10968. # For security reasons, it is highly recommended that you always
  10969. # use absolute paths for naming shared libraries, and exclude the
  10970. # DT_RUNPATH tag from executables and libraries. But doing so
  10971. # requires that you compile everything twice, which is a pain.
  10972. # So that behaviour is only enabled if SCOABSPATH is set to a
  10973. # non-empty value in the environment. Most likely only useful for
  10974. # creating official distributions of packages.
  10975. # This is a hack until libtool officially supports absolute path
  10976. # names for shared libraries.
  10977. no_undefined_flag_CXX='${wl}-z,text'
  10978. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10979. archive_cmds_need_lc_CXX=no
  10980. hardcode_shlibpath_var_CXX=no
  10981. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10982. hardcode_libdir_separator_CXX=':'
  10983. link_all_deplibs_CXX=yes
  10984. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10985. runpath_var='LD_RUN_PATH'
  10986. case $cc_basename in
  10987. CC*)
  10988. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10989. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10990. ;;
  10991. *)
  10992. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10993. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10994. ;;
  10995. esac
  10996. ;;
  10997. tandem*)
  10998. case $cc_basename in
  10999. NCC*)
  11000. # NonStop-UX NCC 3.20
  11001. # FIXME: insert proper C++ library support
  11002. ld_shlibs_CXX=no
  11003. ;;
  11004. *)
  11005. # FIXME: insert proper C++ library support
  11006. ld_shlibs_CXX=no
  11007. ;;
  11008. esac
  11009. ;;
  11010. vxworks*)
  11011. # FIXME: insert proper C++ library support
  11012. ld_shlibs_CXX=no
  11013. ;;
  11014. *)
  11015. # FIXME: insert proper C++ library support
  11016. ld_shlibs_CXX=no
  11017. ;;
  11018. esac
  11019. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11020. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11021. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11022. GCC_CXX="$GXX"
  11023. LD_CXX="$LD"
  11024. cat > conftest.$ac_ext <<EOF
  11025. class Foo
  11026. {
  11027. public:
  11028. Foo (void) { a = 0; }
  11029. private:
  11030. int a;
  11031. };
  11032. EOF
  11033. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11034. (eval $ac_compile) 2>&5
  11035. ac_status=$?
  11036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11037. (exit $ac_status); }; then
  11038. # Parse the compiler output and extract the necessary
  11039. # objects, libraries and library flags.
  11040. # Sentinel used to keep track of whether or not we are before
  11041. # the conftest object file.
  11042. pre_test_object_deps_done=no
  11043. # The `*' in the case matches for architectures that use `case' in
  11044. # $output_verbose_cmd can trigger glob expansion during the loop
  11045. # eval without this substitution.
  11046. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  11047. for p in `eval $output_verbose_link_cmd`; do
  11048. case $p in
  11049. -L* | -R* | -l*)
  11050. # Some compilers place space between "-{L,R}" and the path.
  11051. # Remove the space.
  11052. if test $p = "-L" \
  11053. || test $p = "-R"; then
  11054. prev=$p
  11055. continue
  11056. else
  11057. prev=
  11058. fi
  11059. if test "$pre_test_object_deps_done" = no; then
  11060. case $p in
  11061. -L* | -R*)
  11062. # Internal compiler library paths should come after those
  11063. # provided the user. The postdeps already come after the
  11064. # user supplied libs so there is no need to process them.
  11065. if test -z "$compiler_lib_search_path_CXX"; then
  11066. compiler_lib_search_path_CXX="${prev}${p}"
  11067. else
  11068. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11069. fi
  11070. ;;
  11071. # The "-l" case would never come before the object being
  11072. # linked, so don't bother handling this case.
  11073. esac
  11074. else
  11075. if test -z "$postdeps_CXX"; then
  11076. postdeps_CXX="${prev}${p}"
  11077. else
  11078. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11079. fi
  11080. fi
  11081. ;;
  11082. *.$objext)
  11083. # This assumes that the test object file only shows up
  11084. # once in the compiler output.
  11085. if test "$p" = "conftest.$objext"; then
  11086. pre_test_object_deps_done=yes
  11087. continue
  11088. fi
  11089. if test "$pre_test_object_deps_done" = no; then
  11090. if test -z "$predep_objects_CXX"; then
  11091. predep_objects_CXX="$p"
  11092. else
  11093. predep_objects_CXX="$predep_objects_CXX $p"
  11094. fi
  11095. else
  11096. if test -z "$postdep_objects_CXX"; then
  11097. postdep_objects_CXX="$p"
  11098. else
  11099. postdep_objects_CXX="$postdep_objects_CXX $p"
  11100. fi
  11101. fi
  11102. ;;
  11103. *) ;; # Ignore the rest.
  11104. esac
  11105. done
  11106. # Clean up.
  11107. rm -f a.out a.exe
  11108. else
  11109. echo "libtool.m4: error: problem compiling CXX test program"
  11110. fi
  11111. $rm -f confest.$objext
  11112. # PORTME: override above test on systems where it is broken
  11113. case $host_os in
  11114. interix[3-9]*)
  11115. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11116. # hack all around it, let's just trust "g++" to DTRT.
  11117. predep_objects_CXX=
  11118. postdep_objects_CXX=
  11119. postdeps_CXX=
  11120. ;;
  11121. linux*)
  11122. case `$CC -V 2>&1 | sed 5q` in
  11123. *Sun\ C*)
  11124. # Sun C++ 5.9
  11125. #
  11126. # The more standards-conforming stlport4 library is
  11127. # incompatible with the Cstd library. Avoid specifying
  11128. # it if it's in CXXFLAGS. Ignore libCrun as
  11129. # -library=stlport4 depends on it.
  11130. case " $CXX $CXXFLAGS " in
  11131. *" -library=stlport4 "*)
  11132. solaris_use_stlport4=yes
  11133. ;;
  11134. esac
  11135. if test "$solaris_use_stlport4" != yes; then
  11136. postdeps_CXX='-library=Cstd -library=Crun'
  11137. fi
  11138. ;;
  11139. esac
  11140. ;;
  11141. solaris*)
  11142. case $cc_basename in
  11143. CC*)
  11144. # The more standards-conforming stlport4 library is
  11145. # incompatible with the Cstd library. Avoid specifying
  11146. # it if it's in CXXFLAGS. Ignore libCrun as
  11147. # -library=stlport4 depends on it.
  11148. case " $CXX $CXXFLAGS " in
  11149. *" -library=stlport4 "*)
  11150. solaris_use_stlport4=yes
  11151. ;;
  11152. esac
  11153. # Adding this requires a known-good setup of shared libraries for
  11154. # Sun compiler versions before 5.6, else PIC objects from an old
  11155. # archive will be linked into the output, leading to subtle bugs.
  11156. if test "$solaris_use_stlport4" != yes; then
  11157. postdeps_CXX='-library=Cstd -library=Crun'
  11158. fi
  11159. ;;
  11160. esac
  11161. ;;
  11162. esac
  11163. case " $postdeps_CXX " in
  11164. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11165. esac
  11166. lt_prog_compiler_wl_CXX=
  11167. lt_prog_compiler_pic_CXX=
  11168. lt_prog_compiler_static_CXX=
  11169. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11170. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11171. # C++ specific cases for pic, static, wl, etc.
  11172. if test "$GXX" = yes; then
  11173. lt_prog_compiler_wl_CXX='-Wl,'
  11174. lt_prog_compiler_static_CXX='-static'
  11175. case $host_os in
  11176. aix*)
  11177. # All AIX code is PIC.
  11178. if test "$host_cpu" = ia64; then
  11179. # AIX 5 now supports IA64 processor
  11180. lt_prog_compiler_static_CXX='-Bstatic'
  11181. fi
  11182. ;;
  11183. amigaos*)
  11184. # FIXME: we need at least 68020 code to build shared libraries, but
  11185. # adding the `-m68020' flag to GCC prevents building anything better,
  11186. # like `-m68040'.
  11187. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11188. ;;
  11189. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11190. # PIC is the default for these OSes.
  11191. ;;
  11192. mingw* | cygwin* | os2* | pw32*)
  11193. # This hack is so that the source file can tell whether it is being
  11194. # built for inclusion in a dll (and should export symbols for example).
  11195. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11196. # (--disable-auto-import) libraries
  11197. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11198. ;;
  11199. darwin* | rhapsody*)
  11200. # PIC is the default on this platform
  11201. # Common symbols not allowed in MH_DYLIB files
  11202. lt_prog_compiler_pic_CXX='-fno-common'
  11203. ;;
  11204. *djgpp*)
  11205. # DJGPP does not support shared libraries at all
  11206. lt_prog_compiler_pic_CXX=
  11207. ;;
  11208. interix[3-9]*)
  11209. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11210. # Instead, we relocate shared libraries at runtime.
  11211. ;;
  11212. sysv4*MP*)
  11213. if test -d /usr/nec; then
  11214. lt_prog_compiler_pic_CXX=-Kconform_pic
  11215. fi
  11216. ;;
  11217. hpux*)
  11218. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11219. # not for PA HP-UX.
  11220. case $host_cpu in
  11221. hppa*64*|ia64*)
  11222. ;;
  11223. *)
  11224. lt_prog_compiler_pic_CXX='-fPIC'
  11225. ;;
  11226. esac
  11227. ;;
  11228. *)
  11229. lt_prog_compiler_pic_CXX='-fPIC'
  11230. ;;
  11231. esac
  11232. else
  11233. case $host_os in
  11234. aix4* | aix5*)
  11235. # All AIX code is PIC.
  11236. if test "$host_cpu" = ia64; then
  11237. # AIX 5 now supports IA64 processor
  11238. lt_prog_compiler_static_CXX='-Bstatic'
  11239. else
  11240. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11241. fi
  11242. ;;
  11243. chorus*)
  11244. case $cc_basename in
  11245. cxch68*)
  11246. # Green Hills C++ Compiler
  11247. # _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"
  11248. ;;
  11249. esac
  11250. ;;
  11251. darwin*)
  11252. # PIC is the default on this platform
  11253. # Common symbols not allowed in MH_DYLIB files
  11254. case $cc_basename in
  11255. xlc*)
  11256. lt_prog_compiler_pic_CXX='-qnocommon'
  11257. lt_prog_compiler_wl_CXX='-Wl,'
  11258. ;;
  11259. esac
  11260. ;;
  11261. dgux*)
  11262. case $cc_basename in
  11263. ec++*)
  11264. lt_prog_compiler_pic_CXX='-KPIC'
  11265. ;;
  11266. ghcx*)
  11267. # Green Hills C++ Compiler
  11268. lt_prog_compiler_pic_CXX='-pic'
  11269. ;;
  11270. *)
  11271. ;;
  11272. esac
  11273. ;;
  11274. freebsd* | dragonfly*)
  11275. # FreeBSD uses GNU C++
  11276. ;;
  11277. hpux9* | hpux10* | hpux11*)
  11278. case $cc_basename in
  11279. CC*)
  11280. lt_prog_compiler_wl_CXX='-Wl,'
  11281. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11282. if test "$host_cpu" != ia64; then
  11283. lt_prog_compiler_pic_CXX='+Z'
  11284. fi
  11285. ;;
  11286. aCC*)
  11287. lt_prog_compiler_wl_CXX='-Wl,'
  11288. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11289. case $host_cpu in
  11290. hppa*64*|ia64*)
  11291. # +Z the default
  11292. ;;
  11293. *)
  11294. lt_prog_compiler_pic_CXX='+Z'
  11295. ;;
  11296. esac
  11297. ;;
  11298. *)
  11299. ;;
  11300. esac
  11301. ;;
  11302. interix*)
  11303. # This is c89, which is MS Visual C++ (no shared libs)
  11304. # Anyone wants to do a port?
  11305. ;;
  11306. irix5* | irix6* | nonstopux*)
  11307. case $cc_basename in
  11308. CC*)
  11309. lt_prog_compiler_wl_CXX='-Wl,'
  11310. lt_prog_compiler_static_CXX='-non_shared'
  11311. # CC pic flag -KPIC is the default.
  11312. ;;
  11313. *)
  11314. ;;
  11315. esac
  11316. ;;
  11317. linux* | k*bsd*-gnu)
  11318. case $cc_basename in
  11319. KCC*)
  11320. # KAI C++ Compiler
  11321. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11322. lt_prog_compiler_pic_CXX='-fPIC'
  11323. ;;
  11324. icpc* | ecpc*)
  11325. # Intel C++
  11326. lt_prog_compiler_wl_CXX='-Wl,'
  11327. lt_prog_compiler_pic_CXX='-KPIC'
  11328. lt_prog_compiler_static_CXX='-static'
  11329. ;;
  11330. pgCC*)
  11331. # Portland Group C++ compiler.
  11332. lt_prog_compiler_wl_CXX='-Wl,'
  11333. lt_prog_compiler_pic_CXX='-fpic'
  11334. lt_prog_compiler_static_CXX='-Bstatic'
  11335. ;;
  11336. cxx*)
  11337. # Compaq C++
  11338. # Make sure the PIC flag is empty. It appears that all Alpha
  11339. # Linux and Compaq Tru64 Unix objects are PIC.
  11340. lt_prog_compiler_pic_CXX=
  11341. lt_prog_compiler_static_CXX='-non_shared'
  11342. ;;
  11343. *)
  11344. case `$CC -V 2>&1 | sed 5q` in
  11345. *Sun\ C*)
  11346. # Sun C++ 5.9
  11347. lt_prog_compiler_pic_CXX='-KPIC'
  11348. lt_prog_compiler_static_CXX='-Bstatic'
  11349. lt_prog_compiler_wl_CXX='-Qoption ld '
  11350. ;;
  11351. esac
  11352. ;;
  11353. esac
  11354. ;;
  11355. lynxos*)
  11356. ;;
  11357. m88k*)
  11358. ;;
  11359. mvs*)
  11360. case $cc_basename in
  11361. cxx*)
  11362. lt_prog_compiler_pic_CXX='-W c,exportall'
  11363. ;;
  11364. *)
  11365. ;;
  11366. esac
  11367. ;;
  11368. netbsd*)
  11369. ;;
  11370. osf3* | osf4* | osf5*)
  11371. case $cc_basename in
  11372. KCC*)
  11373. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11374. ;;
  11375. RCC*)
  11376. # Rational C++ 2.4.1
  11377. lt_prog_compiler_pic_CXX='-pic'
  11378. ;;
  11379. cxx*)
  11380. # Digital/Compaq C++
  11381. lt_prog_compiler_wl_CXX='-Wl,'
  11382. # Make sure the PIC flag is empty. It appears that all Alpha
  11383. # Linux and Compaq Tru64 Unix objects are PIC.
  11384. lt_prog_compiler_pic_CXX=
  11385. lt_prog_compiler_static_CXX='-non_shared'
  11386. ;;
  11387. *)
  11388. ;;
  11389. esac
  11390. ;;
  11391. psos*)
  11392. ;;
  11393. solaris*)
  11394. case $cc_basename in
  11395. CC*)
  11396. # Sun C++ 4.2, 5.x and Centerline C++
  11397. lt_prog_compiler_pic_CXX='-KPIC'
  11398. lt_prog_compiler_static_CXX='-Bstatic'
  11399. lt_prog_compiler_wl_CXX='-Qoption ld '
  11400. ;;
  11401. gcx*)
  11402. # Green Hills C++ Compiler
  11403. lt_prog_compiler_pic_CXX='-PIC'
  11404. ;;
  11405. *)
  11406. ;;
  11407. esac
  11408. ;;
  11409. sunos4*)
  11410. case $cc_basename in
  11411. CC*)
  11412. # Sun C++ 4.x
  11413. lt_prog_compiler_pic_CXX='-pic'
  11414. lt_prog_compiler_static_CXX='-Bstatic'
  11415. ;;
  11416. lcc*)
  11417. # Lucid
  11418. lt_prog_compiler_pic_CXX='-pic'
  11419. ;;
  11420. *)
  11421. ;;
  11422. esac
  11423. ;;
  11424. tandem*)
  11425. case $cc_basename in
  11426. NCC*)
  11427. # NonStop-UX NCC 3.20
  11428. lt_prog_compiler_pic_CXX='-KPIC'
  11429. ;;
  11430. *)
  11431. ;;
  11432. esac
  11433. ;;
  11434. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11435. case $cc_basename in
  11436. CC*)
  11437. lt_prog_compiler_wl_CXX='-Wl,'
  11438. lt_prog_compiler_pic_CXX='-KPIC'
  11439. lt_prog_compiler_static_CXX='-Bstatic'
  11440. ;;
  11441. esac
  11442. ;;
  11443. vxworks*)
  11444. ;;
  11445. *)
  11446. lt_prog_compiler_can_build_shared_CXX=no
  11447. ;;
  11448. esac
  11449. fi
  11450. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11451. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11452. #
  11453. # Check to make sure the PIC flag actually works.
  11454. #
  11455. if test -n "$lt_prog_compiler_pic_CXX"; then
  11456. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11457. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11458. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11459. echo $ECHO_N "(cached) $ECHO_C" >&6
  11460. else
  11461. lt_prog_compiler_pic_works_CXX=no
  11462. ac_outfile=conftest.$ac_objext
  11463. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11464. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11465. # Insert the option either (1) after the last *FLAGS variable, or
  11466. # (2) before a word containing "conftest.", or (3) at the end.
  11467. # Note that $ac_compile itself does not contain backslashes and begins
  11468. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11469. # The option is referenced via a variable to avoid confusing sed.
  11470. lt_compile=`echo "$ac_compile" | $SED \
  11471. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11472. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11473. -e 's:$: $lt_compiler_flag:'`
  11474. (eval echo "\"\$as_me:12754: $lt_compile\"" >&5)
  11475. (eval "$lt_compile" 2>conftest.err)
  11476. ac_status=$?
  11477. cat conftest.err >&5
  11478. echo "$as_me:12758: \$? = $ac_status" >&5
  11479. if (exit $ac_status) && test -s "$ac_outfile"; then
  11480. # The compiler can only warn and ignore the option if not recognized
  11481. # So say no if there are warnings other than the usual output.
  11482. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11483. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11484. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11485. lt_prog_compiler_pic_works_CXX=yes
  11486. fi
  11487. fi
  11488. $rm conftest*
  11489. fi
  11490. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11491. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11492. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11493. case $lt_prog_compiler_pic_CXX in
  11494. "" | " "*) ;;
  11495. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11496. esac
  11497. else
  11498. lt_prog_compiler_pic_CXX=
  11499. lt_prog_compiler_can_build_shared_CXX=no
  11500. fi
  11501. fi
  11502. case $host_os in
  11503. # For platforms which do not support PIC, -DPIC is meaningless:
  11504. *djgpp*)
  11505. lt_prog_compiler_pic_CXX=
  11506. ;;
  11507. *)
  11508. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11509. ;;
  11510. esac
  11511. #
  11512. # Check to make sure the static flag actually works.
  11513. #
  11514. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11515. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11516. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11517. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11518. echo $ECHO_N "(cached) $ECHO_C" >&6
  11519. else
  11520. lt_prog_compiler_static_works_CXX=no
  11521. save_LDFLAGS="$LDFLAGS"
  11522. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11523. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11524. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11525. # The linker can only warn and ignore the option if not recognized
  11526. # So say no if there are warnings
  11527. if test -s conftest.err; then
  11528. # Append any errors to the config.log.
  11529. cat conftest.err 1>&5
  11530. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11531. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11532. if diff conftest.exp conftest.er2 >/dev/null; then
  11533. lt_prog_compiler_static_works_CXX=yes
  11534. fi
  11535. else
  11536. lt_prog_compiler_static_works_CXX=yes
  11537. fi
  11538. fi
  11539. $rm conftest*
  11540. LDFLAGS="$save_LDFLAGS"
  11541. fi
  11542. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11543. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11544. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11545. :
  11546. else
  11547. lt_prog_compiler_static_CXX=
  11548. fi
  11549. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11550. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11551. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11552. echo $ECHO_N "(cached) $ECHO_C" >&6
  11553. else
  11554. lt_cv_prog_compiler_c_o_CXX=no
  11555. $rm -r conftest 2>/dev/null
  11556. mkdir conftest
  11557. cd conftest
  11558. mkdir out
  11559. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11560. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11561. # Insert the option either (1) after the last *FLAGS variable, or
  11562. # (2) before a word containing "conftest.", or (3) at the end.
  11563. # Note that $ac_compile itself does not contain backslashes and begins
  11564. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11565. lt_compile=`echo "$ac_compile" | $SED \
  11566. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11567. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11568. -e 's:$: $lt_compiler_flag:'`
  11569. (eval echo "\"\$as_me:12858: $lt_compile\"" >&5)
  11570. (eval "$lt_compile" 2>out/conftest.err)
  11571. ac_status=$?
  11572. cat out/conftest.err >&5
  11573. echo "$as_me:12862: \$? = $ac_status" >&5
  11574. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11575. then
  11576. # The compiler can only warn and ignore the option if not recognized
  11577. # So say no if there are warnings
  11578. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11579. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11580. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11581. lt_cv_prog_compiler_c_o_CXX=yes
  11582. fi
  11583. fi
  11584. chmod u+w . 2>&5
  11585. $rm conftest*
  11586. # SGI C++ compiler will create directory out/ii_files/ for
  11587. # template instantiation
  11588. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11589. $rm out/* && rmdir out
  11590. cd ..
  11591. rmdir conftest
  11592. $rm conftest*
  11593. fi
  11594. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11595. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11596. hard_links="nottested"
  11597. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11598. # do not overwrite the value of need_locks provided by the user
  11599. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11600. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11601. hard_links=yes
  11602. $rm conftest*
  11603. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11604. touch conftest.a
  11605. ln conftest.a conftest.b 2>&5 || hard_links=no
  11606. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11607. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11608. echo "${ECHO_T}$hard_links" >&6; }
  11609. if test "$hard_links" = no; then
  11610. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11611. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11612. need_locks=warn
  11613. fi
  11614. else
  11615. need_locks=no
  11616. fi
  11617. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11618. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11619. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11620. case $host_os in
  11621. aix4* | aix5*)
  11622. # If we're using GNU nm, then we don't want the "-C" option.
  11623. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11624. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11625. 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'
  11626. else
  11627. 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'
  11628. fi
  11629. ;;
  11630. pw32*)
  11631. export_symbols_cmds_CXX="$ltdll_cmds"
  11632. ;;
  11633. cygwin* | mingw*)
  11634. 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'
  11635. ;;
  11636. *)
  11637. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11638. ;;
  11639. esac
  11640. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11641. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11642. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11643. #
  11644. # Do we need to explicitly link libc?
  11645. #
  11646. case "x$archive_cmds_need_lc_CXX" in
  11647. x|xyes)
  11648. # Assume -lc should be added
  11649. archive_cmds_need_lc_CXX=yes
  11650. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11651. case $archive_cmds_CXX in
  11652. *'~'*)
  11653. # FIXME: we may have to deal with multi-command sequences.
  11654. ;;
  11655. '$CC '*)
  11656. # Test whether the compiler implicitly links with -lc since on some
  11657. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11658. # to ld, don't add -lc before -lgcc.
  11659. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11660. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11661. $rm conftest*
  11662. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11663. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11664. (eval $ac_compile) 2>&5
  11665. ac_status=$?
  11666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11667. (exit $ac_status); } 2>conftest.err; then
  11668. soname=conftest
  11669. lib=conftest
  11670. libobjs=conftest.$ac_objext
  11671. deplibs=
  11672. wl=$lt_prog_compiler_wl_CXX
  11673. pic_flag=$lt_prog_compiler_pic_CXX
  11674. compiler_flags=-v
  11675. linker_flags=-v
  11676. verstring=
  11677. output_objdir=.
  11678. libname=conftest
  11679. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11680. allow_undefined_flag_CXX=
  11681. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11682. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11683. ac_status=$?
  11684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11685. (exit $ac_status); }
  11686. then
  11687. archive_cmds_need_lc_CXX=no
  11688. else
  11689. archive_cmds_need_lc_CXX=yes
  11690. fi
  11691. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11692. else
  11693. cat conftest.err 1>&5
  11694. fi
  11695. $rm conftest*
  11696. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11697. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11698. ;;
  11699. esac
  11700. fi
  11701. ;;
  11702. esac
  11703. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11704. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11705. library_names_spec=
  11706. libname_spec='lib$name'
  11707. soname_spec=
  11708. shrext_cmds=".so"
  11709. postinstall_cmds=
  11710. postuninstall_cmds=
  11711. finish_cmds=
  11712. finish_eval=
  11713. shlibpath_var=
  11714. shlibpath_overrides_runpath=unknown
  11715. version_type=none
  11716. dynamic_linker="$host_os ld.so"
  11717. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11718. need_lib_prefix=unknown
  11719. hardcode_into_libs=no
  11720. # when you set need_version to no, make sure it does not cause -set_version
  11721. # flags to be left without arguments
  11722. need_version=unknown
  11723. case $host_os in
  11724. aix3*)
  11725. version_type=linux
  11726. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11727. shlibpath_var=LIBPATH
  11728. # AIX 3 has no versioning support, so we append a major version to the name.
  11729. soname_spec='${libname}${release}${shared_ext}$major'
  11730. ;;
  11731. aix4* | aix5*)
  11732. version_type=linux
  11733. need_lib_prefix=no
  11734. need_version=no
  11735. hardcode_into_libs=yes
  11736. if test "$host_cpu" = ia64; then
  11737. # AIX 5 supports IA64
  11738. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11739. shlibpath_var=LD_LIBRARY_PATH
  11740. else
  11741. # With GCC up to 2.95.x, collect2 would create an import file
  11742. # for dependence libraries. The import file would start with
  11743. # the line `#! .'. This would cause the generated library to
  11744. # depend on `.', always an invalid library. This was fixed in
  11745. # development snapshots of GCC prior to 3.0.
  11746. case $host_os in
  11747. aix4 | aix4.[01] | aix4.[01].*)
  11748. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11749. echo ' yes '
  11750. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11751. :
  11752. else
  11753. can_build_shared=no
  11754. fi
  11755. ;;
  11756. esac
  11757. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11758. # soname into executable. Probably we can add versioning support to
  11759. # collect2, so additional links can be useful in future.
  11760. if test "$aix_use_runtimelinking" = yes; then
  11761. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11762. # instead of lib<name>.a to let people know that these are not
  11763. # typical AIX shared libraries.
  11764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11765. else
  11766. # We preserve .a as extension for shared libraries through AIX4.2
  11767. # and later when we are not doing run time linking.
  11768. library_names_spec='${libname}${release}.a $libname.a'
  11769. soname_spec='${libname}${release}${shared_ext}$major'
  11770. fi
  11771. shlibpath_var=LIBPATH
  11772. fi
  11773. ;;
  11774. amigaos*)
  11775. library_names_spec='$libname.ixlibrary $libname.a'
  11776. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11777. 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'
  11778. ;;
  11779. beos*)
  11780. library_names_spec='${libname}${shared_ext}'
  11781. dynamic_linker="$host_os ld.so"
  11782. shlibpath_var=LIBRARY_PATH
  11783. ;;
  11784. bsdi[45]*)
  11785. version_type=linux
  11786. need_version=no
  11787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11788. soname_spec='${libname}${release}${shared_ext}$major'
  11789. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11790. shlibpath_var=LD_LIBRARY_PATH
  11791. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11792. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11793. # the default ld.so.conf also contains /usr/contrib/lib and
  11794. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11795. # libtool to hard-code these into programs
  11796. ;;
  11797. cygwin* | mingw* | pw32*)
  11798. version_type=windows
  11799. shrext_cmds=".dll"
  11800. need_version=no
  11801. need_lib_prefix=no
  11802. case $GCC,$host_os in
  11803. yes,cygwin* | yes,mingw* | yes,pw32*)
  11804. library_names_spec='$libname.dll.a'
  11805. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11806. postinstall_cmds='base_file=`basename \${file}`~
  11807. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11808. dldir=$destdir/`dirname \$dlpath`~
  11809. test -d \$dldir || mkdir -p \$dldir~
  11810. $install_prog $dir/$dlname \$dldir/$dlname~
  11811. chmod a+x \$dldir/$dlname'
  11812. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11813. dlpath=$dir/\$dldll~
  11814. $rm \$dlpath'
  11815. shlibpath_overrides_runpath=yes
  11816. case $host_os in
  11817. cygwin*)
  11818. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11819. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11820. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11821. ;;
  11822. mingw*)
  11823. # MinGW DLLs use traditional 'lib' prefix
  11824. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11825. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11826. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11827. # It is most probably a Windows format PATH printed by
  11828. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11829. # path with ; separators, and with drive letters. We can handle the
  11830. # drive letters (cygwin fileutils understands them), so leave them,
  11831. # especially as we might pass files found there to a mingw objdump,
  11832. # which wouldn't understand a cygwinified path. Ahh.
  11833. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11834. else
  11835. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11836. fi
  11837. ;;
  11838. pw32*)
  11839. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11840. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11841. ;;
  11842. esac
  11843. ;;
  11844. *)
  11845. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11846. ;;
  11847. esac
  11848. dynamic_linker='Win32 ld.exe'
  11849. # FIXME: first we should search . and the directory the executable is in
  11850. shlibpath_var=PATH
  11851. ;;
  11852. darwin* | rhapsody*)
  11853. dynamic_linker="$host_os dyld"
  11854. version_type=darwin
  11855. need_lib_prefix=no
  11856. need_version=no
  11857. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11858. soname_spec='${libname}${release}${major}$shared_ext'
  11859. shlibpath_overrides_runpath=yes
  11860. shlibpath_var=DYLD_LIBRARY_PATH
  11861. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11862. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11863. ;;
  11864. dgux*)
  11865. version_type=linux
  11866. need_lib_prefix=no
  11867. need_version=no
  11868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11869. soname_spec='${libname}${release}${shared_ext}$major'
  11870. shlibpath_var=LD_LIBRARY_PATH
  11871. ;;
  11872. freebsd1*)
  11873. dynamic_linker=no
  11874. ;;
  11875. freebsd* | dragonfly*)
  11876. # DragonFly does not have aout. When/if they implement a new
  11877. # versioning mechanism, adjust this.
  11878. if test -x /usr/bin/objformat; then
  11879. objformat=`/usr/bin/objformat`
  11880. else
  11881. case $host_os in
  11882. freebsd[123]*) objformat=aout ;;
  11883. *) objformat=elf ;;
  11884. esac
  11885. fi
  11886. version_type=freebsd-$objformat
  11887. case $version_type in
  11888. freebsd-elf*)
  11889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11890. need_version=no
  11891. need_lib_prefix=no
  11892. ;;
  11893. freebsd-*)
  11894. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11895. need_version=yes
  11896. ;;
  11897. esac
  11898. shlibpath_var=LD_LIBRARY_PATH
  11899. case $host_os in
  11900. freebsd2*)
  11901. shlibpath_overrides_runpath=yes
  11902. ;;
  11903. freebsd3.[01]* | freebsdelf3.[01]*)
  11904. shlibpath_overrides_runpath=yes
  11905. hardcode_into_libs=yes
  11906. ;;
  11907. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11908. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11909. shlibpath_overrides_runpath=no
  11910. hardcode_into_libs=yes
  11911. ;;
  11912. *) # from 4.6 on, and DragonFly
  11913. shlibpath_overrides_runpath=yes
  11914. hardcode_into_libs=yes
  11915. ;;
  11916. esac
  11917. ;;
  11918. gnu*)
  11919. version_type=linux
  11920. need_lib_prefix=no
  11921. need_version=no
  11922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11923. soname_spec='${libname}${release}${shared_ext}$major'
  11924. shlibpath_var=LD_LIBRARY_PATH
  11925. hardcode_into_libs=yes
  11926. ;;
  11927. hpux9* | hpux10* | hpux11*)
  11928. # Give a soname corresponding to the major version so that dld.sl refuses to
  11929. # link against other versions.
  11930. version_type=sunos
  11931. need_lib_prefix=no
  11932. need_version=no
  11933. case $host_cpu in
  11934. ia64*)
  11935. shrext_cmds='.so'
  11936. hardcode_into_libs=yes
  11937. dynamic_linker="$host_os dld.so"
  11938. shlibpath_var=LD_LIBRARY_PATH
  11939. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11941. soname_spec='${libname}${release}${shared_ext}$major'
  11942. if test "X$HPUX_IA64_MODE" = X32; then
  11943. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11944. else
  11945. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11946. fi
  11947. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11948. ;;
  11949. hppa*64*)
  11950. shrext_cmds='.sl'
  11951. hardcode_into_libs=yes
  11952. dynamic_linker="$host_os dld.sl"
  11953. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11954. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11956. soname_spec='${libname}${release}${shared_ext}$major'
  11957. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11958. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11959. ;;
  11960. *)
  11961. shrext_cmds='.sl'
  11962. dynamic_linker="$host_os dld.sl"
  11963. shlibpath_var=SHLIB_PATH
  11964. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11966. soname_spec='${libname}${release}${shared_ext}$major'
  11967. ;;
  11968. esac
  11969. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11970. postinstall_cmds='chmod 555 $lib'
  11971. ;;
  11972. interix[3-9]*)
  11973. version_type=linux
  11974. need_lib_prefix=no
  11975. need_version=no
  11976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11977. soname_spec='${libname}${release}${shared_ext}$major'
  11978. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11979. shlibpath_var=LD_LIBRARY_PATH
  11980. shlibpath_overrides_runpath=no
  11981. hardcode_into_libs=yes
  11982. ;;
  11983. irix5* | irix6* | nonstopux*)
  11984. case $host_os in
  11985. nonstopux*) version_type=nonstopux ;;
  11986. *)
  11987. if test "$lt_cv_prog_gnu_ld" = yes; then
  11988. version_type=linux
  11989. else
  11990. version_type=irix
  11991. fi ;;
  11992. esac
  11993. need_lib_prefix=no
  11994. need_version=no
  11995. soname_spec='${libname}${release}${shared_ext}$major'
  11996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11997. case $host_os in
  11998. irix5* | nonstopux*)
  11999. libsuff= shlibsuff=
  12000. ;;
  12001. *)
  12002. case $LD in # libtool.m4 will add one of these switches to LD
  12003. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12004. libsuff= shlibsuff= libmagic=32-bit;;
  12005. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12006. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12007. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12008. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12009. *) libsuff= shlibsuff= libmagic=never-match;;
  12010. esac
  12011. ;;
  12012. esac
  12013. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12014. shlibpath_overrides_runpath=no
  12015. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12016. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12017. hardcode_into_libs=yes
  12018. ;;
  12019. # No shared lib support for Linux oldld, aout, or coff.
  12020. linux*oldld* | linux*aout* | linux*coff*)
  12021. dynamic_linker=no
  12022. ;;
  12023. # This must be Linux ELF.
  12024. linux* | k*bsd*-gnu)
  12025. version_type=linux
  12026. need_lib_prefix=no
  12027. need_version=no
  12028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12029. soname_spec='${libname}${release}${shared_ext}$major'
  12030. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12031. shlibpath_var=LD_LIBRARY_PATH
  12032. shlibpath_overrides_runpath=no
  12033. # This implies no fast_install, which is unacceptable.
  12034. # Some rework will be needed to allow for fast_install
  12035. # before this can be enabled.
  12036. hardcode_into_libs=yes
  12037. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12038. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12039. # Append ld.so.conf contents to the search path
  12040. if test -f /etc/ld.so.conf; then
  12041. 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12042. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12043. fi
  12044. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12045. # powerpc, because MkLinux only supported shared libraries with the
  12046. # GNU dynamic linker. Since this was broken with cross compilers,
  12047. # most powerpc-linux boxes support dynamic linking these days and
  12048. # people can always --disable-shared, the test was removed, and we
  12049. # assume the GNU/Linux dynamic linker is in use.
  12050. dynamic_linker='GNU/Linux ld.so'
  12051. ;;
  12052. netbsd*)
  12053. version_type=sunos
  12054. need_lib_prefix=no
  12055. need_version=no
  12056. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12058. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12059. dynamic_linker='NetBSD (a.out) ld.so'
  12060. else
  12061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12062. soname_spec='${libname}${release}${shared_ext}$major'
  12063. dynamic_linker='NetBSD ld.elf_so'
  12064. fi
  12065. shlibpath_var=LD_LIBRARY_PATH
  12066. shlibpath_overrides_runpath=yes
  12067. hardcode_into_libs=yes
  12068. ;;
  12069. newsos6)
  12070. version_type=linux
  12071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12072. shlibpath_var=LD_LIBRARY_PATH
  12073. shlibpath_overrides_runpath=yes
  12074. ;;
  12075. nto-qnx*)
  12076. version_type=linux
  12077. need_lib_prefix=no
  12078. need_version=no
  12079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12080. soname_spec='${libname}${release}${shared_ext}$major'
  12081. shlibpath_var=LD_LIBRARY_PATH
  12082. shlibpath_overrides_runpath=yes
  12083. ;;
  12084. openbsd*)
  12085. version_type=sunos
  12086. sys_lib_dlsearch_path_spec="/usr/lib"
  12087. need_lib_prefix=no
  12088. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12089. case $host_os in
  12090. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12091. *) need_version=no ;;
  12092. esac
  12093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12094. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12095. shlibpath_var=LD_LIBRARY_PATH
  12096. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12097. case $host_os in
  12098. openbsd2.[89] | openbsd2.[89].*)
  12099. shlibpath_overrides_runpath=no
  12100. ;;
  12101. *)
  12102. shlibpath_overrides_runpath=yes
  12103. ;;
  12104. esac
  12105. else
  12106. shlibpath_overrides_runpath=yes
  12107. fi
  12108. ;;
  12109. os2*)
  12110. libname_spec='$name'
  12111. shrext_cmds=".dll"
  12112. need_lib_prefix=no
  12113. library_names_spec='$libname${shared_ext} $libname.a'
  12114. dynamic_linker='OS/2 ld.exe'
  12115. shlibpath_var=LIBPATH
  12116. ;;
  12117. osf3* | osf4* | osf5*)
  12118. version_type=osf
  12119. need_lib_prefix=no
  12120. need_version=no
  12121. soname_spec='${libname}${release}${shared_ext}$major'
  12122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12123. shlibpath_var=LD_LIBRARY_PATH
  12124. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12125. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12126. ;;
  12127. rdos*)
  12128. dynamic_linker=no
  12129. ;;
  12130. solaris*)
  12131. version_type=linux
  12132. need_lib_prefix=no
  12133. need_version=no
  12134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12135. soname_spec='${libname}${release}${shared_ext}$major'
  12136. shlibpath_var=LD_LIBRARY_PATH
  12137. shlibpath_overrides_runpath=yes
  12138. hardcode_into_libs=yes
  12139. # ldd complains unless libraries are executable
  12140. postinstall_cmds='chmod +x $lib'
  12141. ;;
  12142. sunos4*)
  12143. version_type=sunos
  12144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12145. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12146. shlibpath_var=LD_LIBRARY_PATH
  12147. shlibpath_overrides_runpath=yes
  12148. if test "$with_gnu_ld" = yes; then
  12149. need_lib_prefix=no
  12150. fi
  12151. need_version=yes
  12152. ;;
  12153. sysv4 | sysv4.3*)
  12154. version_type=linux
  12155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12156. soname_spec='${libname}${release}${shared_ext}$major'
  12157. shlibpath_var=LD_LIBRARY_PATH
  12158. case $host_vendor in
  12159. sni)
  12160. shlibpath_overrides_runpath=no
  12161. need_lib_prefix=no
  12162. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12163. runpath_var=LD_RUN_PATH
  12164. ;;
  12165. siemens)
  12166. need_lib_prefix=no
  12167. ;;
  12168. motorola)
  12169. need_lib_prefix=no
  12170. need_version=no
  12171. shlibpath_overrides_runpath=no
  12172. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12173. ;;
  12174. esac
  12175. ;;
  12176. sysv4*MP*)
  12177. if test -d /usr/nec ;then
  12178. version_type=linux
  12179. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12180. soname_spec='$libname${shared_ext}.$major'
  12181. shlibpath_var=LD_LIBRARY_PATH
  12182. fi
  12183. ;;
  12184. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12185. version_type=freebsd-elf
  12186. need_lib_prefix=no
  12187. need_version=no
  12188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12189. soname_spec='${libname}${release}${shared_ext}$major'
  12190. shlibpath_var=LD_LIBRARY_PATH
  12191. hardcode_into_libs=yes
  12192. if test "$with_gnu_ld" = yes; then
  12193. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12194. shlibpath_overrides_runpath=no
  12195. else
  12196. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12197. shlibpath_overrides_runpath=yes
  12198. case $host_os in
  12199. sco3.2v5*)
  12200. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12201. ;;
  12202. esac
  12203. fi
  12204. sys_lib_dlsearch_path_spec='/usr/lib'
  12205. ;;
  12206. uts4*)
  12207. version_type=linux
  12208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12209. soname_spec='${libname}${release}${shared_ext}$major'
  12210. shlibpath_var=LD_LIBRARY_PATH
  12211. ;;
  12212. *)
  12213. dynamic_linker=no
  12214. ;;
  12215. esac
  12216. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12217. echo "${ECHO_T}$dynamic_linker" >&6; }
  12218. test "$dynamic_linker" = no && can_build_shared=no
  12219. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12220. if test "$GCC" = yes; then
  12221. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12222. fi
  12223. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12224. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12225. hardcode_action_CXX=
  12226. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12227. test -n "$runpath_var_CXX" || \
  12228. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12229. # We can hardcode non-existant directories.
  12230. if test "$hardcode_direct_CXX" != no &&
  12231. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12232. # have to relink, otherwise we might link with an installed library
  12233. # when we should be linking with a yet-to-be-installed one
  12234. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12235. test "$hardcode_minus_L_CXX" != no; then
  12236. # Linking always hardcodes the temporary library directory.
  12237. hardcode_action_CXX=relink
  12238. else
  12239. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12240. hardcode_action_CXX=immediate
  12241. fi
  12242. else
  12243. # We cannot hardcode anything, or else we can only hardcode existing
  12244. # directories.
  12245. hardcode_action_CXX=unsupported
  12246. fi
  12247. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12248. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12249. if test "$hardcode_action_CXX" = relink; then
  12250. # Fast installation is not supported
  12251. enable_fast_install=no
  12252. elif test "$shlibpath_overrides_runpath" = yes ||
  12253. test "$enable_shared" = no; then
  12254. # Fast installation is not necessary
  12255. enable_fast_install=needless
  12256. fi
  12257. # The else clause should only fire when bootstrapping the
  12258. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12259. # with your package, and you will get complaints that there are
  12260. # no rules to generate ltmain.sh.
  12261. if test -f "$ltmain"; then
  12262. # See if we are running on zsh, and set the options which allow our commands through
  12263. # without removal of \ escapes.
  12264. if test -n "${ZSH_VERSION+set}" ; then
  12265. setopt NO_GLOB_SUBST
  12266. fi
  12267. # Now quote all the things that may contain metacharacters while being
  12268. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12269. # variables and quote the copies for generation of the libtool script.
  12270. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12271. SED SHELL STRIP \
  12272. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12273. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12274. deplibs_check_method reload_flag reload_cmds need_locks \
  12275. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12276. lt_cv_sys_global_symbol_to_c_name_address \
  12277. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12278. old_postinstall_cmds old_postuninstall_cmds \
  12279. compiler_CXX \
  12280. CC_CXX \
  12281. LD_CXX \
  12282. lt_prog_compiler_wl_CXX \
  12283. lt_prog_compiler_pic_CXX \
  12284. lt_prog_compiler_static_CXX \
  12285. lt_prog_compiler_no_builtin_flag_CXX \
  12286. export_dynamic_flag_spec_CXX \
  12287. thread_safe_flag_spec_CXX \
  12288. whole_archive_flag_spec_CXX \
  12289. enable_shared_with_static_runtimes_CXX \
  12290. old_archive_cmds_CXX \
  12291. old_archive_from_new_cmds_CXX \
  12292. predep_objects_CXX \
  12293. postdep_objects_CXX \
  12294. predeps_CXX \
  12295. postdeps_CXX \
  12296. compiler_lib_search_path_CXX \
  12297. archive_cmds_CXX \
  12298. archive_expsym_cmds_CXX \
  12299. postinstall_cmds_CXX \
  12300. postuninstall_cmds_CXX \
  12301. old_archive_from_expsyms_cmds_CXX \
  12302. allow_undefined_flag_CXX \
  12303. no_undefined_flag_CXX \
  12304. export_symbols_cmds_CXX \
  12305. hardcode_libdir_flag_spec_CXX \
  12306. hardcode_libdir_flag_spec_ld_CXX \
  12307. hardcode_libdir_separator_CXX \
  12308. hardcode_automatic_CXX \
  12309. module_cmds_CXX \
  12310. module_expsym_cmds_CXX \
  12311. lt_cv_prog_compiler_c_o_CXX \
  12312. fix_srcfile_path_CXX \
  12313. exclude_expsyms_CXX \
  12314. include_expsyms_CXX; do
  12315. case $var in
  12316. old_archive_cmds_CXX | \
  12317. old_archive_from_new_cmds_CXX | \
  12318. archive_cmds_CXX | \
  12319. archive_expsym_cmds_CXX | \
  12320. module_cmds_CXX | \
  12321. module_expsym_cmds_CXX | \
  12322. old_archive_from_expsyms_cmds_CXX | \
  12323. export_symbols_cmds_CXX | \
  12324. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12325. postinstall_cmds | postuninstall_cmds | \
  12326. old_postinstall_cmds | old_postuninstall_cmds | \
  12327. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12328. # Double-quote double-evaled strings.
  12329. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12330. ;;
  12331. *)
  12332. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12333. ;;
  12334. esac
  12335. done
  12336. case $lt_echo in
  12337. *'\$0 --fallback-echo"')
  12338. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12339. ;;
  12340. esac
  12341. cfgfile="$ofile"
  12342. cat <<__EOF__ >> "$cfgfile"
  12343. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12344. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12345. # Shell to use when invoking shell scripts.
  12346. SHELL=$lt_SHELL
  12347. # Whether or not to build shared libraries.
  12348. build_libtool_libs=$enable_shared
  12349. # Whether or not to build static libraries.
  12350. build_old_libs=$enable_static
  12351. # Whether or not to add -lc for building shared libraries.
  12352. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12353. # Whether or not to disallow shared libs when runtime libs are static
  12354. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12355. # Whether or not to optimize for fast installation.
  12356. fast_install=$enable_fast_install
  12357. # The host system.
  12358. host_alias=$host_alias
  12359. host=$host
  12360. host_os=$host_os
  12361. # The build system.
  12362. build_alias=$build_alias
  12363. build=$build
  12364. build_os=$build_os
  12365. # An echo program that does not interpret backslashes.
  12366. echo=$lt_echo
  12367. # The archiver.
  12368. AR=$lt_AR
  12369. AR_FLAGS=$lt_AR_FLAGS
  12370. # A C compiler.
  12371. LTCC=$lt_LTCC
  12372. # LTCC compiler flags.
  12373. LTCFLAGS=$lt_LTCFLAGS
  12374. # A language-specific compiler.
  12375. CC=$lt_compiler_CXX
  12376. # Is the compiler the GNU C compiler?
  12377. with_gcc=$GCC_CXX
  12378. # An ERE matcher.
  12379. EGREP=$lt_EGREP
  12380. # The linker used to build libraries.
  12381. LD=$lt_LD_CXX
  12382. # Whether we need hard or soft links.
  12383. LN_S=$lt_LN_S
  12384. # A BSD-compatible nm program.
  12385. NM=$lt_NM
  12386. # A symbol stripping program
  12387. STRIP=$lt_STRIP
  12388. # Used to examine libraries when file_magic_cmd begins "file"
  12389. MAGIC_CMD=$MAGIC_CMD
  12390. # Used on cygwin: DLL creation program.
  12391. DLLTOOL="$DLLTOOL"
  12392. # Used on cygwin: object dumper.
  12393. OBJDUMP="$OBJDUMP"
  12394. # Used on cygwin: assembler.
  12395. AS="$AS"
  12396. # The name of the directory that contains temporary libtool files.
  12397. objdir=$objdir
  12398. # How to create reloadable object files.
  12399. reload_flag=$lt_reload_flag
  12400. reload_cmds=$lt_reload_cmds
  12401. # How to pass a linker flag through the compiler.
  12402. wl=$lt_lt_prog_compiler_wl_CXX
  12403. # Object file suffix (normally "o").
  12404. objext="$ac_objext"
  12405. # Old archive suffix (normally "a").
  12406. libext="$libext"
  12407. # Shared library suffix (normally ".so").
  12408. shrext_cmds='$shrext_cmds'
  12409. # Executable file suffix (normally "").
  12410. exeext="$exeext"
  12411. # Additional compiler flags for building library objects.
  12412. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12413. pic_mode=$pic_mode
  12414. # What is the maximum length of a command?
  12415. max_cmd_len=$lt_cv_sys_max_cmd_len
  12416. # Does compiler simultaneously support -c and -o options?
  12417. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12418. # Must we lock files when doing compilation?
  12419. need_locks=$lt_need_locks
  12420. # Do we need the lib prefix for modules?
  12421. need_lib_prefix=$need_lib_prefix
  12422. # Do we need a version for libraries?
  12423. need_version=$need_version
  12424. # Whether dlopen is supported.
  12425. dlopen_support=$enable_dlopen
  12426. # Whether dlopen of programs is supported.
  12427. dlopen_self=$enable_dlopen_self
  12428. # Whether dlopen of statically linked programs is supported.
  12429. dlopen_self_static=$enable_dlopen_self_static
  12430. # Compiler flag to prevent dynamic linking.
  12431. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12432. # Compiler flag to turn off builtin functions.
  12433. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12434. # Compiler flag to allow reflexive dlopens.
  12435. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12436. # Compiler flag to generate shared objects directly from archives.
  12437. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12438. # Compiler flag to generate thread-safe objects.
  12439. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12440. # Library versioning type.
  12441. version_type=$version_type
  12442. # Format of library name prefix.
  12443. libname_spec=$lt_libname_spec
  12444. # List of archive names. First name is the real one, the rest are links.
  12445. # The last name is the one that the linker finds with -lNAME.
  12446. library_names_spec=$lt_library_names_spec
  12447. # The coded name of the library, if different from the real name.
  12448. soname_spec=$lt_soname_spec
  12449. # Commands used to build and install an old-style archive.
  12450. RANLIB=$lt_RANLIB
  12451. old_archive_cmds=$lt_old_archive_cmds_CXX
  12452. old_postinstall_cmds=$lt_old_postinstall_cmds
  12453. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12454. # Create an old-style archive from a shared archive.
  12455. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12456. # Create a temporary old-style archive to link instead of a shared archive.
  12457. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12458. # Commands used to build and install a shared archive.
  12459. archive_cmds=$lt_archive_cmds_CXX
  12460. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12461. postinstall_cmds=$lt_postinstall_cmds
  12462. postuninstall_cmds=$lt_postuninstall_cmds
  12463. # Commands used to build a loadable module (assumed same as above if empty)
  12464. module_cmds=$lt_module_cmds_CXX
  12465. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12466. # Commands to strip libraries.
  12467. old_striplib=$lt_old_striplib
  12468. striplib=$lt_striplib
  12469. # Dependencies to place before the objects being linked to create a
  12470. # shared library.
  12471. predep_objects=$lt_predep_objects_CXX
  12472. # Dependencies to place after the objects being linked to create a
  12473. # shared library.
  12474. postdep_objects=$lt_postdep_objects_CXX
  12475. # Dependencies to place before the objects being linked to create a
  12476. # shared library.
  12477. predeps=$lt_predeps_CXX
  12478. # Dependencies to place after the objects being linked to create a
  12479. # shared library.
  12480. postdeps=$lt_postdeps_CXX
  12481. # The library search path used internally by the compiler when linking
  12482. # a shared library.
  12483. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12484. # Method to check whether dependent libraries are shared objects.
  12485. deplibs_check_method=$lt_deplibs_check_method
  12486. # Command to use when deplibs_check_method == file_magic.
  12487. file_magic_cmd=$lt_file_magic_cmd
  12488. # Flag that allows shared libraries with undefined symbols to be built.
  12489. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12490. # Flag that forces no undefined symbols.
  12491. no_undefined_flag=$lt_no_undefined_flag_CXX
  12492. # Commands used to finish a libtool library installation in a directory.
  12493. finish_cmds=$lt_finish_cmds
  12494. # Same as above, but a single script fragment to be evaled but not shown.
  12495. finish_eval=$lt_finish_eval
  12496. # Take the output of nm and produce a listing of raw symbols and C names.
  12497. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12498. # Transform the output of nm in a proper C declaration
  12499. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12500. # Transform the output of nm in a C name address pair
  12501. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12502. # This is the shared library runtime path variable.
  12503. runpath_var=$runpath_var
  12504. # This is the shared library path variable.
  12505. shlibpath_var=$shlibpath_var
  12506. # Is shlibpath searched before the hard-coded library search path?
  12507. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12508. # How to hardcode a shared library path into an executable.
  12509. hardcode_action=$hardcode_action_CXX
  12510. # Whether we should hardcode library paths into libraries.
  12511. hardcode_into_libs=$hardcode_into_libs
  12512. # Flag to hardcode \$libdir into a binary during linking.
  12513. # This must work even if \$libdir does not exist.
  12514. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12515. # If ld is used when linking, flag to hardcode \$libdir into
  12516. # a binary during linking. This must work even if \$libdir does
  12517. # not exist.
  12518. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12519. # Whether we need a single -rpath flag with a separated argument.
  12520. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12521. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12522. # resulting binary.
  12523. hardcode_direct=$hardcode_direct_CXX
  12524. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12525. # resulting binary.
  12526. hardcode_minus_L=$hardcode_minus_L_CXX
  12527. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12528. # the resulting binary.
  12529. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12530. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12531. # and all subsequent libraries and executables linked against it.
  12532. hardcode_automatic=$hardcode_automatic_CXX
  12533. # Variables whose values should be saved in libtool wrapper scripts and
  12534. # restored at relink time.
  12535. variables_saved_for_relink="$variables_saved_for_relink"
  12536. # Whether libtool must link a program against all its dependency libraries.
  12537. link_all_deplibs=$link_all_deplibs_CXX
  12538. # Compile-time system search path for libraries
  12539. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12540. # Run-time system search path for libraries
  12541. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12542. # Fix the shell variable \$srcfile for the compiler.
  12543. fix_srcfile_path=$lt_fix_srcfile_path
  12544. # Set to yes if exported symbols are required.
  12545. always_export_symbols=$always_export_symbols_CXX
  12546. # The commands to list exported symbols.
  12547. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12548. # The commands to extract the exported symbol list from a shared archive.
  12549. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12550. # Symbols that should not be listed in the preloaded symbols.
  12551. exclude_expsyms=$lt_exclude_expsyms_CXX
  12552. # Symbols that must always be exported.
  12553. include_expsyms=$lt_include_expsyms_CXX
  12554. # ### END LIBTOOL TAG CONFIG: $tagname
  12555. __EOF__
  12556. else
  12557. # If there is no Makefile yet, we rely on a make rule to execute
  12558. # `config.status --recheck' to rerun these tests and create the
  12559. # libtool script then.
  12560. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12561. if test -f "$ltmain_in"; then
  12562. test -f Makefile && make "$ltmain"
  12563. fi
  12564. fi
  12565. ac_ext=c
  12566. ac_cpp='$CPP $CPPFLAGS'
  12567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12570. CC=$lt_save_CC
  12571. LDCXX=$LD
  12572. LD=$lt_save_LD
  12573. GCC=$lt_save_GCC
  12574. with_gnu_ldcxx=$with_gnu_ld
  12575. with_gnu_ld=$lt_save_with_gnu_ld
  12576. lt_cv_path_LDCXX=$lt_cv_path_LD
  12577. lt_cv_path_LD=$lt_save_path_LD
  12578. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12579. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12580. else
  12581. tagname=""
  12582. fi
  12583. ;;
  12584. F77)
  12585. if test -n "$F77" && test "X$F77" != "Xno"; then
  12586. ac_ext=f
  12587. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12588. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12589. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12590. archive_cmds_need_lc_F77=no
  12591. allow_undefined_flag_F77=
  12592. always_export_symbols_F77=no
  12593. archive_expsym_cmds_F77=
  12594. export_dynamic_flag_spec_F77=
  12595. hardcode_direct_F77=no
  12596. hardcode_libdir_flag_spec_F77=
  12597. hardcode_libdir_flag_spec_ld_F77=
  12598. hardcode_libdir_separator_F77=
  12599. hardcode_minus_L_F77=no
  12600. hardcode_automatic_F77=no
  12601. module_cmds_F77=
  12602. module_expsym_cmds_F77=
  12603. link_all_deplibs_F77=unknown
  12604. old_archive_cmds_F77=$old_archive_cmds
  12605. no_undefined_flag_F77=
  12606. whole_archive_flag_spec_F77=
  12607. enable_shared_with_static_runtimes_F77=no
  12608. # Source file extension for f77 test sources.
  12609. ac_ext=f
  12610. # Object file extension for compiled f77 test sources.
  12611. objext=o
  12612. objext_F77=$objext
  12613. # Code to be used in simple compile tests
  12614. lt_simple_compile_test_code="\
  12615. subroutine t
  12616. return
  12617. end
  12618. "
  12619. # Code to be used in simple link tests
  12620. lt_simple_link_test_code="\
  12621. program t
  12622. end
  12623. "
  12624. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12625. # If no C compiler was specified, use CC.
  12626. LTCC=${LTCC-"$CC"}
  12627. # If no C compiler flags were specified, use CFLAGS.
  12628. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12629. # Allow CC to be a program name with arguments.
  12630. compiler=$CC
  12631. # save warnings/boilerplate of simple test code
  12632. ac_outfile=conftest.$ac_objext
  12633. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12634. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12635. _lt_compiler_boilerplate=`cat conftest.err`
  12636. $rm conftest*
  12637. ac_outfile=conftest.$ac_objext
  12638. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12639. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12640. _lt_linker_boilerplate=`cat conftest.err`
  12641. $rm conftest*
  12642. # Allow CC to be a program name with arguments.
  12643. lt_save_CC="$CC"
  12644. CC=${F77-"f77"}
  12645. compiler=$CC
  12646. compiler_F77=$CC
  12647. for cc_temp in $compiler""; do
  12648. case $cc_temp in
  12649. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12650. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12651. \-*) ;;
  12652. *) break;;
  12653. esac
  12654. done
  12655. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12656. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12657. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12658. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12659. echo "${ECHO_T}$can_build_shared" >&6; }
  12660. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12661. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12662. test "$can_build_shared" = "no" && enable_shared=no
  12663. # On AIX, shared libraries and static libraries use the same namespace, and
  12664. # are all built from PIC.
  12665. case $host_os in
  12666. aix3*)
  12667. test "$enable_shared" = yes && enable_static=no
  12668. if test -n "$RANLIB"; then
  12669. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12670. postinstall_cmds='$RANLIB $lib'
  12671. fi
  12672. ;;
  12673. aix4* | aix5*)
  12674. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12675. test "$enable_shared" = yes && enable_static=no
  12676. fi
  12677. ;;
  12678. esac
  12679. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12680. echo "${ECHO_T}$enable_shared" >&6; }
  12681. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12682. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12683. # Make sure either enable_shared or enable_static is yes.
  12684. test "$enable_shared" = yes || enable_static=yes
  12685. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12686. echo "${ECHO_T}$enable_static" >&6; }
  12687. GCC_F77="$G77"
  12688. LD_F77="$LD"
  12689. lt_prog_compiler_wl_F77=
  12690. lt_prog_compiler_pic_F77=
  12691. lt_prog_compiler_static_F77=
  12692. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12693. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12694. if test "$GCC" = yes; then
  12695. lt_prog_compiler_wl_F77='-Wl,'
  12696. lt_prog_compiler_static_F77='-static'
  12697. case $host_os in
  12698. aix*)
  12699. # All AIX code is PIC.
  12700. if test "$host_cpu" = ia64; then
  12701. # AIX 5 now supports IA64 processor
  12702. lt_prog_compiler_static_F77='-Bstatic'
  12703. fi
  12704. ;;
  12705. amigaos*)
  12706. # FIXME: we need at least 68020 code to build shared libraries, but
  12707. # adding the `-m68020' flag to GCC prevents building anything better,
  12708. # like `-m68040'.
  12709. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12710. ;;
  12711. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12712. # PIC is the default for these OSes.
  12713. ;;
  12714. mingw* | cygwin* | pw32* | os2*)
  12715. # This hack is so that the source file can tell whether it is being
  12716. # built for inclusion in a dll (and should export symbols for example).
  12717. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12718. # (--disable-auto-import) libraries
  12719. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12720. ;;
  12721. darwin* | rhapsody*)
  12722. # PIC is the default on this platform
  12723. # Common symbols not allowed in MH_DYLIB files
  12724. lt_prog_compiler_pic_F77='-fno-common'
  12725. ;;
  12726. interix[3-9]*)
  12727. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12728. # Instead, we relocate shared libraries at runtime.
  12729. ;;
  12730. msdosdjgpp*)
  12731. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12732. # on systems that don't support them.
  12733. lt_prog_compiler_can_build_shared_F77=no
  12734. enable_shared=no
  12735. ;;
  12736. sysv4*MP*)
  12737. if test -d /usr/nec; then
  12738. lt_prog_compiler_pic_F77=-Kconform_pic
  12739. fi
  12740. ;;
  12741. hpux*)
  12742. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12743. # not for PA HP-UX.
  12744. case $host_cpu in
  12745. hppa*64*|ia64*)
  12746. # +Z the default
  12747. ;;
  12748. *)
  12749. lt_prog_compiler_pic_F77='-fPIC'
  12750. ;;
  12751. esac
  12752. ;;
  12753. *)
  12754. lt_prog_compiler_pic_F77='-fPIC'
  12755. ;;
  12756. esac
  12757. else
  12758. # PORTME Check for flag to pass linker flags through the system compiler.
  12759. case $host_os in
  12760. aix*)
  12761. lt_prog_compiler_wl_F77='-Wl,'
  12762. if test "$host_cpu" = ia64; then
  12763. # AIX 5 now supports IA64 processor
  12764. lt_prog_compiler_static_F77='-Bstatic'
  12765. else
  12766. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12767. fi
  12768. ;;
  12769. darwin*)
  12770. # PIC is the default on this platform
  12771. # Common symbols not allowed in MH_DYLIB files
  12772. case $cc_basename in
  12773. xlc*)
  12774. lt_prog_compiler_pic_F77='-qnocommon'
  12775. lt_prog_compiler_wl_F77='-Wl,'
  12776. ;;
  12777. esac
  12778. ;;
  12779. mingw* | cygwin* | pw32* | os2*)
  12780. # This hack is so that the source file can tell whether it is being
  12781. # built for inclusion in a dll (and should export symbols for example).
  12782. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12783. ;;
  12784. hpux9* | hpux10* | hpux11*)
  12785. lt_prog_compiler_wl_F77='-Wl,'
  12786. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12787. # not for PA HP-UX.
  12788. case $host_cpu in
  12789. hppa*64*|ia64*)
  12790. # +Z the default
  12791. ;;
  12792. *)
  12793. lt_prog_compiler_pic_F77='+Z'
  12794. ;;
  12795. esac
  12796. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12797. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12798. ;;
  12799. irix5* | irix6* | nonstopux*)
  12800. lt_prog_compiler_wl_F77='-Wl,'
  12801. # PIC (with -KPIC) is the default.
  12802. lt_prog_compiler_static_F77='-non_shared'
  12803. ;;
  12804. newsos6)
  12805. lt_prog_compiler_pic_F77='-KPIC'
  12806. lt_prog_compiler_static_F77='-Bstatic'
  12807. ;;
  12808. linux* | k*bsd*-gnu)
  12809. case $cc_basename in
  12810. icc* | ecc*)
  12811. lt_prog_compiler_wl_F77='-Wl,'
  12812. lt_prog_compiler_pic_F77='-KPIC'
  12813. lt_prog_compiler_static_F77='-static'
  12814. ;;
  12815. pgcc* | pgf77* | pgf90* | pgf95*)
  12816. # Portland Group compilers (*not* the Pentium gcc compiler,
  12817. # which looks to be a dead project)
  12818. lt_prog_compiler_wl_F77='-Wl,'
  12819. lt_prog_compiler_pic_F77='-fpic'
  12820. lt_prog_compiler_static_F77='-Bstatic'
  12821. ;;
  12822. ccc*)
  12823. lt_prog_compiler_wl_F77='-Wl,'
  12824. # All Alpha code is PIC.
  12825. lt_prog_compiler_static_F77='-non_shared'
  12826. ;;
  12827. *)
  12828. case `$CC -V 2>&1 | sed 5q` in
  12829. *Sun\ C*)
  12830. # Sun C 5.9
  12831. lt_prog_compiler_pic_F77='-KPIC'
  12832. lt_prog_compiler_static_F77='-Bstatic'
  12833. lt_prog_compiler_wl_F77='-Wl,'
  12834. ;;
  12835. *Sun\ F*)
  12836. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12837. lt_prog_compiler_pic_F77='-KPIC'
  12838. lt_prog_compiler_static_F77='-Bstatic'
  12839. lt_prog_compiler_wl_F77=''
  12840. ;;
  12841. esac
  12842. ;;
  12843. esac
  12844. ;;
  12845. osf3* | osf4* | osf5*)
  12846. lt_prog_compiler_wl_F77='-Wl,'
  12847. # All OSF/1 code is PIC.
  12848. lt_prog_compiler_static_F77='-non_shared'
  12849. ;;
  12850. rdos*)
  12851. lt_prog_compiler_static_F77='-non_shared'
  12852. ;;
  12853. solaris*)
  12854. lt_prog_compiler_pic_F77='-KPIC'
  12855. lt_prog_compiler_static_F77='-Bstatic'
  12856. case $cc_basename in
  12857. f77* | f90* | f95*)
  12858. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12859. *)
  12860. lt_prog_compiler_wl_F77='-Wl,';;
  12861. esac
  12862. ;;
  12863. sunos4*)
  12864. lt_prog_compiler_wl_F77='-Qoption ld '
  12865. lt_prog_compiler_pic_F77='-PIC'
  12866. lt_prog_compiler_static_F77='-Bstatic'
  12867. ;;
  12868. sysv4 | sysv4.2uw2* | sysv4.3*)
  12869. lt_prog_compiler_wl_F77='-Wl,'
  12870. lt_prog_compiler_pic_F77='-KPIC'
  12871. lt_prog_compiler_static_F77='-Bstatic'
  12872. ;;
  12873. sysv4*MP*)
  12874. if test -d /usr/nec ;then
  12875. lt_prog_compiler_pic_F77='-Kconform_pic'
  12876. lt_prog_compiler_static_F77='-Bstatic'
  12877. fi
  12878. ;;
  12879. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12880. lt_prog_compiler_wl_F77='-Wl,'
  12881. lt_prog_compiler_pic_F77='-KPIC'
  12882. lt_prog_compiler_static_F77='-Bstatic'
  12883. ;;
  12884. unicos*)
  12885. lt_prog_compiler_wl_F77='-Wl,'
  12886. lt_prog_compiler_can_build_shared_F77=no
  12887. ;;
  12888. uts4*)
  12889. lt_prog_compiler_pic_F77='-pic'
  12890. lt_prog_compiler_static_F77='-Bstatic'
  12891. ;;
  12892. *)
  12893. lt_prog_compiler_can_build_shared_F77=no
  12894. ;;
  12895. esac
  12896. fi
  12897. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12898. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12899. #
  12900. # Check to make sure the PIC flag actually works.
  12901. #
  12902. if test -n "$lt_prog_compiler_pic_F77"; then
  12903. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12904. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12905. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12906. echo $ECHO_N "(cached) $ECHO_C" >&6
  12907. else
  12908. lt_prog_compiler_pic_works_F77=no
  12909. ac_outfile=conftest.$ac_objext
  12910. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12911. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12912. # Insert the option either (1) after the last *FLAGS variable, or
  12913. # (2) before a word containing "conftest.", or (3) at the end.
  12914. # Note that $ac_compile itself does not contain backslashes and begins
  12915. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12916. # The option is referenced via a variable to avoid confusing sed.
  12917. lt_compile=`echo "$ac_compile" | $SED \
  12918. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12919. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12920. -e 's:$: $lt_compiler_flag:'`
  12921. (eval echo "\"\$as_me:14422: $lt_compile\"" >&5)
  12922. (eval "$lt_compile" 2>conftest.err)
  12923. ac_status=$?
  12924. cat conftest.err >&5
  12925. echo "$as_me:14426: \$? = $ac_status" >&5
  12926. if (exit $ac_status) && test -s "$ac_outfile"; then
  12927. # The compiler can only warn and ignore the option if not recognized
  12928. # So say no if there are warnings other than the usual output.
  12929. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12930. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12931. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12932. lt_prog_compiler_pic_works_F77=yes
  12933. fi
  12934. fi
  12935. $rm conftest*
  12936. fi
  12937. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12938. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12939. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12940. case $lt_prog_compiler_pic_F77 in
  12941. "" | " "*) ;;
  12942. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12943. esac
  12944. else
  12945. lt_prog_compiler_pic_F77=
  12946. lt_prog_compiler_can_build_shared_F77=no
  12947. fi
  12948. fi
  12949. case $host_os in
  12950. # For platforms which do not support PIC, -DPIC is meaningless:
  12951. *djgpp*)
  12952. lt_prog_compiler_pic_F77=
  12953. ;;
  12954. *)
  12955. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12956. ;;
  12957. esac
  12958. #
  12959. # Check to make sure the static flag actually works.
  12960. #
  12961. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12962. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12963. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12964. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12965. echo $ECHO_N "(cached) $ECHO_C" >&6
  12966. else
  12967. lt_prog_compiler_static_works_F77=no
  12968. save_LDFLAGS="$LDFLAGS"
  12969. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12970. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12971. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12972. # The linker can only warn and ignore the option if not recognized
  12973. # So say no if there are warnings
  12974. if test -s conftest.err; then
  12975. # Append any errors to the config.log.
  12976. cat conftest.err 1>&5
  12977. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12978. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12979. if diff conftest.exp conftest.er2 >/dev/null; then
  12980. lt_prog_compiler_static_works_F77=yes
  12981. fi
  12982. else
  12983. lt_prog_compiler_static_works_F77=yes
  12984. fi
  12985. fi
  12986. $rm conftest*
  12987. LDFLAGS="$save_LDFLAGS"
  12988. fi
  12989. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12990. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12991. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12992. :
  12993. else
  12994. lt_prog_compiler_static_F77=
  12995. fi
  12996. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12997. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12998. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12999. echo $ECHO_N "(cached) $ECHO_C" >&6
  13000. else
  13001. lt_cv_prog_compiler_c_o_F77=no
  13002. $rm -r conftest 2>/dev/null
  13003. mkdir conftest
  13004. cd conftest
  13005. mkdir out
  13006. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13007. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13008. # Insert the option either (1) after the last *FLAGS variable, or
  13009. # (2) before a word containing "conftest.", or (3) at the end.
  13010. # Note that $ac_compile itself does not contain backslashes and begins
  13011. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13012. lt_compile=`echo "$ac_compile" | $SED \
  13013. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13014. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13015. -e 's:$: $lt_compiler_flag:'`
  13016. (eval echo "\"\$as_me:14526: $lt_compile\"" >&5)
  13017. (eval "$lt_compile" 2>out/conftest.err)
  13018. ac_status=$?
  13019. cat out/conftest.err >&5
  13020. echo "$as_me:14530: \$? = $ac_status" >&5
  13021. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13022. then
  13023. # The compiler can only warn and ignore the option if not recognized
  13024. # So say no if there are warnings
  13025. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13026. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13027. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13028. lt_cv_prog_compiler_c_o_F77=yes
  13029. fi
  13030. fi
  13031. chmod u+w . 2>&5
  13032. $rm conftest*
  13033. # SGI C++ compiler will create directory out/ii_files/ for
  13034. # template instantiation
  13035. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13036. $rm out/* && rmdir out
  13037. cd ..
  13038. rmdir conftest
  13039. $rm conftest*
  13040. fi
  13041. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13042. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13043. hard_links="nottested"
  13044. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13045. # do not overwrite the value of need_locks provided by the user
  13046. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13047. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13048. hard_links=yes
  13049. $rm conftest*
  13050. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13051. touch conftest.a
  13052. ln conftest.a conftest.b 2>&5 || hard_links=no
  13053. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13054. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13055. echo "${ECHO_T}$hard_links" >&6; }
  13056. if test "$hard_links" = no; then
  13057. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13058. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13059. need_locks=warn
  13060. fi
  13061. else
  13062. need_locks=no
  13063. fi
  13064. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13065. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13066. runpath_var=
  13067. allow_undefined_flag_F77=
  13068. enable_shared_with_static_runtimes_F77=no
  13069. archive_cmds_F77=
  13070. archive_expsym_cmds_F77=
  13071. old_archive_From_new_cmds_F77=
  13072. old_archive_from_expsyms_cmds_F77=
  13073. export_dynamic_flag_spec_F77=
  13074. whole_archive_flag_spec_F77=
  13075. thread_safe_flag_spec_F77=
  13076. hardcode_libdir_flag_spec_F77=
  13077. hardcode_libdir_flag_spec_ld_F77=
  13078. hardcode_libdir_separator_F77=
  13079. hardcode_direct_F77=no
  13080. hardcode_minus_L_F77=no
  13081. hardcode_shlibpath_var_F77=unsupported
  13082. link_all_deplibs_F77=unknown
  13083. hardcode_automatic_F77=no
  13084. module_cmds_F77=
  13085. module_expsym_cmds_F77=
  13086. always_export_symbols_F77=no
  13087. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13088. # include_expsyms should be a list of space-separated symbols to be *always*
  13089. # included in the symbol list
  13090. include_expsyms_F77=
  13091. # exclude_expsyms can be an extended regexp of symbols to exclude
  13092. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13093. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13094. # as well as any symbol that contains `d'.
  13095. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13096. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13097. # platforms (ab)use it in PIC code, but their linkers get confused if
  13098. # the symbol is explicitly referenced. Since portable code cannot
  13099. # rely on this symbol name, it's probably fine to never include it in
  13100. # preloaded symbol tables.
  13101. extract_expsyms_cmds=
  13102. # Just being paranoid about ensuring that cc_basename is set.
  13103. for cc_temp in $compiler""; do
  13104. case $cc_temp in
  13105. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13106. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13107. \-*) ;;
  13108. *) break;;
  13109. esac
  13110. done
  13111. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13112. case $host_os in
  13113. cygwin* | mingw* | pw32*)
  13114. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13115. # When not using gcc, we currently assume that we are using
  13116. # Microsoft Visual C++.
  13117. if test "$GCC" != yes; then
  13118. with_gnu_ld=no
  13119. fi
  13120. ;;
  13121. interix*)
  13122. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13123. with_gnu_ld=yes
  13124. ;;
  13125. openbsd*)
  13126. with_gnu_ld=no
  13127. ;;
  13128. esac
  13129. ld_shlibs_F77=yes
  13130. if test "$with_gnu_ld" = yes; then
  13131. # If archive_cmds runs LD, not CC, wlarc should be empty
  13132. wlarc='${wl}'
  13133. # Set some defaults for GNU ld with shared library support. These
  13134. # are reset later if shared libraries are not supported. Putting them
  13135. # here allows them to be overridden if necessary.
  13136. runpath_var=LD_RUN_PATH
  13137. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13138. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13139. # ancient GNU ld didn't support --whole-archive et. al.
  13140. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13141. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13142. else
  13143. whole_archive_flag_spec_F77=
  13144. fi
  13145. supports_anon_versioning=no
  13146. case `$LD -v 2>/dev/null` in
  13147. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13148. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13149. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13150. *\ 2.11.*) ;; # other 2.11 versions
  13151. *) supports_anon_versioning=yes ;;
  13152. esac
  13153. # See if GNU ld supports shared libraries.
  13154. case $host_os in
  13155. aix3* | aix4* | aix5*)
  13156. # On AIX/PPC, the GNU linker is very broken
  13157. if test "$host_cpu" != ia64; then
  13158. ld_shlibs_F77=no
  13159. cat <<EOF 1>&2
  13160. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13161. *** to be unable to reliably create shared libraries on AIX.
  13162. *** Therefore, libtool is disabling shared libraries support. If you
  13163. *** really care for shared libraries, you may want to modify your PATH
  13164. *** so that a non-GNU linker is found, and then restart.
  13165. EOF
  13166. fi
  13167. ;;
  13168. amigaos*)
  13169. 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)'
  13170. hardcode_libdir_flag_spec_F77='-L$libdir'
  13171. hardcode_minus_L_F77=yes
  13172. # Samuel A. Falvo II <[email protected]> reports
  13173. # that the semantics of dynamic libraries on AmigaOS, at least up
  13174. # to version 4, is to share data among multiple programs linked
  13175. # with the same dynamic library. Since this doesn't match the
  13176. # behavior of shared libraries on other platforms, we can't use
  13177. # them.
  13178. ld_shlibs_F77=no
  13179. ;;
  13180. beos*)
  13181. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13182. allow_undefined_flag_F77=unsupported
  13183. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13184. # support --undefined. This deserves some investigation. FIXME
  13185. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13186. else
  13187. ld_shlibs_F77=no
  13188. fi
  13189. ;;
  13190. cygwin* | mingw* | pw32*)
  13191. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13192. # as there is no search path for DLLs.
  13193. hardcode_libdir_flag_spec_F77='-L$libdir'
  13194. allow_undefined_flag_F77=unsupported
  13195. always_export_symbols_F77=no
  13196. enable_shared_with_static_runtimes_F77=yes
  13197. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13198. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13199. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13200. # If the export-symbols file already is a .def file (1st line
  13201. # is EXPORTS), use it as is; otherwise, prepend...
  13202. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13203. cp $export_symbols $output_objdir/$soname.def;
  13204. else
  13205. echo EXPORTS > $output_objdir/$soname.def;
  13206. cat $export_symbols >> $output_objdir/$soname.def;
  13207. fi~
  13208. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13209. else
  13210. ld_shlibs_F77=no
  13211. fi
  13212. ;;
  13213. interix[3-9]*)
  13214. hardcode_direct_F77=no
  13215. hardcode_shlibpath_var_F77=no
  13216. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13217. export_dynamic_flag_spec_F77='${wl}-E'
  13218. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13219. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13220. # default) and relocated if they conflict, which is a slow very memory
  13221. # consuming and fragmenting process. To avoid this, we pick a random,
  13222. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13223. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13224. 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'
  13225. 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'
  13226. ;;
  13227. gnu* | linux* | k*bsd*-gnu)
  13228. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13229. tmp_addflag=
  13230. case $cc_basename,$host_cpu in
  13231. pgcc*) # Portland Group C compiler
  13232. 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'
  13233. tmp_addflag=' $pic_flag'
  13234. ;;
  13235. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13236. 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'
  13237. tmp_addflag=' $pic_flag -Mnomain' ;;
  13238. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13239. tmp_addflag=' -i_dynamic' ;;
  13240. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13241. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13242. ifc* | ifort*) # Intel Fortran compiler
  13243. tmp_addflag=' -nofor_main' ;;
  13244. esac
  13245. case `$CC -V 2>&1 | sed 5q` in
  13246. *Sun\ C*) # Sun C 5.9
  13247. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13248. tmp_sharedflag='-G' ;;
  13249. *Sun\ F*) # Sun Fortran 8.3
  13250. tmp_sharedflag='-G' ;;
  13251. *)
  13252. tmp_sharedflag='-shared' ;;
  13253. esac
  13254. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13255. if test $supports_anon_versioning = yes; then
  13256. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13257. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13258. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13259. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13260. fi
  13261. else
  13262. ld_shlibs_F77=no
  13263. fi
  13264. ;;
  13265. netbsd*)
  13266. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13267. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13268. wlarc=
  13269. else
  13270. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13271. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13272. fi
  13273. ;;
  13274. solaris*)
  13275. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13276. ld_shlibs_F77=no
  13277. cat <<EOF 1>&2
  13278. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13279. *** create shared libraries on Solaris systems. Therefore, libtool
  13280. *** is disabling shared libraries support. We urge you to upgrade GNU
  13281. *** binutils to release 2.9.1 or newer. Another option is to modify
  13282. *** your PATH or compiler configuration so that the native linker is
  13283. *** used, and then restart.
  13284. EOF
  13285. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13286. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13287. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13288. else
  13289. ld_shlibs_F77=no
  13290. fi
  13291. ;;
  13292. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13293. case `$LD -v 2>&1` in
  13294. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13295. ld_shlibs_F77=no
  13296. cat <<_LT_EOF 1>&2
  13297. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13298. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13299. *** is disabling shared libraries support. We urge you to upgrade GNU
  13300. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13301. *** your PATH or compiler configuration so that the native linker is
  13302. *** used, and then restart.
  13303. _LT_EOF
  13304. ;;
  13305. *)
  13306. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13307. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13308. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13309. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13310. else
  13311. ld_shlibs_F77=no
  13312. fi
  13313. ;;
  13314. esac
  13315. ;;
  13316. sunos4*)
  13317. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13318. wlarc=
  13319. hardcode_direct_F77=yes
  13320. hardcode_shlibpath_var_F77=no
  13321. ;;
  13322. *)
  13323. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13324. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13325. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13326. else
  13327. ld_shlibs_F77=no
  13328. fi
  13329. ;;
  13330. esac
  13331. if test "$ld_shlibs_F77" = no; then
  13332. runpath_var=
  13333. hardcode_libdir_flag_spec_F77=
  13334. export_dynamic_flag_spec_F77=
  13335. whole_archive_flag_spec_F77=
  13336. fi
  13337. else
  13338. # PORTME fill in a description of your system's linker (not GNU ld)
  13339. case $host_os in
  13340. aix3*)
  13341. allow_undefined_flag_F77=unsupported
  13342. always_export_symbols_F77=yes
  13343. 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'
  13344. # Note: this linker hardcodes the directories in LIBPATH if there
  13345. # are no directories specified by -L.
  13346. hardcode_minus_L_F77=yes
  13347. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13348. # Neither direct hardcoding nor static linking is supported with a
  13349. # broken collect2.
  13350. hardcode_direct_F77=unsupported
  13351. fi
  13352. ;;
  13353. aix4* | aix5*)
  13354. if test "$host_cpu" = ia64; then
  13355. # On IA64, the linker does run time linking by default, so we don't
  13356. # have to do anything special.
  13357. aix_use_runtimelinking=no
  13358. exp_sym_flag='-Bexport'
  13359. no_entry_flag=""
  13360. else
  13361. # If we're using GNU nm, then we don't want the "-C" option.
  13362. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13363. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13364. 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'
  13365. else
  13366. 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'
  13367. fi
  13368. aix_use_runtimelinking=no
  13369. # Test if we are trying to use run time linking or normal
  13370. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13371. # need to do runtime linking.
  13372. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13373. for ld_flag in $LDFLAGS; do
  13374. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13375. aix_use_runtimelinking=yes
  13376. break
  13377. fi
  13378. done
  13379. ;;
  13380. esac
  13381. exp_sym_flag='-bexport'
  13382. no_entry_flag='-bnoentry'
  13383. fi
  13384. # When large executables or shared objects are built, AIX ld can
  13385. # have problems creating the table of contents. If linking a library
  13386. # or program results in "error TOC overflow" add -mminimal-toc to
  13387. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13388. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13389. archive_cmds_F77=''
  13390. hardcode_direct_F77=yes
  13391. hardcode_libdir_separator_F77=':'
  13392. link_all_deplibs_F77=yes
  13393. if test "$GCC" = yes; then
  13394. case $host_os in aix4.[012]|aix4.[012].*)
  13395. # We only want to do this on AIX 4.2 and lower, the check
  13396. # below for broken collect2 doesn't work under 4.3+
  13397. collect2name=`${CC} -print-prog-name=collect2`
  13398. if test -f "$collect2name" && \
  13399. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13400. then
  13401. # We have reworked collect2
  13402. :
  13403. else
  13404. # We have old collect2
  13405. hardcode_direct_F77=unsupported
  13406. # It fails to find uninstalled libraries when the uninstalled
  13407. # path is not listed in the libpath. Setting hardcode_minus_L
  13408. # to unsupported forces relinking
  13409. hardcode_minus_L_F77=yes
  13410. hardcode_libdir_flag_spec_F77='-L$libdir'
  13411. hardcode_libdir_separator_F77=
  13412. fi
  13413. ;;
  13414. esac
  13415. shared_flag='-shared'
  13416. if test "$aix_use_runtimelinking" = yes; then
  13417. shared_flag="$shared_flag "'${wl}-G'
  13418. fi
  13419. else
  13420. # not using gcc
  13421. if test "$host_cpu" = ia64; then
  13422. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13423. # chokes on -Wl,-G. The following line is correct:
  13424. shared_flag='-G'
  13425. else
  13426. if test "$aix_use_runtimelinking" = yes; then
  13427. shared_flag='${wl}-G'
  13428. else
  13429. shared_flag='${wl}-bM:SRE'
  13430. fi
  13431. fi
  13432. fi
  13433. # It seems that -bexpall does not export symbols beginning with
  13434. # underscore (_), so it is better to generate a list of symbols to export.
  13435. always_export_symbols_F77=yes
  13436. if test "$aix_use_runtimelinking" = yes; then
  13437. # Warning - without using the other runtime loading flags (-brtl),
  13438. # -berok will link without error, but may produce a broken library.
  13439. allow_undefined_flag_F77='-berok'
  13440. # Determine the default libpath from the value encoded in an empty executable.
  13441. cat >conftest.$ac_ext <<_ACEOF
  13442. program main
  13443. end
  13444. _ACEOF
  13445. rm -f conftest.$ac_objext conftest$ac_exeext
  13446. if { (ac_try="$ac_link"
  13447. case "(($ac_try" in
  13448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13449. *) ac_try_echo=$ac_try;;
  13450. esac
  13451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13452. (eval "$ac_link") 2>conftest.er1
  13453. ac_status=$?
  13454. grep -v '^ *+' conftest.er1 >conftest.err
  13455. rm -f conftest.er1
  13456. cat conftest.err >&5
  13457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13458. (exit $ac_status); } && {
  13459. test -z "$ac_f77_werror_flag" ||
  13460. test ! -s conftest.err
  13461. } && test -s conftest$ac_exeext &&
  13462. $as_test_x conftest$ac_exeext; then
  13463. lt_aix_libpath_sed='
  13464. /Import File Strings/,/^$/ {
  13465. /^0/ {
  13466. s/^0 *\(.*\)$/\1/
  13467. p
  13468. }
  13469. }'
  13470. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13471. # Check for a 64-bit object if we didn't find anything.
  13472. if test -z "$aix_libpath"; then
  13473. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13474. fi
  13475. else
  13476. echo "$as_me: failed program was:" >&5
  13477. sed 's/^/| /' conftest.$ac_ext >&5
  13478. fi
  13479. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13480. conftest$ac_exeext conftest.$ac_ext
  13481. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13482. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13483. 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"
  13484. else
  13485. if test "$host_cpu" = ia64; then
  13486. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13487. allow_undefined_flag_F77="-z nodefs"
  13488. 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"
  13489. else
  13490. # Determine the default libpath from the value encoded in an empty executable.
  13491. cat >conftest.$ac_ext <<_ACEOF
  13492. program main
  13493. end
  13494. _ACEOF
  13495. rm -f conftest.$ac_objext conftest$ac_exeext
  13496. if { (ac_try="$ac_link"
  13497. case "(($ac_try" in
  13498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13499. *) ac_try_echo=$ac_try;;
  13500. esac
  13501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13502. (eval "$ac_link") 2>conftest.er1
  13503. ac_status=$?
  13504. grep -v '^ *+' conftest.er1 >conftest.err
  13505. rm -f conftest.er1
  13506. cat conftest.err >&5
  13507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13508. (exit $ac_status); } && {
  13509. test -z "$ac_f77_werror_flag" ||
  13510. test ! -s conftest.err
  13511. } && test -s conftest$ac_exeext &&
  13512. $as_test_x conftest$ac_exeext; then
  13513. lt_aix_libpath_sed='
  13514. /Import File Strings/,/^$/ {
  13515. /^0/ {
  13516. s/^0 *\(.*\)$/\1/
  13517. p
  13518. }
  13519. }'
  13520. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13521. # Check for a 64-bit object if we didn't find anything.
  13522. if test -z "$aix_libpath"; then
  13523. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13524. fi
  13525. else
  13526. echo "$as_me: failed program was:" >&5
  13527. sed 's/^/| /' conftest.$ac_ext >&5
  13528. fi
  13529. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13530. conftest$ac_exeext conftest.$ac_ext
  13531. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13532. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13533. # Warning - without using the other run time loading flags,
  13534. # -berok will link without error, but may produce a broken library.
  13535. no_undefined_flag_F77=' ${wl}-bernotok'
  13536. allow_undefined_flag_F77=' ${wl}-berok'
  13537. # Exported symbols can be pulled into shared objects from archives
  13538. whole_archive_flag_spec_F77='$convenience'
  13539. archive_cmds_need_lc_F77=yes
  13540. # This is similar to how AIX traditionally builds its shared libraries.
  13541. 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'
  13542. fi
  13543. fi
  13544. ;;
  13545. amigaos*)
  13546. 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)'
  13547. hardcode_libdir_flag_spec_F77='-L$libdir'
  13548. hardcode_minus_L_F77=yes
  13549. # see comment about different semantics on the GNU ld section
  13550. ld_shlibs_F77=no
  13551. ;;
  13552. bsdi[45]*)
  13553. export_dynamic_flag_spec_F77=-rdynamic
  13554. ;;
  13555. cygwin* | mingw* | pw32*)
  13556. # When not using gcc, we currently assume that we are using
  13557. # Microsoft Visual C++.
  13558. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13559. # no search path for DLLs.
  13560. hardcode_libdir_flag_spec_F77=' '
  13561. allow_undefined_flag_F77=unsupported
  13562. # Tell ltmain to make .lib files, not .a files.
  13563. libext=lib
  13564. # Tell ltmain to make .dll files, not .so files.
  13565. shrext_cmds=".dll"
  13566. # FIXME: Setting linknames here is a bad hack.
  13567. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13568. # The linker will automatically build a .lib file if we build a DLL.
  13569. old_archive_From_new_cmds_F77='true'
  13570. # FIXME: Should let the user specify the lib program.
  13571. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13572. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13573. enable_shared_with_static_runtimes_F77=yes
  13574. ;;
  13575. darwin* | rhapsody*)
  13576. case $host_os in
  13577. rhapsody* | darwin1.[012])
  13578. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13579. ;;
  13580. *) # Darwin 1.3 on
  13581. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13582. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13583. else
  13584. case ${MACOSX_DEPLOYMENT_TARGET} in
  13585. 10.[012])
  13586. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13587. ;;
  13588. 10.*)
  13589. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13590. ;;
  13591. esac
  13592. fi
  13593. ;;
  13594. esac
  13595. archive_cmds_need_lc_F77=no
  13596. hardcode_direct_F77=no
  13597. hardcode_automatic_F77=yes
  13598. hardcode_shlibpath_var_F77=unsupported
  13599. whole_archive_flag_spec_F77=''
  13600. link_all_deplibs_F77=yes
  13601. if test "$GCC" = yes ; then
  13602. output_verbose_link_cmd='echo'
  13603. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13604. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13605. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13606. 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}'
  13607. 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}'
  13608. else
  13609. case $cc_basename in
  13610. xlc*)
  13611. output_verbose_link_cmd='echo'
  13612. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13613. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13614. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13615. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13616. 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}'
  13617. ;;
  13618. *)
  13619. ld_shlibs_F77=no
  13620. ;;
  13621. esac
  13622. fi
  13623. ;;
  13624. dgux*)
  13625. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13626. hardcode_libdir_flag_spec_F77='-L$libdir'
  13627. hardcode_shlibpath_var_F77=no
  13628. ;;
  13629. freebsd1*)
  13630. ld_shlibs_F77=no
  13631. ;;
  13632. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13633. # support. Future versions do this automatically, but an explicit c++rt0.o
  13634. # does not break anything, and helps significantly (at the cost of a little
  13635. # extra space).
  13636. freebsd2.2*)
  13637. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13638. hardcode_libdir_flag_spec_F77='-R$libdir'
  13639. hardcode_direct_F77=yes
  13640. hardcode_shlibpath_var_F77=no
  13641. ;;
  13642. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13643. freebsd2*)
  13644. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13645. hardcode_direct_F77=yes
  13646. hardcode_minus_L_F77=yes
  13647. hardcode_shlibpath_var_F77=no
  13648. ;;
  13649. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13650. freebsd* | dragonfly*)
  13651. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13652. hardcode_libdir_flag_spec_F77='-R$libdir'
  13653. hardcode_direct_F77=yes
  13654. hardcode_shlibpath_var_F77=no
  13655. ;;
  13656. hpux9*)
  13657. if test "$GCC" = yes; then
  13658. 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'
  13659. else
  13660. 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'
  13661. fi
  13662. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13663. hardcode_libdir_separator_F77=:
  13664. hardcode_direct_F77=yes
  13665. # hardcode_minus_L: Not really in the search PATH,
  13666. # but as the default location of the library.
  13667. hardcode_minus_L_F77=yes
  13668. export_dynamic_flag_spec_F77='${wl}-E'
  13669. ;;
  13670. hpux10*)
  13671. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13672. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13673. else
  13674. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13675. fi
  13676. if test "$with_gnu_ld" = no; then
  13677. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13678. hardcode_libdir_separator_F77=:
  13679. hardcode_direct_F77=yes
  13680. export_dynamic_flag_spec_F77='${wl}-E'
  13681. # hardcode_minus_L: Not really in the search PATH,
  13682. # but as the default location of the library.
  13683. hardcode_minus_L_F77=yes
  13684. fi
  13685. ;;
  13686. hpux11*)
  13687. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13688. case $host_cpu in
  13689. hppa*64*)
  13690. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13691. ;;
  13692. ia64*)
  13693. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13694. ;;
  13695. *)
  13696. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13697. ;;
  13698. esac
  13699. else
  13700. case $host_cpu in
  13701. hppa*64*)
  13702. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13703. ;;
  13704. ia64*)
  13705. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13706. ;;
  13707. *)
  13708. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13709. ;;
  13710. esac
  13711. fi
  13712. if test "$with_gnu_ld" = no; then
  13713. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13714. hardcode_libdir_separator_F77=:
  13715. case $host_cpu in
  13716. hppa*64*|ia64*)
  13717. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13718. hardcode_direct_F77=no
  13719. hardcode_shlibpath_var_F77=no
  13720. ;;
  13721. *)
  13722. hardcode_direct_F77=yes
  13723. export_dynamic_flag_spec_F77='${wl}-E'
  13724. # hardcode_minus_L: Not really in the search PATH,
  13725. # but as the default location of the library.
  13726. hardcode_minus_L_F77=yes
  13727. ;;
  13728. esac
  13729. fi
  13730. ;;
  13731. irix5* | irix6* | nonstopux*)
  13732. if test "$GCC" = yes; then
  13733. 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'
  13734. else
  13735. 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'
  13736. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13737. fi
  13738. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13739. hardcode_libdir_separator_F77=:
  13740. link_all_deplibs_F77=yes
  13741. ;;
  13742. netbsd*)
  13743. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13744. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13745. else
  13746. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13747. fi
  13748. hardcode_libdir_flag_spec_F77='-R$libdir'
  13749. hardcode_direct_F77=yes
  13750. hardcode_shlibpath_var_F77=no
  13751. ;;
  13752. newsos6)
  13753. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13754. hardcode_direct_F77=yes
  13755. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13756. hardcode_libdir_separator_F77=:
  13757. hardcode_shlibpath_var_F77=no
  13758. ;;
  13759. openbsd*)
  13760. if test -f /usr/libexec/ld.so; then
  13761. hardcode_direct_F77=yes
  13762. hardcode_shlibpath_var_F77=no
  13763. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13764. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13765. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13766. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13767. export_dynamic_flag_spec_F77='${wl}-E'
  13768. else
  13769. case $host_os in
  13770. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13771. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13772. hardcode_libdir_flag_spec_F77='-R$libdir'
  13773. ;;
  13774. *)
  13775. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13776. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13777. ;;
  13778. esac
  13779. fi
  13780. else
  13781. ld_shlibs_F77=no
  13782. fi
  13783. ;;
  13784. os2*)
  13785. hardcode_libdir_flag_spec_F77='-L$libdir'
  13786. hardcode_minus_L_F77=yes
  13787. allow_undefined_flag_F77=unsupported
  13788. 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'
  13789. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13790. ;;
  13791. osf3*)
  13792. if test "$GCC" = yes; then
  13793. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13794. 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'
  13795. else
  13796. allow_undefined_flag_F77=' -expect_unresolved \*'
  13797. 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'
  13798. fi
  13799. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13800. hardcode_libdir_separator_F77=:
  13801. ;;
  13802. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13803. if test "$GCC" = yes; then
  13804. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13805. 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'
  13806. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13807. else
  13808. allow_undefined_flag_F77=' -expect_unresolved \*'
  13809. 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'
  13810. 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~
  13811. $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'
  13812. # Both c and cxx compiler support -rpath directly
  13813. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13814. fi
  13815. hardcode_libdir_separator_F77=:
  13816. ;;
  13817. solaris*)
  13818. no_undefined_flag_F77=' -z text'
  13819. if test "$GCC" = yes; then
  13820. wlarc='${wl}'
  13821. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13822. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13823. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13824. else
  13825. wlarc=''
  13826. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13827. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13828. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13829. fi
  13830. hardcode_libdir_flag_spec_F77='-R$libdir'
  13831. hardcode_shlibpath_var_F77=no
  13832. case $host_os in
  13833. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13834. *)
  13835. # The compiler driver will combine and reorder linker options,
  13836. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13837. # but is careful enough not to reorder.
  13838. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13839. if test "$GCC" = yes; then
  13840. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13841. else
  13842. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13843. fi
  13844. ;;
  13845. esac
  13846. link_all_deplibs_F77=yes
  13847. ;;
  13848. sunos4*)
  13849. if test "x$host_vendor" = xsequent; then
  13850. # Use $CC to link under sequent, because it throws in some extra .o
  13851. # files that make .init and .fini sections work.
  13852. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13853. else
  13854. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13855. fi
  13856. hardcode_libdir_flag_spec_F77='-L$libdir'
  13857. hardcode_direct_F77=yes
  13858. hardcode_minus_L_F77=yes
  13859. hardcode_shlibpath_var_F77=no
  13860. ;;
  13861. sysv4)
  13862. case $host_vendor in
  13863. sni)
  13864. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13865. hardcode_direct_F77=yes # is this really true???
  13866. ;;
  13867. siemens)
  13868. ## LD is ld it makes a PLAMLIB
  13869. ## CC just makes a GrossModule.
  13870. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13871. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13872. hardcode_direct_F77=no
  13873. ;;
  13874. motorola)
  13875. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13876. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13877. ;;
  13878. esac
  13879. runpath_var='LD_RUN_PATH'
  13880. hardcode_shlibpath_var_F77=no
  13881. ;;
  13882. sysv4.3*)
  13883. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13884. hardcode_shlibpath_var_F77=no
  13885. export_dynamic_flag_spec_F77='-Bexport'
  13886. ;;
  13887. sysv4*MP*)
  13888. if test -d /usr/nec; then
  13889. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13890. hardcode_shlibpath_var_F77=no
  13891. runpath_var=LD_RUN_PATH
  13892. hardcode_runpath_var=yes
  13893. ld_shlibs_F77=yes
  13894. fi
  13895. ;;
  13896. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13897. no_undefined_flag_F77='${wl}-z,text'
  13898. archive_cmds_need_lc_F77=no
  13899. hardcode_shlibpath_var_F77=no
  13900. runpath_var='LD_RUN_PATH'
  13901. if test "$GCC" = yes; then
  13902. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13903. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13904. else
  13905. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13906. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13907. fi
  13908. ;;
  13909. sysv5* | sco3.2v5* | sco5v6*)
  13910. # Note: We can NOT use -z defs as we might desire, because we do not
  13911. # link with -lc, and that would cause any symbols used from libc to
  13912. # always be unresolved, which means just about no library would
  13913. # ever link correctly. If we're not using GNU ld we use -z text
  13914. # though, which does catch some bad symbols but isn't as heavy-handed
  13915. # as -z defs.
  13916. no_undefined_flag_F77='${wl}-z,text'
  13917. allow_undefined_flag_F77='${wl}-z,nodefs'
  13918. archive_cmds_need_lc_F77=no
  13919. hardcode_shlibpath_var_F77=no
  13920. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13921. hardcode_libdir_separator_F77=':'
  13922. link_all_deplibs_F77=yes
  13923. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13924. runpath_var='LD_RUN_PATH'
  13925. if test "$GCC" = yes; then
  13926. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13927. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13928. else
  13929. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13930. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13931. fi
  13932. ;;
  13933. uts4*)
  13934. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13935. hardcode_libdir_flag_spec_F77='-L$libdir'
  13936. hardcode_shlibpath_var_F77=no
  13937. ;;
  13938. *)
  13939. ld_shlibs_F77=no
  13940. ;;
  13941. esac
  13942. fi
  13943. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13944. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13945. test "$ld_shlibs_F77" = no && can_build_shared=no
  13946. #
  13947. # Do we need to explicitly link libc?
  13948. #
  13949. case "x$archive_cmds_need_lc_F77" in
  13950. x|xyes)
  13951. # Assume -lc should be added
  13952. archive_cmds_need_lc_F77=yes
  13953. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13954. case $archive_cmds_F77 in
  13955. *'~'*)
  13956. # FIXME: we may have to deal with multi-command sequences.
  13957. ;;
  13958. '$CC '*)
  13959. # Test whether the compiler implicitly links with -lc since on some
  13960. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13961. # to ld, don't add -lc before -lgcc.
  13962. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13963. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13964. $rm conftest*
  13965. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13966. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13967. (eval $ac_compile) 2>&5
  13968. ac_status=$?
  13969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13970. (exit $ac_status); } 2>conftest.err; then
  13971. soname=conftest
  13972. lib=conftest
  13973. libobjs=conftest.$ac_objext
  13974. deplibs=
  13975. wl=$lt_prog_compiler_wl_F77
  13976. pic_flag=$lt_prog_compiler_pic_F77
  13977. compiler_flags=-v
  13978. linker_flags=-v
  13979. verstring=
  13980. output_objdir=.
  13981. libname=conftest
  13982. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13983. allow_undefined_flag_F77=
  13984. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13985. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13986. ac_status=$?
  13987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13988. (exit $ac_status); }
  13989. then
  13990. archive_cmds_need_lc_F77=no
  13991. else
  13992. archive_cmds_need_lc_F77=yes
  13993. fi
  13994. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13995. else
  13996. cat conftest.err 1>&5
  13997. fi
  13998. $rm conftest*
  13999. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14000. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  14001. ;;
  14002. esac
  14003. fi
  14004. ;;
  14005. esac
  14006. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14007. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  14008. library_names_spec=
  14009. libname_spec='lib$name'
  14010. soname_spec=
  14011. shrext_cmds=".so"
  14012. postinstall_cmds=
  14013. postuninstall_cmds=
  14014. finish_cmds=
  14015. finish_eval=
  14016. shlibpath_var=
  14017. shlibpath_overrides_runpath=unknown
  14018. version_type=none
  14019. dynamic_linker="$host_os ld.so"
  14020. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14021. need_lib_prefix=unknown
  14022. hardcode_into_libs=no
  14023. # when you set need_version to no, make sure it does not cause -set_version
  14024. # flags to be left without arguments
  14025. need_version=unknown
  14026. case $host_os in
  14027. aix3*)
  14028. version_type=linux
  14029. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14030. shlibpath_var=LIBPATH
  14031. # AIX 3 has no versioning support, so we append a major version to the name.
  14032. soname_spec='${libname}${release}${shared_ext}$major'
  14033. ;;
  14034. aix4* | aix5*)
  14035. version_type=linux
  14036. need_lib_prefix=no
  14037. need_version=no
  14038. hardcode_into_libs=yes
  14039. if test "$host_cpu" = ia64; then
  14040. # AIX 5 supports IA64
  14041. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14042. shlibpath_var=LD_LIBRARY_PATH
  14043. else
  14044. # With GCC up to 2.95.x, collect2 would create an import file
  14045. # for dependence libraries. The import file would start with
  14046. # the line `#! .'. This would cause the generated library to
  14047. # depend on `.', always an invalid library. This was fixed in
  14048. # development snapshots of GCC prior to 3.0.
  14049. case $host_os in
  14050. aix4 | aix4.[01] | aix4.[01].*)
  14051. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14052. echo ' yes '
  14053. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14054. :
  14055. else
  14056. can_build_shared=no
  14057. fi
  14058. ;;
  14059. esac
  14060. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14061. # soname into executable. Probably we can add versioning support to
  14062. # collect2, so additional links can be useful in future.
  14063. if test "$aix_use_runtimelinking" = yes; then
  14064. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14065. # instead of lib<name>.a to let people know that these are not
  14066. # typical AIX shared libraries.
  14067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14068. else
  14069. # We preserve .a as extension for shared libraries through AIX4.2
  14070. # and later when we are not doing run time linking.
  14071. library_names_spec='${libname}${release}.a $libname.a'
  14072. soname_spec='${libname}${release}${shared_ext}$major'
  14073. fi
  14074. shlibpath_var=LIBPATH
  14075. fi
  14076. ;;
  14077. amigaos*)
  14078. library_names_spec='$libname.ixlibrary $libname.a'
  14079. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14080. 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'
  14081. ;;
  14082. beos*)
  14083. library_names_spec='${libname}${shared_ext}'
  14084. dynamic_linker="$host_os ld.so"
  14085. shlibpath_var=LIBRARY_PATH
  14086. ;;
  14087. bsdi[45]*)
  14088. version_type=linux
  14089. need_version=no
  14090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14091. soname_spec='${libname}${release}${shared_ext}$major'
  14092. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14093. shlibpath_var=LD_LIBRARY_PATH
  14094. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14095. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14096. # the default ld.so.conf also contains /usr/contrib/lib and
  14097. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14098. # libtool to hard-code these into programs
  14099. ;;
  14100. cygwin* | mingw* | pw32*)
  14101. version_type=windows
  14102. shrext_cmds=".dll"
  14103. need_version=no
  14104. need_lib_prefix=no
  14105. case $GCC,$host_os in
  14106. yes,cygwin* | yes,mingw* | yes,pw32*)
  14107. library_names_spec='$libname.dll.a'
  14108. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14109. postinstall_cmds='base_file=`basename \${file}`~
  14110. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14111. dldir=$destdir/`dirname \$dlpath`~
  14112. test -d \$dldir || mkdir -p \$dldir~
  14113. $install_prog $dir/$dlname \$dldir/$dlname~
  14114. chmod a+x \$dldir/$dlname'
  14115. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14116. dlpath=$dir/\$dldll~
  14117. $rm \$dlpath'
  14118. shlibpath_overrides_runpath=yes
  14119. case $host_os in
  14120. cygwin*)
  14121. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14122. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14123. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14124. ;;
  14125. mingw*)
  14126. # MinGW DLLs use traditional 'lib' prefix
  14127. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14128. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14129. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14130. # It is most probably a Windows format PATH printed by
  14131. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14132. # path with ; separators, and with drive letters. We can handle the
  14133. # drive letters (cygwin fileutils understands them), so leave them,
  14134. # especially as we might pass files found there to a mingw objdump,
  14135. # which wouldn't understand a cygwinified path. Ahh.
  14136. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14137. else
  14138. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14139. fi
  14140. ;;
  14141. pw32*)
  14142. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14143. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14144. ;;
  14145. esac
  14146. ;;
  14147. *)
  14148. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14149. ;;
  14150. esac
  14151. dynamic_linker='Win32 ld.exe'
  14152. # FIXME: first we should search . and the directory the executable is in
  14153. shlibpath_var=PATH
  14154. ;;
  14155. darwin* | rhapsody*)
  14156. dynamic_linker="$host_os dyld"
  14157. version_type=darwin
  14158. need_lib_prefix=no
  14159. need_version=no
  14160. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14161. soname_spec='${libname}${release}${major}$shared_ext'
  14162. shlibpath_overrides_runpath=yes
  14163. shlibpath_var=DYLD_LIBRARY_PATH
  14164. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14165. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14166. ;;
  14167. dgux*)
  14168. version_type=linux
  14169. need_lib_prefix=no
  14170. need_version=no
  14171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14172. soname_spec='${libname}${release}${shared_ext}$major'
  14173. shlibpath_var=LD_LIBRARY_PATH
  14174. ;;
  14175. freebsd1*)
  14176. dynamic_linker=no
  14177. ;;
  14178. freebsd* | dragonfly*)
  14179. # DragonFly does not have aout. When/if they implement a new
  14180. # versioning mechanism, adjust this.
  14181. if test -x /usr/bin/objformat; then
  14182. objformat=`/usr/bin/objformat`
  14183. else
  14184. case $host_os in
  14185. freebsd[123]*) objformat=aout ;;
  14186. *) objformat=elf ;;
  14187. esac
  14188. fi
  14189. version_type=freebsd-$objformat
  14190. case $version_type in
  14191. freebsd-elf*)
  14192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14193. need_version=no
  14194. need_lib_prefix=no
  14195. ;;
  14196. freebsd-*)
  14197. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14198. need_version=yes
  14199. ;;
  14200. esac
  14201. shlibpath_var=LD_LIBRARY_PATH
  14202. case $host_os in
  14203. freebsd2*)
  14204. shlibpath_overrides_runpath=yes
  14205. ;;
  14206. freebsd3.[01]* | freebsdelf3.[01]*)
  14207. shlibpath_overrides_runpath=yes
  14208. hardcode_into_libs=yes
  14209. ;;
  14210. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14211. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14212. shlibpath_overrides_runpath=no
  14213. hardcode_into_libs=yes
  14214. ;;
  14215. *) # from 4.6 on, and DragonFly
  14216. shlibpath_overrides_runpath=yes
  14217. hardcode_into_libs=yes
  14218. ;;
  14219. esac
  14220. ;;
  14221. gnu*)
  14222. version_type=linux
  14223. need_lib_prefix=no
  14224. need_version=no
  14225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14226. soname_spec='${libname}${release}${shared_ext}$major'
  14227. shlibpath_var=LD_LIBRARY_PATH
  14228. hardcode_into_libs=yes
  14229. ;;
  14230. hpux9* | hpux10* | hpux11*)
  14231. # Give a soname corresponding to the major version so that dld.sl refuses to
  14232. # link against other versions.
  14233. version_type=sunos
  14234. need_lib_prefix=no
  14235. need_version=no
  14236. case $host_cpu in
  14237. ia64*)
  14238. shrext_cmds='.so'
  14239. hardcode_into_libs=yes
  14240. dynamic_linker="$host_os dld.so"
  14241. shlibpath_var=LD_LIBRARY_PATH
  14242. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14244. soname_spec='${libname}${release}${shared_ext}$major'
  14245. if test "X$HPUX_IA64_MODE" = X32; then
  14246. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14247. else
  14248. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14249. fi
  14250. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14251. ;;
  14252. hppa*64*)
  14253. shrext_cmds='.sl'
  14254. hardcode_into_libs=yes
  14255. dynamic_linker="$host_os dld.sl"
  14256. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14257. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14259. soname_spec='${libname}${release}${shared_ext}$major'
  14260. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14261. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14262. ;;
  14263. *)
  14264. shrext_cmds='.sl'
  14265. dynamic_linker="$host_os dld.sl"
  14266. shlibpath_var=SHLIB_PATH
  14267. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14269. soname_spec='${libname}${release}${shared_ext}$major'
  14270. ;;
  14271. esac
  14272. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14273. postinstall_cmds='chmod 555 $lib'
  14274. ;;
  14275. interix[3-9]*)
  14276. version_type=linux
  14277. need_lib_prefix=no
  14278. need_version=no
  14279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14280. soname_spec='${libname}${release}${shared_ext}$major'
  14281. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14282. shlibpath_var=LD_LIBRARY_PATH
  14283. shlibpath_overrides_runpath=no
  14284. hardcode_into_libs=yes
  14285. ;;
  14286. irix5* | irix6* | nonstopux*)
  14287. case $host_os in
  14288. nonstopux*) version_type=nonstopux ;;
  14289. *)
  14290. if test "$lt_cv_prog_gnu_ld" = yes; then
  14291. version_type=linux
  14292. else
  14293. version_type=irix
  14294. fi ;;
  14295. esac
  14296. need_lib_prefix=no
  14297. need_version=no
  14298. soname_spec='${libname}${release}${shared_ext}$major'
  14299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14300. case $host_os in
  14301. irix5* | nonstopux*)
  14302. libsuff= shlibsuff=
  14303. ;;
  14304. *)
  14305. case $LD in # libtool.m4 will add one of these switches to LD
  14306. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14307. libsuff= shlibsuff= libmagic=32-bit;;
  14308. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14309. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14310. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14311. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14312. *) libsuff= shlibsuff= libmagic=never-match;;
  14313. esac
  14314. ;;
  14315. esac
  14316. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14317. shlibpath_overrides_runpath=no
  14318. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14319. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14320. hardcode_into_libs=yes
  14321. ;;
  14322. # No shared lib support for Linux oldld, aout, or coff.
  14323. linux*oldld* | linux*aout* | linux*coff*)
  14324. dynamic_linker=no
  14325. ;;
  14326. # This must be Linux ELF.
  14327. linux* | k*bsd*-gnu)
  14328. version_type=linux
  14329. need_lib_prefix=no
  14330. need_version=no
  14331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14332. soname_spec='${libname}${release}${shared_ext}$major'
  14333. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14334. shlibpath_var=LD_LIBRARY_PATH
  14335. shlibpath_overrides_runpath=no
  14336. # This implies no fast_install, which is unacceptable.
  14337. # Some rework will be needed to allow for fast_install
  14338. # before this can be enabled.
  14339. hardcode_into_libs=yes
  14340. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14341. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14342. # Append ld.so.conf contents to the search path
  14343. if test -f /etc/ld.so.conf; then
  14344. 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14345. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14346. fi
  14347. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14348. # powerpc, because MkLinux only supported shared libraries with the
  14349. # GNU dynamic linker. Since this was broken with cross compilers,
  14350. # most powerpc-linux boxes support dynamic linking these days and
  14351. # people can always --disable-shared, the test was removed, and we
  14352. # assume the GNU/Linux dynamic linker is in use.
  14353. dynamic_linker='GNU/Linux ld.so'
  14354. ;;
  14355. netbsd*)
  14356. version_type=sunos
  14357. need_lib_prefix=no
  14358. need_version=no
  14359. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14361. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14362. dynamic_linker='NetBSD (a.out) ld.so'
  14363. else
  14364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14365. soname_spec='${libname}${release}${shared_ext}$major'
  14366. dynamic_linker='NetBSD ld.elf_so'
  14367. fi
  14368. shlibpath_var=LD_LIBRARY_PATH
  14369. shlibpath_overrides_runpath=yes
  14370. hardcode_into_libs=yes
  14371. ;;
  14372. newsos6)
  14373. version_type=linux
  14374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14375. shlibpath_var=LD_LIBRARY_PATH
  14376. shlibpath_overrides_runpath=yes
  14377. ;;
  14378. nto-qnx*)
  14379. version_type=linux
  14380. need_lib_prefix=no
  14381. need_version=no
  14382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14383. soname_spec='${libname}${release}${shared_ext}$major'
  14384. shlibpath_var=LD_LIBRARY_PATH
  14385. shlibpath_overrides_runpath=yes
  14386. ;;
  14387. openbsd*)
  14388. version_type=sunos
  14389. sys_lib_dlsearch_path_spec="/usr/lib"
  14390. need_lib_prefix=no
  14391. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14392. case $host_os in
  14393. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14394. *) need_version=no ;;
  14395. esac
  14396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14397. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14398. shlibpath_var=LD_LIBRARY_PATH
  14399. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14400. case $host_os in
  14401. openbsd2.[89] | openbsd2.[89].*)
  14402. shlibpath_overrides_runpath=no
  14403. ;;
  14404. *)
  14405. shlibpath_overrides_runpath=yes
  14406. ;;
  14407. esac
  14408. else
  14409. shlibpath_overrides_runpath=yes
  14410. fi
  14411. ;;
  14412. os2*)
  14413. libname_spec='$name'
  14414. shrext_cmds=".dll"
  14415. need_lib_prefix=no
  14416. library_names_spec='$libname${shared_ext} $libname.a'
  14417. dynamic_linker='OS/2 ld.exe'
  14418. shlibpath_var=LIBPATH
  14419. ;;
  14420. osf3* | osf4* | osf5*)
  14421. version_type=osf
  14422. need_lib_prefix=no
  14423. need_version=no
  14424. soname_spec='${libname}${release}${shared_ext}$major'
  14425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14426. shlibpath_var=LD_LIBRARY_PATH
  14427. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14428. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14429. ;;
  14430. rdos*)
  14431. dynamic_linker=no
  14432. ;;
  14433. solaris*)
  14434. version_type=linux
  14435. need_lib_prefix=no
  14436. need_version=no
  14437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14438. soname_spec='${libname}${release}${shared_ext}$major'
  14439. shlibpath_var=LD_LIBRARY_PATH
  14440. shlibpath_overrides_runpath=yes
  14441. hardcode_into_libs=yes
  14442. # ldd complains unless libraries are executable
  14443. postinstall_cmds='chmod +x $lib'
  14444. ;;
  14445. sunos4*)
  14446. version_type=sunos
  14447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14448. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14449. shlibpath_var=LD_LIBRARY_PATH
  14450. shlibpath_overrides_runpath=yes
  14451. if test "$with_gnu_ld" = yes; then
  14452. need_lib_prefix=no
  14453. fi
  14454. need_version=yes
  14455. ;;
  14456. sysv4 | sysv4.3*)
  14457. version_type=linux
  14458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14459. soname_spec='${libname}${release}${shared_ext}$major'
  14460. shlibpath_var=LD_LIBRARY_PATH
  14461. case $host_vendor in
  14462. sni)
  14463. shlibpath_overrides_runpath=no
  14464. need_lib_prefix=no
  14465. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14466. runpath_var=LD_RUN_PATH
  14467. ;;
  14468. siemens)
  14469. need_lib_prefix=no
  14470. ;;
  14471. motorola)
  14472. need_lib_prefix=no
  14473. need_version=no
  14474. shlibpath_overrides_runpath=no
  14475. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14476. ;;
  14477. esac
  14478. ;;
  14479. sysv4*MP*)
  14480. if test -d /usr/nec ;then
  14481. version_type=linux
  14482. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14483. soname_spec='$libname${shared_ext}.$major'
  14484. shlibpath_var=LD_LIBRARY_PATH
  14485. fi
  14486. ;;
  14487. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14488. version_type=freebsd-elf
  14489. need_lib_prefix=no
  14490. need_version=no
  14491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14492. soname_spec='${libname}${release}${shared_ext}$major'
  14493. shlibpath_var=LD_LIBRARY_PATH
  14494. hardcode_into_libs=yes
  14495. if test "$with_gnu_ld" = yes; then
  14496. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14497. shlibpath_overrides_runpath=no
  14498. else
  14499. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14500. shlibpath_overrides_runpath=yes
  14501. case $host_os in
  14502. sco3.2v5*)
  14503. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14504. ;;
  14505. esac
  14506. fi
  14507. sys_lib_dlsearch_path_spec='/usr/lib'
  14508. ;;
  14509. uts4*)
  14510. version_type=linux
  14511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14512. soname_spec='${libname}${release}${shared_ext}$major'
  14513. shlibpath_var=LD_LIBRARY_PATH
  14514. ;;
  14515. *)
  14516. dynamic_linker=no
  14517. ;;
  14518. esac
  14519. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14520. echo "${ECHO_T}$dynamic_linker" >&6; }
  14521. test "$dynamic_linker" = no && can_build_shared=no
  14522. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14523. if test "$GCC" = yes; then
  14524. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14525. fi
  14526. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14527. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14528. hardcode_action_F77=
  14529. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14530. test -n "$runpath_var_F77" || \
  14531. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14532. # We can hardcode non-existant directories.
  14533. if test "$hardcode_direct_F77" != no &&
  14534. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14535. # have to relink, otherwise we might link with an installed library
  14536. # when we should be linking with a yet-to-be-installed one
  14537. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14538. test "$hardcode_minus_L_F77" != no; then
  14539. # Linking always hardcodes the temporary library directory.
  14540. hardcode_action_F77=relink
  14541. else
  14542. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14543. hardcode_action_F77=immediate
  14544. fi
  14545. else
  14546. # We cannot hardcode anything, or else we can only hardcode existing
  14547. # directories.
  14548. hardcode_action_F77=unsupported
  14549. fi
  14550. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14551. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14552. if test "$hardcode_action_F77" = relink; then
  14553. # Fast installation is not supported
  14554. enable_fast_install=no
  14555. elif test "$shlibpath_overrides_runpath" = yes ||
  14556. test "$enable_shared" = no; then
  14557. # Fast installation is not necessary
  14558. enable_fast_install=needless
  14559. fi
  14560. # The else clause should only fire when bootstrapping the
  14561. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14562. # with your package, and you will get complaints that there are
  14563. # no rules to generate ltmain.sh.
  14564. if test -f "$ltmain"; then
  14565. # See if we are running on zsh, and set the options which allow our commands through
  14566. # without removal of \ escapes.
  14567. if test -n "${ZSH_VERSION+set}" ; then
  14568. setopt NO_GLOB_SUBST
  14569. fi
  14570. # Now quote all the things that may contain metacharacters while being
  14571. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14572. # variables and quote the copies for generation of the libtool script.
  14573. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14574. SED SHELL STRIP \
  14575. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14576. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14577. deplibs_check_method reload_flag reload_cmds need_locks \
  14578. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14579. lt_cv_sys_global_symbol_to_c_name_address \
  14580. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14581. old_postinstall_cmds old_postuninstall_cmds \
  14582. compiler_F77 \
  14583. CC_F77 \
  14584. LD_F77 \
  14585. lt_prog_compiler_wl_F77 \
  14586. lt_prog_compiler_pic_F77 \
  14587. lt_prog_compiler_static_F77 \
  14588. lt_prog_compiler_no_builtin_flag_F77 \
  14589. export_dynamic_flag_spec_F77 \
  14590. thread_safe_flag_spec_F77 \
  14591. whole_archive_flag_spec_F77 \
  14592. enable_shared_with_static_runtimes_F77 \
  14593. old_archive_cmds_F77 \
  14594. old_archive_from_new_cmds_F77 \
  14595. predep_objects_F77 \
  14596. postdep_objects_F77 \
  14597. predeps_F77 \
  14598. postdeps_F77 \
  14599. compiler_lib_search_path_F77 \
  14600. archive_cmds_F77 \
  14601. archive_expsym_cmds_F77 \
  14602. postinstall_cmds_F77 \
  14603. postuninstall_cmds_F77 \
  14604. old_archive_from_expsyms_cmds_F77 \
  14605. allow_undefined_flag_F77 \
  14606. no_undefined_flag_F77 \
  14607. export_symbols_cmds_F77 \
  14608. hardcode_libdir_flag_spec_F77 \
  14609. hardcode_libdir_flag_spec_ld_F77 \
  14610. hardcode_libdir_separator_F77 \
  14611. hardcode_automatic_F77 \
  14612. module_cmds_F77 \
  14613. module_expsym_cmds_F77 \
  14614. lt_cv_prog_compiler_c_o_F77 \
  14615. fix_srcfile_path_F77 \
  14616. exclude_expsyms_F77 \
  14617. include_expsyms_F77; do
  14618. case $var in
  14619. old_archive_cmds_F77 | \
  14620. old_archive_from_new_cmds_F77 | \
  14621. archive_cmds_F77 | \
  14622. archive_expsym_cmds_F77 | \
  14623. module_cmds_F77 | \
  14624. module_expsym_cmds_F77 | \
  14625. old_archive_from_expsyms_cmds_F77 | \
  14626. export_symbols_cmds_F77 | \
  14627. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14628. postinstall_cmds | postuninstall_cmds | \
  14629. old_postinstall_cmds | old_postuninstall_cmds | \
  14630. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14631. # Double-quote double-evaled strings.
  14632. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14633. ;;
  14634. *)
  14635. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14636. ;;
  14637. esac
  14638. done
  14639. case $lt_echo in
  14640. *'\$0 --fallback-echo"')
  14641. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14642. ;;
  14643. esac
  14644. cfgfile="$ofile"
  14645. cat <<__EOF__ >> "$cfgfile"
  14646. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14647. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14648. # Shell to use when invoking shell scripts.
  14649. SHELL=$lt_SHELL
  14650. # Whether or not to build shared libraries.
  14651. build_libtool_libs=$enable_shared
  14652. # Whether or not to build static libraries.
  14653. build_old_libs=$enable_static
  14654. # Whether or not to add -lc for building shared libraries.
  14655. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14656. # Whether or not to disallow shared libs when runtime libs are static
  14657. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14658. # Whether or not to optimize for fast installation.
  14659. fast_install=$enable_fast_install
  14660. # The host system.
  14661. host_alias=$host_alias
  14662. host=$host
  14663. host_os=$host_os
  14664. # The build system.
  14665. build_alias=$build_alias
  14666. build=$build
  14667. build_os=$build_os
  14668. # An echo program that does not interpret backslashes.
  14669. echo=$lt_echo
  14670. # The archiver.
  14671. AR=$lt_AR
  14672. AR_FLAGS=$lt_AR_FLAGS
  14673. # A C compiler.
  14674. LTCC=$lt_LTCC
  14675. # LTCC compiler flags.
  14676. LTCFLAGS=$lt_LTCFLAGS
  14677. # A language-specific compiler.
  14678. CC=$lt_compiler_F77
  14679. # Is the compiler the GNU C compiler?
  14680. with_gcc=$GCC_F77
  14681. # An ERE matcher.
  14682. EGREP=$lt_EGREP
  14683. # The linker used to build libraries.
  14684. LD=$lt_LD_F77
  14685. # Whether we need hard or soft links.
  14686. LN_S=$lt_LN_S
  14687. # A BSD-compatible nm program.
  14688. NM=$lt_NM
  14689. # A symbol stripping program
  14690. STRIP=$lt_STRIP
  14691. # Used to examine libraries when file_magic_cmd begins "file"
  14692. MAGIC_CMD=$MAGIC_CMD
  14693. # Used on cygwin: DLL creation program.
  14694. DLLTOOL="$DLLTOOL"
  14695. # Used on cygwin: object dumper.
  14696. OBJDUMP="$OBJDUMP"
  14697. # Used on cygwin: assembler.
  14698. AS="$AS"
  14699. # The name of the directory that contains temporary libtool files.
  14700. objdir=$objdir
  14701. # How to create reloadable object files.
  14702. reload_flag=$lt_reload_flag
  14703. reload_cmds=$lt_reload_cmds
  14704. # How to pass a linker flag through the compiler.
  14705. wl=$lt_lt_prog_compiler_wl_F77
  14706. # Object file suffix (normally "o").
  14707. objext="$ac_objext"
  14708. # Old archive suffix (normally "a").
  14709. libext="$libext"
  14710. # Shared library suffix (normally ".so").
  14711. shrext_cmds='$shrext_cmds'
  14712. # Executable file suffix (normally "").
  14713. exeext="$exeext"
  14714. # Additional compiler flags for building library objects.
  14715. pic_flag=$lt_lt_prog_compiler_pic_F77
  14716. pic_mode=$pic_mode
  14717. # What is the maximum length of a command?
  14718. max_cmd_len=$lt_cv_sys_max_cmd_len
  14719. # Does compiler simultaneously support -c and -o options?
  14720. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14721. # Must we lock files when doing compilation?
  14722. need_locks=$lt_need_locks
  14723. # Do we need the lib prefix for modules?
  14724. need_lib_prefix=$need_lib_prefix
  14725. # Do we need a version for libraries?
  14726. need_version=$need_version
  14727. # Whether dlopen is supported.
  14728. dlopen_support=$enable_dlopen
  14729. # Whether dlopen of programs is supported.
  14730. dlopen_self=$enable_dlopen_self
  14731. # Whether dlopen of statically linked programs is supported.
  14732. dlopen_self_static=$enable_dlopen_self_static
  14733. # Compiler flag to prevent dynamic linking.
  14734. link_static_flag=$lt_lt_prog_compiler_static_F77
  14735. # Compiler flag to turn off builtin functions.
  14736. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14737. # Compiler flag to allow reflexive dlopens.
  14738. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14739. # Compiler flag to generate shared objects directly from archives.
  14740. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14741. # Compiler flag to generate thread-safe objects.
  14742. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14743. # Library versioning type.
  14744. version_type=$version_type
  14745. # Format of library name prefix.
  14746. libname_spec=$lt_libname_spec
  14747. # List of archive names. First name is the real one, the rest are links.
  14748. # The last name is the one that the linker finds with -lNAME.
  14749. library_names_spec=$lt_library_names_spec
  14750. # The coded name of the library, if different from the real name.
  14751. soname_spec=$lt_soname_spec
  14752. # Commands used to build and install an old-style archive.
  14753. RANLIB=$lt_RANLIB
  14754. old_archive_cmds=$lt_old_archive_cmds_F77
  14755. old_postinstall_cmds=$lt_old_postinstall_cmds
  14756. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14757. # Create an old-style archive from a shared archive.
  14758. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14759. # Create a temporary old-style archive to link instead of a shared archive.
  14760. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14761. # Commands used to build and install a shared archive.
  14762. archive_cmds=$lt_archive_cmds_F77
  14763. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14764. postinstall_cmds=$lt_postinstall_cmds
  14765. postuninstall_cmds=$lt_postuninstall_cmds
  14766. # Commands used to build a loadable module (assumed same as above if empty)
  14767. module_cmds=$lt_module_cmds_F77
  14768. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14769. # Commands to strip libraries.
  14770. old_striplib=$lt_old_striplib
  14771. striplib=$lt_striplib
  14772. # Dependencies to place before the objects being linked to create a
  14773. # shared library.
  14774. predep_objects=$lt_predep_objects_F77
  14775. # Dependencies to place after the objects being linked to create a
  14776. # shared library.
  14777. postdep_objects=$lt_postdep_objects_F77
  14778. # Dependencies to place before the objects being linked to create a
  14779. # shared library.
  14780. predeps=$lt_predeps_F77
  14781. # Dependencies to place after the objects being linked to create a
  14782. # shared library.
  14783. postdeps=$lt_postdeps_F77
  14784. # The library search path used internally by the compiler when linking
  14785. # a shared library.
  14786. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14787. # Method to check whether dependent libraries are shared objects.
  14788. deplibs_check_method=$lt_deplibs_check_method
  14789. # Command to use when deplibs_check_method == file_magic.
  14790. file_magic_cmd=$lt_file_magic_cmd
  14791. # Flag that allows shared libraries with undefined symbols to be built.
  14792. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14793. # Flag that forces no undefined symbols.
  14794. no_undefined_flag=$lt_no_undefined_flag_F77
  14795. # Commands used to finish a libtool library installation in a directory.
  14796. finish_cmds=$lt_finish_cmds
  14797. # Same as above, but a single script fragment to be evaled but not shown.
  14798. finish_eval=$lt_finish_eval
  14799. # Take the output of nm and produce a listing of raw symbols and C names.
  14800. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14801. # Transform the output of nm in a proper C declaration
  14802. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14803. # Transform the output of nm in a C name address pair
  14804. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14805. # This is the shared library runtime path variable.
  14806. runpath_var=$runpath_var
  14807. # This is the shared library path variable.
  14808. shlibpath_var=$shlibpath_var
  14809. # Is shlibpath searched before the hard-coded library search path?
  14810. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14811. # How to hardcode a shared library path into an executable.
  14812. hardcode_action=$hardcode_action_F77
  14813. # Whether we should hardcode library paths into libraries.
  14814. hardcode_into_libs=$hardcode_into_libs
  14815. # Flag to hardcode \$libdir into a binary during linking.
  14816. # This must work even if \$libdir does not exist.
  14817. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14818. # If ld is used when linking, flag to hardcode \$libdir into
  14819. # a binary during linking. This must work even if \$libdir does
  14820. # not exist.
  14821. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14822. # Whether we need a single -rpath flag with a separated argument.
  14823. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14824. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14825. # resulting binary.
  14826. hardcode_direct=$hardcode_direct_F77
  14827. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14828. # resulting binary.
  14829. hardcode_minus_L=$hardcode_minus_L_F77
  14830. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14831. # the resulting binary.
  14832. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14833. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14834. # and all subsequent libraries and executables linked against it.
  14835. hardcode_automatic=$hardcode_automatic_F77
  14836. # Variables whose values should be saved in libtool wrapper scripts and
  14837. # restored at relink time.
  14838. variables_saved_for_relink="$variables_saved_for_relink"
  14839. # Whether libtool must link a program against all its dependency libraries.
  14840. link_all_deplibs=$link_all_deplibs_F77
  14841. # Compile-time system search path for libraries
  14842. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14843. # Run-time system search path for libraries
  14844. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14845. # Fix the shell variable \$srcfile for the compiler.
  14846. fix_srcfile_path=$lt_fix_srcfile_path
  14847. # Set to yes if exported symbols are required.
  14848. always_export_symbols=$always_export_symbols_F77
  14849. # The commands to list exported symbols.
  14850. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14851. # The commands to extract the exported symbol list from a shared archive.
  14852. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14853. # Symbols that should not be listed in the preloaded symbols.
  14854. exclude_expsyms=$lt_exclude_expsyms_F77
  14855. # Symbols that must always be exported.
  14856. include_expsyms=$lt_include_expsyms_F77
  14857. # ### END LIBTOOL TAG CONFIG: $tagname
  14858. __EOF__
  14859. else
  14860. # If there is no Makefile yet, we rely on a make rule to execute
  14861. # `config.status --recheck' to rerun these tests and create the
  14862. # libtool script then.
  14863. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14864. if test -f "$ltmain_in"; then
  14865. test -f Makefile && make "$ltmain"
  14866. fi
  14867. fi
  14868. ac_ext=c
  14869. ac_cpp='$CPP $CPPFLAGS'
  14870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14873. CC="$lt_save_CC"
  14874. else
  14875. tagname=""
  14876. fi
  14877. ;;
  14878. GCJ)
  14879. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14880. # Source file extension for Java test sources.
  14881. ac_ext=java
  14882. # Object file extension for compiled Java test sources.
  14883. objext=o
  14884. objext_GCJ=$objext
  14885. # Code to be used in simple compile tests
  14886. lt_simple_compile_test_code="class foo {}"
  14887. # Code to be used in simple link tests
  14888. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14889. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14890. # If no C compiler was specified, use CC.
  14891. LTCC=${LTCC-"$CC"}
  14892. # If no C compiler flags were specified, use CFLAGS.
  14893. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14894. # Allow CC to be a program name with arguments.
  14895. compiler=$CC
  14896. # save warnings/boilerplate of simple test code
  14897. ac_outfile=conftest.$ac_objext
  14898. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14899. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14900. _lt_compiler_boilerplate=`cat conftest.err`
  14901. $rm conftest*
  14902. ac_outfile=conftest.$ac_objext
  14903. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14904. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14905. _lt_linker_boilerplate=`cat conftest.err`
  14906. $rm conftest*
  14907. # Allow CC to be a program name with arguments.
  14908. lt_save_CC="$CC"
  14909. CC=${GCJ-"gcj"}
  14910. compiler=$CC
  14911. compiler_GCJ=$CC
  14912. for cc_temp in $compiler""; do
  14913. case $cc_temp in
  14914. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14915. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14916. \-*) ;;
  14917. *) break;;
  14918. esac
  14919. done
  14920. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14921. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14922. archive_cmds_need_lc_GCJ=no
  14923. old_archive_cmds_GCJ=$old_archive_cmds
  14924. lt_prog_compiler_no_builtin_flag_GCJ=
  14925. if test "$GCC" = yes; then
  14926. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14927. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14928. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14929. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14930. echo $ECHO_N "(cached) $ECHO_C" >&6
  14931. else
  14932. lt_cv_prog_compiler_rtti_exceptions=no
  14933. ac_outfile=conftest.$ac_objext
  14934. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14935. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14936. # Insert the option either (1) after the last *FLAGS variable, or
  14937. # (2) before a word containing "conftest.", or (3) at the end.
  14938. # Note that $ac_compile itself does not contain backslashes and begins
  14939. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14940. # The option is referenced via a variable to avoid confusing sed.
  14941. lt_compile=`echo "$ac_compile" | $SED \
  14942. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14943. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14944. -e 's:$: $lt_compiler_flag:'`
  14945. (eval echo "\"\$as_me:16715: $lt_compile\"" >&5)
  14946. (eval "$lt_compile" 2>conftest.err)
  14947. ac_status=$?
  14948. cat conftest.err >&5
  14949. echo "$as_me:16719: \$? = $ac_status" >&5
  14950. if (exit $ac_status) && test -s "$ac_outfile"; then
  14951. # The compiler can only warn and ignore the option if not recognized
  14952. # So say no if there are warnings other than the usual output.
  14953. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14954. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14955. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14956. lt_cv_prog_compiler_rtti_exceptions=yes
  14957. fi
  14958. fi
  14959. $rm conftest*
  14960. fi
  14961. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14962. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14963. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14964. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14965. else
  14966. :
  14967. fi
  14968. fi
  14969. lt_prog_compiler_wl_GCJ=
  14970. lt_prog_compiler_pic_GCJ=
  14971. lt_prog_compiler_static_GCJ=
  14972. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14973. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14974. if test "$GCC" = yes; then
  14975. lt_prog_compiler_wl_GCJ='-Wl,'
  14976. lt_prog_compiler_static_GCJ='-static'
  14977. case $host_os in
  14978. aix*)
  14979. # All AIX code is PIC.
  14980. if test "$host_cpu" = ia64; then
  14981. # AIX 5 now supports IA64 processor
  14982. lt_prog_compiler_static_GCJ='-Bstatic'
  14983. fi
  14984. ;;
  14985. amigaos*)
  14986. # FIXME: we need at least 68020 code to build shared libraries, but
  14987. # adding the `-m68020' flag to GCC prevents building anything better,
  14988. # like `-m68040'.
  14989. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14990. ;;
  14991. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14992. # PIC is the default for these OSes.
  14993. ;;
  14994. mingw* | cygwin* | pw32* | os2*)
  14995. # This hack is so that the source file can tell whether it is being
  14996. # built for inclusion in a dll (and should export symbols for example).
  14997. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14998. # (--disable-auto-import) libraries
  14999. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15000. ;;
  15001. darwin* | rhapsody*)
  15002. # PIC is the default on this platform
  15003. # Common symbols not allowed in MH_DYLIB files
  15004. lt_prog_compiler_pic_GCJ='-fno-common'
  15005. ;;
  15006. interix[3-9]*)
  15007. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15008. # Instead, we relocate shared libraries at runtime.
  15009. ;;
  15010. msdosdjgpp*)
  15011. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15012. # on systems that don't support them.
  15013. lt_prog_compiler_can_build_shared_GCJ=no
  15014. enable_shared=no
  15015. ;;
  15016. sysv4*MP*)
  15017. if test -d /usr/nec; then
  15018. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15019. fi
  15020. ;;
  15021. hpux*)
  15022. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15023. # not for PA HP-UX.
  15024. case $host_cpu in
  15025. hppa*64*|ia64*)
  15026. # +Z the default
  15027. ;;
  15028. *)
  15029. lt_prog_compiler_pic_GCJ='-fPIC'
  15030. ;;
  15031. esac
  15032. ;;
  15033. *)
  15034. lt_prog_compiler_pic_GCJ='-fPIC'
  15035. ;;
  15036. esac
  15037. else
  15038. # PORTME Check for flag to pass linker flags through the system compiler.
  15039. case $host_os in
  15040. aix*)
  15041. lt_prog_compiler_wl_GCJ='-Wl,'
  15042. if test "$host_cpu" = ia64; then
  15043. # AIX 5 now supports IA64 processor
  15044. lt_prog_compiler_static_GCJ='-Bstatic'
  15045. else
  15046. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15047. fi
  15048. ;;
  15049. darwin*)
  15050. # PIC is the default on this platform
  15051. # Common symbols not allowed in MH_DYLIB files
  15052. case $cc_basename in
  15053. xlc*)
  15054. lt_prog_compiler_pic_GCJ='-qnocommon'
  15055. lt_prog_compiler_wl_GCJ='-Wl,'
  15056. ;;
  15057. esac
  15058. ;;
  15059. mingw* | cygwin* | pw32* | os2*)
  15060. # This hack is so that the source file can tell whether it is being
  15061. # built for inclusion in a dll (and should export symbols for example).
  15062. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15063. ;;
  15064. hpux9* | hpux10* | hpux11*)
  15065. lt_prog_compiler_wl_GCJ='-Wl,'
  15066. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15067. # not for PA HP-UX.
  15068. case $host_cpu in
  15069. hppa*64*|ia64*)
  15070. # +Z the default
  15071. ;;
  15072. *)
  15073. lt_prog_compiler_pic_GCJ='+Z'
  15074. ;;
  15075. esac
  15076. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15077. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15078. ;;
  15079. irix5* | irix6* | nonstopux*)
  15080. lt_prog_compiler_wl_GCJ='-Wl,'
  15081. # PIC (with -KPIC) is the default.
  15082. lt_prog_compiler_static_GCJ='-non_shared'
  15083. ;;
  15084. newsos6)
  15085. lt_prog_compiler_pic_GCJ='-KPIC'
  15086. lt_prog_compiler_static_GCJ='-Bstatic'
  15087. ;;
  15088. linux* | k*bsd*-gnu)
  15089. case $cc_basename in
  15090. icc* | ecc*)
  15091. lt_prog_compiler_wl_GCJ='-Wl,'
  15092. lt_prog_compiler_pic_GCJ='-KPIC'
  15093. lt_prog_compiler_static_GCJ='-static'
  15094. ;;
  15095. pgcc* | pgf77* | pgf90* | pgf95*)
  15096. # Portland Group compilers (*not* the Pentium gcc compiler,
  15097. # which looks to be a dead project)
  15098. lt_prog_compiler_wl_GCJ='-Wl,'
  15099. lt_prog_compiler_pic_GCJ='-fpic'
  15100. lt_prog_compiler_static_GCJ='-Bstatic'
  15101. ;;
  15102. ccc*)
  15103. lt_prog_compiler_wl_GCJ='-Wl,'
  15104. # All Alpha code is PIC.
  15105. lt_prog_compiler_static_GCJ='-non_shared'
  15106. ;;
  15107. *)
  15108. case `$CC -V 2>&1 | sed 5q` in
  15109. *Sun\ C*)
  15110. # Sun C 5.9
  15111. lt_prog_compiler_pic_GCJ='-KPIC'
  15112. lt_prog_compiler_static_GCJ='-Bstatic'
  15113. lt_prog_compiler_wl_GCJ='-Wl,'
  15114. ;;
  15115. *Sun\ F*)
  15116. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15117. lt_prog_compiler_pic_GCJ='-KPIC'
  15118. lt_prog_compiler_static_GCJ='-Bstatic'
  15119. lt_prog_compiler_wl_GCJ=''
  15120. ;;
  15121. esac
  15122. ;;
  15123. esac
  15124. ;;
  15125. osf3* | osf4* | osf5*)
  15126. lt_prog_compiler_wl_GCJ='-Wl,'
  15127. # All OSF/1 code is PIC.
  15128. lt_prog_compiler_static_GCJ='-non_shared'
  15129. ;;
  15130. rdos*)
  15131. lt_prog_compiler_static_GCJ='-non_shared'
  15132. ;;
  15133. solaris*)
  15134. lt_prog_compiler_pic_GCJ='-KPIC'
  15135. lt_prog_compiler_static_GCJ='-Bstatic'
  15136. case $cc_basename in
  15137. f77* | f90* | f95*)
  15138. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15139. *)
  15140. lt_prog_compiler_wl_GCJ='-Wl,';;
  15141. esac
  15142. ;;
  15143. sunos4*)
  15144. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15145. lt_prog_compiler_pic_GCJ='-PIC'
  15146. lt_prog_compiler_static_GCJ='-Bstatic'
  15147. ;;
  15148. sysv4 | sysv4.2uw2* | sysv4.3*)
  15149. lt_prog_compiler_wl_GCJ='-Wl,'
  15150. lt_prog_compiler_pic_GCJ='-KPIC'
  15151. lt_prog_compiler_static_GCJ='-Bstatic'
  15152. ;;
  15153. sysv4*MP*)
  15154. if test -d /usr/nec ;then
  15155. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15156. lt_prog_compiler_static_GCJ='-Bstatic'
  15157. fi
  15158. ;;
  15159. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15160. lt_prog_compiler_wl_GCJ='-Wl,'
  15161. lt_prog_compiler_pic_GCJ='-KPIC'
  15162. lt_prog_compiler_static_GCJ='-Bstatic'
  15163. ;;
  15164. unicos*)
  15165. lt_prog_compiler_wl_GCJ='-Wl,'
  15166. lt_prog_compiler_can_build_shared_GCJ=no
  15167. ;;
  15168. uts4*)
  15169. lt_prog_compiler_pic_GCJ='-pic'
  15170. lt_prog_compiler_static_GCJ='-Bstatic'
  15171. ;;
  15172. *)
  15173. lt_prog_compiler_can_build_shared_GCJ=no
  15174. ;;
  15175. esac
  15176. fi
  15177. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15178. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15179. #
  15180. # Check to make sure the PIC flag actually works.
  15181. #
  15182. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15183. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15184. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15185. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15186. echo $ECHO_N "(cached) $ECHO_C" >&6
  15187. else
  15188. lt_prog_compiler_pic_works_GCJ=no
  15189. ac_outfile=conftest.$ac_objext
  15190. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15191. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15192. # Insert the option either (1) after the last *FLAGS variable, or
  15193. # (2) before a word containing "conftest.", or (3) at the end.
  15194. # Note that $ac_compile itself does not contain backslashes and begins
  15195. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15196. # The option is referenced via a variable to avoid confusing sed.
  15197. lt_compile=`echo "$ac_compile" | $SED \
  15198. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15199. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15200. -e 's:$: $lt_compiler_flag:'`
  15201. (eval echo "\"\$as_me:17005: $lt_compile\"" >&5)
  15202. (eval "$lt_compile" 2>conftest.err)
  15203. ac_status=$?
  15204. cat conftest.err >&5
  15205. echo "$as_me:17009: \$? = $ac_status" >&5
  15206. if (exit $ac_status) && test -s "$ac_outfile"; then
  15207. # The compiler can only warn and ignore the option if not recognized
  15208. # So say no if there are warnings other than the usual output.
  15209. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15210. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15211. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15212. lt_prog_compiler_pic_works_GCJ=yes
  15213. fi
  15214. fi
  15215. $rm conftest*
  15216. fi
  15217. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15218. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15219. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15220. case $lt_prog_compiler_pic_GCJ in
  15221. "" | " "*) ;;
  15222. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15223. esac
  15224. else
  15225. lt_prog_compiler_pic_GCJ=
  15226. lt_prog_compiler_can_build_shared_GCJ=no
  15227. fi
  15228. fi
  15229. case $host_os in
  15230. # For platforms which do not support PIC, -DPIC is meaningless:
  15231. *djgpp*)
  15232. lt_prog_compiler_pic_GCJ=
  15233. ;;
  15234. *)
  15235. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15236. ;;
  15237. esac
  15238. #
  15239. # Check to make sure the static flag actually works.
  15240. #
  15241. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15242. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15243. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15244. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15245. echo $ECHO_N "(cached) $ECHO_C" >&6
  15246. else
  15247. lt_prog_compiler_static_works_GCJ=no
  15248. save_LDFLAGS="$LDFLAGS"
  15249. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15250. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15251. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15252. # The linker can only warn and ignore the option if not recognized
  15253. # So say no if there are warnings
  15254. if test -s conftest.err; then
  15255. # Append any errors to the config.log.
  15256. cat conftest.err 1>&5
  15257. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15258. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15259. if diff conftest.exp conftest.er2 >/dev/null; then
  15260. lt_prog_compiler_static_works_GCJ=yes
  15261. fi
  15262. else
  15263. lt_prog_compiler_static_works_GCJ=yes
  15264. fi
  15265. fi
  15266. $rm conftest*
  15267. LDFLAGS="$save_LDFLAGS"
  15268. fi
  15269. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15270. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  15271. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15272. :
  15273. else
  15274. lt_prog_compiler_static_GCJ=
  15275. fi
  15276. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15277. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15278. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15279. echo $ECHO_N "(cached) $ECHO_C" >&6
  15280. else
  15281. lt_cv_prog_compiler_c_o_GCJ=no
  15282. $rm -r conftest 2>/dev/null
  15283. mkdir conftest
  15284. cd conftest
  15285. mkdir out
  15286. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15287. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15288. # Insert the option either (1) after the last *FLAGS variable, or
  15289. # (2) before a word containing "conftest.", or (3) at the end.
  15290. # Note that $ac_compile itself does not contain backslashes and begins
  15291. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15292. lt_compile=`echo "$ac_compile" | $SED \
  15293. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15294. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15295. -e 's:$: $lt_compiler_flag:'`
  15296. (eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
  15297. (eval "$lt_compile" 2>out/conftest.err)
  15298. ac_status=$?
  15299. cat out/conftest.err >&5
  15300. echo "$as_me:17113: \$? = $ac_status" >&5
  15301. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15302. then
  15303. # The compiler can only warn and ignore the option if not recognized
  15304. # So say no if there are warnings
  15305. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15306. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15307. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15308. lt_cv_prog_compiler_c_o_GCJ=yes
  15309. fi
  15310. fi
  15311. chmod u+w . 2>&5
  15312. $rm conftest*
  15313. # SGI C++ compiler will create directory out/ii_files/ for
  15314. # template instantiation
  15315. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15316. $rm out/* && rmdir out
  15317. cd ..
  15318. rmdir conftest
  15319. $rm conftest*
  15320. fi
  15321. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15322. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15323. hard_links="nottested"
  15324. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15325. # do not overwrite the value of need_locks provided by the user
  15326. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15327. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15328. hard_links=yes
  15329. $rm conftest*
  15330. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15331. touch conftest.a
  15332. ln conftest.a conftest.b 2>&5 || hard_links=no
  15333. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15334. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15335. echo "${ECHO_T}$hard_links" >&6; }
  15336. if test "$hard_links" = no; then
  15337. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15338. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15339. need_locks=warn
  15340. fi
  15341. else
  15342. need_locks=no
  15343. fi
  15344. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15345. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15346. runpath_var=
  15347. allow_undefined_flag_GCJ=
  15348. enable_shared_with_static_runtimes_GCJ=no
  15349. archive_cmds_GCJ=
  15350. archive_expsym_cmds_GCJ=
  15351. old_archive_From_new_cmds_GCJ=
  15352. old_archive_from_expsyms_cmds_GCJ=
  15353. export_dynamic_flag_spec_GCJ=
  15354. whole_archive_flag_spec_GCJ=
  15355. thread_safe_flag_spec_GCJ=
  15356. hardcode_libdir_flag_spec_GCJ=
  15357. hardcode_libdir_flag_spec_ld_GCJ=
  15358. hardcode_libdir_separator_GCJ=
  15359. hardcode_direct_GCJ=no
  15360. hardcode_minus_L_GCJ=no
  15361. hardcode_shlibpath_var_GCJ=unsupported
  15362. link_all_deplibs_GCJ=unknown
  15363. hardcode_automatic_GCJ=no
  15364. module_cmds_GCJ=
  15365. module_expsym_cmds_GCJ=
  15366. always_export_symbols_GCJ=no
  15367. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15368. # include_expsyms should be a list of space-separated symbols to be *always*
  15369. # included in the symbol list
  15370. include_expsyms_GCJ=
  15371. # exclude_expsyms can be an extended regexp of symbols to exclude
  15372. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15373. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15374. # as well as any symbol that contains `d'.
  15375. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15376. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15377. # platforms (ab)use it in PIC code, but their linkers get confused if
  15378. # the symbol is explicitly referenced. Since portable code cannot
  15379. # rely on this symbol name, it's probably fine to never include it in
  15380. # preloaded symbol tables.
  15381. extract_expsyms_cmds=
  15382. # Just being paranoid about ensuring that cc_basename is set.
  15383. for cc_temp in $compiler""; do
  15384. case $cc_temp in
  15385. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15386. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15387. \-*) ;;
  15388. *) break;;
  15389. esac
  15390. done
  15391. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15392. case $host_os in
  15393. cygwin* | mingw* | pw32*)
  15394. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15395. # When not using gcc, we currently assume that we are using
  15396. # Microsoft Visual C++.
  15397. if test "$GCC" != yes; then
  15398. with_gnu_ld=no
  15399. fi
  15400. ;;
  15401. interix*)
  15402. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15403. with_gnu_ld=yes
  15404. ;;
  15405. openbsd*)
  15406. with_gnu_ld=no
  15407. ;;
  15408. esac
  15409. ld_shlibs_GCJ=yes
  15410. if test "$with_gnu_ld" = yes; then
  15411. # If archive_cmds runs LD, not CC, wlarc should be empty
  15412. wlarc='${wl}'
  15413. # Set some defaults for GNU ld with shared library support. These
  15414. # are reset later if shared libraries are not supported. Putting them
  15415. # here allows them to be overridden if necessary.
  15416. runpath_var=LD_RUN_PATH
  15417. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15418. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15419. # ancient GNU ld didn't support --whole-archive et. al.
  15420. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15421. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15422. else
  15423. whole_archive_flag_spec_GCJ=
  15424. fi
  15425. supports_anon_versioning=no
  15426. case `$LD -v 2>/dev/null` in
  15427. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15428. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15429. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15430. *\ 2.11.*) ;; # other 2.11 versions
  15431. *) supports_anon_versioning=yes ;;
  15432. esac
  15433. # See if GNU ld supports shared libraries.
  15434. case $host_os in
  15435. aix3* | aix4* | aix5*)
  15436. # On AIX/PPC, the GNU linker is very broken
  15437. if test "$host_cpu" != ia64; then
  15438. ld_shlibs_GCJ=no
  15439. cat <<EOF 1>&2
  15440. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15441. *** to be unable to reliably create shared libraries on AIX.
  15442. *** Therefore, libtool is disabling shared libraries support. If you
  15443. *** really care for shared libraries, you may want to modify your PATH
  15444. *** so that a non-GNU linker is found, and then restart.
  15445. EOF
  15446. fi
  15447. ;;
  15448. amigaos*)
  15449. 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)'
  15450. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15451. hardcode_minus_L_GCJ=yes
  15452. # Samuel A. Falvo II <[email protected]> reports
  15453. # that the semantics of dynamic libraries on AmigaOS, at least up
  15454. # to version 4, is to share data among multiple programs linked
  15455. # with the same dynamic library. Since this doesn't match the
  15456. # behavior of shared libraries on other platforms, we can't use
  15457. # them.
  15458. ld_shlibs_GCJ=no
  15459. ;;
  15460. beos*)
  15461. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15462. allow_undefined_flag_GCJ=unsupported
  15463. # Joseph Beckenbach <[email protected]> says some releases of gcc
  15464. # support --undefined. This deserves some investigation. FIXME
  15465. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15466. else
  15467. ld_shlibs_GCJ=no
  15468. fi
  15469. ;;
  15470. cygwin* | mingw* | pw32*)
  15471. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15472. # as there is no search path for DLLs.
  15473. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15474. allow_undefined_flag_GCJ=unsupported
  15475. always_export_symbols_GCJ=no
  15476. enable_shared_with_static_runtimes_GCJ=yes
  15477. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15478. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15479. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15480. # If the export-symbols file already is a .def file (1st line
  15481. # is EXPORTS), use it as is; otherwise, prepend...
  15482. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15483. cp $export_symbols $output_objdir/$soname.def;
  15484. else
  15485. echo EXPORTS > $output_objdir/$soname.def;
  15486. cat $export_symbols >> $output_objdir/$soname.def;
  15487. fi~
  15488. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15489. else
  15490. ld_shlibs_GCJ=no
  15491. fi
  15492. ;;
  15493. interix[3-9]*)
  15494. hardcode_direct_GCJ=no
  15495. hardcode_shlibpath_var_GCJ=no
  15496. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15497. export_dynamic_flag_spec_GCJ='${wl}-E'
  15498. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15499. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15500. # default) and relocated if they conflict, which is a slow very memory
  15501. # consuming and fragmenting process. To avoid this, we pick a random,
  15502. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15503. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15504. 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'
  15505. 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'
  15506. ;;
  15507. gnu* | linux* | k*bsd*-gnu)
  15508. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15509. tmp_addflag=
  15510. case $cc_basename,$host_cpu in
  15511. pgcc*) # Portland Group C compiler
  15512. 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'
  15513. tmp_addflag=' $pic_flag'
  15514. ;;
  15515. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15516. 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'
  15517. tmp_addflag=' $pic_flag -Mnomain' ;;
  15518. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15519. tmp_addflag=' -i_dynamic' ;;
  15520. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15521. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15522. ifc* | ifort*) # Intel Fortran compiler
  15523. tmp_addflag=' -nofor_main' ;;
  15524. esac
  15525. case `$CC -V 2>&1 | sed 5q` in
  15526. *Sun\ C*) # Sun C 5.9
  15527. whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15528. tmp_sharedflag='-G' ;;
  15529. *Sun\ F*) # Sun Fortran 8.3
  15530. tmp_sharedflag='-G' ;;
  15531. *)
  15532. tmp_sharedflag='-shared' ;;
  15533. esac
  15534. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15535. if test $supports_anon_versioning = yes; then
  15536. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15537. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15538. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15539. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15540. fi
  15541. else
  15542. ld_shlibs_GCJ=no
  15543. fi
  15544. ;;
  15545. netbsd*)
  15546. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15547. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15548. wlarc=
  15549. else
  15550. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15551. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15552. fi
  15553. ;;
  15554. solaris*)
  15555. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15556. ld_shlibs_GCJ=no
  15557. cat <<EOF 1>&2
  15558. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15559. *** create shared libraries on Solaris systems. Therefore, libtool
  15560. *** is disabling shared libraries support. We urge you to upgrade GNU
  15561. *** binutils to release 2.9.1 or newer. Another option is to modify
  15562. *** your PATH or compiler configuration so that the native linker is
  15563. *** used, and then restart.
  15564. EOF
  15565. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15566. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15567. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15568. else
  15569. ld_shlibs_GCJ=no
  15570. fi
  15571. ;;
  15572. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15573. case `$LD -v 2>&1` in
  15574. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15575. ld_shlibs_GCJ=no
  15576. cat <<_LT_EOF 1>&2
  15577. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15578. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15579. *** is disabling shared libraries support. We urge you to upgrade GNU
  15580. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15581. *** your PATH or compiler configuration so that the native linker is
  15582. *** used, and then restart.
  15583. _LT_EOF
  15584. ;;
  15585. *)
  15586. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15587. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15588. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15589. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15590. else
  15591. ld_shlibs_GCJ=no
  15592. fi
  15593. ;;
  15594. esac
  15595. ;;
  15596. sunos4*)
  15597. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15598. wlarc=
  15599. hardcode_direct_GCJ=yes
  15600. hardcode_shlibpath_var_GCJ=no
  15601. ;;
  15602. *)
  15603. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15604. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15605. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15606. else
  15607. ld_shlibs_GCJ=no
  15608. fi
  15609. ;;
  15610. esac
  15611. if test "$ld_shlibs_GCJ" = no; then
  15612. runpath_var=
  15613. hardcode_libdir_flag_spec_GCJ=
  15614. export_dynamic_flag_spec_GCJ=
  15615. whole_archive_flag_spec_GCJ=
  15616. fi
  15617. else
  15618. # PORTME fill in a description of your system's linker (not GNU ld)
  15619. case $host_os in
  15620. aix3*)
  15621. allow_undefined_flag_GCJ=unsupported
  15622. always_export_symbols_GCJ=yes
  15623. 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'
  15624. # Note: this linker hardcodes the directories in LIBPATH if there
  15625. # are no directories specified by -L.
  15626. hardcode_minus_L_GCJ=yes
  15627. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15628. # Neither direct hardcoding nor static linking is supported with a
  15629. # broken collect2.
  15630. hardcode_direct_GCJ=unsupported
  15631. fi
  15632. ;;
  15633. aix4* | aix5*)
  15634. if test "$host_cpu" = ia64; then
  15635. # On IA64, the linker does run time linking by default, so we don't
  15636. # have to do anything special.
  15637. aix_use_runtimelinking=no
  15638. exp_sym_flag='-Bexport'
  15639. no_entry_flag=""
  15640. else
  15641. # If we're using GNU nm, then we don't want the "-C" option.
  15642. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15643. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15644. 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'
  15645. else
  15646. 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'
  15647. fi
  15648. aix_use_runtimelinking=no
  15649. # Test if we are trying to use run time linking or normal
  15650. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15651. # need to do runtime linking.
  15652. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15653. for ld_flag in $LDFLAGS; do
  15654. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15655. aix_use_runtimelinking=yes
  15656. break
  15657. fi
  15658. done
  15659. ;;
  15660. esac
  15661. exp_sym_flag='-bexport'
  15662. no_entry_flag='-bnoentry'
  15663. fi
  15664. # When large executables or shared objects are built, AIX ld can
  15665. # have problems creating the table of contents. If linking a library
  15666. # or program results in "error TOC overflow" add -mminimal-toc to
  15667. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15668. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15669. archive_cmds_GCJ=''
  15670. hardcode_direct_GCJ=yes
  15671. hardcode_libdir_separator_GCJ=':'
  15672. link_all_deplibs_GCJ=yes
  15673. if test "$GCC" = yes; then
  15674. case $host_os in aix4.[012]|aix4.[012].*)
  15675. # We only want to do this on AIX 4.2 and lower, the check
  15676. # below for broken collect2 doesn't work under 4.3+
  15677. collect2name=`${CC} -print-prog-name=collect2`
  15678. if test -f "$collect2name" && \
  15679. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15680. then
  15681. # We have reworked collect2
  15682. :
  15683. else
  15684. # We have old collect2
  15685. hardcode_direct_GCJ=unsupported
  15686. # It fails to find uninstalled libraries when the uninstalled
  15687. # path is not listed in the libpath. Setting hardcode_minus_L
  15688. # to unsupported forces relinking
  15689. hardcode_minus_L_GCJ=yes
  15690. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15691. hardcode_libdir_separator_GCJ=
  15692. fi
  15693. ;;
  15694. esac
  15695. shared_flag='-shared'
  15696. if test "$aix_use_runtimelinking" = yes; then
  15697. shared_flag="$shared_flag "'${wl}-G'
  15698. fi
  15699. else
  15700. # not using gcc
  15701. if test "$host_cpu" = ia64; then
  15702. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15703. # chokes on -Wl,-G. The following line is correct:
  15704. shared_flag='-G'
  15705. else
  15706. if test "$aix_use_runtimelinking" = yes; then
  15707. shared_flag='${wl}-G'
  15708. else
  15709. shared_flag='${wl}-bM:SRE'
  15710. fi
  15711. fi
  15712. fi
  15713. # It seems that -bexpall does not export symbols beginning with
  15714. # underscore (_), so it is better to generate a list of symbols to export.
  15715. always_export_symbols_GCJ=yes
  15716. if test "$aix_use_runtimelinking" = yes; then
  15717. # Warning - without using the other runtime loading flags (-brtl),
  15718. # -berok will link without error, but may produce a broken library.
  15719. allow_undefined_flag_GCJ='-berok'
  15720. # Determine the default libpath from the value encoded in an empty executable.
  15721. cat >conftest.$ac_ext <<_ACEOF
  15722. /* confdefs.h. */
  15723. _ACEOF
  15724. cat confdefs.h >>conftest.$ac_ext
  15725. cat >>conftest.$ac_ext <<_ACEOF
  15726. /* end confdefs.h. */
  15727. int
  15728. main ()
  15729. {
  15730. ;
  15731. return 0;
  15732. }
  15733. _ACEOF
  15734. rm -f conftest.$ac_objext conftest$ac_exeext
  15735. if { (ac_try="$ac_link"
  15736. case "(($ac_try" in
  15737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15738. *) ac_try_echo=$ac_try;;
  15739. esac
  15740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15741. (eval "$ac_link") 2>conftest.er1
  15742. ac_status=$?
  15743. grep -v '^ *+' conftest.er1 >conftest.err
  15744. rm -f conftest.er1
  15745. cat conftest.err >&5
  15746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15747. (exit $ac_status); } && {
  15748. test -z "$ac_c_werror_flag" ||
  15749. test ! -s conftest.err
  15750. } && test -s conftest$ac_exeext &&
  15751. $as_test_x conftest$ac_exeext; then
  15752. lt_aix_libpath_sed='
  15753. /Import File Strings/,/^$/ {
  15754. /^0/ {
  15755. s/^0 *\(.*\)$/\1/
  15756. p
  15757. }
  15758. }'
  15759. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15760. # Check for a 64-bit object if we didn't find anything.
  15761. if test -z "$aix_libpath"; then
  15762. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15763. fi
  15764. else
  15765. echo "$as_me: failed program was:" >&5
  15766. sed 's/^/| /' conftest.$ac_ext >&5
  15767. fi
  15768. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15769. conftest$ac_exeext conftest.$ac_ext
  15770. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15771. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15772. 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"
  15773. else
  15774. if test "$host_cpu" = ia64; then
  15775. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15776. allow_undefined_flag_GCJ="-z nodefs"
  15777. 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"
  15778. else
  15779. # Determine the default libpath from the value encoded in an empty executable.
  15780. cat >conftest.$ac_ext <<_ACEOF
  15781. /* confdefs.h. */
  15782. _ACEOF
  15783. cat confdefs.h >>conftest.$ac_ext
  15784. cat >>conftest.$ac_ext <<_ACEOF
  15785. /* end confdefs.h. */
  15786. int
  15787. main ()
  15788. {
  15789. ;
  15790. return 0;
  15791. }
  15792. _ACEOF
  15793. rm -f conftest.$ac_objext conftest$ac_exeext
  15794. if { (ac_try="$ac_link"
  15795. case "(($ac_try" in
  15796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15797. *) ac_try_echo=$ac_try;;
  15798. esac
  15799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15800. (eval "$ac_link") 2>conftest.er1
  15801. ac_status=$?
  15802. grep -v '^ *+' conftest.er1 >conftest.err
  15803. rm -f conftest.er1
  15804. cat conftest.err >&5
  15805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15806. (exit $ac_status); } && {
  15807. test -z "$ac_c_werror_flag" ||
  15808. test ! -s conftest.err
  15809. } && test -s conftest$ac_exeext &&
  15810. $as_test_x conftest$ac_exeext; then
  15811. lt_aix_libpath_sed='
  15812. /Import File Strings/,/^$/ {
  15813. /^0/ {
  15814. s/^0 *\(.*\)$/\1/
  15815. p
  15816. }
  15817. }'
  15818. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15819. # Check for a 64-bit object if we didn't find anything.
  15820. if test -z "$aix_libpath"; then
  15821. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15822. fi
  15823. else
  15824. echo "$as_me: failed program was:" >&5
  15825. sed 's/^/| /' conftest.$ac_ext >&5
  15826. fi
  15827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15828. conftest$ac_exeext conftest.$ac_ext
  15829. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15830. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15831. # Warning - without using the other run time loading flags,
  15832. # -berok will link without error, but may produce a broken library.
  15833. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15834. allow_undefined_flag_GCJ=' ${wl}-berok'
  15835. # Exported symbols can be pulled into shared objects from archives
  15836. whole_archive_flag_spec_GCJ='$convenience'
  15837. archive_cmds_need_lc_GCJ=yes
  15838. # This is similar to how AIX traditionally builds its shared libraries.
  15839. 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'
  15840. fi
  15841. fi
  15842. ;;
  15843. amigaos*)
  15844. 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)'
  15845. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15846. hardcode_minus_L_GCJ=yes
  15847. # see comment about different semantics on the GNU ld section
  15848. ld_shlibs_GCJ=no
  15849. ;;
  15850. bsdi[45]*)
  15851. export_dynamic_flag_spec_GCJ=-rdynamic
  15852. ;;
  15853. cygwin* | mingw* | pw32*)
  15854. # When not using gcc, we currently assume that we are using
  15855. # Microsoft Visual C++.
  15856. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15857. # no search path for DLLs.
  15858. hardcode_libdir_flag_spec_GCJ=' '
  15859. allow_undefined_flag_GCJ=unsupported
  15860. # Tell ltmain to make .lib files, not .a files.
  15861. libext=lib
  15862. # Tell ltmain to make .dll files, not .so files.
  15863. shrext_cmds=".dll"
  15864. # FIXME: Setting linknames here is a bad hack.
  15865. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15866. # The linker will automatically build a .lib file if we build a DLL.
  15867. old_archive_From_new_cmds_GCJ='true'
  15868. # FIXME: Should let the user specify the lib program.
  15869. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15870. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15871. enable_shared_with_static_runtimes_GCJ=yes
  15872. ;;
  15873. darwin* | rhapsody*)
  15874. case $host_os in
  15875. rhapsody* | darwin1.[012])
  15876. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15877. ;;
  15878. *) # Darwin 1.3 on
  15879. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15880. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15881. else
  15882. case ${MACOSX_DEPLOYMENT_TARGET} in
  15883. 10.[012])
  15884. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15885. ;;
  15886. 10.*)
  15887. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15888. ;;
  15889. esac
  15890. fi
  15891. ;;
  15892. esac
  15893. archive_cmds_need_lc_GCJ=no
  15894. hardcode_direct_GCJ=no
  15895. hardcode_automatic_GCJ=yes
  15896. hardcode_shlibpath_var_GCJ=unsupported
  15897. whole_archive_flag_spec_GCJ=''
  15898. link_all_deplibs_GCJ=yes
  15899. if test "$GCC" = yes ; then
  15900. output_verbose_link_cmd='echo'
  15901. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15902. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15903. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15904. 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}'
  15905. 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}'
  15906. else
  15907. case $cc_basename in
  15908. xlc*)
  15909. output_verbose_link_cmd='echo'
  15910. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15911. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15912. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15913. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15914. 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}'
  15915. ;;
  15916. *)
  15917. ld_shlibs_GCJ=no
  15918. ;;
  15919. esac
  15920. fi
  15921. ;;
  15922. dgux*)
  15923. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15924. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15925. hardcode_shlibpath_var_GCJ=no
  15926. ;;
  15927. freebsd1*)
  15928. ld_shlibs_GCJ=no
  15929. ;;
  15930. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15931. # support. Future versions do this automatically, but an explicit c++rt0.o
  15932. # does not break anything, and helps significantly (at the cost of a little
  15933. # extra space).
  15934. freebsd2.2*)
  15935. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15936. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15937. hardcode_direct_GCJ=yes
  15938. hardcode_shlibpath_var_GCJ=no
  15939. ;;
  15940. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15941. freebsd2*)
  15942. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15943. hardcode_direct_GCJ=yes
  15944. hardcode_minus_L_GCJ=yes
  15945. hardcode_shlibpath_var_GCJ=no
  15946. ;;
  15947. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15948. freebsd* | dragonfly*)
  15949. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15950. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15951. hardcode_direct_GCJ=yes
  15952. hardcode_shlibpath_var_GCJ=no
  15953. ;;
  15954. hpux9*)
  15955. if test "$GCC" = yes; then
  15956. 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'
  15957. else
  15958. 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'
  15959. fi
  15960. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15961. hardcode_libdir_separator_GCJ=:
  15962. hardcode_direct_GCJ=yes
  15963. # hardcode_minus_L: Not really in the search PATH,
  15964. # but as the default location of the library.
  15965. hardcode_minus_L_GCJ=yes
  15966. export_dynamic_flag_spec_GCJ='${wl}-E'
  15967. ;;
  15968. hpux10*)
  15969. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15970. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15971. else
  15972. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15973. fi
  15974. if test "$with_gnu_ld" = no; then
  15975. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15976. hardcode_libdir_separator_GCJ=:
  15977. hardcode_direct_GCJ=yes
  15978. export_dynamic_flag_spec_GCJ='${wl}-E'
  15979. # hardcode_minus_L: Not really in the search PATH,
  15980. # but as the default location of the library.
  15981. hardcode_minus_L_GCJ=yes
  15982. fi
  15983. ;;
  15984. hpux11*)
  15985. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15986. case $host_cpu in
  15987. hppa*64*)
  15988. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15989. ;;
  15990. ia64*)
  15991. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15992. ;;
  15993. *)
  15994. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15995. ;;
  15996. esac
  15997. else
  15998. case $host_cpu in
  15999. hppa*64*)
  16000. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16001. ;;
  16002. ia64*)
  16003. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16004. ;;
  16005. *)
  16006. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16007. ;;
  16008. esac
  16009. fi
  16010. if test "$with_gnu_ld" = no; then
  16011. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16012. hardcode_libdir_separator_GCJ=:
  16013. case $host_cpu in
  16014. hppa*64*|ia64*)
  16015. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16016. hardcode_direct_GCJ=no
  16017. hardcode_shlibpath_var_GCJ=no
  16018. ;;
  16019. *)
  16020. hardcode_direct_GCJ=yes
  16021. export_dynamic_flag_spec_GCJ='${wl}-E'
  16022. # hardcode_minus_L: Not really in the search PATH,
  16023. # but as the default location of the library.
  16024. hardcode_minus_L_GCJ=yes
  16025. ;;
  16026. esac
  16027. fi
  16028. ;;
  16029. irix5* | irix6* | nonstopux*)
  16030. if test "$GCC" = yes; then
  16031. 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'
  16032. else
  16033. 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'
  16034. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16035. fi
  16036. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16037. hardcode_libdir_separator_GCJ=:
  16038. link_all_deplibs_GCJ=yes
  16039. ;;
  16040. netbsd*)
  16041. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16042. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16043. else
  16044. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16045. fi
  16046. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16047. hardcode_direct_GCJ=yes
  16048. hardcode_shlibpath_var_GCJ=no
  16049. ;;
  16050. newsos6)
  16051. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16052. hardcode_direct_GCJ=yes
  16053. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16054. hardcode_libdir_separator_GCJ=:
  16055. hardcode_shlibpath_var_GCJ=no
  16056. ;;
  16057. openbsd*)
  16058. if test -f /usr/libexec/ld.so; then
  16059. hardcode_direct_GCJ=yes
  16060. hardcode_shlibpath_var_GCJ=no
  16061. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16062. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16063. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16064. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16065. export_dynamic_flag_spec_GCJ='${wl}-E'
  16066. else
  16067. case $host_os in
  16068. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16069. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16070. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16071. ;;
  16072. *)
  16073. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16074. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16075. ;;
  16076. esac
  16077. fi
  16078. else
  16079. ld_shlibs_GCJ=no
  16080. fi
  16081. ;;
  16082. os2*)
  16083. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16084. hardcode_minus_L_GCJ=yes
  16085. allow_undefined_flag_GCJ=unsupported
  16086. 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'
  16087. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16088. ;;
  16089. osf3*)
  16090. if test "$GCC" = yes; then
  16091. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16092. 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'
  16093. else
  16094. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16095. 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'
  16096. fi
  16097. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16098. hardcode_libdir_separator_GCJ=:
  16099. ;;
  16100. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16101. if test "$GCC" = yes; then
  16102. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16103. 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'
  16104. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16105. else
  16106. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16107. 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'
  16108. 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~
  16109. $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'
  16110. # Both c and cxx compiler support -rpath directly
  16111. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16112. fi
  16113. hardcode_libdir_separator_GCJ=:
  16114. ;;
  16115. solaris*)
  16116. no_undefined_flag_GCJ=' -z text'
  16117. if test "$GCC" = yes; then
  16118. wlarc='${wl}'
  16119. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16120. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16121. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16122. else
  16123. wlarc=''
  16124. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16125. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16126. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16127. fi
  16128. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16129. hardcode_shlibpath_var_GCJ=no
  16130. case $host_os in
  16131. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16132. *)
  16133. # The compiler driver will combine and reorder linker options,
  16134. # but understands `-z linker_flag'. GCC discards it without `$wl',
  16135. # but is careful enough not to reorder.
  16136. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16137. if test "$GCC" = yes; then
  16138. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16139. else
  16140. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  16141. fi
  16142. ;;
  16143. esac
  16144. link_all_deplibs_GCJ=yes
  16145. ;;
  16146. sunos4*)
  16147. if test "x$host_vendor" = xsequent; then
  16148. # Use $CC to link under sequent, because it throws in some extra .o
  16149. # files that make .init and .fini sections work.
  16150. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16151. else
  16152. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16153. fi
  16154. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16155. hardcode_direct_GCJ=yes
  16156. hardcode_minus_L_GCJ=yes
  16157. hardcode_shlibpath_var_GCJ=no
  16158. ;;
  16159. sysv4)
  16160. case $host_vendor in
  16161. sni)
  16162. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16163. hardcode_direct_GCJ=yes # is this really true???
  16164. ;;
  16165. siemens)
  16166. ## LD is ld it makes a PLAMLIB
  16167. ## CC just makes a GrossModule.
  16168. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16169. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16170. hardcode_direct_GCJ=no
  16171. ;;
  16172. motorola)
  16173. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16174. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16175. ;;
  16176. esac
  16177. runpath_var='LD_RUN_PATH'
  16178. hardcode_shlibpath_var_GCJ=no
  16179. ;;
  16180. sysv4.3*)
  16181. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16182. hardcode_shlibpath_var_GCJ=no
  16183. export_dynamic_flag_spec_GCJ='-Bexport'
  16184. ;;
  16185. sysv4*MP*)
  16186. if test -d /usr/nec; then
  16187. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16188. hardcode_shlibpath_var_GCJ=no
  16189. runpath_var=LD_RUN_PATH
  16190. hardcode_runpath_var=yes
  16191. ld_shlibs_GCJ=yes
  16192. fi
  16193. ;;
  16194. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16195. no_undefined_flag_GCJ='${wl}-z,text'
  16196. archive_cmds_need_lc_GCJ=no
  16197. hardcode_shlibpath_var_GCJ=no
  16198. runpath_var='LD_RUN_PATH'
  16199. if test "$GCC" = yes; then
  16200. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16201. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16202. else
  16203. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16204. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16205. fi
  16206. ;;
  16207. sysv5* | sco3.2v5* | sco5v6*)
  16208. # Note: We can NOT use -z defs as we might desire, because we do not
  16209. # link with -lc, and that would cause any symbols used from libc to
  16210. # always be unresolved, which means just about no library would
  16211. # ever link correctly. If we're not using GNU ld we use -z text
  16212. # though, which does catch some bad symbols but isn't as heavy-handed
  16213. # as -z defs.
  16214. no_undefined_flag_GCJ='${wl}-z,text'
  16215. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16216. archive_cmds_need_lc_GCJ=no
  16217. hardcode_shlibpath_var_GCJ=no
  16218. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16219. hardcode_libdir_separator_GCJ=':'
  16220. link_all_deplibs_GCJ=yes
  16221. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16222. runpath_var='LD_RUN_PATH'
  16223. if test "$GCC" = yes; then
  16224. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16225. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16226. else
  16227. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16228. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16229. fi
  16230. ;;
  16231. uts4*)
  16232. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16233. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16234. hardcode_shlibpath_var_GCJ=no
  16235. ;;
  16236. *)
  16237. ld_shlibs_GCJ=no
  16238. ;;
  16239. esac
  16240. fi
  16241. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16242. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16243. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16244. #
  16245. # Do we need to explicitly link libc?
  16246. #
  16247. case "x$archive_cmds_need_lc_GCJ" in
  16248. x|xyes)
  16249. # Assume -lc should be added
  16250. archive_cmds_need_lc_GCJ=yes
  16251. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16252. case $archive_cmds_GCJ in
  16253. *'~'*)
  16254. # FIXME: we may have to deal with multi-command sequences.
  16255. ;;
  16256. '$CC '*)
  16257. # Test whether the compiler implicitly links with -lc since on some
  16258. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16259. # to ld, don't add -lc before -lgcc.
  16260. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16261. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16262. $rm conftest*
  16263. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16264. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16265. (eval $ac_compile) 2>&5
  16266. ac_status=$?
  16267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16268. (exit $ac_status); } 2>conftest.err; then
  16269. soname=conftest
  16270. lib=conftest
  16271. libobjs=conftest.$ac_objext
  16272. deplibs=
  16273. wl=$lt_prog_compiler_wl_GCJ
  16274. pic_flag=$lt_prog_compiler_pic_GCJ
  16275. compiler_flags=-v
  16276. linker_flags=-v
  16277. verstring=
  16278. output_objdir=.
  16279. libname=conftest
  16280. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16281. allow_undefined_flag_GCJ=
  16282. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16283. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16284. ac_status=$?
  16285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16286. (exit $ac_status); }
  16287. then
  16288. archive_cmds_need_lc_GCJ=no
  16289. else
  16290. archive_cmds_need_lc_GCJ=yes
  16291. fi
  16292. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16293. else
  16294. cat conftest.err 1>&5
  16295. fi
  16296. $rm conftest*
  16297. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16298. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16299. ;;
  16300. esac
  16301. fi
  16302. ;;
  16303. esac
  16304. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16305. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16306. library_names_spec=
  16307. libname_spec='lib$name'
  16308. soname_spec=
  16309. shrext_cmds=".so"
  16310. postinstall_cmds=
  16311. postuninstall_cmds=
  16312. finish_cmds=
  16313. finish_eval=
  16314. shlibpath_var=
  16315. shlibpath_overrides_runpath=unknown
  16316. version_type=none
  16317. dynamic_linker="$host_os ld.so"
  16318. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16319. need_lib_prefix=unknown
  16320. hardcode_into_libs=no
  16321. # when you set need_version to no, make sure it does not cause -set_version
  16322. # flags to be left without arguments
  16323. need_version=unknown
  16324. case $host_os in
  16325. aix3*)
  16326. version_type=linux
  16327. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16328. shlibpath_var=LIBPATH
  16329. # AIX 3 has no versioning support, so we append a major version to the name.
  16330. soname_spec='${libname}${release}${shared_ext}$major'
  16331. ;;
  16332. aix4* | aix5*)
  16333. version_type=linux
  16334. need_lib_prefix=no
  16335. need_version=no
  16336. hardcode_into_libs=yes
  16337. if test "$host_cpu" = ia64; then
  16338. # AIX 5 supports IA64
  16339. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16340. shlibpath_var=LD_LIBRARY_PATH
  16341. else
  16342. # With GCC up to 2.95.x, collect2 would create an import file
  16343. # for dependence libraries. The import file would start with
  16344. # the line `#! .'. This would cause the generated library to
  16345. # depend on `.', always an invalid library. This was fixed in
  16346. # development snapshots of GCC prior to 3.0.
  16347. case $host_os in
  16348. aix4 | aix4.[01] | aix4.[01].*)
  16349. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16350. echo ' yes '
  16351. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16352. :
  16353. else
  16354. can_build_shared=no
  16355. fi
  16356. ;;
  16357. esac
  16358. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16359. # soname into executable. Probably we can add versioning support to
  16360. # collect2, so additional links can be useful in future.
  16361. if test "$aix_use_runtimelinking" = yes; then
  16362. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16363. # instead of lib<name>.a to let people know that these are not
  16364. # typical AIX shared libraries.
  16365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16366. else
  16367. # We preserve .a as extension for shared libraries through AIX4.2
  16368. # and later when we are not doing run time linking.
  16369. library_names_spec='${libname}${release}.a $libname.a'
  16370. soname_spec='${libname}${release}${shared_ext}$major'
  16371. fi
  16372. shlibpath_var=LIBPATH
  16373. fi
  16374. ;;
  16375. amigaos*)
  16376. library_names_spec='$libname.ixlibrary $libname.a'
  16377. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16378. 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'
  16379. ;;
  16380. beos*)
  16381. library_names_spec='${libname}${shared_ext}'
  16382. dynamic_linker="$host_os ld.so"
  16383. shlibpath_var=LIBRARY_PATH
  16384. ;;
  16385. bsdi[45]*)
  16386. version_type=linux
  16387. need_version=no
  16388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16389. soname_spec='${libname}${release}${shared_ext}$major'
  16390. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16391. shlibpath_var=LD_LIBRARY_PATH
  16392. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16393. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16394. # the default ld.so.conf also contains /usr/contrib/lib and
  16395. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16396. # libtool to hard-code these into programs
  16397. ;;
  16398. cygwin* | mingw* | pw32*)
  16399. version_type=windows
  16400. shrext_cmds=".dll"
  16401. need_version=no
  16402. need_lib_prefix=no
  16403. case $GCC,$host_os in
  16404. yes,cygwin* | yes,mingw* | yes,pw32*)
  16405. library_names_spec='$libname.dll.a'
  16406. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16407. postinstall_cmds='base_file=`basename \${file}`~
  16408. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16409. dldir=$destdir/`dirname \$dlpath`~
  16410. test -d \$dldir || mkdir -p \$dldir~
  16411. $install_prog $dir/$dlname \$dldir/$dlname~
  16412. chmod a+x \$dldir/$dlname'
  16413. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16414. dlpath=$dir/\$dldll~
  16415. $rm \$dlpath'
  16416. shlibpath_overrides_runpath=yes
  16417. case $host_os in
  16418. cygwin*)
  16419. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16420. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16421. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16422. ;;
  16423. mingw*)
  16424. # MinGW DLLs use traditional 'lib' prefix
  16425. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16426. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16427. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16428. # It is most probably a Windows format PATH printed by
  16429. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16430. # path with ; separators, and with drive letters. We can handle the
  16431. # drive letters (cygwin fileutils understands them), so leave them,
  16432. # especially as we might pass files found there to a mingw objdump,
  16433. # which wouldn't understand a cygwinified path. Ahh.
  16434. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16435. else
  16436. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16437. fi
  16438. ;;
  16439. pw32*)
  16440. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16441. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16442. ;;
  16443. esac
  16444. ;;
  16445. *)
  16446. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16447. ;;
  16448. esac
  16449. dynamic_linker='Win32 ld.exe'
  16450. # FIXME: first we should search . and the directory the executable is in
  16451. shlibpath_var=PATH
  16452. ;;
  16453. darwin* | rhapsody*)
  16454. dynamic_linker="$host_os dyld"
  16455. version_type=darwin
  16456. need_lib_prefix=no
  16457. need_version=no
  16458. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16459. soname_spec='${libname}${release}${major}$shared_ext'
  16460. shlibpath_overrides_runpath=yes
  16461. shlibpath_var=DYLD_LIBRARY_PATH
  16462. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16463. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16464. ;;
  16465. dgux*)
  16466. version_type=linux
  16467. need_lib_prefix=no
  16468. need_version=no
  16469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16470. soname_spec='${libname}${release}${shared_ext}$major'
  16471. shlibpath_var=LD_LIBRARY_PATH
  16472. ;;
  16473. freebsd1*)
  16474. dynamic_linker=no
  16475. ;;
  16476. freebsd* | dragonfly*)
  16477. # DragonFly does not have aout. When/if they implement a new
  16478. # versioning mechanism, adjust this.
  16479. if test -x /usr/bin/objformat; then
  16480. objformat=`/usr/bin/objformat`
  16481. else
  16482. case $host_os in
  16483. freebsd[123]*) objformat=aout ;;
  16484. *) objformat=elf ;;
  16485. esac
  16486. fi
  16487. version_type=freebsd-$objformat
  16488. case $version_type in
  16489. freebsd-elf*)
  16490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16491. need_version=no
  16492. need_lib_prefix=no
  16493. ;;
  16494. freebsd-*)
  16495. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16496. need_version=yes
  16497. ;;
  16498. esac
  16499. shlibpath_var=LD_LIBRARY_PATH
  16500. case $host_os in
  16501. freebsd2*)
  16502. shlibpath_overrides_runpath=yes
  16503. ;;
  16504. freebsd3.[01]* | freebsdelf3.[01]*)
  16505. shlibpath_overrides_runpath=yes
  16506. hardcode_into_libs=yes
  16507. ;;
  16508. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16509. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16510. shlibpath_overrides_runpath=no
  16511. hardcode_into_libs=yes
  16512. ;;
  16513. *) # from 4.6 on, and DragonFly
  16514. shlibpath_overrides_runpath=yes
  16515. hardcode_into_libs=yes
  16516. ;;
  16517. esac
  16518. ;;
  16519. gnu*)
  16520. version_type=linux
  16521. need_lib_prefix=no
  16522. need_version=no
  16523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16524. soname_spec='${libname}${release}${shared_ext}$major'
  16525. shlibpath_var=LD_LIBRARY_PATH
  16526. hardcode_into_libs=yes
  16527. ;;
  16528. hpux9* | hpux10* | hpux11*)
  16529. # Give a soname corresponding to the major version so that dld.sl refuses to
  16530. # link against other versions.
  16531. version_type=sunos
  16532. need_lib_prefix=no
  16533. need_version=no
  16534. case $host_cpu in
  16535. ia64*)
  16536. shrext_cmds='.so'
  16537. hardcode_into_libs=yes
  16538. dynamic_linker="$host_os dld.so"
  16539. shlibpath_var=LD_LIBRARY_PATH
  16540. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16542. soname_spec='${libname}${release}${shared_ext}$major'
  16543. if test "X$HPUX_IA64_MODE" = X32; then
  16544. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16545. else
  16546. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16547. fi
  16548. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16549. ;;
  16550. hppa*64*)
  16551. shrext_cmds='.sl'
  16552. hardcode_into_libs=yes
  16553. dynamic_linker="$host_os dld.sl"
  16554. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16555. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16557. soname_spec='${libname}${release}${shared_ext}$major'
  16558. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16559. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16560. ;;
  16561. *)
  16562. shrext_cmds='.sl'
  16563. dynamic_linker="$host_os dld.sl"
  16564. shlibpath_var=SHLIB_PATH
  16565. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16567. soname_spec='${libname}${release}${shared_ext}$major'
  16568. ;;
  16569. esac
  16570. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16571. postinstall_cmds='chmod 555 $lib'
  16572. ;;
  16573. interix[3-9]*)
  16574. version_type=linux
  16575. need_lib_prefix=no
  16576. need_version=no
  16577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16578. soname_spec='${libname}${release}${shared_ext}$major'
  16579. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16580. shlibpath_var=LD_LIBRARY_PATH
  16581. shlibpath_overrides_runpath=no
  16582. hardcode_into_libs=yes
  16583. ;;
  16584. irix5* | irix6* | nonstopux*)
  16585. case $host_os in
  16586. nonstopux*) version_type=nonstopux ;;
  16587. *)
  16588. if test "$lt_cv_prog_gnu_ld" = yes; then
  16589. version_type=linux
  16590. else
  16591. version_type=irix
  16592. fi ;;
  16593. esac
  16594. need_lib_prefix=no
  16595. need_version=no
  16596. soname_spec='${libname}${release}${shared_ext}$major'
  16597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16598. case $host_os in
  16599. irix5* | nonstopux*)
  16600. libsuff= shlibsuff=
  16601. ;;
  16602. *)
  16603. case $LD in # libtool.m4 will add one of these switches to LD
  16604. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16605. libsuff= shlibsuff= libmagic=32-bit;;
  16606. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16607. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16608. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16609. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16610. *) libsuff= shlibsuff= libmagic=never-match;;
  16611. esac
  16612. ;;
  16613. esac
  16614. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16615. shlibpath_overrides_runpath=no
  16616. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16617. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16618. hardcode_into_libs=yes
  16619. ;;
  16620. # No shared lib support for Linux oldld, aout, or coff.
  16621. linux*oldld* | linux*aout* | linux*coff*)
  16622. dynamic_linker=no
  16623. ;;
  16624. # This must be Linux ELF.
  16625. linux* | k*bsd*-gnu)
  16626. version_type=linux
  16627. need_lib_prefix=no
  16628. need_version=no
  16629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16630. soname_spec='${libname}${release}${shared_ext}$major'
  16631. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16632. shlibpath_var=LD_LIBRARY_PATH
  16633. shlibpath_overrides_runpath=no
  16634. # This implies no fast_install, which is unacceptable.
  16635. # Some rework will be needed to allow for fast_install
  16636. # before this can be enabled.
  16637. hardcode_into_libs=yes
  16638. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16639. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16640. # Append ld.so.conf contents to the search path
  16641. if test -f /etc/ld.so.conf; then
  16642. 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16643. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  16644. fi
  16645. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16646. # powerpc, because MkLinux only supported shared libraries with the
  16647. # GNU dynamic linker. Since this was broken with cross compilers,
  16648. # most powerpc-linux boxes support dynamic linking these days and
  16649. # people can always --disable-shared, the test was removed, and we
  16650. # assume the GNU/Linux dynamic linker is in use.
  16651. dynamic_linker='GNU/Linux ld.so'
  16652. ;;
  16653. netbsd*)
  16654. version_type=sunos
  16655. need_lib_prefix=no
  16656. need_version=no
  16657. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16659. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16660. dynamic_linker='NetBSD (a.out) ld.so'
  16661. else
  16662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16663. soname_spec='${libname}${release}${shared_ext}$major'
  16664. dynamic_linker='NetBSD ld.elf_so'
  16665. fi
  16666. shlibpath_var=LD_LIBRARY_PATH
  16667. shlibpath_overrides_runpath=yes
  16668. hardcode_into_libs=yes
  16669. ;;
  16670. newsos6)
  16671. version_type=linux
  16672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16673. shlibpath_var=LD_LIBRARY_PATH
  16674. shlibpath_overrides_runpath=yes
  16675. ;;
  16676. nto-qnx*)
  16677. version_type=linux
  16678. need_lib_prefix=no
  16679. need_version=no
  16680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16681. soname_spec='${libname}${release}${shared_ext}$major'
  16682. shlibpath_var=LD_LIBRARY_PATH
  16683. shlibpath_overrides_runpath=yes
  16684. ;;
  16685. openbsd*)
  16686. version_type=sunos
  16687. sys_lib_dlsearch_path_spec="/usr/lib"
  16688. need_lib_prefix=no
  16689. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16690. case $host_os in
  16691. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16692. *) need_version=no ;;
  16693. esac
  16694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16695. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16696. shlibpath_var=LD_LIBRARY_PATH
  16697. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16698. case $host_os in
  16699. openbsd2.[89] | openbsd2.[89].*)
  16700. shlibpath_overrides_runpath=no
  16701. ;;
  16702. *)
  16703. shlibpath_overrides_runpath=yes
  16704. ;;
  16705. esac
  16706. else
  16707. shlibpath_overrides_runpath=yes
  16708. fi
  16709. ;;
  16710. os2*)
  16711. libname_spec='$name'
  16712. shrext_cmds=".dll"
  16713. need_lib_prefix=no
  16714. library_names_spec='$libname${shared_ext} $libname.a'
  16715. dynamic_linker='OS/2 ld.exe'
  16716. shlibpath_var=LIBPATH
  16717. ;;
  16718. osf3* | osf4* | osf5*)
  16719. version_type=osf
  16720. need_lib_prefix=no
  16721. need_version=no
  16722. soname_spec='${libname}${release}${shared_ext}$major'
  16723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16724. shlibpath_var=LD_LIBRARY_PATH
  16725. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16726. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16727. ;;
  16728. rdos*)
  16729. dynamic_linker=no
  16730. ;;
  16731. solaris*)
  16732. version_type=linux
  16733. need_lib_prefix=no
  16734. need_version=no
  16735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16736. soname_spec='${libname}${release}${shared_ext}$major'
  16737. shlibpath_var=LD_LIBRARY_PATH
  16738. shlibpath_overrides_runpath=yes
  16739. hardcode_into_libs=yes
  16740. # ldd complains unless libraries are executable
  16741. postinstall_cmds='chmod +x $lib'
  16742. ;;
  16743. sunos4*)
  16744. version_type=sunos
  16745. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16746. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16747. shlibpath_var=LD_LIBRARY_PATH
  16748. shlibpath_overrides_runpath=yes
  16749. if test "$with_gnu_ld" = yes; then
  16750. need_lib_prefix=no
  16751. fi
  16752. need_version=yes
  16753. ;;
  16754. sysv4 | sysv4.3*)
  16755. version_type=linux
  16756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16757. soname_spec='${libname}${release}${shared_ext}$major'
  16758. shlibpath_var=LD_LIBRARY_PATH
  16759. case $host_vendor in
  16760. sni)
  16761. shlibpath_overrides_runpath=no
  16762. need_lib_prefix=no
  16763. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16764. runpath_var=LD_RUN_PATH
  16765. ;;
  16766. siemens)
  16767. need_lib_prefix=no
  16768. ;;
  16769. motorola)
  16770. need_lib_prefix=no
  16771. need_version=no
  16772. shlibpath_overrides_runpath=no
  16773. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16774. ;;
  16775. esac
  16776. ;;
  16777. sysv4*MP*)
  16778. if test -d /usr/nec ;then
  16779. version_type=linux
  16780. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16781. soname_spec='$libname${shared_ext}.$major'
  16782. shlibpath_var=LD_LIBRARY_PATH
  16783. fi
  16784. ;;
  16785. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16786. version_type=freebsd-elf
  16787. need_lib_prefix=no
  16788. need_version=no
  16789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16790. soname_spec='${libname}${release}${shared_ext}$major'
  16791. shlibpath_var=LD_LIBRARY_PATH
  16792. hardcode_into_libs=yes
  16793. if test "$with_gnu_ld" = yes; then
  16794. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16795. shlibpath_overrides_runpath=no
  16796. else
  16797. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16798. shlibpath_overrides_runpath=yes
  16799. case $host_os in
  16800. sco3.2v5*)
  16801. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16802. ;;
  16803. esac
  16804. fi
  16805. sys_lib_dlsearch_path_spec='/usr/lib'
  16806. ;;
  16807. uts4*)
  16808. version_type=linux
  16809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16810. soname_spec='${libname}${release}${shared_ext}$major'
  16811. shlibpath_var=LD_LIBRARY_PATH
  16812. ;;
  16813. *)
  16814. dynamic_linker=no
  16815. ;;
  16816. esac
  16817. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16818. echo "${ECHO_T}$dynamic_linker" >&6; }
  16819. test "$dynamic_linker" = no && can_build_shared=no
  16820. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16821. if test "$GCC" = yes; then
  16822. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16823. fi
  16824. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16825. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16826. hardcode_action_GCJ=
  16827. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16828. test -n "$runpath_var_GCJ" || \
  16829. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16830. # We can hardcode non-existant directories.
  16831. if test "$hardcode_direct_GCJ" != no &&
  16832. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16833. # have to relink, otherwise we might link with an installed library
  16834. # when we should be linking with a yet-to-be-installed one
  16835. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16836. test "$hardcode_minus_L_GCJ" != no; then
  16837. # Linking always hardcodes the temporary library directory.
  16838. hardcode_action_GCJ=relink
  16839. else
  16840. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16841. hardcode_action_GCJ=immediate
  16842. fi
  16843. else
  16844. # We cannot hardcode anything, or else we can only hardcode existing
  16845. # directories.
  16846. hardcode_action_GCJ=unsupported
  16847. fi
  16848. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16849. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16850. if test "$hardcode_action_GCJ" = relink; then
  16851. # Fast installation is not supported
  16852. enable_fast_install=no
  16853. elif test "$shlibpath_overrides_runpath" = yes ||
  16854. test "$enable_shared" = no; then
  16855. # Fast installation is not necessary
  16856. enable_fast_install=needless
  16857. fi
  16858. # The else clause should only fire when bootstrapping the
  16859. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16860. # with your package, and you will get complaints that there are
  16861. # no rules to generate ltmain.sh.
  16862. if test -f "$ltmain"; then
  16863. # See if we are running on zsh, and set the options which allow our commands through
  16864. # without removal of \ escapes.
  16865. if test -n "${ZSH_VERSION+set}" ; then
  16866. setopt NO_GLOB_SUBST
  16867. fi
  16868. # Now quote all the things that may contain metacharacters while being
  16869. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16870. # variables and quote the copies for generation of the libtool script.
  16871. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16872. SED SHELL STRIP \
  16873. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16874. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16875. deplibs_check_method reload_flag reload_cmds need_locks \
  16876. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16877. lt_cv_sys_global_symbol_to_c_name_address \
  16878. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16879. old_postinstall_cmds old_postuninstall_cmds \
  16880. compiler_GCJ \
  16881. CC_GCJ \
  16882. LD_GCJ \
  16883. lt_prog_compiler_wl_GCJ \
  16884. lt_prog_compiler_pic_GCJ \
  16885. lt_prog_compiler_static_GCJ \
  16886. lt_prog_compiler_no_builtin_flag_GCJ \
  16887. export_dynamic_flag_spec_GCJ \
  16888. thread_safe_flag_spec_GCJ \
  16889. whole_archive_flag_spec_GCJ \
  16890. enable_shared_with_static_runtimes_GCJ \
  16891. old_archive_cmds_GCJ \
  16892. old_archive_from_new_cmds_GCJ \
  16893. predep_objects_GCJ \
  16894. postdep_objects_GCJ \
  16895. predeps_GCJ \
  16896. postdeps_GCJ \
  16897. compiler_lib_search_path_GCJ \
  16898. archive_cmds_GCJ \
  16899. archive_expsym_cmds_GCJ \
  16900. postinstall_cmds_GCJ \
  16901. postuninstall_cmds_GCJ \
  16902. old_archive_from_expsyms_cmds_GCJ \
  16903. allow_undefined_flag_GCJ \
  16904. no_undefined_flag_GCJ \
  16905. export_symbols_cmds_GCJ \
  16906. hardcode_libdir_flag_spec_GCJ \
  16907. hardcode_libdir_flag_spec_ld_GCJ \
  16908. hardcode_libdir_separator_GCJ \
  16909. hardcode_automatic_GCJ \
  16910. module_cmds_GCJ \
  16911. module_expsym_cmds_GCJ \
  16912. lt_cv_prog_compiler_c_o_GCJ \
  16913. fix_srcfile_path_GCJ \
  16914. exclude_expsyms_GCJ \
  16915. include_expsyms_GCJ; do
  16916. case $var in
  16917. old_archive_cmds_GCJ | \
  16918. old_archive_from_new_cmds_GCJ | \
  16919. archive_cmds_GCJ | \
  16920. archive_expsym_cmds_GCJ | \
  16921. module_cmds_GCJ | \
  16922. module_expsym_cmds_GCJ | \
  16923. old_archive_from_expsyms_cmds_GCJ | \
  16924. export_symbols_cmds_GCJ | \
  16925. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16926. postinstall_cmds | postuninstall_cmds | \
  16927. old_postinstall_cmds | old_postuninstall_cmds | \
  16928. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16929. # Double-quote double-evaled strings.
  16930. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16931. ;;
  16932. *)
  16933. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16934. ;;
  16935. esac
  16936. done
  16937. case $lt_echo in
  16938. *'\$0 --fallback-echo"')
  16939. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16940. ;;
  16941. esac
  16942. cfgfile="$ofile"
  16943. cat <<__EOF__ >> "$cfgfile"
  16944. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16945. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16946. # Shell to use when invoking shell scripts.
  16947. SHELL=$lt_SHELL
  16948. # Whether or not to build shared libraries.
  16949. build_libtool_libs=$enable_shared
  16950. # Whether or not to build static libraries.
  16951. build_old_libs=$enable_static
  16952. # Whether or not to add -lc for building shared libraries.
  16953. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16954. # Whether or not to disallow shared libs when runtime libs are static
  16955. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16956. # Whether or not to optimize for fast installation.
  16957. fast_install=$enable_fast_install
  16958. # The host system.
  16959. host_alias=$host_alias
  16960. host=$host
  16961. host_os=$host_os
  16962. # The build system.
  16963. build_alias=$build_alias
  16964. build=$build
  16965. build_os=$build_os
  16966. # An echo program that does not interpret backslashes.
  16967. echo=$lt_echo
  16968. # The archiver.
  16969. AR=$lt_AR
  16970. AR_FLAGS=$lt_AR_FLAGS
  16971. # A C compiler.
  16972. LTCC=$lt_LTCC
  16973. # LTCC compiler flags.
  16974. LTCFLAGS=$lt_LTCFLAGS
  16975. # A language-specific compiler.
  16976. CC=$lt_compiler_GCJ
  16977. # Is the compiler the GNU C compiler?
  16978. with_gcc=$GCC_GCJ
  16979. # An ERE matcher.
  16980. EGREP=$lt_EGREP
  16981. # The linker used to build libraries.
  16982. LD=$lt_LD_GCJ
  16983. # Whether we need hard or soft links.
  16984. LN_S=$lt_LN_S
  16985. # A BSD-compatible nm program.
  16986. NM=$lt_NM
  16987. # A symbol stripping program
  16988. STRIP=$lt_STRIP
  16989. # Used to examine libraries when file_magic_cmd begins "file"
  16990. MAGIC_CMD=$MAGIC_CMD
  16991. # Used on cygwin: DLL creation program.
  16992. DLLTOOL="$DLLTOOL"
  16993. # Used on cygwin: object dumper.
  16994. OBJDUMP="$OBJDUMP"
  16995. # Used on cygwin: assembler.
  16996. AS="$AS"
  16997. # The name of the directory that contains temporary libtool files.
  16998. objdir=$objdir
  16999. # How to create reloadable object files.
  17000. reload_flag=$lt_reload_flag
  17001. reload_cmds=$lt_reload_cmds
  17002. # How to pass a linker flag through the compiler.
  17003. wl=$lt_lt_prog_compiler_wl_GCJ
  17004. # Object file suffix (normally "o").
  17005. objext="$ac_objext"
  17006. # Old archive suffix (normally "a").
  17007. libext="$libext"
  17008. # Shared library suffix (normally ".so").
  17009. shrext_cmds='$shrext_cmds'
  17010. # Executable file suffix (normally "").
  17011. exeext="$exeext"
  17012. # Additional compiler flags for building library objects.
  17013. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17014. pic_mode=$pic_mode
  17015. # What is the maximum length of a command?
  17016. max_cmd_len=$lt_cv_sys_max_cmd_len
  17017. # Does compiler simultaneously support -c and -o options?
  17018. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17019. # Must we lock files when doing compilation?
  17020. need_locks=$lt_need_locks
  17021. # Do we need the lib prefix for modules?
  17022. need_lib_prefix=$need_lib_prefix
  17023. # Do we need a version for libraries?
  17024. need_version=$need_version
  17025. # Whether dlopen is supported.
  17026. dlopen_support=$enable_dlopen
  17027. # Whether dlopen of programs is supported.
  17028. dlopen_self=$enable_dlopen_self
  17029. # Whether dlopen of statically linked programs is supported.
  17030. dlopen_self_static=$enable_dlopen_self_static
  17031. # Compiler flag to prevent dynamic linking.
  17032. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17033. # Compiler flag to turn off builtin functions.
  17034. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17035. # Compiler flag to allow reflexive dlopens.
  17036. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17037. # Compiler flag to generate shared objects directly from archives.
  17038. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17039. # Compiler flag to generate thread-safe objects.
  17040. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17041. # Library versioning type.
  17042. version_type=$version_type
  17043. # Format of library name prefix.
  17044. libname_spec=$lt_libname_spec
  17045. # List of archive names. First name is the real one, the rest are links.
  17046. # The last name is the one that the linker finds with -lNAME.
  17047. library_names_spec=$lt_library_names_spec
  17048. # The coded name of the library, if different from the real name.
  17049. soname_spec=$lt_soname_spec
  17050. # Commands used to build and install an old-style archive.
  17051. RANLIB=$lt_RANLIB
  17052. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17053. old_postinstall_cmds=$lt_old_postinstall_cmds
  17054. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17055. # Create an old-style archive from a shared archive.
  17056. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17057. # Create a temporary old-style archive to link instead of a shared archive.
  17058. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17059. # Commands used to build and install a shared archive.
  17060. archive_cmds=$lt_archive_cmds_GCJ
  17061. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17062. postinstall_cmds=$lt_postinstall_cmds
  17063. postuninstall_cmds=$lt_postuninstall_cmds
  17064. # Commands used to build a loadable module (assumed same as above if empty)
  17065. module_cmds=$lt_module_cmds_GCJ
  17066. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17067. # Commands to strip libraries.
  17068. old_striplib=$lt_old_striplib
  17069. striplib=$lt_striplib
  17070. # Dependencies to place before the objects being linked to create a
  17071. # shared library.
  17072. predep_objects=$lt_predep_objects_GCJ
  17073. # Dependencies to place after the objects being linked to create a
  17074. # shared library.
  17075. postdep_objects=$lt_postdep_objects_GCJ
  17076. # Dependencies to place before the objects being linked to create a
  17077. # shared library.
  17078. predeps=$lt_predeps_GCJ
  17079. # Dependencies to place after the objects being linked to create a
  17080. # shared library.
  17081. postdeps=$lt_postdeps_GCJ
  17082. # The library search path used internally by the compiler when linking
  17083. # a shared library.
  17084. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17085. # Method to check whether dependent libraries are shared objects.
  17086. deplibs_check_method=$lt_deplibs_check_method
  17087. # Command to use when deplibs_check_method == file_magic.
  17088. file_magic_cmd=$lt_file_magic_cmd
  17089. # Flag that allows shared libraries with undefined symbols to be built.
  17090. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17091. # Flag that forces no undefined symbols.
  17092. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17093. # Commands used to finish a libtool library installation in a directory.
  17094. finish_cmds=$lt_finish_cmds
  17095. # Same as above, but a single script fragment to be evaled but not shown.
  17096. finish_eval=$lt_finish_eval
  17097. # Take the output of nm and produce a listing of raw symbols and C names.
  17098. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17099. # Transform the output of nm in a proper C declaration
  17100. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17101. # Transform the output of nm in a C name address pair
  17102. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17103. # This is the shared library runtime path variable.
  17104. runpath_var=$runpath_var
  17105. # This is the shared library path variable.
  17106. shlibpath_var=$shlibpath_var
  17107. # Is shlibpath searched before the hard-coded library search path?
  17108. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17109. # How to hardcode a shared library path into an executable.
  17110. hardcode_action=$hardcode_action_GCJ
  17111. # Whether we should hardcode library paths into libraries.
  17112. hardcode_into_libs=$hardcode_into_libs
  17113. # Flag to hardcode \$libdir into a binary during linking.
  17114. # This must work even if \$libdir does not exist.
  17115. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17116. # If ld is used when linking, flag to hardcode \$libdir into
  17117. # a binary during linking. This must work even if \$libdir does
  17118. # not exist.
  17119. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17120. # Whether we need a single -rpath flag with a separated argument.
  17121. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17122. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17123. # resulting binary.
  17124. hardcode_direct=$hardcode_direct_GCJ
  17125. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17126. # resulting binary.
  17127. hardcode_minus_L=$hardcode_minus_L_GCJ
  17128. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17129. # the resulting binary.
  17130. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17131. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17132. # and all subsequent libraries and executables linked against it.
  17133. hardcode_automatic=$hardcode_automatic_GCJ
  17134. # Variables whose values should be saved in libtool wrapper scripts and
  17135. # restored at relink time.
  17136. variables_saved_for_relink="$variables_saved_for_relink"
  17137. # Whether libtool must link a program against all its dependency libraries.
  17138. link_all_deplibs=$link_all_deplibs_GCJ
  17139. # Compile-time system search path for libraries
  17140. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17141. # Run-time system search path for libraries
  17142. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17143. # Fix the shell variable \$srcfile for the compiler.
  17144. fix_srcfile_path=$lt_fix_srcfile_path
  17145. # Set to yes if exported symbols are required.
  17146. always_export_symbols=$always_export_symbols_GCJ
  17147. # The commands to list exported symbols.
  17148. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17149. # The commands to extract the exported symbol list from a shared archive.
  17150. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17151. # Symbols that should not be listed in the preloaded symbols.
  17152. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17153. # Symbols that must always be exported.
  17154. include_expsyms=$lt_include_expsyms_GCJ
  17155. # ### END LIBTOOL TAG CONFIG: $tagname
  17156. __EOF__
  17157. else
  17158. # If there is no Makefile yet, we rely on a make rule to execute
  17159. # `config.status --recheck' to rerun these tests and create the
  17160. # libtool script then.
  17161. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17162. if test -f "$ltmain_in"; then
  17163. test -f Makefile && make "$ltmain"
  17164. fi
  17165. fi
  17166. ac_ext=c
  17167. ac_cpp='$CPP $CPPFLAGS'
  17168. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17169. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17170. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17171. CC="$lt_save_CC"
  17172. else
  17173. tagname=""
  17174. fi
  17175. ;;
  17176. RC)
  17177. # Source file extension for RC test sources.
  17178. ac_ext=rc
  17179. # Object file extension for compiled RC test sources.
  17180. objext=o
  17181. objext_RC=$objext
  17182. # Code to be used in simple compile tests
  17183. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17184. # Code to be used in simple link tests
  17185. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17186. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17187. # If no C compiler was specified, use CC.
  17188. LTCC=${LTCC-"$CC"}
  17189. # If no C compiler flags were specified, use CFLAGS.
  17190. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17191. # Allow CC to be a program name with arguments.
  17192. compiler=$CC
  17193. # save warnings/boilerplate of simple test code
  17194. ac_outfile=conftest.$ac_objext
  17195. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17196. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17197. _lt_compiler_boilerplate=`cat conftest.err`
  17198. $rm conftest*
  17199. ac_outfile=conftest.$ac_objext
  17200. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17201. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17202. _lt_linker_boilerplate=`cat conftest.err`
  17203. $rm conftest*
  17204. # Allow CC to be a program name with arguments.
  17205. lt_save_CC="$CC"
  17206. CC=${RC-"windres"}
  17207. compiler=$CC
  17208. compiler_RC=$CC
  17209. for cc_temp in $compiler""; do
  17210. case $cc_temp in
  17211. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17212. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17213. \-*) ;;
  17214. *) break;;
  17215. esac
  17216. done
  17217. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17218. lt_cv_prog_compiler_c_o_RC=yes
  17219. # The else clause should only fire when bootstrapping the
  17220. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17221. # with your package, and you will get complaints that there are
  17222. # no rules to generate ltmain.sh.
  17223. if test -f "$ltmain"; then
  17224. # See if we are running on zsh, and set the options which allow our commands through
  17225. # without removal of \ escapes.
  17226. if test -n "${ZSH_VERSION+set}" ; then
  17227. setopt NO_GLOB_SUBST
  17228. fi
  17229. # Now quote all the things that may contain metacharacters while being
  17230. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17231. # variables and quote the copies for generation of the libtool script.
  17232. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17233. SED SHELL STRIP \
  17234. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17235. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17236. deplibs_check_method reload_flag reload_cmds need_locks \
  17237. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17238. lt_cv_sys_global_symbol_to_c_name_address \
  17239. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17240. old_postinstall_cmds old_postuninstall_cmds \
  17241. compiler_RC \
  17242. CC_RC \
  17243. LD_RC \
  17244. lt_prog_compiler_wl_RC \
  17245. lt_prog_compiler_pic_RC \
  17246. lt_prog_compiler_static_RC \
  17247. lt_prog_compiler_no_builtin_flag_RC \
  17248. export_dynamic_flag_spec_RC \
  17249. thread_safe_flag_spec_RC \
  17250. whole_archive_flag_spec_RC \
  17251. enable_shared_with_static_runtimes_RC \
  17252. old_archive_cmds_RC \
  17253. old_archive_from_new_cmds_RC \
  17254. predep_objects_RC \
  17255. postdep_objects_RC \
  17256. predeps_RC \
  17257. postdeps_RC \
  17258. compiler_lib_search_path_RC \
  17259. archive_cmds_RC \
  17260. archive_expsym_cmds_RC \
  17261. postinstall_cmds_RC \
  17262. postuninstall_cmds_RC \
  17263. old_archive_from_expsyms_cmds_RC \
  17264. allow_undefined_flag_RC \
  17265. no_undefined_flag_RC \
  17266. export_symbols_cmds_RC \
  17267. hardcode_libdir_flag_spec_RC \
  17268. hardcode_libdir_flag_spec_ld_RC \
  17269. hardcode_libdir_separator_RC \
  17270. hardcode_automatic_RC \
  17271. module_cmds_RC \
  17272. module_expsym_cmds_RC \
  17273. lt_cv_prog_compiler_c_o_RC \
  17274. fix_srcfile_path_RC \
  17275. exclude_expsyms_RC \
  17276. include_expsyms_RC; do
  17277. case $var in
  17278. old_archive_cmds_RC | \
  17279. old_archive_from_new_cmds_RC | \
  17280. archive_cmds_RC | \
  17281. archive_expsym_cmds_RC | \
  17282. module_cmds_RC | \
  17283. module_expsym_cmds_RC | \
  17284. old_archive_from_expsyms_cmds_RC | \
  17285. export_symbols_cmds_RC | \
  17286. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17287. postinstall_cmds | postuninstall_cmds | \
  17288. old_postinstall_cmds | old_postuninstall_cmds | \
  17289. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17290. # Double-quote double-evaled strings.
  17291. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17292. ;;
  17293. *)
  17294. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17295. ;;
  17296. esac
  17297. done
  17298. case $lt_echo in
  17299. *'\$0 --fallback-echo"')
  17300. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17301. ;;
  17302. esac
  17303. cfgfile="$ofile"
  17304. cat <<__EOF__ >> "$cfgfile"
  17305. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17306. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17307. # Shell to use when invoking shell scripts.
  17308. SHELL=$lt_SHELL
  17309. # Whether or not to build shared libraries.
  17310. build_libtool_libs=$enable_shared
  17311. # Whether or not to build static libraries.
  17312. build_old_libs=$enable_static
  17313. # Whether or not to add -lc for building shared libraries.
  17314. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17315. # Whether or not to disallow shared libs when runtime libs are static
  17316. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17317. # Whether or not to optimize for fast installation.
  17318. fast_install=$enable_fast_install
  17319. # The host system.
  17320. host_alias=$host_alias
  17321. host=$host
  17322. host_os=$host_os
  17323. # The build system.
  17324. build_alias=$build_alias
  17325. build=$build
  17326. build_os=$build_os
  17327. # An echo program that does not interpret backslashes.
  17328. echo=$lt_echo
  17329. # The archiver.
  17330. AR=$lt_AR
  17331. AR_FLAGS=$lt_AR_FLAGS
  17332. # A C compiler.
  17333. LTCC=$lt_LTCC
  17334. # LTCC compiler flags.
  17335. LTCFLAGS=$lt_LTCFLAGS
  17336. # A language-specific compiler.
  17337. CC=$lt_compiler_RC
  17338. # Is the compiler the GNU C compiler?
  17339. with_gcc=$GCC_RC
  17340. # An ERE matcher.
  17341. EGREP=$lt_EGREP
  17342. # The linker used to build libraries.
  17343. LD=$lt_LD_RC
  17344. # Whether we need hard or soft links.
  17345. LN_S=$lt_LN_S
  17346. # A BSD-compatible nm program.
  17347. NM=$lt_NM
  17348. # A symbol stripping program
  17349. STRIP=$lt_STRIP
  17350. # Used to examine libraries when file_magic_cmd begins "file"
  17351. MAGIC_CMD=$MAGIC_CMD
  17352. # Used on cygwin: DLL creation program.
  17353. DLLTOOL="$DLLTOOL"
  17354. # Used on cygwin: object dumper.
  17355. OBJDUMP="$OBJDUMP"
  17356. # Used on cygwin: assembler.
  17357. AS="$AS"
  17358. # The name of the directory that contains temporary libtool files.
  17359. objdir=$objdir
  17360. # How to create reloadable object files.
  17361. reload_flag=$lt_reload_flag
  17362. reload_cmds=$lt_reload_cmds
  17363. # How to pass a linker flag through the compiler.
  17364. wl=$lt_lt_prog_compiler_wl_RC
  17365. # Object file suffix (normally "o").
  17366. objext="$ac_objext"
  17367. # Old archive suffix (normally "a").
  17368. libext="$libext"
  17369. # Shared library suffix (normally ".so").
  17370. shrext_cmds='$shrext_cmds'
  17371. # Executable file suffix (normally "").
  17372. exeext="$exeext"
  17373. # Additional compiler flags for building library objects.
  17374. pic_flag=$lt_lt_prog_compiler_pic_RC
  17375. pic_mode=$pic_mode
  17376. # What is the maximum length of a command?
  17377. max_cmd_len=$lt_cv_sys_max_cmd_len
  17378. # Does compiler simultaneously support -c and -o options?
  17379. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17380. # Must we lock files when doing compilation?
  17381. need_locks=$lt_need_locks
  17382. # Do we need the lib prefix for modules?
  17383. need_lib_prefix=$need_lib_prefix
  17384. # Do we need a version for libraries?
  17385. need_version=$need_version
  17386. # Whether dlopen is supported.
  17387. dlopen_support=$enable_dlopen
  17388. # Whether dlopen of programs is supported.
  17389. dlopen_self=$enable_dlopen_self
  17390. # Whether dlopen of statically linked programs is supported.
  17391. dlopen_self_static=$enable_dlopen_self_static
  17392. # Compiler flag to prevent dynamic linking.
  17393. link_static_flag=$lt_lt_prog_compiler_static_RC
  17394. # Compiler flag to turn off builtin functions.
  17395. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17396. # Compiler flag to allow reflexive dlopens.
  17397. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17398. # Compiler flag to generate shared objects directly from archives.
  17399. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17400. # Compiler flag to generate thread-safe objects.
  17401. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17402. # Library versioning type.
  17403. version_type=$version_type
  17404. # Format of library name prefix.
  17405. libname_spec=$lt_libname_spec
  17406. # List of archive names. First name is the real one, the rest are links.
  17407. # The last name is the one that the linker finds with -lNAME.
  17408. library_names_spec=$lt_library_names_spec
  17409. # The coded name of the library, if different from the real name.
  17410. soname_spec=$lt_soname_spec
  17411. # Commands used to build and install an old-style archive.
  17412. RANLIB=$lt_RANLIB
  17413. old_archive_cmds=$lt_old_archive_cmds_RC
  17414. old_postinstall_cmds=$lt_old_postinstall_cmds
  17415. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17416. # Create an old-style archive from a shared archive.
  17417. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17418. # Create a temporary old-style archive to link instead of a shared archive.
  17419. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17420. # Commands used to build and install a shared archive.
  17421. archive_cmds=$lt_archive_cmds_RC
  17422. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17423. postinstall_cmds=$lt_postinstall_cmds
  17424. postuninstall_cmds=$lt_postuninstall_cmds
  17425. # Commands used to build a loadable module (assumed same as above if empty)
  17426. module_cmds=$lt_module_cmds_RC
  17427. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17428. # Commands to strip libraries.
  17429. old_striplib=$lt_old_striplib
  17430. striplib=$lt_striplib
  17431. # Dependencies to place before the objects being linked to create a
  17432. # shared library.
  17433. predep_objects=$lt_predep_objects_RC
  17434. # Dependencies to place after the objects being linked to create a
  17435. # shared library.
  17436. postdep_objects=$lt_postdep_objects_RC
  17437. # Dependencies to place before the objects being linked to create a
  17438. # shared library.
  17439. predeps=$lt_predeps_RC
  17440. # Dependencies to place after the objects being linked to create a
  17441. # shared library.
  17442. postdeps=$lt_postdeps_RC
  17443. # The library search path used internally by the compiler when linking
  17444. # a shared library.
  17445. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17446. # Method to check whether dependent libraries are shared objects.
  17447. deplibs_check_method=$lt_deplibs_check_method
  17448. # Command to use when deplibs_check_method == file_magic.
  17449. file_magic_cmd=$lt_file_magic_cmd
  17450. # Flag that allows shared libraries with undefined symbols to be built.
  17451. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17452. # Flag that forces no undefined symbols.
  17453. no_undefined_flag=$lt_no_undefined_flag_RC
  17454. # Commands used to finish a libtool library installation in a directory.
  17455. finish_cmds=$lt_finish_cmds
  17456. # Same as above, but a single script fragment to be evaled but not shown.
  17457. finish_eval=$lt_finish_eval
  17458. # Take the output of nm and produce a listing of raw symbols and C names.
  17459. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17460. # Transform the output of nm in a proper C declaration
  17461. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17462. # Transform the output of nm in a C name address pair
  17463. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17464. # This is the shared library runtime path variable.
  17465. runpath_var=$runpath_var
  17466. # This is the shared library path variable.
  17467. shlibpath_var=$shlibpath_var
  17468. # Is shlibpath searched before the hard-coded library search path?
  17469. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17470. # How to hardcode a shared library path into an executable.
  17471. hardcode_action=$hardcode_action_RC
  17472. # Whether we should hardcode library paths into libraries.
  17473. hardcode_into_libs=$hardcode_into_libs
  17474. # Flag to hardcode \$libdir into a binary during linking.
  17475. # This must work even if \$libdir does not exist.
  17476. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17477. # If ld is used when linking, flag to hardcode \$libdir into
  17478. # a binary during linking. This must work even if \$libdir does
  17479. # not exist.
  17480. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17481. # Whether we need a single -rpath flag with a separated argument.
  17482. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17483. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17484. # resulting binary.
  17485. hardcode_direct=$hardcode_direct_RC
  17486. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17487. # resulting binary.
  17488. hardcode_minus_L=$hardcode_minus_L_RC
  17489. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17490. # the resulting binary.
  17491. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17492. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17493. # and all subsequent libraries and executables linked against it.
  17494. hardcode_automatic=$hardcode_automatic_RC
  17495. # Variables whose values should be saved in libtool wrapper scripts and
  17496. # restored at relink time.
  17497. variables_saved_for_relink="$variables_saved_for_relink"
  17498. # Whether libtool must link a program against all its dependency libraries.
  17499. link_all_deplibs=$link_all_deplibs_RC
  17500. # Compile-time system search path for libraries
  17501. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17502. # Run-time system search path for libraries
  17503. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17504. # Fix the shell variable \$srcfile for the compiler.
  17505. fix_srcfile_path=$lt_fix_srcfile_path
  17506. # Set to yes if exported symbols are required.
  17507. always_export_symbols=$always_export_symbols_RC
  17508. # The commands to list exported symbols.
  17509. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17510. # The commands to extract the exported symbol list from a shared archive.
  17511. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17512. # Symbols that should not be listed in the preloaded symbols.
  17513. exclude_expsyms=$lt_exclude_expsyms_RC
  17514. # Symbols that must always be exported.
  17515. include_expsyms=$lt_include_expsyms_RC
  17516. # ### END LIBTOOL TAG CONFIG: $tagname
  17517. __EOF__
  17518. else
  17519. # If there is no Makefile yet, we rely on a make rule to execute
  17520. # `config.status --recheck' to rerun these tests and create the
  17521. # libtool script then.
  17522. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17523. if test -f "$ltmain_in"; then
  17524. test -f Makefile && make "$ltmain"
  17525. fi
  17526. fi
  17527. ac_ext=c
  17528. ac_cpp='$CPP $CPPFLAGS'
  17529. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17530. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17531. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17532. CC="$lt_save_CC"
  17533. ;;
  17534. *)
  17535. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17536. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17537. { (exit 1); exit 1; }; }
  17538. ;;
  17539. esac
  17540. # Append the new tag name to the list of available tags.
  17541. if test -n "$tagname" ; then
  17542. available_tags="$available_tags $tagname"
  17543. fi
  17544. fi
  17545. done
  17546. IFS="$lt_save_ifs"
  17547. # Now substitute the updated list of available tags.
  17548. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17549. mv "${ofile}T" "$ofile"
  17550. chmod +x "$ofile"
  17551. else
  17552. rm -f "${ofile}T"
  17553. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17554. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17555. { (exit 1); exit 1; }; }
  17556. fi
  17557. fi
  17558. # This can be used to rebuild libtool when needed
  17559. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17560. # Always use our own libtool.
  17561. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17562. # Prevent multiple expansion
  17563. # Checks for header files.
  17564. ac_header_dirent=no
  17565. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  17566. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  17567. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  17568. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  17569. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17570. echo $ECHO_N "(cached) $ECHO_C" >&6
  17571. else
  17572. cat >conftest.$ac_ext <<_ACEOF
  17573. /* confdefs.h. */
  17574. _ACEOF
  17575. cat confdefs.h >>conftest.$ac_ext
  17576. cat >>conftest.$ac_ext <<_ACEOF
  17577. /* end confdefs.h. */
  17578. #include <sys/types.h>
  17579. #include <$ac_hdr>
  17580. int
  17581. main ()
  17582. {
  17583. if ((DIR *) 0)
  17584. return 0;
  17585. ;
  17586. return 0;
  17587. }
  17588. _ACEOF
  17589. rm -f conftest.$ac_objext
  17590. if { (ac_try="$ac_compile"
  17591. case "(($ac_try" in
  17592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17593. *) ac_try_echo=$ac_try;;
  17594. esac
  17595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17596. (eval "$ac_compile") 2>conftest.er1
  17597. ac_status=$?
  17598. grep -v '^ *+' conftest.er1 >conftest.err
  17599. rm -f conftest.er1
  17600. cat conftest.err >&5
  17601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17602. (exit $ac_status); } && {
  17603. test -z "$ac_c_werror_flag" ||
  17604. test ! -s conftest.err
  17605. } && test -s conftest.$ac_objext; then
  17606. eval "$as_ac_Header=yes"
  17607. else
  17608. echo "$as_me: failed program was:" >&5
  17609. sed 's/^/| /' conftest.$ac_ext >&5
  17610. eval "$as_ac_Header=no"
  17611. fi
  17612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17613. fi
  17614. ac_res=`eval echo '${'$as_ac_Header'}'`
  17615. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17616. echo "${ECHO_T}$ac_res" >&6; }
  17617. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17618. cat >>confdefs.h <<_ACEOF
  17619. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  17620. _ACEOF
  17621. ac_header_dirent=$ac_hdr; break
  17622. fi
  17623. done
  17624. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  17625. if test $ac_header_dirent = dirent.h; then
  17626. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17627. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  17628. if test "${ac_cv_search_opendir+set}" = set; then
  17629. echo $ECHO_N "(cached) $ECHO_C" >&6
  17630. else
  17631. ac_func_search_save_LIBS=$LIBS
  17632. cat >conftest.$ac_ext <<_ACEOF
  17633. /* confdefs.h. */
  17634. _ACEOF
  17635. cat confdefs.h >>conftest.$ac_ext
  17636. cat >>conftest.$ac_ext <<_ACEOF
  17637. /* end confdefs.h. */
  17638. /* Override any GCC internal prototype to avoid an error.
  17639. Use char because int might match the return type of a GCC
  17640. builtin and then its argument prototype would still apply. */
  17641. #ifdef __cplusplus
  17642. extern "C"
  17643. #endif
  17644. char opendir ();
  17645. int
  17646. main ()
  17647. {
  17648. return opendir ();
  17649. ;
  17650. return 0;
  17651. }
  17652. _ACEOF
  17653. for ac_lib in '' dir; do
  17654. if test -z "$ac_lib"; then
  17655. ac_res="none required"
  17656. else
  17657. ac_res=-l$ac_lib
  17658. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17659. fi
  17660. rm -f conftest.$ac_objext conftest$ac_exeext
  17661. if { (ac_try="$ac_link"
  17662. case "(($ac_try" in
  17663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17664. *) ac_try_echo=$ac_try;;
  17665. esac
  17666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17667. (eval "$ac_link") 2>conftest.er1
  17668. ac_status=$?
  17669. grep -v '^ *+' conftest.er1 >conftest.err
  17670. rm -f conftest.er1
  17671. cat conftest.err >&5
  17672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17673. (exit $ac_status); } && {
  17674. test -z "$ac_c_werror_flag" ||
  17675. test ! -s conftest.err
  17676. } && test -s conftest$ac_exeext &&
  17677. $as_test_x conftest$ac_exeext; then
  17678. ac_cv_search_opendir=$ac_res
  17679. else
  17680. echo "$as_me: failed program was:" >&5
  17681. sed 's/^/| /' conftest.$ac_ext >&5
  17682. fi
  17683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17684. conftest$ac_exeext
  17685. if test "${ac_cv_search_opendir+set}" = set; then
  17686. break
  17687. fi
  17688. done
  17689. if test "${ac_cv_search_opendir+set}" = set; then
  17690. :
  17691. else
  17692. ac_cv_search_opendir=no
  17693. fi
  17694. rm conftest.$ac_ext
  17695. LIBS=$ac_func_search_save_LIBS
  17696. fi
  17697. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17698. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  17699. ac_res=$ac_cv_search_opendir
  17700. if test "$ac_res" != no; then
  17701. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17702. fi
  17703. else
  17704. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17705. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  17706. if test "${ac_cv_search_opendir+set}" = set; then
  17707. echo $ECHO_N "(cached) $ECHO_C" >&6
  17708. else
  17709. ac_func_search_save_LIBS=$LIBS
  17710. cat >conftest.$ac_ext <<_ACEOF
  17711. /* confdefs.h. */
  17712. _ACEOF
  17713. cat confdefs.h >>conftest.$ac_ext
  17714. cat >>conftest.$ac_ext <<_ACEOF
  17715. /* end confdefs.h. */
  17716. /* Override any GCC internal prototype to avoid an error.
  17717. Use char because int might match the return type of a GCC
  17718. builtin and then its argument prototype would still apply. */
  17719. #ifdef __cplusplus
  17720. extern "C"
  17721. #endif
  17722. char opendir ();
  17723. int
  17724. main ()
  17725. {
  17726. return opendir ();
  17727. ;
  17728. return 0;
  17729. }
  17730. _ACEOF
  17731. for ac_lib in '' x; do
  17732. if test -z "$ac_lib"; then
  17733. ac_res="none required"
  17734. else
  17735. ac_res=-l$ac_lib
  17736. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17737. fi
  17738. rm -f conftest.$ac_objext conftest$ac_exeext
  17739. if { (ac_try="$ac_link"
  17740. case "(($ac_try" in
  17741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17742. *) ac_try_echo=$ac_try;;
  17743. esac
  17744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17745. (eval "$ac_link") 2>conftest.er1
  17746. ac_status=$?
  17747. grep -v '^ *+' conftest.er1 >conftest.err
  17748. rm -f conftest.er1
  17749. cat conftest.err >&5
  17750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17751. (exit $ac_status); } && {
  17752. test -z "$ac_c_werror_flag" ||
  17753. test ! -s conftest.err
  17754. } && test -s conftest$ac_exeext &&
  17755. $as_test_x conftest$ac_exeext; then
  17756. ac_cv_search_opendir=$ac_res
  17757. else
  17758. echo "$as_me: failed program was:" >&5
  17759. sed 's/^/| /' conftest.$ac_ext >&5
  17760. fi
  17761. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17762. conftest$ac_exeext
  17763. if test "${ac_cv_search_opendir+set}" = set; then
  17764. break
  17765. fi
  17766. done
  17767. if test "${ac_cv_search_opendir+set}" = set; then
  17768. :
  17769. else
  17770. ac_cv_search_opendir=no
  17771. fi
  17772. rm conftest.$ac_ext
  17773. LIBS=$ac_func_search_save_LIBS
  17774. fi
  17775. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17776. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  17777. ac_res=$ac_cv_search_opendir
  17778. if test "$ac_res" != no; then
  17779. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17780. fi
  17781. fi
  17782. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17783. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  17784. if test "${ac_cv_header_stdc+set}" = set; then
  17785. echo $ECHO_N "(cached) $ECHO_C" >&6
  17786. else
  17787. cat >conftest.$ac_ext <<_ACEOF
  17788. /* confdefs.h. */
  17789. _ACEOF
  17790. cat confdefs.h >>conftest.$ac_ext
  17791. cat >>conftest.$ac_ext <<_ACEOF
  17792. /* end confdefs.h. */
  17793. #include <stdlib.h>
  17794. #include <stdarg.h>
  17795. #include <string.h>
  17796. #include <float.h>
  17797. int
  17798. main ()
  17799. {
  17800. ;
  17801. return 0;
  17802. }
  17803. _ACEOF
  17804. rm -f conftest.$ac_objext
  17805. if { (ac_try="$ac_compile"
  17806. case "(($ac_try" in
  17807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17808. *) ac_try_echo=$ac_try;;
  17809. esac
  17810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17811. (eval "$ac_compile") 2>conftest.er1
  17812. ac_status=$?
  17813. grep -v '^ *+' conftest.er1 >conftest.err
  17814. rm -f conftest.er1
  17815. cat conftest.err >&5
  17816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17817. (exit $ac_status); } && {
  17818. test -z "$ac_c_werror_flag" ||
  17819. test ! -s conftest.err
  17820. } && test -s conftest.$ac_objext; then
  17821. ac_cv_header_stdc=yes
  17822. else
  17823. echo "$as_me: failed program was:" >&5
  17824. sed 's/^/| /' conftest.$ac_ext >&5
  17825. ac_cv_header_stdc=no
  17826. fi
  17827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17828. if test $ac_cv_header_stdc = yes; then
  17829. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17830. cat >conftest.$ac_ext <<_ACEOF
  17831. /* confdefs.h. */
  17832. _ACEOF
  17833. cat confdefs.h >>conftest.$ac_ext
  17834. cat >>conftest.$ac_ext <<_ACEOF
  17835. /* end confdefs.h. */
  17836. #include <string.h>
  17837. _ACEOF
  17838. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17839. $EGREP "memchr" >/dev/null 2>&1; then
  17840. :
  17841. else
  17842. ac_cv_header_stdc=no
  17843. fi
  17844. rm -f conftest*
  17845. fi
  17846. if test $ac_cv_header_stdc = yes; then
  17847. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17848. cat >conftest.$ac_ext <<_ACEOF
  17849. /* confdefs.h. */
  17850. _ACEOF
  17851. cat confdefs.h >>conftest.$ac_ext
  17852. cat >>conftest.$ac_ext <<_ACEOF
  17853. /* end confdefs.h. */
  17854. #include <stdlib.h>
  17855. _ACEOF
  17856. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17857. $EGREP "free" >/dev/null 2>&1; then
  17858. :
  17859. else
  17860. ac_cv_header_stdc=no
  17861. fi
  17862. rm -f conftest*
  17863. fi
  17864. if test $ac_cv_header_stdc = yes; then
  17865. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17866. if test "$cross_compiling" = yes; then
  17867. :
  17868. else
  17869. cat >conftest.$ac_ext <<_ACEOF
  17870. /* confdefs.h. */
  17871. _ACEOF
  17872. cat confdefs.h >>conftest.$ac_ext
  17873. cat >>conftest.$ac_ext <<_ACEOF
  17874. /* end confdefs.h. */
  17875. #include <ctype.h>
  17876. #include <stdlib.h>
  17877. #if ((' ' & 0x0FF) == 0x020)
  17878. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17879. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17880. #else
  17881. # define ISLOWER(c) \
  17882. (('a' <= (c) && (c) <= 'i') \
  17883. || ('j' <= (c) && (c) <= 'r') \
  17884. || ('s' <= (c) && (c) <= 'z'))
  17885. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17886. #endif
  17887. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17888. int
  17889. main ()
  17890. {
  17891. int i;
  17892. for (i = 0; i < 256; i++)
  17893. if (XOR (islower (i), ISLOWER (i))
  17894. || toupper (i) != TOUPPER (i))
  17895. return 2;
  17896. return 0;
  17897. }
  17898. _ACEOF
  17899. rm -f conftest$ac_exeext
  17900. if { (ac_try="$ac_link"
  17901. case "(($ac_try" in
  17902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17903. *) ac_try_echo=$ac_try;;
  17904. esac
  17905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17906. (eval "$ac_link") 2>&5
  17907. ac_status=$?
  17908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17909. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17910. { (case "(($ac_try" in
  17911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17912. *) ac_try_echo=$ac_try;;
  17913. esac
  17914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17915. (eval "$ac_try") 2>&5
  17916. ac_status=$?
  17917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17918. (exit $ac_status); }; }; then
  17919. :
  17920. else
  17921. echo "$as_me: program exited with status $ac_status" >&5
  17922. echo "$as_me: failed program was:" >&5
  17923. sed 's/^/| /' conftest.$ac_ext >&5
  17924. ( exit $ac_status )
  17925. ac_cv_header_stdc=no
  17926. fi
  17927. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17928. fi
  17929. fi
  17930. fi
  17931. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17932. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  17933. if test $ac_cv_header_stdc = yes; then
  17934. cat >>confdefs.h <<\_ACEOF
  17935. #define STDC_HEADERS 1
  17936. _ACEOF
  17937. fi
  17938. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17939. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  17940. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17941. echo $ECHO_N "(cached) $ECHO_C" >&6
  17942. else
  17943. cat >conftest.$ac_ext <<_ACEOF
  17944. /* confdefs.h. */
  17945. _ACEOF
  17946. cat confdefs.h >>conftest.$ac_ext
  17947. cat >>conftest.$ac_ext <<_ACEOF
  17948. /* end confdefs.h. */
  17949. #include <sys/types.h>
  17950. #include <sys/wait.h>
  17951. #ifndef WEXITSTATUS
  17952. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  17953. #endif
  17954. #ifndef WIFEXITED
  17955. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17956. #endif
  17957. int
  17958. main ()
  17959. {
  17960. int s;
  17961. wait (&s);
  17962. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17963. ;
  17964. return 0;
  17965. }
  17966. _ACEOF
  17967. rm -f conftest.$ac_objext
  17968. if { (ac_try="$ac_compile"
  17969. case "(($ac_try" in
  17970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17971. *) ac_try_echo=$ac_try;;
  17972. esac
  17973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17974. (eval "$ac_compile") 2>conftest.er1
  17975. ac_status=$?
  17976. grep -v '^ *+' conftest.er1 >conftest.err
  17977. rm -f conftest.er1
  17978. cat conftest.err >&5
  17979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17980. (exit $ac_status); } && {
  17981. test -z "$ac_c_werror_flag" ||
  17982. test ! -s conftest.err
  17983. } && test -s conftest.$ac_objext; then
  17984. ac_cv_header_sys_wait_h=yes
  17985. else
  17986. echo "$as_me: failed program was:" >&5
  17987. sed 's/^/| /' conftest.$ac_ext >&5
  17988. ac_cv_header_sys_wait_h=no
  17989. fi
  17990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17991. fi
  17992. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17993. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  17994. if test $ac_cv_header_sys_wait_h = yes; then
  17995. cat >>confdefs.h <<\_ACEOF
  17996. #define HAVE_SYS_WAIT_H 1
  17997. _ACEOF
  17998. fi
  17999. 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
  18000. do
  18001. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18002. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18003. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18004. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18005. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18006. echo $ECHO_N "(cached) $ECHO_C" >&6
  18007. fi
  18008. ac_res=`eval echo '${'$as_ac_Header'}'`
  18009. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18010. echo "${ECHO_T}$ac_res" >&6; }
  18011. else
  18012. # Is the header compilable?
  18013. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18014. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18015. cat >conftest.$ac_ext <<_ACEOF
  18016. /* confdefs.h. */
  18017. _ACEOF
  18018. cat confdefs.h >>conftest.$ac_ext
  18019. cat >>conftest.$ac_ext <<_ACEOF
  18020. /* end confdefs.h. */
  18021. $ac_includes_default
  18022. #include <$ac_header>
  18023. _ACEOF
  18024. rm -f conftest.$ac_objext
  18025. if { (ac_try="$ac_compile"
  18026. case "(($ac_try" in
  18027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18028. *) ac_try_echo=$ac_try;;
  18029. esac
  18030. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18031. (eval "$ac_compile") 2>conftest.er1
  18032. ac_status=$?
  18033. grep -v '^ *+' conftest.er1 >conftest.err
  18034. rm -f conftest.er1
  18035. cat conftest.err >&5
  18036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18037. (exit $ac_status); } && {
  18038. test -z "$ac_c_werror_flag" ||
  18039. test ! -s conftest.err
  18040. } && test -s conftest.$ac_objext; then
  18041. ac_header_compiler=yes
  18042. else
  18043. echo "$as_me: failed program was:" >&5
  18044. sed 's/^/| /' conftest.$ac_ext >&5
  18045. ac_header_compiler=no
  18046. fi
  18047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18048. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18049. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18050. # Is the header present?
  18051. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18052. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18053. cat >conftest.$ac_ext <<_ACEOF
  18054. /* confdefs.h. */
  18055. _ACEOF
  18056. cat confdefs.h >>conftest.$ac_ext
  18057. cat >>conftest.$ac_ext <<_ACEOF
  18058. /* end confdefs.h. */
  18059. #include <$ac_header>
  18060. _ACEOF
  18061. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18062. case "(($ac_try" in
  18063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18064. *) ac_try_echo=$ac_try;;
  18065. esac
  18066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18067. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18068. ac_status=$?
  18069. grep -v '^ *+' conftest.er1 >conftest.err
  18070. rm -f conftest.er1
  18071. cat conftest.err >&5
  18072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18073. (exit $ac_status); } >/dev/null && {
  18074. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18075. test ! -s conftest.err
  18076. }; then
  18077. ac_header_preproc=yes
  18078. else
  18079. echo "$as_me: failed program was:" >&5
  18080. sed 's/^/| /' conftest.$ac_ext >&5
  18081. ac_header_preproc=no
  18082. fi
  18083. rm -f conftest.err conftest.$ac_ext
  18084. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18085. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18086. # So? What about this header?
  18087. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18088. yes:no: )
  18089. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18090. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18091. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18092. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18093. ac_header_preproc=yes
  18094. ;;
  18095. no:yes:* )
  18096. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18097. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18098. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18099. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18100. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18101. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18102. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18103. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18104. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18105. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18106. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18107. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18108. ( cat <<\_ASBOX
  18109. ## ------------------------------------------ ##
  18110. ## Report this to http://bugzilla.redhat.com/ ##
  18111. ## ------------------------------------------ ##
  18112. _ASBOX
  18113. ) | sed "s/^/$as_me: WARNING: /" >&2
  18114. ;;
  18115. esac
  18116. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18117. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18118. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18119. echo $ECHO_N "(cached) $ECHO_C" >&6
  18120. else
  18121. eval "$as_ac_Header=\$ac_header_preproc"
  18122. fi
  18123. ac_res=`eval echo '${'$as_ac_Header'}'`
  18124. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18125. echo "${ECHO_T}$ac_res" >&6; }
  18126. fi
  18127. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18128. cat >>confdefs.h <<_ACEOF
  18129. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18130. _ACEOF
  18131. fi
  18132. done
  18133. # Checks for typedefs, structures, and compiler characteristics.
  18134. { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  18135. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
  18136. if test "${ac_cv_header_stat_broken+set}" = set; then
  18137. echo $ECHO_N "(cached) $ECHO_C" >&6
  18138. else
  18139. cat >conftest.$ac_ext <<_ACEOF
  18140. /* confdefs.h. */
  18141. _ACEOF
  18142. cat confdefs.h >>conftest.$ac_ext
  18143. cat >>conftest.$ac_ext <<_ACEOF
  18144. /* end confdefs.h. */
  18145. #include <sys/types.h>
  18146. #include <sys/stat.h>
  18147. #if defined S_ISBLK && defined S_IFDIR
  18148. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  18149. #endif
  18150. #if defined S_ISBLK && defined S_IFCHR
  18151. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  18152. #endif
  18153. #if defined S_ISLNK && defined S_IFREG
  18154. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  18155. #endif
  18156. #if defined S_ISSOCK && defined S_IFREG
  18157. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  18158. #endif
  18159. _ACEOF
  18160. rm -f conftest.$ac_objext
  18161. if { (ac_try="$ac_compile"
  18162. case "(($ac_try" in
  18163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18164. *) ac_try_echo=$ac_try;;
  18165. esac
  18166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18167. (eval "$ac_compile") 2>conftest.er1
  18168. ac_status=$?
  18169. grep -v '^ *+' conftest.er1 >conftest.err
  18170. rm -f conftest.er1
  18171. cat conftest.err >&5
  18172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18173. (exit $ac_status); } && {
  18174. test -z "$ac_c_werror_flag" ||
  18175. test ! -s conftest.err
  18176. } && test -s conftest.$ac_objext; then
  18177. ac_cv_header_stat_broken=no
  18178. else
  18179. echo "$as_me: failed program was:" >&5
  18180. sed 's/^/| /' conftest.$ac_ext >&5
  18181. ac_cv_header_stat_broken=yes
  18182. fi
  18183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18184. fi
  18185. { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  18186. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
  18187. if test $ac_cv_header_stat_broken = yes; then
  18188. cat >>confdefs.h <<\_ACEOF
  18189. #define STAT_MACROS_BROKEN 1
  18190. _ACEOF
  18191. fi
  18192. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  18193. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  18194. if test "${ac_cv_c_const+set}" = set; then
  18195. echo $ECHO_N "(cached) $ECHO_C" >&6
  18196. else
  18197. cat >conftest.$ac_ext <<_ACEOF
  18198. /* confdefs.h. */
  18199. _ACEOF
  18200. cat confdefs.h >>conftest.$ac_ext
  18201. cat >>conftest.$ac_ext <<_ACEOF
  18202. /* end confdefs.h. */
  18203. int
  18204. main ()
  18205. {
  18206. /* FIXME: Include the comments suggested by Paul. */
  18207. #ifndef __cplusplus
  18208. /* Ultrix mips cc rejects this. */
  18209. typedef int charset[2];
  18210. const charset cs;
  18211. /* SunOS 4.1.1 cc rejects this. */
  18212. char const *const *pcpcc;
  18213. char **ppc;
  18214. /* NEC SVR4.0.2 mips cc rejects this. */
  18215. struct point {int x, y;};
  18216. static struct point const zero = {0,0};
  18217. /* AIX XL C 1.02.0.0 rejects this.
  18218. It does not let you subtract one const X* pointer from another in
  18219. an arm of an if-expression whose if-part is not a constant
  18220. expression */
  18221. const char *g = "string";
  18222. pcpcc = &g + (g ? g-g : 0);
  18223. /* HPUX 7.0 cc rejects these. */
  18224. ++pcpcc;
  18225. ppc = (char**) pcpcc;
  18226. pcpcc = (char const *const *) ppc;
  18227. { /* SCO 3.2v4 cc rejects this. */
  18228. char *t;
  18229. char const *s = 0 ? (char *) 0 : (char const *) 0;
  18230. *t++ = 0;
  18231. if (s) return 0;
  18232. }
  18233. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  18234. int x[] = {25, 17};
  18235. const int *foo = &x[0];
  18236. ++foo;
  18237. }
  18238. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  18239. typedef const int *iptr;
  18240. iptr p = 0;
  18241. ++p;
  18242. }
  18243. { /* AIX XL C 1.02.0.0 rejects this saying
  18244. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  18245. struct s { int j; const int *ap[3]; };
  18246. struct s *b; b->j = 5;
  18247. }
  18248. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  18249. const int foo = 10;
  18250. if (!foo) return 0;
  18251. }
  18252. return !cs[0] && !zero.x;
  18253. #endif
  18254. ;
  18255. return 0;
  18256. }
  18257. _ACEOF
  18258. rm -f conftest.$ac_objext
  18259. if { (ac_try="$ac_compile"
  18260. case "(($ac_try" in
  18261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18262. *) ac_try_echo=$ac_try;;
  18263. esac
  18264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18265. (eval "$ac_compile") 2>conftest.er1
  18266. ac_status=$?
  18267. grep -v '^ *+' conftest.er1 >conftest.err
  18268. rm -f conftest.er1
  18269. cat conftest.err >&5
  18270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18271. (exit $ac_status); } && {
  18272. test -z "$ac_c_werror_flag" ||
  18273. test ! -s conftest.err
  18274. } && test -s conftest.$ac_objext; then
  18275. ac_cv_c_const=yes
  18276. else
  18277. echo "$as_me: failed program was:" >&5
  18278. sed 's/^/| /' conftest.$ac_ext >&5
  18279. ac_cv_c_const=no
  18280. fi
  18281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18282. fi
  18283. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  18284. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  18285. if test $ac_cv_c_const = no; then
  18286. cat >>confdefs.h <<\_ACEOF
  18287. #define const
  18288. _ACEOF
  18289. fi
  18290. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  18291. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  18292. if test "${ac_cv_header_stdbool_h+set}" = set; then
  18293. echo $ECHO_N "(cached) $ECHO_C" >&6
  18294. else
  18295. cat >conftest.$ac_ext <<_ACEOF
  18296. /* confdefs.h. */
  18297. _ACEOF
  18298. cat confdefs.h >>conftest.$ac_ext
  18299. cat >>conftest.$ac_ext <<_ACEOF
  18300. /* end confdefs.h. */
  18301. #include <stdbool.h>
  18302. #ifndef bool
  18303. "error: bool is not defined"
  18304. #endif
  18305. #ifndef false
  18306. "error: false is not defined"
  18307. #endif
  18308. #if false
  18309. "error: false is not 0"
  18310. #endif
  18311. #ifndef true
  18312. "error: true is not defined"
  18313. #endif
  18314. #if true != 1
  18315. "error: true is not 1"
  18316. #endif
  18317. #ifndef __bool_true_false_are_defined
  18318. "error: __bool_true_false_are_defined is not defined"
  18319. #endif
  18320. struct s { _Bool s: 1; _Bool t; } s;
  18321. char a[true == 1 ? 1 : -1];
  18322. char b[false == 0 ? 1 : -1];
  18323. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  18324. char d[(bool) 0.5 == true ? 1 : -1];
  18325. bool e = &s;
  18326. char f[(_Bool) 0.0 == false ? 1 : -1];
  18327. char g[true];
  18328. char h[sizeof (_Bool)];
  18329. char i[sizeof s.t];
  18330. enum { j = false, k = true, l = false * true, m = true * 256 };
  18331. _Bool n[m];
  18332. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  18333. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  18334. # if defined __xlc__ || defined __GNUC__
  18335. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  18336. reported by James Lemley on 2005-10-05; see
  18337. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  18338. This test is not quite right, since xlc is allowed to
  18339. reject this program, as the initializer for xlcbug is
  18340. not one of the forms that C requires support for.
  18341. However, doing the test right would require a runtime
  18342. test, and that would make cross-compilation harder.
  18343. Let us hope that IBM fixes the xlc bug, and also adds
  18344. support for this kind of constant expression. In the
  18345. meantime, this test will reject xlc, which is OK, since
  18346. our stdbool.h substitute should suffice. We also test
  18347. this with GCC, where it should work, to detect more
  18348. quickly whether someone messes up the test in the
  18349. future. */
  18350. char digs[] = "0123456789";
  18351. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  18352. # endif
  18353. /* Catch a bug in an HP-UX C compiler. See
  18354. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  18355. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  18356. */
  18357. _Bool q = true;
  18358. _Bool *pq = &q;
  18359. int
  18360. main ()
  18361. {
  18362. *pq |= q;
  18363. *pq |= ! q;
  18364. /* Refer to every declared value, to avoid compiler optimizations. */
  18365. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  18366. + !m + !n + !o + !p + !q + !pq);
  18367. ;
  18368. return 0;
  18369. }
  18370. _ACEOF
  18371. rm -f conftest.$ac_objext
  18372. if { (ac_try="$ac_compile"
  18373. case "(($ac_try" in
  18374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18375. *) ac_try_echo=$ac_try;;
  18376. esac
  18377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18378. (eval "$ac_compile") 2>conftest.er1
  18379. ac_status=$?
  18380. grep -v '^ *+' conftest.er1 >conftest.err
  18381. rm -f conftest.er1
  18382. cat conftest.err >&5
  18383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18384. (exit $ac_status); } && {
  18385. test -z "$ac_c_werror_flag" ||
  18386. test ! -s conftest.err
  18387. } && test -s conftest.$ac_objext; then
  18388. ac_cv_header_stdbool_h=yes
  18389. else
  18390. echo "$as_me: failed program was:" >&5
  18391. sed 's/^/| /' conftest.$ac_ext >&5
  18392. ac_cv_header_stdbool_h=no
  18393. fi
  18394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18395. fi
  18396. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  18397. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  18398. { echo "$as_me:$LINENO: checking for _Bool" >&5
  18399. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  18400. if test "${ac_cv_type__Bool+set}" = set; then
  18401. echo $ECHO_N "(cached) $ECHO_C" >&6
  18402. else
  18403. cat >conftest.$ac_ext <<_ACEOF
  18404. /* confdefs.h. */
  18405. _ACEOF
  18406. cat confdefs.h >>conftest.$ac_ext
  18407. cat >>conftest.$ac_ext <<_ACEOF
  18408. /* end confdefs.h. */
  18409. $ac_includes_default
  18410. typedef _Bool ac__type_new_;
  18411. int
  18412. main ()
  18413. {
  18414. if ((ac__type_new_ *) 0)
  18415. return 0;
  18416. if (sizeof (ac__type_new_))
  18417. return 0;
  18418. ;
  18419. return 0;
  18420. }
  18421. _ACEOF
  18422. rm -f conftest.$ac_objext
  18423. if { (ac_try="$ac_compile"
  18424. case "(($ac_try" in
  18425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18426. *) ac_try_echo=$ac_try;;
  18427. esac
  18428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18429. (eval "$ac_compile") 2>conftest.er1
  18430. ac_status=$?
  18431. grep -v '^ *+' conftest.er1 >conftest.err
  18432. rm -f conftest.er1
  18433. cat conftest.err >&5
  18434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18435. (exit $ac_status); } && {
  18436. test -z "$ac_c_werror_flag" ||
  18437. test ! -s conftest.err
  18438. } && test -s conftest.$ac_objext; then
  18439. ac_cv_type__Bool=yes
  18440. else
  18441. echo "$as_me: failed program was:" >&5
  18442. sed 's/^/| /' conftest.$ac_ext >&5
  18443. ac_cv_type__Bool=no
  18444. fi
  18445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18446. fi
  18447. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  18448. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  18449. if test $ac_cv_type__Bool = yes; then
  18450. cat >>confdefs.h <<_ACEOF
  18451. #define HAVE__BOOL 1
  18452. _ACEOF
  18453. fi
  18454. if test $ac_cv_header_stdbool_h = yes; then
  18455. cat >>confdefs.h <<\_ACEOF
  18456. #define HAVE_STDBOOL_H 1
  18457. _ACEOF
  18458. fi
  18459. { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  18460. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  18461. if test "${ac_cv_type_uid_t+set}" = set; then
  18462. echo $ECHO_N "(cached) $ECHO_C" >&6
  18463. else
  18464. cat >conftest.$ac_ext <<_ACEOF
  18465. /* confdefs.h. */
  18466. _ACEOF
  18467. cat confdefs.h >>conftest.$ac_ext
  18468. cat >>conftest.$ac_ext <<_ACEOF
  18469. /* end confdefs.h. */
  18470. #include <sys/types.h>
  18471. _ACEOF
  18472. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18473. $EGREP "uid_t" >/dev/null 2>&1; then
  18474. ac_cv_type_uid_t=yes
  18475. else
  18476. ac_cv_type_uid_t=no
  18477. fi
  18478. rm -f conftest*
  18479. fi
  18480. { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  18481. echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  18482. if test $ac_cv_type_uid_t = no; then
  18483. cat >>confdefs.h <<\_ACEOF
  18484. #define uid_t int
  18485. _ACEOF
  18486. cat >>confdefs.h <<\_ACEOF
  18487. #define gid_t int
  18488. _ACEOF
  18489. fi
  18490. { echo "$as_me:$LINENO: checking for pid_t" >&5
  18491. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  18492. if test "${ac_cv_type_pid_t+set}" = set; then
  18493. echo $ECHO_N "(cached) $ECHO_C" >&6
  18494. else
  18495. cat >conftest.$ac_ext <<_ACEOF
  18496. /* confdefs.h. */
  18497. _ACEOF
  18498. cat confdefs.h >>conftest.$ac_ext
  18499. cat >>conftest.$ac_ext <<_ACEOF
  18500. /* end confdefs.h. */
  18501. $ac_includes_default
  18502. typedef pid_t ac__type_new_;
  18503. int
  18504. main ()
  18505. {
  18506. if ((ac__type_new_ *) 0)
  18507. return 0;
  18508. if (sizeof (ac__type_new_))
  18509. return 0;
  18510. ;
  18511. return 0;
  18512. }
  18513. _ACEOF
  18514. rm -f conftest.$ac_objext
  18515. if { (ac_try="$ac_compile"
  18516. case "(($ac_try" in
  18517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18518. *) ac_try_echo=$ac_try;;
  18519. esac
  18520. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18521. (eval "$ac_compile") 2>conftest.er1
  18522. ac_status=$?
  18523. grep -v '^ *+' conftest.er1 >conftest.err
  18524. rm -f conftest.er1
  18525. cat conftest.err >&5
  18526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18527. (exit $ac_status); } && {
  18528. test -z "$ac_c_werror_flag" ||
  18529. test ! -s conftest.err
  18530. } && test -s conftest.$ac_objext; then
  18531. ac_cv_type_pid_t=yes
  18532. else
  18533. echo "$as_me: failed program was:" >&5
  18534. sed 's/^/| /' conftest.$ac_ext >&5
  18535. ac_cv_type_pid_t=no
  18536. fi
  18537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18538. fi
  18539. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  18540. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  18541. if test $ac_cv_type_pid_t = yes; then
  18542. :
  18543. else
  18544. cat >>confdefs.h <<_ACEOF
  18545. #define pid_t int
  18546. _ACEOF
  18547. fi
  18548. { echo "$as_me:$LINENO: checking for size_t" >&5
  18549. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  18550. if test "${ac_cv_type_size_t+set}" = set; then
  18551. echo $ECHO_N "(cached) $ECHO_C" >&6
  18552. else
  18553. cat >conftest.$ac_ext <<_ACEOF
  18554. /* confdefs.h. */
  18555. _ACEOF
  18556. cat confdefs.h >>conftest.$ac_ext
  18557. cat >>conftest.$ac_ext <<_ACEOF
  18558. /* end confdefs.h. */
  18559. $ac_includes_default
  18560. typedef size_t ac__type_new_;
  18561. int
  18562. main ()
  18563. {
  18564. if ((ac__type_new_ *) 0)
  18565. return 0;
  18566. if (sizeof (ac__type_new_))
  18567. return 0;
  18568. ;
  18569. return 0;
  18570. }
  18571. _ACEOF
  18572. rm -f conftest.$ac_objext
  18573. if { (ac_try="$ac_compile"
  18574. case "(($ac_try" in
  18575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18576. *) ac_try_echo=$ac_try;;
  18577. esac
  18578. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18579. (eval "$ac_compile") 2>conftest.er1
  18580. ac_status=$?
  18581. grep -v '^ *+' conftest.er1 >conftest.err
  18582. rm -f conftest.er1
  18583. cat conftest.err >&5
  18584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18585. (exit $ac_status); } && {
  18586. test -z "$ac_c_werror_flag" ||
  18587. test ! -s conftest.err
  18588. } && test -s conftest.$ac_objext; then
  18589. ac_cv_type_size_t=yes
  18590. else
  18591. echo "$as_me: failed program was:" >&5
  18592. sed 's/^/| /' conftest.$ac_ext >&5
  18593. ac_cv_type_size_t=no
  18594. fi
  18595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18596. fi
  18597. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  18598. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  18599. if test $ac_cv_type_size_t = yes; then
  18600. :
  18601. else
  18602. cat >>confdefs.h <<_ACEOF
  18603. #define size_t unsigned int
  18604. _ACEOF
  18605. fi
  18606. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  18607. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  18608. if test "${ac_cv_header_time+set}" = set; then
  18609. echo $ECHO_N "(cached) $ECHO_C" >&6
  18610. else
  18611. cat >conftest.$ac_ext <<_ACEOF
  18612. /* confdefs.h. */
  18613. _ACEOF
  18614. cat confdefs.h >>conftest.$ac_ext
  18615. cat >>conftest.$ac_ext <<_ACEOF
  18616. /* end confdefs.h. */
  18617. #include <sys/types.h>
  18618. #include <sys/time.h>
  18619. #include <time.h>
  18620. int
  18621. main ()
  18622. {
  18623. if ((struct tm *) 0)
  18624. return 0;
  18625. ;
  18626. return 0;
  18627. }
  18628. _ACEOF
  18629. rm -f conftest.$ac_objext
  18630. if { (ac_try="$ac_compile"
  18631. case "(($ac_try" in
  18632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18633. *) ac_try_echo=$ac_try;;
  18634. esac
  18635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18636. (eval "$ac_compile") 2>conftest.er1
  18637. ac_status=$?
  18638. grep -v '^ *+' conftest.er1 >conftest.err
  18639. rm -f conftest.er1
  18640. cat conftest.err >&5
  18641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18642. (exit $ac_status); } && {
  18643. test -z "$ac_c_werror_flag" ||
  18644. test ! -s conftest.err
  18645. } && test -s conftest.$ac_objext; then
  18646. ac_cv_header_time=yes
  18647. else
  18648. echo "$as_me: failed program was:" >&5
  18649. sed 's/^/| /' conftest.$ac_ext >&5
  18650. ac_cv_header_time=no
  18651. fi
  18652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18653. fi
  18654. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  18655. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  18656. if test $ac_cv_header_time = yes; then
  18657. cat >>confdefs.h <<\_ACEOF
  18658. #define TIME_WITH_SYS_TIME 1
  18659. _ACEOF
  18660. fi
  18661. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  18662. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  18663. if test "${ac_cv_struct_tm+set}" = set; then
  18664. echo $ECHO_N "(cached) $ECHO_C" >&6
  18665. else
  18666. cat >conftest.$ac_ext <<_ACEOF
  18667. /* confdefs.h. */
  18668. _ACEOF
  18669. cat confdefs.h >>conftest.$ac_ext
  18670. cat >>conftest.$ac_ext <<_ACEOF
  18671. /* end confdefs.h. */
  18672. #include <sys/types.h>
  18673. #include <time.h>
  18674. int
  18675. main ()
  18676. {
  18677. struct tm tm;
  18678. int *p = &tm.tm_sec;
  18679. return !p;
  18680. ;
  18681. return 0;
  18682. }
  18683. _ACEOF
  18684. rm -f conftest.$ac_objext
  18685. if { (ac_try="$ac_compile"
  18686. case "(($ac_try" in
  18687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18688. *) ac_try_echo=$ac_try;;
  18689. esac
  18690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18691. (eval "$ac_compile") 2>conftest.er1
  18692. ac_status=$?
  18693. grep -v '^ *+' conftest.er1 >conftest.err
  18694. rm -f conftest.er1
  18695. cat conftest.err >&5
  18696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18697. (exit $ac_status); } && {
  18698. test -z "$ac_c_werror_flag" ||
  18699. test ! -s conftest.err
  18700. } && test -s conftest.$ac_objext; then
  18701. ac_cv_struct_tm=time.h
  18702. else
  18703. echo "$as_me: failed program was:" >&5
  18704. sed 's/^/| /' conftest.$ac_ext >&5
  18705. ac_cv_struct_tm=sys/time.h
  18706. fi
  18707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18708. fi
  18709. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18710. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  18711. if test $ac_cv_struct_tm = sys/time.h; then
  18712. cat >>confdefs.h <<\_ACEOF
  18713. #define TM_IN_SYS_TIME 1
  18714. _ACEOF
  18715. fi
  18716. # Checks for library functions.
  18717. for ac_header in unistd.h
  18718. do
  18719. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18720. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18721. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18722. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18723. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18724. echo $ECHO_N "(cached) $ECHO_C" >&6
  18725. fi
  18726. ac_res=`eval echo '${'$as_ac_Header'}'`
  18727. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18728. echo "${ECHO_T}$ac_res" >&6; }
  18729. else
  18730. # Is the header compilable?
  18731. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18732. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  18733. cat >conftest.$ac_ext <<_ACEOF
  18734. /* confdefs.h. */
  18735. _ACEOF
  18736. cat confdefs.h >>conftest.$ac_ext
  18737. cat >>conftest.$ac_ext <<_ACEOF
  18738. /* end confdefs.h. */
  18739. $ac_includes_default
  18740. #include <$ac_header>
  18741. _ACEOF
  18742. rm -f conftest.$ac_objext
  18743. if { (ac_try="$ac_compile"
  18744. case "(($ac_try" in
  18745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18746. *) ac_try_echo=$ac_try;;
  18747. esac
  18748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18749. (eval "$ac_compile") 2>conftest.er1
  18750. ac_status=$?
  18751. grep -v '^ *+' conftest.er1 >conftest.err
  18752. rm -f conftest.er1
  18753. cat conftest.err >&5
  18754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18755. (exit $ac_status); } && {
  18756. test -z "$ac_c_werror_flag" ||
  18757. test ! -s conftest.err
  18758. } && test -s conftest.$ac_objext; then
  18759. ac_header_compiler=yes
  18760. else
  18761. echo "$as_me: failed program was:" >&5
  18762. sed 's/^/| /' conftest.$ac_ext >&5
  18763. ac_header_compiler=no
  18764. fi
  18765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18766. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18767. echo "${ECHO_T}$ac_header_compiler" >&6; }
  18768. # Is the header present?
  18769. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18770. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  18771. cat >conftest.$ac_ext <<_ACEOF
  18772. /* confdefs.h. */
  18773. _ACEOF
  18774. cat confdefs.h >>conftest.$ac_ext
  18775. cat >>conftest.$ac_ext <<_ACEOF
  18776. /* end confdefs.h. */
  18777. #include <$ac_header>
  18778. _ACEOF
  18779. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18780. case "(($ac_try" in
  18781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18782. *) ac_try_echo=$ac_try;;
  18783. esac
  18784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18785. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18786. ac_status=$?
  18787. grep -v '^ *+' conftest.er1 >conftest.err
  18788. rm -f conftest.er1
  18789. cat conftest.err >&5
  18790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18791. (exit $ac_status); } >/dev/null && {
  18792. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18793. test ! -s conftest.err
  18794. }; then
  18795. ac_header_preproc=yes
  18796. else
  18797. echo "$as_me: failed program was:" >&5
  18798. sed 's/^/| /' conftest.$ac_ext >&5
  18799. ac_header_preproc=no
  18800. fi
  18801. rm -f conftest.err conftest.$ac_ext
  18802. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18803. echo "${ECHO_T}$ac_header_preproc" >&6; }
  18804. # So? What about this header?
  18805. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18806. yes:no: )
  18807. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18808. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18809. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18810. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18811. ac_header_preproc=yes
  18812. ;;
  18813. no:yes:* )
  18814. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18815. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18816. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18817. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18818. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18819. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18820. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18821. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18822. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18823. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18824. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18825. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18826. ( cat <<\_ASBOX
  18827. ## ------------------------------------------ ##
  18828. ## Report this to http://bugzilla.redhat.com/ ##
  18829. ## ------------------------------------------ ##
  18830. _ASBOX
  18831. ) | sed "s/^/$as_me: WARNING: /" >&2
  18832. ;;
  18833. esac
  18834. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  18835. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18836. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18837. echo $ECHO_N "(cached) $ECHO_C" >&6
  18838. else
  18839. eval "$as_ac_Header=\$ac_header_preproc"
  18840. fi
  18841. ac_res=`eval echo '${'$as_ac_Header'}'`
  18842. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18843. echo "${ECHO_T}$ac_res" >&6; }
  18844. fi
  18845. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18846. cat >>confdefs.h <<_ACEOF
  18847. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18848. _ACEOF
  18849. fi
  18850. done
  18851. { echo "$as_me:$LINENO: checking for working chown" >&5
  18852. echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
  18853. if test "${ac_cv_func_chown_works+set}" = set; then
  18854. echo $ECHO_N "(cached) $ECHO_C" >&6
  18855. else
  18856. if test "$cross_compiling" = yes; then
  18857. ac_cv_func_chown_works=no
  18858. else
  18859. cat >conftest.$ac_ext <<_ACEOF
  18860. /* confdefs.h. */
  18861. _ACEOF
  18862. cat confdefs.h >>conftest.$ac_ext
  18863. cat >>conftest.$ac_ext <<_ACEOF
  18864. /* end confdefs.h. */
  18865. $ac_includes_default
  18866. #include <fcntl.h>
  18867. int
  18868. main ()
  18869. {
  18870. char *f = "conftest.chown";
  18871. struct stat before, after;
  18872. if (creat (f, 0600) < 0)
  18873. return 1;
  18874. if (stat (f, &before) < 0)
  18875. return 1;
  18876. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18877. return 1;
  18878. if (stat (f, &after) < 0)
  18879. return 1;
  18880. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  18881. ;
  18882. return 0;
  18883. }
  18884. _ACEOF
  18885. rm -f conftest$ac_exeext
  18886. if { (ac_try="$ac_link"
  18887. case "(($ac_try" in
  18888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18889. *) ac_try_echo=$ac_try;;
  18890. esac
  18891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18892. (eval "$ac_link") 2>&5
  18893. ac_status=$?
  18894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18895. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18896. { (case "(($ac_try" in
  18897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18898. *) ac_try_echo=$ac_try;;
  18899. esac
  18900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18901. (eval "$ac_try") 2>&5
  18902. ac_status=$?
  18903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18904. (exit $ac_status); }; }; then
  18905. ac_cv_func_chown_works=yes
  18906. else
  18907. echo "$as_me: program exited with status $ac_status" >&5
  18908. echo "$as_me: failed program was:" >&5
  18909. sed 's/^/| /' conftest.$ac_ext >&5
  18910. ( exit $ac_status )
  18911. ac_cv_func_chown_works=no
  18912. fi
  18913. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18914. fi
  18915. rm -f conftest.chown
  18916. fi
  18917. { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18918. echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
  18919. if test $ac_cv_func_chown_works = yes; then
  18920. cat >>confdefs.h <<\_ACEOF
  18921. #define HAVE_CHOWN 1
  18922. _ACEOF
  18923. fi
  18924. { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18925. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
  18926. if test "${ac_cv_func_closedir_void+set}" = set; then
  18927. echo $ECHO_N "(cached) $ECHO_C" >&6
  18928. else
  18929. if test "$cross_compiling" = yes; then
  18930. ac_cv_func_closedir_void=yes
  18931. else
  18932. cat >conftest.$ac_ext <<_ACEOF
  18933. /* confdefs.h. */
  18934. _ACEOF
  18935. cat confdefs.h >>conftest.$ac_ext
  18936. cat >>conftest.$ac_ext <<_ACEOF
  18937. /* end confdefs.h. */
  18938. $ac_includes_default
  18939. #include <$ac_header_dirent>
  18940. #ifndef __cplusplus
  18941. int closedir ();
  18942. #endif
  18943. int
  18944. main ()
  18945. {
  18946. return closedir (opendir (".")) != 0;
  18947. ;
  18948. return 0;
  18949. }
  18950. _ACEOF
  18951. rm -f conftest$ac_exeext
  18952. if { (ac_try="$ac_link"
  18953. case "(($ac_try" in
  18954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18955. *) ac_try_echo=$ac_try;;
  18956. esac
  18957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18958. (eval "$ac_link") 2>&5
  18959. ac_status=$?
  18960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18961. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18962. { (case "(($ac_try" in
  18963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18964. *) ac_try_echo=$ac_try;;
  18965. esac
  18966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18967. (eval "$ac_try") 2>&5
  18968. ac_status=$?
  18969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18970. (exit $ac_status); }; }; then
  18971. ac_cv_func_closedir_void=no
  18972. else
  18973. echo "$as_me: program exited with status $ac_status" >&5
  18974. echo "$as_me: failed program was:" >&5
  18975. sed 's/^/| /' conftest.$ac_ext >&5
  18976. ( exit $ac_status )
  18977. ac_cv_func_closedir_void=yes
  18978. fi
  18979. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18980. fi
  18981. fi
  18982. { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18983. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
  18984. if test $ac_cv_func_closedir_void = yes; then
  18985. cat >>confdefs.h <<\_ACEOF
  18986. #define CLOSEDIR_VOID 1
  18987. _ACEOF
  18988. fi
  18989. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  18990. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  18991. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18992. echo $ECHO_N "(cached) $ECHO_C" >&6
  18993. else
  18994. cat >conftest.$ac_ext <<_ACEOF
  18995. /* confdefs.h. */
  18996. _ACEOF
  18997. cat confdefs.h >>conftest.$ac_ext
  18998. cat >>conftest.$ac_ext <<_ACEOF
  18999. /* end confdefs.h. */
  19000. #include <error.h>
  19001. int
  19002. main ()
  19003. {
  19004. error_at_line (0, 0, "", 0, "an error occurred");
  19005. ;
  19006. return 0;
  19007. }
  19008. _ACEOF
  19009. rm -f conftest.$ac_objext conftest$ac_exeext
  19010. if { (ac_try="$ac_link"
  19011. case "(($ac_try" in
  19012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19013. *) ac_try_echo=$ac_try;;
  19014. esac
  19015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19016. (eval "$ac_link") 2>conftest.er1
  19017. ac_status=$?
  19018. grep -v '^ *+' conftest.er1 >conftest.err
  19019. rm -f conftest.er1
  19020. cat conftest.err >&5
  19021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19022. (exit $ac_status); } && {
  19023. test -z "$ac_c_werror_flag" ||
  19024. test ! -s conftest.err
  19025. } && test -s conftest$ac_exeext &&
  19026. $as_test_x conftest$ac_exeext; then
  19027. ac_cv_lib_error_at_line=yes
  19028. else
  19029. echo "$as_me: failed program was:" >&5
  19030. sed 's/^/| /' conftest.$ac_ext >&5
  19031. ac_cv_lib_error_at_line=no
  19032. fi
  19033. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19034. conftest$ac_exeext conftest.$ac_ext
  19035. fi
  19036. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  19037. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  19038. if test $ac_cv_lib_error_at_line = no; then
  19039. case " $LIBOBJS " in
  19040. *" error.$ac_objext "* ) ;;
  19041. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  19042. ;;
  19043. esac
  19044. fi
  19045. for ac_header in vfork.h
  19046. do
  19047. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19048. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19049. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19050. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19051. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19052. echo $ECHO_N "(cached) $ECHO_C" >&6
  19053. fi
  19054. ac_res=`eval echo '${'$as_ac_Header'}'`
  19055. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19056. echo "${ECHO_T}$ac_res" >&6; }
  19057. else
  19058. # Is the header compilable?
  19059. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19060. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19061. cat >conftest.$ac_ext <<_ACEOF
  19062. /* confdefs.h. */
  19063. _ACEOF
  19064. cat confdefs.h >>conftest.$ac_ext
  19065. cat >>conftest.$ac_ext <<_ACEOF
  19066. /* end confdefs.h. */
  19067. $ac_includes_default
  19068. #include <$ac_header>
  19069. _ACEOF
  19070. rm -f conftest.$ac_objext
  19071. if { (ac_try="$ac_compile"
  19072. case "(($ac_try" in
  19073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19074. *) ac_try_echo=$ac_try;;
  19075. esac
  19076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19077. (eval "$ac_compile") 2>conftest.er1
  19078. ac_status=$?
  19079. grep -v '^ *+' conftest.er1 >conftest.err
  19080. rm -f conftest.er1
  19081. cat conftest.err >&5
  19082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19083. (exit $ac_status); } && {
  19084. test -z "$ac_c_werror_flag" ||
  19085. test ! -s conftest.err
  19086. } && test -s conftest.$ac_objext; then
  19087. ac_header_compiler=yes
  19088. else
  19089. echo "$as_me: failed program was:" >&5
  19090. sed 's/^/| /' conftest.$ac_ext >&5
  19091. ac_header_compiler=no
  19092. fi
  19093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19094. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19095. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19096. # Is the header present?
  19097. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19098. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19099. cat >conftest.$ac_ext <<_ACEOF
  19100. /* confdefs.h. */
  19101. _ACEOF
  19102. cat confdefs.h >>conftest.$ac_ext
  19103. cat >>conftest.$ac_ext <<_ACEOF
  19104. /* end confdefs.h. */
  19105. #include <$ac_header>
  19106. _ACEOF
  19107. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19108. case "(($ac_try" in
  19109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19110. *) ac_try_echo=$ac_try;;
  19111. esac
  19112. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19113. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19114. ac_status=$?
  19115. grep -v '^ *+' conftest.er1 >conftest.err
  19116. rm -f conftest.er1
  19117. cat conftest.err >&5
  19118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19119. (exit $ac_status); } >/dev/null && {
  19120. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19121. test ! -s conftest.err
  19122. }; then
  19123. ac_header_preproc=yes
  19124. else
  19125. echo "$as_me: failed program was:" >&5
  19126. sed 's/^/| /' conftest.$ac_ext >&5
  19127. ac_header_preproc=no
  19128. fi
  19129. rm -f conftest.err conftest.$ac_ext
  19130. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19131. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19132. # So? What about this header?
  19133. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19134. yes:no: )
  19135. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19136. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19137. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19138. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19139. ac_header_preproc=yes
  19140. ;;
  19141. no:yes:* )
  19142. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19143. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19144. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19145. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19146. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19147. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19148. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19149. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19150. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19151. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19152. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19153. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19154. ( cat <<\_ASBOX
  19155. ## ------------------------------------------ ##
  19156. ## Report this to http://bugzilla.redhat.com/ ##
  19157. ## ------------------------------------------ ##
  19158. _ASBOX
  19159. ) | sed "s/^/$as_me: WARNING: /" >&2
  19160. ;;
  19161. esac
  19162. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19163. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19164. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19165. echo $ECHO_N "(cached) $ECHO_C" >&6
  19166. else
  19167. eval "$as_ac_Header=\$ac_header_preproc"
  19168. fi
  19169. ac_res=`eval echo '${'$as_ac_Header'}'`
  19170. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19171. echo "${ECHO_T}$ac_res" >&6; }
  19172. fi
  19173. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19174. cat >>confdefs.h <<_ACEOF
  19175. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19176. _ACEOF
  19177. fi
  19178. done
  19179. for ac_func in fork vfork
  19180. do
  19181. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19182. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19183. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19184. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19185. echo $ECHO_N "(cached) $ECHO_C" >&6
  19186. else
  19187. cat >conftest.$ac_ext <<_ACEOF
  19188. /* confdefs.h. */
  19189. _ACEOF
  19190. cat confdefs.h >>conftest.$ac_ext
  19191. cat >>conftest.$ac_ext <<_ACEOF
  19192. /* end confdefs.h. */
  19193. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19194. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19195. #define $ac_func innocuous_$ac_func
  19196. /* System header to define __stub macros and hopefully few prototypes,
  19197. which can conflict with char $ac_func (); below.
  19198. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19199. <limits.h> exists even on freestanding compilers. */
  19200. #ifdef __STDC__
  19201. # include <limits.h>
  19202. #else
  19203. # include <assert.h>
  19204. #endif
  19205. #undef $ac_func
  19206. /* Override any GCC internal prototype to avoid an error.
  19207. Use char because int might match the return type of a GCC
  19208. builtin and then its argument prototype would still apply. */
  19209. #ifdef __cplusplus
  19210. extern "C"
  19211. #endif
  19212. char $ac_func ();
  19213. /* The GNU C library defines this for functions which it implements
  19214. to always fail with ENOSYS. Some functions are actually named
  19215. something starting with __ and the normal name is an alias. */
  19216. #if defined __stub_$ac_func || defined __stub___$ac_func
  19217. choke me
  19218. #endif
  19219. int
  19220. main ()
  19221. {
  19222. return $ac_func ();
  19223. ;
  19224. return 0;
  19225. }
  19226. _ACEOF
  19227. rm -f conftest.$ac_objext conftest$ac_exeext
  19228. if { (ac_try="$ac_link"
  19229. case "(($ac_try" in
  19230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19231. *) ac_try_echo=$ac_try;;
  19232. esac
  19233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19234. (eval "$ac_link") 2>conftest.er1
  19235. ac_status=$?
  19236. grep -v '^ *+' conftest.er1 >conftest.err
  19237. rm -f conftest.er1
  19238. cat conftest.err >&5
  19239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19240. (exit $ac_status); } && {
  19241. test -z "$ac_c_werror_flag" ||
  19242. test ! -s conftest.err
  19243. } && test -s conftest$ac_exeext &&
  19244. $as_test_x conftest$ac_exeext; then
  19245. eval "$as_ac_var=yes"
  19246. else
  19247. echo "$as_me: failed program was:" >&5
  19248. sed 's/^/| /' conftest.$ac_ext >&5
  19249. eval "$as_ac_var=no"
  19250. fi
  19251. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19252. conftest$ac_exeext conftest.$ac_ext
  19253. fi
  19254. ac_res=`eval echo '${'$as_ac_var'}'`
  19255. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19256. echo "${ECHO_T}$ac_res" >&6; }
  19257. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19258. cat >>confdefs.h <<_ACEOF
  19259. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19260. _ACEOF
  19261. fi
  19262. done
  19263. if test "x$ac_cv_func_fork" = xyes; then
  19264. { echo "$as_me:$LINENO: checking for working fork" >&5
  19265. echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
  19266. if test "${ac_cv_func_fork_works+set}" = set; then
  19267. echo $ECHO_N "(cached) $ECHO_C" >&6
  19268. else
  19269. if test "$cross_compiling" = yes; then
  19270. ac_cv_func_fork_works=cross
  19271. else
  19272. cat >conftest.$ac_ext <<_ACEOF
  19273. /* confdefs.h. */
  19274. _ACEOF
  19275. cat confdefs.h >>conftest.$ac_ext
  19276. cat >>conftest.$ac_ext <<_ACEOF
  19277. /* end confdefs.h. */
  19278. $ac_includes_default
  19279. int
  19280. main ()
  19281. {
  19282. /* By Ruediger Kuhlmann. */
  19283. return fork () < 0;
  19284. ;
  19285. return 0;
  19286. }
  19287. _ACEOF
  19288. rm -f conftest$ac_exeext
  19289. if { (ac_try="$ac_link"
  19290. case "(($ac_try" in
  19291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19292. *) ac_try_echo=$ac_try;;
  19293. esac
  19294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19295. (eval "$ac_link") 2>&5
  19296. ac_status=$?
  19297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19298. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19299. { (case "(($ac_try" in
  19300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19301. *) ac_try_echo=$ac_try;;
  19302. esac
  19303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19304. (eval "$ac_try") 2>&5
  19305. ac_status=$?
  19306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19307. (exit $ac_status); }; }; then
  19308. ac_cv_func_fork_works=yes
  19309. else
  19310. echo "$as_me: program exited with status $ac_status" >&5
  19311. echo "$as_me: failed program was:" >&5
  19312. sed 's/^/| /' conftest.$ac_ext >&5
  19313. ( exit $ac_status )
  19314. ac_cv_func_fork_works=no
  19315. fi
  19316. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19317. fi
  19318. fi
  19319. { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  19320. echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
  19321. else
  19322. ac_cv_func_fork_works=$ac_cv_func_fork
  19323. fi
  19324. if test "x$ac_cv_func_fork_works" = xcross; then
  19325. case $host in
  19326. *-*-amigaos* | *-*-msdosdjgpp*)
  19327. # Override, as these systems have only a dummy fork() stub
  19328. ac_cv_func_fork_works=no
  19329. ;;
  19330. *)
  19331. ac_cv_func_fork_works=yes
  19332. ;;
  19333. esac
  19334. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  19335. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  19336. fi
  19337. ac_cv_func_vfork_works=$ac_cv_func_vfork
  19338. if test "x$ac_cv_func_vfork" = xyes; then
  19339. { echo "$as_me:$LINENO: checking for working vfork" >&5
  19340. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
  19341. if test "${ac_cv_func_vfork_works+set}" = set; then
  19342. echo $ECHO_N "(cached) $ECHO_C" >&6
  19343. else
  19344. if test "$cross_compiling" = yes; then
  19345. ac_cv_func_vfork_works=cross
  19346. else
  19347. cat >conftest.$ac_ext <<_ACEOF
  19348. /* confdefs.h. */
  19349. _ACEOF
  19350. cat confdefs.h >>conftest.$ac_ext
  19351. cat >>conftest.$ac_ext <<_ACEOF
  19352. /* end confdefs.h. */
  19353. /* Thanks to Paul Eggert for this test. */
  19354. $ac_includes_default
  19355. #include <sys/wait.h>
  19356. #ifdef HAVE_VFORK_H
  19357. # include <vfork.h>
  19358. #endif
  19359. /* On some sparc systems, changes by the child to local and incoming
  19360. argument registers are propagated back to the parent. The compiler
  19361. is told about this with #include <vfork.h>, but some compilers
  19362. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  19363. static variable whose address is put into a register that is
  19364. clobbered by the vfork. */
  19365. static void
  19366. #ifdef __cplusplus
  19367. sparc_address_test (int arg)
  19368. # else
  19369. sparc_address_test (arg) int arg;
  19370. #endif
  19371. {
  19372. static pid_t child;
  19373. if (!child) {
  19374. child = vfork ();
  19375. if (child < 0) {
  19376. perror ("vfork");
  19377. _exit(2);
  19378. }
  19379. if (!child) {
  19380. arg = getpid();
  19381. write(-1, "", 0);
  19382. _exit (arg);
  19383. }
  19384. }
  19385. }
  19386. int
  19387. main ()
  19388. {
  19389. pid_t parent = getpid ();
  19390. pid_t child;
  19391. sparc_address_test (0);
  19392. child = vfork ();
  19393. if (child == 0) {
  19394. /* Here is another test for sparc vfork register problems. This
  19395. test uses lots of local variables, at least as many local
  19396. variables as main has allocated so far including compiler
  19397. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  19398. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  19399. reuse the register of parent for one of the local variables,
  19400. since it will think that parent can't possibly be used any more
  19401. in this routine. Assigning to the local variable will thus
  19402. munge parent in the parent process. */
  19403. pid_t
  19404. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  19405. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  19406. /* Convince the compiler that p..p7 are live; otherwise, it might
  19407. use the same hardware register for all 8 local variables. */
  19408. if (p != p1 || p != p2 || p != p3 || p != p4
  19409. || p != p5 || p != p6 || p != p7)
  19410. _exit(1);
  19411. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  19412. from child file descriptors. If the child closes a descriptor
  19413. before it execs or exits, this munges the parent's descriptor
  19414. as well. Test for this by closing stdout in the child. */
  19415. _exit(close(fileno(stdout)) != 0);
  19416. } else {
  19417. int status;
  19418. struct stat st;
  19419. while (wait(&status) != child)
  19420. ;
  19421. return (
  19422. /* Was there some problem with vforking? */
  19423. child < 0
  19424. /* Did the child fail? (This shouldn't happen.) */
  19425. || status
  19426. /* Did the vfork/compiler bug occur? */
  19427. || parent != getpid()
  19428. /* Did the file descriptor bug occur? */
  19429. || fstat(fileno(stdout), &st) != 0
  19430. );
  19431. }
  19432. }
  19433. _ACEOF
  19434. rm -f conftest$ac_exeext
  19435. if { (ac_try="$ac_link"
  19436. case "(($ac_try" in
  19437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19438. *) ac_try_echo=$ac_try;;
  19439. esac
  19440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19441. (eval "$ac_link") 2>&5
  19442. ac_status=$?
  19443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19444. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19445. { (case "(($ac_try" in
  19446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19447. *) ac_try_echo=$ac_try;;
  19448. esac
  19449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19450. (eval "$ac_try") 2>&5
  19451. ac_status=$?
  19452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19453. (exit $ac_status); }; }; then
  19454. ac_cv_func_vfork_works=yes
  19455. else
  19456. echo "$as_me: program exited with status $ac_status" >&5
  19457. echo "$as_me: failed program was:" >&5
  19458. sed 's/^/| /' conftest.$ac_ext >&5
  19459. ( exit $ac_status )
  19460. ac_cv_func_vfork_works=no
  19461. fi
  19462. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19463. fi
  19464. fi
  19465. { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  19466. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
  19467. fi;
  19468. if test "x$ac_cv_func_fork_works" = xcross; then
  19469. ac_cv_func_vfork_works=$ac_cv_func_vfork
  19470. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  19471. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  19472. fi
  19473. if test "x$ac_cv_func_vfork_works" = xyes; then
  19474. cat >>confdefs.h <<\_ACEOF
  19475. #define HAVE_WORKING_VFORK 1
  19476. _ACEOF
  19477. else
  19478. cat >>confdefs.h <<\_ACEOF
  19479. #define vfork fork
  19480. _ACEOF
  19481. fi
  19482. if test "x$ac_cv_func_fork_works" = xyes; then
  19483. cat >>confdefs.h <<\_ACEOF
  19484. #define HAVE_WORKING_FORK 1
  19485. _ACEOF
  19486. fi
  19487. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  19488. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  19489. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  19490. echo $ECHO_N "(cached) $ECHO_C" >&6
  19491. else
  19492. rm -f conftest.sym conftest.file
  19493. echo >conftest.file
  19494. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  19495. if test "$cross_compiling" = yes; then
  19496. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19497. else
  19498. cat >conftest.$ac_ext <<_ACEOF
  19499. /* confdefs.h. */
  19500. _ACEOF
  19501. cat confdefs.h >>conftest.$ac_ext
  19502. cat >>conftest.$ac_ext <<_ACEOF
  19503. /* end confdefs.h. */
  19504. $ac_includes_default
  19505. int
  19506. main ()
  19507. {
  19508. struct stat sbuf;
  19509. /* Linux will dereference the symlink and fail.
  19510. That is better in the sense that it means we will not
  19511. have to compile and use the lstat wrapper. */
  19512. return lstat ("conftest.sym/", &sbuf) == 0;
  19513. ;
  19514. return 0;
  19515. }
  19516. _ACEOF
  19517. rm -f conftest$ac_exeext
  19518. if { (ac_try="$ac_link"
  19519. case "(($ac_try" in
  19520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19521. *) ac_try_echo=$ac_try;;
  19522. esac
  19523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19524. (eval "$ac_link") 2>&5
  19525. ac_status=$?
  19526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19527. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19528. { (case "(($ac_try" in
  19529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19530. *) ac_try_echo=$ac_try;;
  19531. esac
  19532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19533. (eval "$ac_try") 2>&5
  19534. ac_status=$?
  19535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19536. (exit $ac_status); }; }; then
  19537. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  19538. else
  19539. echo "$as_me: program exited with status $ac_status" >&5
  19540. echo "$as_me: failed program was:" >&5
  19541. sed 's/^/| /' conftest.$ac_ext >&5
  19542. ( exit $ac_status )
  19543. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19544. fi
  19545. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19546. fi
  19547. else
  19548. # If the `ln -s' command failed, then we probably don't even
  19549. # have an lstat function.
  19550. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19551. fi
  19552. rm -f conftest.sym conftest.file
  19553. fi
  19554. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19555. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  19556. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  19557. cat >>confdefs.h <<_ACEOF
  19558. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  19559. _ACEOF
  19560. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  19561. case " $LIBOBJS " in
  19562. *" lstat.$ac_objext "* ) ;;
  19563. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  19564. ;;
  19565. esac
  19566. fi
  19567. { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  19568. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
  19569. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  19570. echo $ECHO_N "(cached) $ECHO_C" >&6
  19571. else
  19572. if test "$cross_compiling" = yes; then
  19573. ac_cv_func_lstat_empty_string_bug=yes
  19574. else
  19575. cat >conftest.$ac_ext <<_ACEOF
  19576. /* confdefs.h. */
  19577. _ACEOF
  19578. cat confdefs.h >>conftest.$ac_ext
  19579. cat >>conftest.$ac_ext <<_ACEOF
  19580. /* end confdefs.h. */
  19581. $ac_includes_default
  19582. int
  19583. main ()
  19584. {
  19585. struct stat sbuf;
  19586. return lstat ("", &sbuf) == 0;
  19587. ;
  19588. return 0;
  19589. }
  19590. _ACEOF
  19591. rm -f conftest$ac_exeext
  19592. if { (ac_try="$ac_link"
  19593. case "(($ac_try" in
  19594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19595. *) ac_try_echo=$ac_try;;
  19596. esac
  19597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19598. (eval "$ac_link") 2>&5
  19599. ac_status=$?
  19600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19601. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19602. { (case "(($ac_try" in
  19603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19604. *) ac_try_echo=$ac_try;;
  19605. esac
  19606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19607. (eval "$ac_try") 2>&5
  19608. ac_status=$?
  19609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19610. (exit $ac_status); }; }; then
  19611. ac_cv_func_lstat_empty_string_bug=no
  19612. else
  19613. echo "$as_me: program exited with status $ac_status" >&5
  19614. echo "$as_me: failed program was:" >&5
  19615. sed 's/^/| /' conftest.$ac_ext >&5
  19616. ( exit $ac_status )
  19617. ac_cv_func_lstat_empty_string_bug=yes
  19618. fi
  19619. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19620. fi
  19621. fi
  19622. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  19623. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
  19624. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  19625. case " $LIBOBJS " in
  19626. *" lstat.$ac_objext "* ) ;;
  19627. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  19628. ;;
  19629. esac
  19630. cat >>confdefs.h <<_ACEOF
  19631. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  19632. _ACEOF
  19633. fi
  19634. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  19635. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  19636. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  19637. echo $ECHO_N "(cached) $ECHO_C" >&6
  19638. else
  19639. rm -f conftest.sym conftest.file
  19640. echo >conftest.file
  19641. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  19642. if test "$cross_compiling" = yes; then
  19643. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19644. else
  19645. cat >conftest.$ac_ext <<_ACEOF
  19646. /* confdefs.h. */
  19647. _ACEOF
  19648. cat confdefs.h >>conftest.$ac_ext
  19649. cat >>conftest.$ac_ext <<_ACEOF
  19650. /* end confdefs.h. */
  19651. $ac_includes_default
  19652. int
  19653. main ()
  19654. {
  19655. struct stat sbuf;
  19656. /* Linux will dereference the symlink and fail.
  19657. That is better in the sense that it means we will not
  19658. have to compile and use the lstat wrapper. */
  19659. return lstat ("conftest.sym/", &sbuf) == 0;
  19660. ;
  19661. return 0;
  19662. }
  19663. _ACEOF
  19664. rm -f conftest$ac_exeext
  19665. if { (ac_try="$ac_link"
  19666. case "(($ac_try" in
  19667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19668. *) ac_try_echo=$ac_try;;
  19669. esac
  19670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19671. (eval "$ac_link") 2>&5
  19672. ac_status=$?
  19673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19674. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19675. { (case "(($ac_try" in
  19676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19677. *) ac_try_echo=$ac_try;;
  19678. esac
  19679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19680. (eval "$ac_try") 2>&5
  19681. ac_status=$?
  19682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19683. (exit $ac_status); }; }; then
  19684. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  19685. else
  19686. echo "$as_me: program exited with status $ac_status" >&5
  19687. echo "$as_me: failed program was:" >&5
  19688. sed 's/^/| /' conftest.$ac_ext >&5
  19689. ( exit $ac_status )
  19690. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19691. fi
  19692. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19693. fi
  19694. else
  19695. # If the `ln -s' command failed, then we probably don't even
  19696. # have an lstat function.
  19697. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19698. fi
  19699. rm -f conftest.sym conftest.file
  19700. fi
  19701. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19702. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  19703. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  19704. cat >>confdefs.h <<_ACEOF
  19705. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  19706. _ACEOF
  19707. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  19708. case " $LIBOBJS " in
  19709. *" lstat.$ac_objext "* ) ;;
  19710. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  19711. ;;
  19712. esac
  19713. fi
  19714. for ac_header in stdlib.h
  19715. do
  19716. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19717. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19718. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19719. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19720. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19721. echo $ECHO_N "(cached) $ECHO_C" >&6
  19722. fi
  19723. ac_res=`eval echo '${'$as_ac_Header'}'`
  19724. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19725. echo "${ECHO_T}$ac_res" >&6; }
  19726. else
  19727. # Is the header compilable?
  19728. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19729. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19730. cat >conftest.$ac_ext <<_ACEOF
  19731. /* confdefs.h. */
  19732. _ACEOF
  19733. cat confdefs.h >>conftest.$ac_ext
  19734. cat >>conftest.$ac_ext <<_ACEOF
  19735. /* end confdefs.h. */
  19736. $ac_includes_default
  19737. #include <$ac_header>
  19738. _ACEOF
  19739. rm -f conftest.$ac_objext
  19740. if { (ac_try="$ac_compile"
  19741. case "(($ac_try" in
  19742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19743. *) ac_try_echo=$ac_try;;
  19744. esac
  19745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19746. (eval "$ac_compile") 2>conftest.er1
  19747. ac_status=$?
  19748. grep -v '^ *+' conftest.er1 >conftest.err
  19749. rm -f conftest.er1
  19750. cat conftest.err >&5
  19751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19752. (exit $ac_status); } && {
  19753. test -z "$ac_c_werror_flag" ||
  19754. test ! -s conftest.err
  19755. } && test -s conftest.$ac_objext; then
  19756. ac_header_compiler=yes
  19757. else
  19758. echo "$as_me: failed program was:" >&5
  19759. sed 's/^/| /' conftest.$ac_ext >&5
  19760. ac_header_compiler=no
  19761. fi
  19762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19763. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19764. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19765. # Is the header present?
  19766. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19767. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19768. cat >conftest.$ac_ext <<_ACEOF
  19769. /* confdefs.h. */
  19770. _ACEOF
  19771. cat confdefs.h >>conftest.$ac_ext
  19772. cat >>conftest.$ac_ext <<_ACEOF
  19773. /* end confdefs.h. */
  19774. #include <$ac_header>
  19775. _ACEOF
  19776. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19777. case "(($ac_try" in
  19778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19779. *) ac_try_echo=$ac_try;;
  19780. esac
  19781. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19782. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19783. ac_status=$?
  19784. grep -v '^ *+' conftest.er1 >conftest.err
  19785. rm -f conftest.er1
  19786. cat conftest.err >&5
  19787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19788. (exit $ac_status); } >/dev/null && {
  19789. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19790. test ! -s conftest.err
  19791. }; then
  19792. ac_header_preproc=yes
  19793. else
  19794. echo "$as_me: failed program was:" >&5
  19795. sed 's/^/| /' conftest.$ac_ext >&5
  19796. ac_header_preproc=no
  19797. fi
  19798. rm -f conftest.err conftest.$ac_ext
  19799. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19800. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19801. # So? What about this header?
  19802. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19803. yes:no: )
  19804. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19805. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19806. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19807. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19808. ac_header_preproc=yes
  19809. ;;
  19810. no:yes:* )
  19811. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19812. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19813. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19814. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19815. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19816. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19817. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19818. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19819. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19820. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19821. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19822. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19823. ( cat <<\_ASBOX
  19824. ## ------------------------------------------ ##
  19825. ## Report this to http://bugzilla.redhat.com/ ##
  19826. ## ------------------------------------------ ##
  19827. _ASBOX
  19828. ) | sed "s/^/$as_me: WARNING: /" >&2
  19829. ;;
  19830. esac
  19831. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19832. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19833. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19834. echo $ECHO_N "(cached) $ECHO_C" >&6
  19835. else
  19836. eval "$as_ac_Header=\$ac_header_preproc"
  19837. fi
  19838. ac_res=`eval echo '${'$as_ac_Header'}'`
  19839. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19840. echo "${ECHO_T}$ac_res" >&6; }
  19841. fi
  19842. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19843. cat >>confdefs.h <<_ACEOF
  19844. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19845. _ACEOF
  19846. fi
  19847. done
  19848. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19849. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  19850. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19851. echo $ECHO_N "(cached) $ECHO_C" >&6
  19852. else
  19853. if test "$cross_compiling" = yes; then
  19854. ac_cv_func_malloc_0_nonnull=no
  19855. else
  19856. cat >conftest.$ac_ext <<_ACEOF
  19857. /* confdefs.h. */
  19858. _ACEOF
  19859. cat confdefs.h >>conftest.$ac_ext
  19860. cat >>conftest.$ac_ext <<_ACEOF
  19861. /* end confdefs.h. */
  19862. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  19863. # include <stdlib.h>
  19864. #else
  19865. char *malloc ();
  19866. #endif
  19867. int
  19868. main ()
  19869. {
  19870. return ! malloc (0);
  19871. ;
  19872. return 0;
  19873. }
  19874. _ACEOF
  19875. rm -f conftest$ac_exeext
  19876. if { (ac_try="$ac_link"
  19877. case "(($ac_try" in
  19878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19879. *) ac_try_echo=$ac_try;;
  19880. esac
  19881. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19882. (eval "$ac_link") 2>&5
  19883. ac_status=$?
  19884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19885. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19886. { (case "(($ac_try" in
  19887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19888. *) ac_try_echo=$ac_try;;
  19889. esac
  19890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19891. (eval "$ac_try") 2>&5
  19892. ac_status=$?
  19893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19894. (exit $ac_status); }; }; then
  19895. ac_cv_func_malloc_0_nonnull=yes
  19896. else
  19897. echo "$as_me: program exited with status $ac_status" >&5
  19898. echo "$as_me: failed program was:" >&5
  19899. sed 's/^/| /' conftest.$ac_ext >&5
  19900. ( exit $ac_status )
  19901. ac_cv_func_malloc_0_nonnull=no
  19902. fi
  19903. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19904. fi
  19905. fi
  19906. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19907. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  19908. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19909. cat >>confdefs.h <<\_ACEOF
  19910. #define HAVE_MALLOC 1
  19911. _ACEOF
  19912. else
  19913. cat >>confdefs.h <<\_ACEOF
  19914. #define HAVE_MALLOC 0
  19915. _ACEOF
  19916. case " $LIBOBJS " in
  19917. *" malloc.$ac_objext "* ) ;;
  19918. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  19919. ;;
  19920. esac
  19921. cat >>confdefs.h <<\_ACEOF
  19922. #define malloc rpl_malloc
  19923. _ACEOF
  19924. fi
  19925. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  19926. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  19927. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19928. echo $ECHO_N "(cached) $ECHO_C" >&6
  19929. else
  19930. if test "$cross_compiling" = yes; then
  19931. ac_cv_func_memcmp_working=no
  19932. else
  19933. cat >conftest.$ac_ext <<_ACEOF
  19934. /* confdefs.h. */
  19935. _ACEOF
  19936. cat confdefs.h >>conftest.$ac_ext
  19937. cat >>conftest.$ac_ext <<_ACEOF
  19938. /* end confdefs.h. */
  19939. $ac_includes_default
  19940. int
  19941. main ()
  19942. {
  19943. /* Some versions of memcmp are not 8-bit clean. */
  19944. char c0 = '\100', c1 = '\200', c2 = '\201';
  19945. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19946. return 1;
  19947. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19948. or more and with at least one buffer not starting on a 4-byte boundary.
  19949. William Lewis provided this test program. */
  19950. {
  19951. char foo[21];
  19952. char bar[21];
  19953. int i;
  19954. for (i = 0; i < 4; i++)
  19955. {
  19956. char *a = foo + i;
  19957. char *b = bar + i;
  19958. strcpy (a, "--------01111111");
  19959. strcpy (b, "--------10000000");
  19960. if (memcmp (a, b, 16) >= 0)
  19961. return 1;
  19962. }
  19963. return 0;
  19964. }
  19965. ;
  19966. return 0;
  19967. }
  19968. _ACEOF
  19969. rm -f conftest$ac_exeext
  19970. if { (ac_try="$ac_link"
  19971. case "(($ac_try" in
  19972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19973. *) ac_try_echo=$ac_try;;
  19974. esac
  19975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19976. (eval "$ac_link") 2>&5
  19977. ac_status=$?
  19978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19979. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19980. { (case "(($ac_try" in
  19981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19982. *) ac_try_echo=$ac_try;;
  19983. esac
  19984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19985. (eval "$ac_try") 2>&5
  19986. ac_status=$?
  19987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19988. (exit $ac_status); }; }; then
  19989. ac_cv_func_memcmp_working=yes
  19990. else
  19991. echo "$as_me: program exited with status $ac_status" >&5
  19992. echo "$as_me: failed program was:" >&5
  19993. sed 's/^/| /' conftest.$ac_ext >&5
  19994. ( exit $ac_status )
  19995. ac_cv_func_memcmp_working=no
  19996. fi
  19997. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19998. fi
  19999. fi
  20000. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  20001. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  20002. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  20003. *" memcmp.$ac_objext "* ) ;;
  20004. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  20005. ;;
  20006. esac
  20007. for ac_header in stdlib.h unistd.h
  20008. do
  20009. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20010. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20011. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20012. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20013. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20014. echo $ECHO_N "(cached) $ECHO_C" >&6
  20015. fi
  20016. ac_res=`eval echo '${'$as_ac_Header'}'`
  20017. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20018. echo "${ECHO_T}$ac_res" >&6; }
  20019. else
  20020. # Is the header compilable?
  20021. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20022. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20023. cat >conftest.$ac_ext <<_ACEOF
  20024. /* confdefs.h. */
  20025. _ACEOF
  20026. cat confdefs.h >>conftest.$ac_ext
  20027. cat >>conftest.$ac_ext <<_ACEOF
  20028. /* end confdefs.h. */
  20029. $ac_includes_default
  20030. #include <$ac_header>
  20031. _ACEOF
  20032. rm -f conftest.$ac_objext
  20033. if { (ac_try="$ac_compile"
  20034. case "(($ac_try" in
  20035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20036. *) ac_try_echo=$ac_try;;
  20037. esac
  20038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20039. (eval "$ac_compile") 2>conftest.er1
  20040. ac_status=$?
  20041. grep -v '^ *+' conftest.er1 >conftest.err
  20042. rm -f conftest.er1
  20043. cat conftest.err >&5
  20044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20045. (exit $ac_status); } && {
  20046. test -z "$ac_c_werror_flag" ||
  20047. test ! -s conftest.err
  20048. } && test -s conftest.$ac_objext; then
  20049. ac_header_compiler=yes
  20050. else
  20051. echo "$as_me: failed program was:" >&5
  20052. sed 's/^/| /' conftest.$ac_ext >&5
  20053. ac_header_compiler=no
  20054. fi
  20055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20056. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20057. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20058. # Is the header present?
  20059. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20060. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20061. cat >conftest.$ac_ext <<_ACEOF
  20062. /* confdefs.h. */
  20063. _ACEOF
  20064. cat confdefs.h >>conftest.$ac_ext
  20065. cat >>conftest.$ac_ext <<_ACEOF
  20066. /* end confdefs.h. */
  20067. #include <$ac_header>
  20068. _ACEOF
  20069. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20070. case "(($ac_try" in
  20071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20072. *) ac_try_echo=$ac_try;;
  20073. esac
  20074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20075. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20076. ac_status=$?
  20077. grep -v '^ *+' conftest.er1 >conftest.err
  20078. rm -f conftest.er1
  20079. cat conftest.err >&5
  20080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20081. (exit $ac_status); } >/dev/null && {
  20082. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20083. test ! -s conftest.err
  20084. }; then
  20085. ac_header_preproc=yes
  20086. else
  20087. echo "$as_me: failed program was:" >&5
  20088. sed 's/^/| /' conftest.$ac_ext >&5
  20089. ac_header_preproc=no
  20090. fi
  20091. rm -f conftest.err conftest.$ac_ext
  20092. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20093. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20094. # So? What about this header?
  20095. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20096. yes:no: )
  20097. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20098. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20099. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20100. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20101. ac_header_preproc=yes
  20102. ;;
  20103. no:yes:* )
  20104. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20105. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20106. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20107. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20108. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20109. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20110. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20111. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20112. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20113. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20114. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20115. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20116. ( cat <<\_ASBOX
  20117. ## ------------------------------------------ ##
  20118. ## Report this to http://bugzilla.redhat.com/ ##
  20119. ## ------------------------------------------ ##
  20120. _ASBOX
  20121. ) | sed "s/^/$as_me: WARNING: /" >&2
  20122. ;;
  20123. esac
  20124. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20125. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20126. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20127. echo $ECHO_N "(cached) $ECHO_C" >&6
  20128. else
  20129. eval "$as_ac_Header=\$ac_header_preproc"
  20130. fi
  20131. ac_res=`eval echo '${'$as_ac_Header'}'`
  20132. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20133. echo "${ECHO_T}$ac_res" >&6; }
  20134. fi
  20135. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20136. cat >>confdefs.h <<_ACEOF
  20137. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20138. _ACEOF
  20139. fi
  20140. done
  20141. for ac_func in getpagesize
  20142. do
  20143. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20144. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  20145. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  20146. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20147. echo $ECHO_N "(cached) $ECHO_C" >&6
  20148. else
  20149. cat >conftest.$ac_ext <<_ACEOF
  20150. /* confdefs.h. */
  20151. _ACEOF
  20152. cat confdefs.h >>conftest.$ac_ext
  20153. cat >>conftest.$ac_ext <<_ACEOF
  20154. /* end confdefs.h. */
  20155. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20156. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20157. #define $ac_func innocuous_$ac_func
  20158. /* System header to define __stub macros and hopefully few prototypes,
  20159. which can conflict with char $ac_func (); below.
  20160. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20161. <limits.h> exists even on freestanding compilers. */
  20162. #ifdef __STDC__
  20163. # include <limits.h>
  20164. #else
  20165. # include <assert.h>
  20166. #endif
  20167. #undef $ac_func
  20168. /* Override any GCC internal prototype to avoid an error.
  20169. Use char because int might match the return type of a GCC
  20170. builtin and then its argument prototype would still apply. */
  20171. #ifdef __cplusplus
  20172. extern "C"
  20173. #endif
  20174. char $ac_func ();
  20175. /* The GNU C library defines this for functions which it implements
  20176. to always fail with ENOSYS. Some functions are actually named
  20177. something starting with __ and the normal name is an alias. */
  20178. #if defined __stub_$ac_func || defined __stub___$ac_func
  20179. choke me
  20180. #endif
  20181. int
  20182. main ()
  20183. {
  20184. return $ac_func ();
  20185. ;
  20186. return 0;
  20187. }
  20188. _ACEOF
  20189. rm -f conftest.$ac_objext conftest$ac_exeext
  20190. if { (ac_try="$ac_link"
  20191. case "(($ac_try" in
  20192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20193. *) ac_try_echo=$ac_try;;
  20194. esac
  20195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20196. (eval "$ac_link") 2>conftest.er1
  20197. ac_status=$?
  20198. grep -v '^ *+' conftest.er1 >conftest.err
  20199. rm -f conftest.er1
  20200. cat conftest.err >&5
  20201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20202. (exit $ac_status); } && {
  20203. test -z "$ac_c_werror_flag" ||
  20204. test ! -s conftest.err
  20205. } && test -s conftest$ac_exeext &&
  20206. $as_test_x conftest$ac_exeext; then
  20207. eval "$as_ac_var=yes"
  20208. else
  20209. echo "$as_me: failed program was:" >&5
  20210. sed 's/^/| /' conftest.$ac_ext >&5
  20211. eval "$as_ac_var=no"
  20212. fi
  20213. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20214. conftest$ac_exeext conftest.$ac_ext
  20215. fi
  20216. ac_res=`eval echo '${'$as_ac_var'}'`
  20217. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20218. echo "${ECHO_T}$ac_res" >&6; }
  20219. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20220. cat >>confdefs.h <<_ACEOF
  20221. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20222. _ACEOF
  20223. fi
  20224. done
  20225. { echo "$as_me:$LINENO: checking for working mmap" >&5
  20226. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  20227. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  20228. echo $ECHO_N "(cached) $ECHO_C" >&6
  20229. else
  20230. if test "$cross_compiling" = yes; then
  20231. ac_cv_func_mmap_fixed_mapped=no
  20232. else
  20233. cat >conftest.$ac_ext <<_ACEOF
  20234. /* confdefs.h. */
  20235. _ACEOF
  20236. cat confdefs.h >>conftest.$ac_ext
  20237. cat >>conftest.$ac_ext <<_ACEOF
  20238. /* end confdefs.h. */
  20239. $ac_includes_default
  20240. /* malloc might have been renamed as rpl_malloc. */
  20241. #undef malloc
  20242. /* Thanks to Mike Haertel and Jim Avera for this test.
  20243. Here is a matrix of mmap possibilities:
  20244. mmap private not fixed
  20245. mmap private fixed at somewhere currently unmapped
  20246. mmap private fixed at somewhere already mapped
  20247. mmap shared not fixed
  20248. mmap shared fixed at somewhere currently unmapped
  20249. mmap shared fixed at somewhere already mapped
  20250. For private mappings, we should verify that changes cannot be read()
  20251. back from the file, nor mmap's back from the file at a different
  20252. address. (There have been systems where private was not correctly
  20253. implemented like the infamous i386 svr4.0, and systems where the
  20254. VM page cache was not coherent with the file system buffer cache
  20255. like early versions of FreeBSD and possibly contemporary NetBSD.)
  20256. For shared mappings, we should conversely verify that changes get
  20257. propagated back to all the places they're supposed to be.
  20258. Grep wants private fixed already mapped.
  20259. The main things grep needs to know about mmap are:
  20260. * does it exist and is it safe to write into the mmap'd area
  20261. * how to use it (BSD variants) */
  20262. #include <fcntl.h>
  20263. #include <sys/mman.h>
  20264. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  20265. char *malloc ();
  20266. #endif
  20267. /* This mess was copied from the GNU getpagesize.h. */
  20268. #ifndef HAVE_GETPAGESIZE
  20269. /* Assume that all systems that can run configure have sys/param.h. */
  20270. # ifndef HAVE_SYS_PARAM_H
  20271. # define HAVE_SYS_PARAM_H 1
  20272. # endif
  20273. # ifdef _SC_PAGESIZE
  20274. # define getpagesize() sysconf(_SC_PAGESIZE)
  20275. # else /* no _SC_PAGESIZE */
  20276. # ifdef HAVE_SYS_PARAM_H
  20277. # include <sys/param.h>
  20278. # ifdef EXEC_PAGESIZE
  20279. # define getpagesize() EXEC_PAGESIZE
  20280. # else /* no EXEC_PAGESIZE */
  20281. # ifdef NBPG
  20282. # define getpagesize() NBPG * CLSIZE
  20283. # ifndef CLSIZE
  20284. # define CLSIZE 1
  20285. # endif /* no CLSIZE */
  20286. # else /* no NBPG */
  20287. # ifdef NBPC
  20288. # define getpagesize() NBPC
  20289. # else /* no NBPC */
  20290. # ifdef PAGESIZE
  20291. # define getpagesize() PAGESIZE
  20292. # endif /* PAGESIZE */
  20293. # endif /* no NBPC */
  20294. # endif /* no NBPG */
  20295. # endif /* no EXEC_PAGESIZE */
  20296. # else /* no HAVE_SYS_PARAM_H */
  20297. # define getpagesize() 8192 /* punt totally */
  20298. # endif /* no HAVE_SYS_PARAM_H */
  20299. # endif /* no _SC_PAGESIZE */
  20300. #endif /* no HAVE_GETPAGESIZE */
  20301. int
  20302. main ()
  20303. {
  20304. char *data, *data2, *data3;
  20305. int i, pagesize;
  20306. int fd;
  20307. pagesize = getpagesize ();
  20308. /* First, make a file with some known garbage in it. */
  20309. data = (char *) malloc (pagesize);
  20310. if (!data)
  20311. return 1;
  20312. for (i = 0; i < pagesize; ++i)
  20313. *(data + i) = rand ();
  20314. umask (0);
  20315. fd = creat ("conftest.mmap", 0600);
  20316. if (fd < 0)
  20317. return 1;
  20318. if (write (fd, data, pagesize) != pagesize)
  20319. return 1;
  20320. close (fd);
  20321. /* Next, try to mmap the file at a fixed address which already has
  20322. something else allocated at it. If we can, also make sure that
  20323. we see the same garbage. */
  20324. fd = open ("conftest.mmap", O_RDWR);
  20325. if (fd < 0)
  20326. return 1;
  20327. data2 = (char *) malloc (2 * pagesize);
  20328. if (!data2)
  20329. return 1;
  20330. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  20331. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  20332. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  20333. return 1;
  20334. for (i = 0; i < pagesize; ++i)
  20335. if (*(data + i) != *(data2 + i))
  20336. return 1;
  20337. /* Finally, make sure that changes to the mapped area do not
  20338. percolate back to the file as seen by read(). (This is a bug on
  20339. some variants of i386 svr4.0.) */
  20340. for (i = 0; i < pagesize; ++i)
  20341. *(data2 + i) = *(data2 + i) + 1;
  20342. data3 = (char *) malloc (pagesize);
  20343. if (!data3)
  20344. return 1;
  20345. if (read (fd, data3, pagesize) != pagesize)
  20346. return 1;
  20347. for (i = 0; i < pagesize; ++i)
  20348. if (*(data + i) != *(data3 + i))
  20349. return 1;
  20350. close (fd);
  20351. return 0;
  20352. }
  20353. _ACEOF
  20354. rm -f conftest$ac_exeext
  20355. if { (ac_try="$ac_link"
  20356. case "(($ac_try" in
  20357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20358. *) ac_try_echo=$ac_try;;
  20359. esac
  20360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20361. (eval "$ac_link") 2>&5
  20362. ac_status=$?
  20363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20364. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20365. { (case "(($ac_try" in
  20366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20367. *) ac_try_echo=$ac_try;;
  20368. esac
  20369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20370. (eval "$ac_try") 2>&5
  20371. ac_status=$?
  20372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20373. (exit $ac_status); }; }; then
  20374. ac_cv_func_mmap_fixed_mapped=yes
  20375. else
  20376. echo "$as_me: program exited with status $ac_status" >&5
  20377. echo "$as_me: failed program was:" >&5
  20378. sed 's/^/| /' conftest.$ac_ext >&5
  20379. ( exit $ac_status )
  20380. ac_cv_func_mmap_fixed_mapped=no
  20381. fi
  20382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20383. fi
  20384. fi
  20385. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  20386. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  20387. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  20388. cat >>confdefs.h <<\_ACEOF
  20389. #define HAVE_MMAP 1
  20390. _ACEOF
  20391. fi
  20392. rm -f conftest.mmap
  20393. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  20394. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  20395. if test "${ac_cv_type_signal+set}" = set; then
  20396. echo $ECHO_N "(cached) $ECHO_C" >&6
  20397. else
  20398. cat >conftest.$ac_ext <<_ACEOF
  20399. /* confdefs.h. */
  20400. _ACEOF
  20401. cat confdefs.h >>conftest.$ac_ext
  20402. cat >>conftest.$ac_ext <<_ACEOF
  20403. /* end confdefs.h. */
  20404. #include <sys/types.h>
  20405. #include <signal.h>
  20406. int
  20407. main ()
  20408. {
  20409. return *(signal (0, 0)) (0) == 1;
  20410. ;
  20411. return 0;
  20412. }
  20413. _ACEOF
  20414. rm -f conftest.$ac_objext
  20415. if { (ac_try="$ac_compile"
  20416. case "(($ac_try" in
  20417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20418. *) ac_try_echo=$ac_try;;
  20419. esac
  20420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20421. (eval "$ac_compile") 2>conftest.er1
  20422. ac_status=$?
  20423. grep -v '^ *+' conftest.er1 >conftest.err
  20424. rm -f conftest.er1
  20425. cat conftest.err >&5
  20426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20427. (exit $ac_status); } && {
  20428. test -z "$ac_c_werror_flag" ||
  20429. test ! -s conftest.err
  20430. } && test -s conftest.$ac_objext; then
  20431. ac_cv_type_signal=int
  20432. else
  20433. echo "$as_me: failed program was:" >&5
  20434. sed 's/^/| /' conftest.$ac_ext >&5
  20435. ac_cv_type_signal=void
  20436. fi
  20437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20438. fi
  20439. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  20440. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  20441. cat >>confdefs.h <<_ACEOF
  20442. #define RETSIGTYPE $ac_cv_type_signal
  20443. _ACEOF
  20444. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  20445. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  20446. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  20447. echo $ECHO_N "(cached) $ECHO_C" >&6
  20448. else
  20449. if test "$cross_compiling" = yes; then
  20450. ac_cv_func_stat_empty_string_bug=yes
  20451. else
  20452. cat >conftest.$ac_ext <<_ACEOF
  20453. /* confdefs.h. */
  20454. _ACEOF
  20455. cat confdefs.h >>conftest.$ac_ext
  20456. cat >>conftest.$ac_ext <<_ACEOF
  20457. /* end confdefs.h. */
  20458. $ac_includes_default
  20459. int
  20460. main ()
  20461. {
  20462. struct stat sbuf;
  20463. return stat ("", &sbuf) == 0;
  20464. ;
  20465. return 0;
  20466. }
  20467. _ACEOF
  20468. rm -f conftest$ac_exeext
  20469. if { (ac_try="$ac_link"
  20470. case "(($ac_try" in
  20471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20472. *) ac_try_echo=$ac_try;;
  20473. esac
  20474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20475. (eval "$ac_link") 2>&5
  20476. ac_status=$?
  20477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20478. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20479. { (case "(($ac_try" in
  20480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20481. *) ac_try_echo=$ac_try;;
  20482. esac
  20483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20484. (eval "$ac_try") 2>&5
  20485. ac_status=$?
  20486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20487. (exit $ac_status); }; }; then
  20488. ac_cv_func_stat_empty_string_bug=no
  20489. else
  20490. echo "$as_me: program exited with status $ac_status" >&5
  20491. echo "$as_me: failed program was:" >&5
  20492. sed 's/^/| /' conftest.$ac_ext >&5
  20493. ( exit $ac_status )
  20494. ac_cv_func_stat_empty_string_bug=yes
  20495. fi
  20496. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20497. fi
  20498. fi
  20499. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  20500. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  20501. if test $ac_cv_func_stat_empty_string_bug = yes; then
  20502. case " $LIBOBJS " in
  20503. *" stat.$ac_objext "* ) ;;
  20504. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  20505. ;;
  20506. esac
  20507. cat >>confdefs.h <<_ACEOF
  20508. #define HAVE_STAT_EMPTY_STRING_BUG 1
  20509. _ACEOF
  20510. fi
  20511. { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  20512. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
  20513. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  20514. echo $ECHO_N "(cached) $ECHO_C" >&6
  20515. else
  20516. cat >conftest.$ac_ext <<_ACEOF
  20517. /* confdefs.h. */
  20518. _ACEOF
  20519. cat confdefs.h >>conftest.$ac_ext
  20520. cat >>conftest.$ac_ext <<_ACEOF
  20521. /* end confdefs.h. */
  20522. $ac_includes_default
  20523. int
  20524. main ()
  20525. {
  20526. #ifndef strerror_r
  20527. (void) strerror_r;
  20528. #endif
  20529. ;
  20530. return 0;
  20531. }
  20532. _ACEOF
  20533. rm -f conftest.$ac_objext
  20534. if { (ac_try="$ac_compile"
  20535. case "(($ac_try" in
  20536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20537. *) ac_try_echo=$ac_try;;
  20538. esac
  20539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20540. (eval "$ac_compile") 2>conftest.er1
  20541. ac_status=$?
  20542. grep -v '^ *+' conftest.er1 >conftest.err
  20543. rm -f conftest.er1
  20544. cat conftest.err >&5
  20545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20546. (exit $ac_status); } && {
  20547. test -z "$ac_c_werror_flag" ||
  20548. test ! -s conftest.err
  20549. } && test -s conftest.$ac_objext; then
  20550. ac_cv_have_decl_strerror_r=yes
  20551. else
  20552. echo "$as_me: failed program was:" >&5
  20553. sed 's/^/| /' conftest.$ac_ext >&5
  20554. ac_cv_have_decl_strerror_r=no
  20555. fi
  20556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20557. fi
  20558. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  20559. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
  20560. if test $ac_cv_have_decl_strerror_r = yes; then
  20561. cat >>confdefs.h <<_ACEOF
  20562. #define HAVE_DECL_STRERROR_R 1
  20563. _ACEOF
  20564. else
  20565. cat >>confdefs.h <<_ACEOF
  20566. #define HAVE_DECL_STRERROR_R 0
  20567. _ACEOF
  20568. fi
  20569. for ac_func in strerror_r
  20570. do
  20571. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20572. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  20573. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  20574. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20575. echo $ECHO_N "(cached) $ECHO_C" >&6
  20576. else
  20577. cat >conftest.$ac_ext <<_ACEOF
  20578. /* confdefs.h. */
  20579. _ACEOF
  20580. cat confdefs.h >>conftest.$ac_ext
  20581. cat >>conftest.$ac_ext <<_ACEOF
  20582. /* end confdefs.h. */
  20583. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20584. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20585. #define $ac_func innocuous_$ac_func
  20586. /* System header to define __stub macros and hopefully few prototypes,
  20587. which can conflict with char $ac_func (); below.
  20588. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20589. <limits.h> exists even on freestanding compilers. */
  20590. #ifdef __STDC__
  20591. # include <limits.h>
  20592. #else
  20593. # include <assert.h>
  20594. #endif
  20595. #undef $ac_func
  20596. /* Override any GCC internal prototype to avoid an error.
  20597. Use char because int might match the return type of a GCC
  20598. builtin and then its argument prototype would still apply. */
  20599. #ifdef __cplusplus
  20600. extern "C"
  20601. #endif
  20602. char $ac_func ();
  20603. /* The GNU C library defines this for functions which it implements
  20604. to always fail with ENOSYS. Some functions are actually named
  20605. something starting with __ and the normal name is an alias. */
  20606. #if defined __stub_$ac_func || defined __stub___$ac_func
  20607. choke me
  20608. #endif
  20609. int
  20610. main ()
  20611. {
  20612. return $ac_func ();
  20613. ;
  20614. return 0;
  20615. }
  20616. _ACEOF
  20617. rm -f conftest.$ac_objext conftest$ac_exeext
  20618. if { (ac_try="$ac_link"
  20619. case "(($ac_try" in
  20620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20621. *) ac_try_echo=$ac_try;;
  20622. esac
  20623. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20624. (eval "$ac_link") 2>conftest.er1
  20625. ac_status=$?
  20626. grep -v '^ *+' conftest.er1 >conftest.err
  20627. rm -f conftest.er1
  20628. cat conftest.err >&5
  20629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20630. (exit $ac_status); } && {
  20631. test -z "$ac_c_werror_flag" ||
  20632. test ! -s conftest.err
  20633. } && test -s conftest$ac_exeext &&
  20634. $as_test_x conftest$ac_exeext; then
  20635. eval "$as_ac_var=yes"
  20636. else
  20637. echo "$as_me: failed program was:" >&5
  20638. sed 's/^/| /' conftest.$ac_ext >&5
  20639. eval "$as_ac_var=no"
  20640. fi
  20641. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20642. conftest$ac_exeext conftest.$ac_ext
  20643. fi
  20644. ac_res=`eval echo '${'$as_ac_var'}'`
  20645. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20646. echo "${ECHO_T}$ac_res" >&6; }
  20647. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20648. cat >>confdefs.h <<_ACEOF
  20649. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20650. _ACEOF
  20651. fi
  20652. done
  20653. { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  20654. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
  20655. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  20656. echo $ECHO_N "(cached) $ECHO_C" >&6
  20657. else
  20658. ac_cv_func_strerror_r_char_p=no
  20659. if test $ac_cv_have_decl_strerror_r = yes; then
  20660. cat >conftest.$ac_ext <<_ACEOF
  20661. /* confdefs.h. */
  20662. _ACEOF
  20663. cat confdefs.h >>conftest.$ac_ext
  20664. cat >>conftest.$ac_ext <<_ACEOF
  20665. /* end confdefs.h. */
  20666. $ac_includes_default
  20667. int
  20668. main ()
  20669. {
  20670. char buf[100];
  20671. char x = *strerror_r (0, buf, sizeof buf);
  20672. char *p = strerror_r (0, buf, sizeof buf);
  20673. return !p || x;
  20674. ;
  20675. return 0;
  20676. }
  20677. _ACEOF
  20678. rm -f conftest.$ac_objext
  20679. if { (ac_try="$ac_compile"
  20680. case "(($ac_try" in
  20681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20682. *) ac_try_echo=$ac_try;;
  20683. esac
  20684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20685. (eval "$ac_compile") 2>conftest.er1
  20686. ac_status=$?
  20687. grep -v '^ *+' conftest.er1 >conftest.err
  20688. rm -f conftest.er1
  20689. cat conftest.err >&5
  20690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20691. (exit $ac_status); } && {
  20692. test -z "$ac_c_werror_flag" ||
  20693. test ! -s conftest.err
  20694. } && test -s conftest.$ac_objext; then
  20695. ac_cv_func_strerror_r_char_p=yes
  20696. else
  20697. echo "$as_me: failed program was:" >&5
  20698. sed 's/^/| /' conftest.$ac_ext >&5
  20699. fi
  20700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20701. else
  20702. # strerror_r is not declared. Choose between
  20703. # systems that have relatively inaccessible declarations for the
  20704. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  20705. # former has a strerror_r that returns char*, while the latter
  20706. # has a strerror_r that returns `int'.
  20707. # This test should segfault on the DEC system.
  20708. if test "$cross_compiling" = yes; then
  20709. :
  20710. else
  20711. cat >conftest.$ac_ext <<_ACEOF
  20712. /* confdefs.h. */
  20713. _ACEOF
  20714. cat confdefs.h >>conftest.$ac_ext
  20715. cat >>conftest.$ac_ext <<_ACEOF
  20716. /* end confdefs.h. */
  20717. $ac_includes_default
  20718. extern char *strerror_r ();
  20719. int
  20720. main ()
  20721. {
  20722. char buf[100];
  20723. char x = *strerror_r (0, buf, sizeof buf);
  20724. return ! isalpha (x);
  20725. ;
  20726. return 0;
  20727. }
  20728. _ACEOF
  20729. rm -f conftest$ac_exeext
  20730. if { (ac_try="$ac_link"
  20731. case "(($ac_try" in
  20732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20733. *) ac_try_echo=$ac_try;;
  20734. esac
  20735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20736. (eval "$ac_link") 2>&5
  20737. ac_status=$?
  20738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20739. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20740. { (case "(($ac_try" in
  20741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20742. *) ac_try_echo=$ac_try;;
  20743. esac
  20744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20745. (eval "$ac_try") 2>&5
  20746. ac_status=$?
  20747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20748. (exit $ac_status); }; }; then
  20749. ac_cv_func_strerror_r_char_p=yes
  20750. else
  20751. echo "$as_me: program exited with status $ac_status" >&5
  20752. echo "$as_me: failed program was:" >&5
  20753. sed 's/^/| /' conftest.$ac_ext >&5
  20754. fi
  20755. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20756. fi
  20757. fi
  20758. fi
  20759. { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20760. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
  20761. if test $ac_cv_func_strerror_r_char_p = yes; then
  20762. cat >>confdefs.h <<\_ACEOF
  20763. #define STRERROR_R_CHAR_P 1
  20764. _ACEOF
  20765. fi
  20766. for ac_func in strftime
  20767. do
  20768. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20769. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  20770. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  20771. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20772. echo $ECHO_N "(cached) $ECHO_C" >&6
  20773. else
  20774. cat >conftest.$ac_ext <<_ACEOF
  20775. /* confdefs.h. */
  20776. _ACEOF
  20777. cat confdefs.h >>conftest.$ac_ext
  20778. cat >>conftest.$ac_ext <<_ACEOF
  20779. /* end confdefs.h. */
  20780. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20781. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20782. #define $ac_func innocuous_$ac_func
  20783. /* System header to define __stub macros and hopefully few prototypes,
  20784. which can conflict with char $ac_func (); below.
  20785. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20786. <limits.h> exists even on freestanding compilers. */
  20787. #ifdef __STDC__
  20788. # include <limits.h>
  20789. #else
  20790. # include <assert.h>
  20791. #endif
  20792. #undef $ac_func
  20793. /* Override any GCC internal prototype to avoid an error.
  20794. Use char because int might match the return type of a GCC
  20795. builtin and then its argument prototype would still apply. */
  20796. #ifdef __cplusplus
  20797. extern "C"
  20798. #endif
  20799. char $ac_func ();
  20800. /* The GNU C library defines this for functions which it implements
  20801. to always fail with ENOSYS. Some functions are actually named
  20802. something starting with __ and the normal name is an alias. */
  20803. #if defined __stub_$ac_func || defined __stub___$ac_func
  20804. choke me
  20805. #endif
  20806. int
  20807. main ()
  20808. {
  20809. return $ac_func ();
  20810. ;
  20811. return 0;
  20812. }
  20813. _ACEOF
  20814. rm -f conftest.$ac_objext conftest$ac_exeext
  20815. if { (ac_try="$ac_link"
  20816. case "(($ac_try" in
  20817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20818. *) ac_try_echo=$ac_try;;
  20819. esac
  20820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20821. (eval "$ac_link") 2>conftest.er1
  20822. ac_status=$?
  20823. grep -v '^ *+' conftest.er1 >conftest.err
  20824. rm -f conftest.er1
  20825. cat conftest.err >&5
  20826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20827. (exit $ac_status); } && {
  20828. test -z "$ac_c_werror_flag" ||
  20829. test ! -s conftest.err
  20830. } && test -s conftest$ac_exeext &&
  20831. $as_test_x conftest$ac_exeext; then
  20832. eval "$as_ac_var=yes"
  20833. else
  20834. echo "$as_me: failed program was:" >&5
  20835. sed 's/^/| /' conftest.$ac_ext >&5
  20836. eval "$as_ac_var=no"
  20837. fi
  20838. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20839. conftest$ac_exeext conftest.$ac_ext
  20840. fi
  20841. ac_res=`eval echo '${'$as_ac_var'}'`
  20842. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20843. echo "${ECHO_T}$ac_res" >&6; }
  20844. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20845. cat >>confdefs.h <<_ACEOF
  20846. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20847. _ACEOF
  20848. else
  20849. # strftime is in -lintl on SCO UNIX.
  20850. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20851. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  20852. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20853. echo $ECHO_N "(cached) $ECHO_C" >&6
  20854. else
  20855. ac_check_lib_save_LIBS=$LIBS
  20856. LIBS="-lintl $LIBS"
  20857. cat >conftest.$ac_ext <<_ACEOF
  20858. /* confdefs.h. */
  20859. _ACEOF
  20860. cat confdefs.h >>conftest.$ac_ext
  20861. cat >>conftest.$ac_ext <<_ACEOF
  20862. /* end confdefs.h. */
  20863. /* Override any GCC internal prototype to avoid an error.
  20864. Use char because int might match the return type of a GCC
  20865. builtin and then its argument prototype would still apply. */
  20866. #ifdef __cplusplus
  20867. extern "C"
  20868. #endif
  20869. char strftime ();
  20870. int
  20871. main ()
  20872. {
  20873. return strftime ();
  20874. ;
  20875. return 0;
  20876. }
  20877. _ACEOF
  20878. rm -f conftest.$ac_objext conftest$ac_exeext
  20879. if { (ac_try="$ac_link"
  20880. case "(($ac_try" in
  20881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20882. *) ac_try_echo=$ac_try;;
  20883. esac
  20884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20885. (eval "$ac_link") 2>conftest.er1
  20886. ac_status=$?
  20887. grep -v '^ *+' conftest.er1 >conftest.err
  20888. rm -f conftest.er1
  20889. cat conftest.err >&5
  20890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20891. (exit $ac_status); } && {
  20892. test -z "$ac_c_werror_flag" ||
  20893. test ! -s conftest.err
  20894. } && test -s conftest$ac_exeext &&
  20895. $as_test_x conftest$ac_exeext; then
  20896. ac_cv_lib_intl_strftime=yes
  20897. else
  20898. echo "$as_me: failed program was:" >&5
  20899. sed 's/^/| /' conftest.$ac_ext >&5
  20900. ac_cv_lib_intl_strftime=no
  20901. fi
  20902. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20903. conftest$ac_exeext conftest.$ac_ext
  20904. LIBS=$ac_check_lib_save_LIBS
  20905. fi
  20906. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20907. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  20908. if test $ac_cv_lib_intl_strftime = yes; then
  20909. cat >>confdefs.h <<\_ACEOF
  20910. #define HAVE_STRFTIME 1
  20911. _ACEOF
  20912. LIBS="-lintl $LIBS"
  20913. fi
  20914. fi
  20915. done
  20916. for ac_func in vprintf
  20917. do
  20918. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20919. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  20920. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  20921. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20922. echo $ECHO_N "(cached) $ECHO_C" >&6
  20923. else
  20924. cat >conftest.$ac_ext <<_ACEOF
  20925. /* confdefs.h. */
  20926. _ACEOF
  20927. cat confdefs.h >>conftest.$ac_ext
  20928. cat >>conftest.$ac_ext <<_ACEOF
  20929. /* end confdefs.h. */
  20930. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20932. #define $ac_func innocuous_$ac_func
  20933. /* System header to define __stub macros and hopefully few prototypes,
  20934. which can conflict with char $ac_func (); below.
  20935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20936. <limits.h> exists even on freestanding compilers. */
  20937. #ifdef __STDC__
  20938. # include <limits.h>
  20939. #else
  20940. # include <assert.h>
  20941. #endif
  20942. #undef $ac_func
  20943. /* Override any GCC internal prototype to avoid an error.
  20944. Use char because int might match the return type of a GCC
  20945. builtin and then its argument prototype would still apply. */
  20946. #ifdef __cplusplus
  20947. extern "C"
  20948. #endif
  20949. char $ac_func ();
  20950. /* The GNU C library defines this for functions which it implements
  20951. to always fail with ENOSYS. Some functions are actually named
  20952. something starting with __ and the normal name is an alias. */
  20953. #if defined __stub_$ac_func || defined __stub___$ac_func
  20954. choke me
  20955. #endif
  20956. int
  20957. main ()
  20958. {
  20959. return $ac_func ();
  20960. ;
  20961. return 0;
  20962. }
  20963. _ACEOF
  20964. rm -f conftest.$ac_objext conftest$ac_exeext
  20965. if { (ac_try="$ac_link"
  20966. case "(($ac_try" in
  20967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20968. *) ac_try_echo=$ac_try;;
  20969. esac
  20970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20971. (eval "$ac_link") 2>conftest.er1
  20972. ac_status=$?
  20973. grep -v '^ *+' conftest.er1 >conftest.err
  20974. rm -f conftest.er1
  20975. cat conftest.err >&5
  20976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20977. (exit $ac_status); } && {
  20978. test -z "$ac_c_werror_flag" ||
  20979. test ! -s conftest.err
  20980. } && test -s conftest$ac_exeext &&
  20981. $as_test_x conftest$ac_exeext; then
  20982. eval "$as_ac_var=yes"
  20983. else
  20984. echo "$as_me: failed program was:" >&5
  20985. sed 's/^/| /' conftest.$ac_ext >&5
  20986. eval "$as_ac_var=no"
  20987. fi
  20988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20989. conftest$ac_exeext conftest.$ac_ext
  20990. fi
  20991. ac_res=`eval echo '${'$as_ac_var'}'`
  20992. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20993. echo "${ECHO_T}$ac_res" >&6; }
  20994. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20995. cat >>confdefs.h <<_ACEOF
  20996. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20997. _ACEOF
  20998. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  20999. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  21000. if test "${ac_cv_func__doprnt+set}" = set; then
  21001. echo $ECHO_N "(cached) $ECHO_C" >&6
  21002. else
  21003. cat >conftest.$ac_ext <<_ACEOF
  21004. /* confdefs.h. */
  21005. _ACEOF
  21006. cat confdefs.h >>conftest.$ac_ext
  21007. cat >>conftest.$ac_ext <<_ACEOF
  21008. /* end confdefs.h. */
  21009. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21010. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21011. #define _doprnt innocuous__doprnt
  21012. /* System header to define __stub macros and hopefully few prototypes,
  21013. which can conflict with char _doprnt (); below.
  21014. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21015. <limits.h> exists even on freestanding compilers. */
  21016. #ifdef __STDC__
  21017. # include <limits.h>
  21018. #else
  21019. # include <assert.h>
  21020. #endif
  21021. #undef _doprnt
  21022. /* Override any GCC internal prototype to avoid an error.
  21023. Use char because int might match the return type of a GCC
  21024. builtin and then its argument prototype would still apply. */
  21025. #ifdef __cplusplus
  21026. extern "C"
  21027. #endif
  21028. char _doprnt ();
  21029. /* The GNU C library defines this for functions which it implements
  21030. to always fail with ENOSYS. Some functions are actually named
  21031. something starting with __ and the normal name is an alias. */
  21032. #if defined __stub__doprnt || defined __stub____doprnt
  21033. choke me
  21034. #endif
  21035. int
  21036. main ()
  21037. {
  21038. return _doprnt ();
  21039. ;
  21040. return 0;
  21041. }
  21042. _ACEOF
  21043. rm -f conftest.$ac_objext conftest$ac_exeext
  21044. if { (ac_try="$ac_link"
  21045. case "(($ac_try" in
  21046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21047. *) ac_try_echo=$ac_try;;
  21048. esac
  21049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21050. (eval "$ac_link") 2>conftest.er1
  21051. ac_status=$?
  21052. grep -v '^ *+' conftest.er1 >conftest.err
  21053. rm -f conftest.er1
  21054. cat conftest.err >&5
  21055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21056. (exit $ac_status); } && {
  21057. test -z "$ac_c_werror_flag" ||
  21058. test ! -s conftest.err
  21059. } && test -s conftest$ac_exeext &&
  21060. $as_test_x conftest$ac_exeext; then
  21061. ac_cv_func__doprnt=yes
  21062. else
  21063. echo "$as_me: failed program was:" >&5
  21064. sed 's/^/| /' conftest.$ac_ext >&5
  21065. ac_cv_func__doprnt=no
  21066. fi
  21067. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21068. conftest$ac_exeext conftest.$ac_ext
  21069. fi
  21070. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21071. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  21072. if test $ac_cv_func__doprnt = yes; then
  21073. cat >>confdefs.h <<\_ACEOF
  21074. #define HAVE_DOPRNT 1
  21075. _ACEOF
  21076. fi
  21077. fi
  21078. done
  21079. 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
  21080. do
  21081. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21082. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21083. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21084. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21085. echo $ECHO_N "(cached) $ECHO_C" >&6
  21086. else
  21087. cat >conftest.$ac_ext <<_ACEOF
  21088. /* confdefs.h. */
  21089. _ACEOF
  21090. cat confdefs.h >>conftest.$ac_ext
  21091. cat >>conftest.$ac_ext <<_ACEOF
  21092. /* end confdefs.h. */
  21093. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21094. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21095. #define $ac_func innocuous_$ac_func
  21096. /* System header to define __stub macros and hopefully few prototypes,
  21097. which can conflict with char $ac_func (); below.
  21098. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21099. <limits.h> exists even on freestanding compilers. */
  21100. #ifdef __STDC__
  21101. # include <limits.h>
  21102. #else
  21103. # include <assert.h>
  21104. #endif
  21105. #undef $ac_func
  21106. /* Override any GCC internal prototype to avoid an error.
  21107. Use char because int might match the return type of a GCC
  21108. builtin and then its argument prototype would still apply. */
  21109. #ifdef __cplusplus
  21110. extern "C"
  21111. #endif
  21112. char $ac_func ();
  21113. /* The GNU C library defines this for functions which it implements
  21114. to always fail with ENOSYS. Some functions are actually named
  21115. something starting with __ and the normal name is an alias. */
  21116. #if defined __stub_$ac_func || defined __stub___$ac_func
  21117. choke me
  21118. #endif
  21119. int
  21120. main ()
  21121. {
  21122. return $ac_func ();
  21123. ;
  21124. return 0;
  21125. }
  21126. _ACEOF
  21127. rm -f conftest.$ac_objext conftest$ac_exeext
  21128. if { (ac_try="$ac_link"
  21129. case "(($ac_try" in
  21130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21131. *) ac_try_echo=$ac_try;;
  21132. esac
  21133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21134. (eval "$ac_link") 2>conftest.er1
  21135. ac_status=$?
  21136. grep -v '^ *+' conftest.er1 >conftest.err
  21137. rm -f conftest.er1
  21138. cat conftest.err >&5
  21139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21140. (exit $ac_status); } && {
  21141. test -z "$ac_c_werror_flag" ||
  21142. test ! -s conftest.err
  21143. } && test -s conftest$ac_exeext &&
  21144. $as_test_x conftest$ac_exeext; then
  21145. eval "$as_ac_var=yes"
  21146. else
  21147. echo "$as_me: failed program was:" >&5
  21148. sed 's/^/| /' conftest.$ac_ext >&5
  21149. eval "$as_ac_var=no"
  21150. fi
  21151. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21152. conftest$ac_exeext conftest.$ac_ext
  21153. fi
  21154. ac_res=`eval echo '${'$as_ac_var'}'`
  21155. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21156. echo "${ECHO_T}$ac_res" >&6; }
  21157. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21158. cat >>confdefs.h <<_ACEOF
  21159. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21160. _ACEOF
  21161. fi
  21162. done
  21163. { echo "$as_me:$LINENO: checking for --enable-debug" >&5
  21164. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
  21165. # Check whether --enable-debug was given.
  21166. if test "${enable_debug+set}" = set; then
  21167. enableval=$enable_debug;
  21168. { echo "$as_me:$LINENO: result: yes" >&5
  21169. echo "${ECHO_T}yes" >&6; }
  21170. debug_defs="-DDEBUG -DMCC_DEBUG"
  21171. else
  21172. { echo "$as_me:$LINENO: result: no" >&5
  21173. echo "${ECHO_T}no" >&6; }
  21174. debug_defs=""
  21175. fi
  21176. # Used for legacy style packaging where we bundle all of the dependencies.
  21177. { echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  21178. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6; }
  21179. # Check whether --enable-bundle was given.
  21180. if test "${enable_bundle+set}" = set; then
  21181. enableval=$enable_bundle;
  21182. { echo "$as_me:$LINENO: result: yes" >&5
  21183. echo "${ECHO_T}yes" >&6; }
  21184. bundle="1";
  21185. else
  21186. { echo "$as_me:$LINENO: result: no" >&5
  21187. echo "${ECHO_T}no" >&6; }
  21188. bundle="";
  21189. fi
  21190. if test "$bundle" = "1"; then
  21191. BUNDLE_TRUE=
  21192. BUNDLE_FALSE='#'
  21193. else
  21194. BUNDLE_TRUE='#'
  21195. BUNDLE_FALSE=
  21196. fi
  21197. # these enables are for optional or experimental features
  21198. if test -z "$enable_pam_passthru" ; then
  21199. enable_pam_passthru=yes # if not set on cmdline, set default
  21200. fi
  21201. { echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  21202. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6; }
  21203. # Check whether --enable-pam-passthru was given.
  21204. if test "${enable_pam_passthru+set}" = set; then
  21205. enableval=$enable_pam_passthru;
  21206. fi
  21207. if test "$enable_pam_passthru" = yes ; then
  21208. { echo "$as_me:$LINENO: result: yes" >&5
  21209. echo "${ECHO_T}yes" >&6; }
  21210. cat >>confdefs.h <<\_ACEOF
  21211. #define ENABLE_PAM_PASSTHRU 1
  21212. _ACEOF
  21213. else
  21214. { echo "$as_me:$LINENO: result: no" >&5
  21215. echo "${ECHO_T}no" >&6; }
  21216. fi
  21217. if test "$enable_pam_passthru" = "yes"; then
  21218. enable_pam_passthru_TRUE=
  21219. enable_pam_passthru_FALSE='#'
  21220. else
  21221. enable_pam_passthru_TRUE='#'
  21222. enable_pam_passthru_FALSE=
  21223. fi
  21224. if test -z "$enable_dna" ; then
  21225. enable_dna=yes # if not set on cmdline, set default
  21226. fi
  21227. { echo "$as_me:$LINENO: checking for --enable-dna" >&5
  21228. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6; }
  21229. # Check whether --enable-dna was given.
  21230. if test "${enable_dna+set}" = set; then
  21231. enableval=$enable_dna;
  21232. fi
  21233. if test "$enable_dna" = yes ; then
  21234. { echo "$as_me:$LINENO: result: yes" >&5
  21235. echo "${ECHO_T}yes" >&6; }
  21236. cat >>confdefs.h <<\_ACEOF
  21237. #define ENABLE_DNA 1
  21238. _ACEOF
  21239. else
  21240. { echo "$as_me:$LINENO: result: no" >&5
  21241. echo "${ECHO_T}no" >&6; }
  21242. fi
  21243. if test "$enable_dna" = "yes"; then
  21244. enable_dna_TRUE=
  21245. enable_dna_FALSE='#'
  21246. else
  21247. enable_dna_TRUE='#'
  21248. enable_dna_FALSE=
  21249. fi
  21250. if test -z "$enable_ldapi" ; then
  21251. enable_ldapi=yes # if not set on cmdline, set default
  21252. fi
  21253. { echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  21254. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6; }
  21255. # Check whether --enable-ldapi was given.
  21256. if test "${enable_ldapi+set}" = set; then
  21257. enableval=$enable_ldapi;
  21258. fi
  21259. if test "$enable_ldapi" = yes ; then
  21260. { echo "$as_me:$LINENO: result: yes" >&5
  21261. echo "${ECHO_T}yes" >&6; }
  21262. cat >>confdefs.h <<\_ACEOF
  21263. #define ENABLE_LDAPI 1
  21264. _ACEOF
  21265. else
  21266. { echo "$as_me:$LINENO: result: no" >&5
  21267. echo "${ECHO_T}no" >&6; }
  21268. fi
  21269. if test "$enable_ldapi" = "yes"; then
  21270. enable_ldapi_TRUE=
  21271. enable_ldapi_FALSE='#'
  21272. else
  21273. enable_ldapi_TRUE='#'
  21274. enable_ldapi_FALSE=
  21275. fi
  21276. if test -z "$enable_autobind" ; then
  21277. enable_autobind=no # if not set on cmdline, set default
  21278. fi
  21279. { echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  21280. echo $ECHO_N "checking for --enable-autobind... $ECHO_C" >&6; }
  21281. # Check whether --enable-autobind was given.
  21282. if test "${enable_autobind+set}" = set; then
  21283. enableval=$enable_autobind;
  21284. fi
  21285. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  21286. { echo "$as_me:$LINENO: result: yes" >&5
  21287. echo "${ECHO_T}yes" >&6; }
  21288. cat >>confdefs.h <<\_ACEOF
  21289. #define ENABLE_AUTOBIND 1
  21290. _ACEOF
  21291. else
  21292. { echo "$as_me:$LINENO: result: no" >&5
  21293. echo "${ECHO_T}no" >&6; }
  21294. fi
  21295. if test "$enable_autobind" = "yes"; then
  21296. enable_autobind_TRUE=
  21297. enable_autobind_FALSE='#'
  21298. else
  21299. enable_autobind_TRUE='#'
  21300. enable_autobind_FALSE=
  21301. fi
  21302. if test -z "$enable_auto_dn_suffix" ; then
  21303. enable_auto_dn_suffix=no # if not set on cmdline, set default
  21304. fi
  21305. { echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  21306. echo $ECHO_N "checking for --enable-auto-dn-suffix... $ECHO_C" >&6; }
  21307. # Check whether --enable-autobind was given.
  21308. if test "${enable_autobind+set}" = set; then
  21309. enableval=$enable_autobind;
  21310. fi
  21311. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  21312. { echo "$as_me:$LINENO: result: yes" >&5
  21313. echo "${ECHO_T}yes" >&6; }
  21314. cat >>confdefs.h <<\_ACEOF
  21315. #define ENABLE_AUTO_DN_SUFFIX 1
  21316. _ACEOF
  21317. else
  21318. { echo "$as_me:$LINENO: result: no" >&5
  21319. echo "${ECHO_T}no" >&6; }
  21320. fi
  21321. if test "$enable_auto_dn_suffix" = "yes"; then
  21322. enable_auto_dn_suffix_TRUE=
  21323. enable_auto_dn_suffix_FALSE='#'
  21324. else
  21325. enable_auto_dn_suffix_TRUE='#'
  21326. enable_auto_dn_suffix_FALSE=
  21327. fi
  21328. if test -z "$enable_bitwise" ; then
  21329. enable_bitwise=yes # if not set on cmdline, set default
  21330. fi
  21331. { echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  21332. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6; }
  21333. # Check whether --enable-bitwise was given.
  21334. if test "${enable_bitwise+set}" = set; then
  21335. enableval=$enable_bitwise;
  21336. fi
  21337. if test "$enable_bitwise" = yes ; then
  21338. { echo "$as_me:$LINENO: result: yes" >&5
  21339. echo "${ECHO_T}yes" >&6; }
  21340. cat >>confdefs.h <<\_ACEOF
  21341. #define ENABLE_BITWISE 1
  21342. _ACEOF
  21343. else
  21344. { echo "$as_me:$LINENO: result: no" >&5
  21345. echo "${ECHO_T}no" >&6; }
  21346. fi
  21347. if test "$enable_bitwise" = "yes"; then
  21348. enable_bitwise_TRUE=
  21349. enable_bitwise_FALSE='#'
  21350. else
  21351. enable_bitwise_TRUE='#'
  21352. enable_bitwise_FALSE=
  21353. fi
  21354. if test -z "$enable_presence" ; then
  21355. enable_presence=no # if not set on cmdline, set default
  21356. fi
  21357. { echo "$as_me:$LINENO: checking for --enable-presence" >&5
  21358. echo $ECHO_N "checking for --enable-presence... $ECHO_C" >&6; }
  21359. # Check whether --enable-presence was given.
  21360. if test "${enable_presence+set}" = set; then
  21361. enableval=$enable_presence;
  21362. fi
  21363. if test "$enable_presence" = yes ; then
  21364. { echo "$as_me:$LINENO: result: yes" >&5
  21365. echo "${ECHO_T}yes" >&6; }
  21366. cat >>confdefs.h <<\_ACEOF
  21367. #define ENABLE_PRESENCE 1
  21368. _ACEOF
  21369. else
  21370. { echo "$as_me:$LINENO: result: no" >&5
  21371. echo "${ECHO_T}no" >&6; }
  21372. fi
  21373. if test "$enable_presence" = "yes"; then
  21374. enable_presence_TRUE=
  21375. enable_presence_FALSE='#'
  21376. else
  21377. enable_presence_TRUE='#'
  21378. enable_presence_FALSE=
  21379. fi
  21380. # the default prefix - override with --prefix or --with-fhs
  21381. brand=389
  21382. capbrand=389
  21383. vendor="389 Project"
  21384. # BEGIN COPYRIGHT BLOCK
  21385. # Copyright (C) 2006 Red Hat, Inc.
  21386. # All rights reserved.
  21387. #
  21388. # This program is free software; you can redistribute it and/or
  21389. # modify it under the terms of the GNU General Public License
  21390. # as published by the Free Software Foundation; either version 2
  21391. # of the License, or (at your option) any later version.
  21392. #
  21393. # This program is distributed in the hope that it will be useful,
  21394. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21395. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21396. # GNU General Public License for more details.
  21397. #
  21398. # You should have received a copy of the GNU General Public License
  21399. # along with this program; if not, write to the Free Software
  21400. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21401. #
  21402. # END COPYRIGHT BLOCK
  21403. { echo "$as_me:$LINENO: checking for FHS..." >&5
  21404. echo "$as_me: checking for FHS..." >&6;}
  21405. # check for --with-fhs
  21406. { echo "$as_me:$LINENO: checking for --with-fhs" >&5
  21407. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6; }
  21408. # Check whether --with-fhs was given.
  21409. if test "${with_fhs+set}" = set; then
  21410. withval=$with_fhs;
  21411. with_fhs=yes
  21412. { echo "$as_me:$LINENO: result: yes" >&5
  21413. echo "${ECHO_T}yes" >&6; }
  21414. else
  21415. { echo "$as_me:$LINENO: result: no" >&5
  21416. echo "${ECHO_T}no" >&6; }
  21417. fi
  21418. if test "$with_fhs" = "yes"; then
  21419. cat >>confdefs.h <<\_ACEOF
  21420. #define IS_FHS 1
  21421. _ACEOF
  21422. fi
  21423. # check for --with-fhs-opt
  21424. { echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  21425. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6; }
  21426. # Check whether --with-fhs-opt was given.
  21427. if test "${with_fhs_opt+set}" = set; then
  21428. withval=$with_fhs_opt;
  21429. with_fhs_opt=yes
  21430. { echo "$as_me:$LINENO: result: yes" >&5
  21431. echo "${ECHO_T}yes" >&6; }
  21432. else
  21433. { echo "$as_me:$LINENO: result: no" >&5
  21434. echo "${ECHO_T}no" >&6; }
  21435. fi
  21436. if test "$with_fhs_opt" = "yes"; then
  21437. cat >>confdefs.h <<\_ACEOF
  21438. #define IS_FHS_OPT 1
  21439. _ACEOF
  21440. fi
  21441. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  21442. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  21443. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  21444. { (exit 1); exit 1; }; }
  21445. fi
  21446. # installation paths - by default, we store everything
  21447. # under the prefix. The with-fhs option will use /usr,
  21448. # /etc, and /var. The with-fhs-opt option will use the
  21449. # prefix, but it's sysconfdir and localstatedir will be
  21450. # /etc/opt, and /var/opt.
  21451. if test "$with_fhs_opt" = "yes"; then
  21452. # Override sysconfdir and localstatedir if FHS optional
  21453. # package was requested.
  21454. sysconfdir='/etc/opt'
  21455. localstatedir='/var/opt'
  21456. # relative to datadir
  21457. sampledatadir=/data
  21458. # relative to datadir
  21459. scripttemplatedir=/script-templates
  21460. # relative to libdir
  21461. serverdir=
  21462. # relative to libdir
  21463. serverplugindir=/plugins
  21464. # relative to datadir
  21465. infdir=/inf
  21466. # relative to datadir
  21467. mibdir=/mibs
  21468. # location of property/resource files, relative to datadir
  21469. propertydir=/properties
  21470. # relative to libdir
  21471. perldir=/perl
  21472. else
  21473. if test "$with_fhs" = "yes"; then
  21474. ac_default_prefix=/usr
  21475. prefix=$ac_default_prefix
  21476. exec_prefix=$prefix
  21477. sysconfdir='/etc'
  21478. localstatedir='/var'
  21479. fi
  21480. # relative to datadir
  21481. sampledatadir=/$PACKAGE_NAME/data
  21482. # relative to datadir
  21483. scripttemplatedir=/$PACKAGE_NAME/script-templates
  21484. # relative to libdir
  21485. serverdir=/$PACKAGE_NAME
  21486. # relative to libdir
  21487. serverplugindir=/$PACKAGE_NAME/plugins
  21488. # relative to datadir
  21489. infdir=/$PACKAGE_NAME/inf
  21490. # relative to datadir
  21491. mibdir=/$PACKAGE_NAME/mibs
  21492. # location of property/resource files, relative to datadir
  21493. propertydir=/$PACKAGE_NAME/properties
  21494. # relative to libdir
  21495. perldir=/$PACKAGE_NAME/perl
  21496. fi
  21497. # if mandir is the default value, override it
  21498. # otherwise, the user must have set it - just use it
  21499. if test X"$mandir" = X'${prefix}/man' ; then
  21500. mandir='$(datadir)/man'
  21501. fi
  21502. # Shared paths for all layouts
  21503. # relative to sysconfdir
  21504. configdir=/$PACKAGE_NAME/config
  21505. # relative to sysconfdir
  21506. schemadir=/$PACKAGE_NAME/schema
  21507. # default user, group
  21508. defaultuser=nobody
  21509. defaultgroup=nobody
  21510. # check for --with-instconfigdir
  21511. { echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  21512. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6; }
  21513. # Check whether --with-instconfigdir was given.
  21514. if test "${with_instconfigdir+set}" = set; then
  21515. withval=$with_instconfigdir;
  21516. if test $withval = yes ; then
  21517. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  21518. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  21519. { (exit 1); exit 1; }; }
  21520. fi
  21521. instconfigdir="$withval"
  21522. { echo "$as_me:$LINENO: result: $withval" >&5
  21523. echo "${ECHO_T}$withval" >&6; }
  21524. else
  21525. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  21526. { echo "$as_me:$LINENO: result: no" >&5
  21527. echo "${ECHO_T}no" >&6; }
  21528. fi
  21529. # WINNT should be true if building on Windows system not using
  21530. # cygnus, mingw, or the like and using cmd.exe as the shell
  21531. if false; then
  21532. WINNT_TRUE=
  21533. WINNT_FALSE='#'
  21534. else
  21535. WINNT_TRUE='#'
  21536. WINNT_FALSE=
  21537. fi
  21538. # Deal with platform dependent defines
  21539. # relative to sysconfdir
  21540. initdir=/rc.d
  21541. # on most platforms, we will just use perl from PATH
  21542. # On some platforms, we cannot. Why not just use any old
  21543. # perl? Because of perldap. We use a perldap that is
  21544. # compiled to either 32bit or 64bit, so we must use a native
  21545. # perl binary compiled with the same bitsize. On Solaris
  21546. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  21547. # those with our 64 bit compiled product.
  21548. perlexec='/usr/bin/env perl'
  21549. case $host in
  21550. *-*-linux*)
  21551. cat >>confdefs.h <<\_ACEOF
  21552. #define XP_UNIX 1
  21553. _ACEOF
  21554. cat >>confdefs.h <<\_ACEOF
  21555. #define Linux 1
  21556. _ACEOF
  21557. cat >>confdefs.h <<\_ACEOF
  21558. #define LINUX 1
  21559. _ACEOF
  21560. cat >>confdefs.h <<\_ACEOF
  21561. #define LINUX2_0 1
  21562. _ACEOF
  21563. cat >>confdefs.h <<\_ACEOF
  21564. #define LINUX2_2 1
  21565. _ACEOF
  21566. cat >>confdefs.h <<\_ACEOF
  21567. #define LINUX2_4 1
  21568. _ACEOF
  21569. cat >>confdefs.h <<\_ACEOF
  21570. #define _GNU_SOURCE 1
  21571. _ACEOF
  21572. platform="linux"
  21573. # relative to sysconfdir
  21574. initdir=/rc.d/init.d
  21575. # do arch specific linux stuff here
  21576. case $host in
  21577. i*86-*-linux*)
  21578. cat >>confdefs.h <<\_ACEOF
  21579. #define CPU_x86
  21580. _ACEOF
  21581. cat >>confdefs.h <<\_ACEOF
  21582. #define ATOMIC_64BIT_OPERATIONS 1
  21583. _ACEOF
  21584. { echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  21585. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6; }
  21586. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  21587. echo $ECHO_N "(cached) $ECHO_C" >&6
  21588. else
  21589. cat >conftest.$ac_ext <<_ACEOF
  21590. /* confdefs.h. */
  21591. _ACEOF
  21592. cat confdefs.h >>conftest.$ac_ext
  21593. cat >>conftest.$ac_ext <<_ACEOF
  21594. /* end confdefs.h. */
  21595. $ac_includes_default
  21596. int
  21597. main ()
  21598. {
  21599. #ifndef __sync_add_and_fetch
  21600. (void) __sync_add_and_fetch;
  21601. #endif
  21602. ;
  21603. return 0;
  21604. }
  21605. _ACEOF
  21606. rm -f conftest.$ac_objext
  21607. if { (ac_try="$ac_compile"
  21608. case "(($ac_try" in
  21609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21610. *) ac_try_echo=$ac_try;;
  21611. esac
  21612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21613. (eval "$ac_compile") 2>conftest.er1
  21614. ac_status=$?
  21615. grep -v '^ *+' conftest.er1 >conftest.err
  21616. rm -f conftest.er1
  21617. cat conftest.err >&5
  21618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21619. (exit $ac_status); } && {
  21620. test -z "$ac_c_werror_flag" ||
  21621. test ! -s conftest.err
  21622. } && test -s conftest.$ac_objext; then
  21623. ac_cv_have_decl___sync_add_and_fetch=yes
  21624. else
  21625. echo "$as_me: failed program was:" >&5
  21626. sed 's/^/| /' conftest.$ac_ext >&5
  21627. ac_cv_have_decl___sync_add_and_fetch=no
  21628. fi
  21629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21630. fi
  21631. { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21632. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6; }
  21633. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21634. cat >>confdefs.h <<_ACEOF
  21635. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21636. _ACEOF
  21637. else
  21638. cat >>confdefs.h <<_ACEOF
  21639. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21640. _ACEOF
  21641. fi
  21642. ;;
  21643. x86_64-*-linux*)
  21644. cat >>confdefs.h <<\_ACEOF
  21645. #define CPU_x86_64
  21646. _ACEOF
  21647. cat >>confdefs.h <<\_ACEOF
  21648. #define ATOMIC_64BIT_OPERATIONS 1
  21649. _ACEOF
  21650. { echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  21651. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6; }
  21652. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  21653. echo $ECHO_N "(cached) $ECHO_C" >&6
  21654. else
  21655. cat >conftest.$ac_ext <<_ACEOF
  21656. /* confdefs.h. */
  21657. _ACEOF
  21658. cat confdefs.h >>conftest.$ac_ext
  21659. cat >>conftest.$ac_ext <<_ACEOF
  21660. /* end confdefs.h. */
  21661. $ac_includes_default
  21662. int
  21663. main ()
  21664. {
  21665. #ifndef __sync_add_and_fetch
  21666. (void) __sync_add_and_fetch;
  21667. #endif
  21668. ;
  21669. return 0;
  21670. }
  21671. _ACEOF
  21672. rm -f conftest.$ac_objext
  21673. if { (ac_try="$ac_compile"
  21674. case "(($ac_try" in
  21675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21676. *) ac_try_echo=$ac_try;;
  21677. esac
  21678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21679. (eval "$ac_compile") 2>conftest.er1
  21680. ac_status=$?
  21681. grep -v '^ *+' conftest.er1 >conftest.err
  21682. rm -f conftest.er1
  21683. cat conftest.err >&5
  21684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21685. (exit $ac_status); } && {
  21686. test -z "$ac_c_werror_flag" ||
  21687. test ! -s conftest.err
  21688. } && test -s conftest.$ac_objext; then
  21689. ac_cv_have_decl___sync_add_and_fetch=yes
  21690. else
  21691. echo "$as_me: failed program was:" >&5
  21692. sed 's/^/| /' conftest.$ac_ext >&5
  21693. ac_cv_have_decl___sync_add_and_fetch=no
  21694. fi
  21695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21696. fi
  21697. { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21698. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6; }
  21699. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21700. cat >>confdefs.h <<_ACEOF
  21701. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21702. _ACEOF
  21703. else
  21704. cat >>confdefs.h <<_ACEOF
  21705. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21706. _ACEOF
  21707. fi
  21708. ;;
  21709. esac
  21710. ;;
  21711. ia64-hp-hpux*)
  21712. cat >>confdefs.h <<\_ACEOF
  21713. #define XP_UNIX 1
  21714. _ACEOF
  21715. cat >>confdefs.h <<\_ACEOF
  21716. #define hpux 1
  21717. _ACEOF
  21718. cat >>confdefs.h <<\_ACEOF
  21719. #define HPUX 1
  21720. _ACEOF
  21721. cat >>confdefs.h <<\_ACEOF
  21722. #define HPUX11 1
  21723. _ACEOF
  21724. cat >>confdefs.h <<\_ACEOF
  21725. #define HPUX11_23 1
  21726. _ACEOF
  21727. cat >>confdefs.h <<\_ACEOF
  21728. #define CPU_ia64
  21729. _ACEOF
  21730. cat >>confdefs.h <<\_ACEOF
  21731. #define OS_hpux 1
  21732. _ACEOF
  21733. cat >>confdefs.h <<\_ACEOF
  21734. #define _POSIX_C_SOURCE 199506L
  21735. _ACEOF
  21736. cat >>confdefs.h <<\_ACEOF
  21737. #define _HPUX_SOURCE 1
  21738. _ACEOF
  21739. cat >>confdefs.h <<\_ACEOF
  21740. #define _INCLUDE_STDC__SOURCE_199901 1
  21741. _ACEOF
  21742. cat >>confdefs.h <<\_ACEOF
  21743. #define ATOMIC_64BIT_OPERATIONS 1
  21744. _ACEOF
  21745. # assume 64 bit
  21746. perlexec='/opt/perl_64/bin/perl'
  21747. platform="hpux"
  21748. initconfigdir="/$PACKAGE_NAME/config"
  21749. ;;
  21750. hppa*-hp-hpux*)
  21751. cat >>confdefs.h <<\_ACEOF
  21752. #define XP_UNIX 1
  21753. _ACEOF
  21754. cat >>confdefs.h <<\_ACEOF
  21755. #define hpux 1
  21756. _ACEOF
  21757. cat >>confdefs.h <<\_ACEOF
  21758. #define HPUX 1
  21759. _ACEOF
  21760. cat >>confdefs.h <<\_ACEOF
  21761. #define HPUX11 1
  21762. _ACEOF
  21763. cat >>confdefs.h <<\_ACEOF
  21764. #define HPUX11_11 1
  21765. _ACEOF
  21766. cat >>confdefs.h <<\_ACEOF
  21767. #define CPU_hppa
  21768. _ACEOF
  21769. cat >>confdefs.h <<\_ACEOF
  21770. #define OS_hpux 1
  21771. _ACEOF
  21772. cat >>confdefs.h <<\_ACEOF
  21773. #define _POSIX_C_SOURCE 199506L
  21774. _ACEOF
  21775. cat >>confdefs.h <<\_ACEOF
  21776. #define _HPUX_SOURCE 1
  21777. _ACEOF
  21778. cat >>confdefs.h <<\_ACEOF
  21779. #define _INCLUDE_STDC__SOURCE_199901 1
  21780. _ACEOF
  21781. cat >>confdefs.h <<\_ACEOF
  21782. #define ATOMIC_64BIT_OPERATIONS 1
  21783. _ACEOF
  21784. # assume 64 bit
  21785. initconfigdir="/$PACKAGE_NAME/config"
  21786. perlexec='/opt/perl_64/bin/perl'
  21787. platform="hpux"
  21788. ;;
  21789. sparc-sun-solaris*)
  21790. cat >>confdefs.h <<\_ACEOF
  21791. #define XP_UNIX 1
  21792. _ACEOF
  21793. cat >>confdefs.h <<\_ACEOF
  21794. #define SVR4 1
  21795. _ACEOF
  21796. cat >>confdefs.h <<\_ACEOF
  21797. #define __svr4 1
  21798. _ACEOF
  21799. cat >>confdefs.h <<\_ACEOF
  21800. #define __svr4__ 1
  21801. _ACEOF
  21802. cat >>confdefs.h <<\_ACEOF
  21803. #define _SVID_GETTOD 1
  21804. _ACEOF
  21805. cat >>confdefs.h <<\_ACEOF
  21806. #define SOLARIS 1
  21807. _ACEOF
  21808. cat >>confdefs.h <<\_ACEOF
  21809. #define CPU_sparc
  21810. _ACEOF
  21811. cat >>confdefs.h <<\_ACEOF
  21812. #define OS_solaris 1
  21813. _ACEOF
  21814. cat >>confdefs.h <<\_ACEOF
  21815. #define sunos5 1
  21816. _ACEOF
  21817. cat >>confdefs.h <<\_ACEOF
  21818. #define OSVERSION 509
  21819. _ACEOF
  21820. cat >>confdefs.h <<\_ACEOF
  21821. #define _REENTRANT 1
  21822. _ACEOF
  21823. cat >>confdefs.h <<\_ACEOF
  21824. #define NO_DOMAINNAME 1
  21825. _ACEOF
  21826. cat >>confdefs.h <<\_ACEOF
  21827. #define ATOMIC_64BIT_OPERATIONS 1
  21828. _ACEOF
  21829. LIBSOCKET=-lsocket
  21830. LIBSOCKET=$LIBSOCKET
  21831. LIBNSL=-lnsl
  21832. LIBNSL=$LIBNSL
  21833. LIBDL=-ldl
  21834. LIBDL=$LIBDL
  21835. LIBCSTD=-lCstd
  21836. LIBCSTD=$LIBCSTD
  21837. LIBCRUN=-lCrun
  21838. LIBCRUN=$LIBCRUN
  21839. platform="solaris"
  21840. # assume 64 bit
  21841. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  21842. # relative to sysconfdir
  21843. initdir=/init.d
  21844. ;;
  21845. *)
  21846. platform=""
  21847. ;;
  21848. esac
  21849. # set default initconfigdir if not already set
  21850. # value will be set so as to be relative to $(sysconfdir)
  21851. if test -z "$initconfigdir" ; then
  21852. if test -d /etc/sysconfig ; then
  21853. initconfigdir=/sysconfig
  21854. elif test -d /etc/default ; then
  21855. initconfigdir=/default
  21856. else
  21857. initconfigdir="/$PACKAGE_NAME/config"
  21858. fi
  21859. fi
  21860. if test "$platform" = "hpux"; then
  21861. HPUX_TRUE=
  21862. HPUX_FALSE='#'
  21863. else
  21864. HPUX_TRUE='#'
  21865. HPUX_FALSE=
  21866. fi
  21867. if test "$platform" = "solaris"; then
  21868. SOLARIS_TRUE=
  21869. SOLARIS_FALSE='#'
  21870. else
  21871. SOLARIS_TRUE='#'
  21872. SOLARIS_FALSE=
  21873. fi
  21874. # Check for library dependencies
  21875. # BEGIN COPYRIGHT BLOCK
  21876. # Copyright (C) 2007 Red Hat, Inc.
  21877. # All rights reserved.
  21878. #
  21879. # This program is free software; you can redistribute it and/or
  21880. # modify it under the terms of the GNU General Public License
  21881. # as published by the Free Software Foundation; either version 2
  21882. # of the License, or (at your option) any later version.
  21883. #
  21884. # This program is distributed in the hope that it will be useful,
  21885. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21886. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21887. # GNU General Public License for more details.
  21888. #
  21889. # You should have received a copy of the GNU General Public License
  21890. # along with this program; if not, write to the Free Software
  21891. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21892. #
  21893. # END COPYRIGHT BLOCK
  21894. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  21895. echo "$as_me: checking for NSPR..." >&6;}
  21896. # check for --with-nspr
  21897. { echo "$as_me:$LINENO: checking for --with-nspr" >&5
  21898. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6; }
  21899. # Check whether --with-nspr was given.
  21900. if test "${with_nspr+set}" = set; then
  21901. withval=$with_nspr;
  21902. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  21903. then
  21904. { echo "$as_me:$LINENO: result: using $withval" >&5
  21905. echo "${ECHO_T}using $withval" >&6; }
  21906. NSPRDIR=$withval
  21907. nspr_inc="-I$NSPRDIR/include"
  21908. nspr_lib="-L$NSPRDIR/lib"
  21909. nspr_libdir="$NSPRDIR/lib"
  21910. else
  21911. echo
  21912. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21913. echo "$as_me: error: $withval not found" >&2;}
  21914. { (exit 1); exit 1; }; }
  21915. fi
  21916. else
  21917. { echo "$as_me:$LINENO: result: no" >&5
  21918. echo "${ECHO_T}no" >&6; }
  21919. fi
  21920. # check for --with-nspr-inc
  21921. { echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  21922. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6; }
  21923. # Check whether --with-nspr-inc was given.
  21924. if test "${with_nspr_inc+set}" = set; then
  21925. withval=$with_nspr_inc;
  21926. if test -e "$withval"/nspr.h
  21927. then
  21928. { echo "$as_me:$LINENO: result: using $withval" >&5
  21929. echo "${ECHO_T}using $withval" >&6; }
  21930. nspr_inc="-I$withval"
  21931. else
  21932. echo
  21933. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21934. echo "$as_me: error: $withval not found" >&2;}
  21935. { (exit 1); exit 1; }; }
  21936. fi
  21937. else
  21938. { echo "$as_me:$LINENO: result: no" >&5
  21939. echo "${ECHO_T}no" >&6; }
  21940. fi
  21941. # check for --with-nspr-lib
  21942. { echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  21943. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6; }
  21944. # Check whether --with-nspr-lib was given.
  21945. if test "${with_nspr_lib+set}" = set; then
  21946. withval=$with_nspr_lib;
  21947. if test -d "$withval"
  21948. then
  21949. { echo "$as_me:$LINENO: result: using $withval" >&5
  21950. echo "${ECHO_T}using $withval" >&6; }
  21951. nspr_lib="-L$withval"
  21952. nspr_libdir="$withval"
  21953. else
  21954. echo
  21955. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21956. echo "$as_me: error: $withval not found" >&2;}
  21957. { (exit 1); exit 1; }; }
  21958. fi
  21959. else
  21960. { echo "$as_me:$LINENO: result: no" >&5
  21961. echo "${ECHO_T}no" >&6; }
  21962. fi
  21963. # if NSPR is not found yet, try pkg-config
  21964. # last resort
  21965. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21966. # Extract the first word of "pkg-config", so it can be a program name with args.
  21967. set dummy pkg-config; ac_word=$2
  21968. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  21969. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21970. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21971. echo $ECHO_N "(cached) $ECHO_C" >&6
  21972. else
  21973. case $PKG_CONFIG in
  21974. [\\/]* | ?:[\\/]*)
  21975. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21976. ;;
  21977. *)
  21978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21979. for as_dir in $PATH
  21980. do
  21981. IFS=$as_save_IFS
  21982. test -z "$as_dir" && as_dir=.
  21983. for ac_exec_ext in '' $ac_executable_extensions; do
  21984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21985. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21986. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21987. break 2
  21988. fi
  21989. done
  21990. done
  21991. IFS=$as_save_IFS
  21992. ;;
  21993. esac
  21994. fi
  21995. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21996. if test -n "$PKG_CONFIG"; then
  21997. { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21998. echo "${ECHO_T}$PKG_CONFIG" >&6; }
  21999. else
  22000. { echo "$as_me:$LINENO: result: no" >&5
  22001. echo "${ECHO_T}no" >&6; }
  22002. fi
  22003. { echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  22004. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6; }
  22005. if test -n "$PKG_CONFIG"; then
  22006. if $PKG_CONFIG --exists nspr; then
  22007. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  22008. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  22009. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  22010. { echo "$as_me:$LINENO: result: using system NSPR" >&5
  22011. echo "${ECHO_T}using system NSPR" >&6; }
  22012. elif $PKG_CONFIG --exists dirsec-nspr; then
  22013. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  22014. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  22015. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  22016. { echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  22017. echo "${ECHO_T}using system dirsec NSPR" >&6; }
  22018. else
  22019. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  22020. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  22021. { (exit 1); exit 1; }; }
  22022. fi
  22023. fi
  22024. fi
  22025. # BEGIN COPYRIGHT BLOCK
  22026. # Copyright (C) 2007 Red Hat, Inc.
  22027. # All rights reserved.
  22028. #
  22029. # This program is free software; you can redistribute it and/or
  22030. # modify it under the terms of the GNU General Public License
  22031. # as published by the Free Software Foundation; either version 2
  22032. # of the License, or (at your option) any later version.
  22033. #
  22034. # This program is distributed in the hope that it will be useful,
  22035. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22036. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22037. # GNU General Public License for more details.
  22038. #
  22039. # You should have received a copy of the GNU General Public License
  22040. # along with this program; if not, write to the Free Software
  22041. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22042. #
  22043. # END COPYRIGHT BLOCK
  22044. { echo "$as_me:$LINENO: checking for NSS..." >&5
  22045. echo "$as_me: checking for NSS..." >&6;}
  22046. # check for --with-nss
  22047. { echo "$as_me:$LINENO: checking for --with-nss" >&5
  22048. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6; }
  22049. # Check whether --with-nss was given.
  22050. if test "${with_nss+set}" = set; then
  22051. withval=$with_nss;
  22052. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  22053. then
  22054. { echo "$as_me:$LINENO: result: using $withval" >&5
  22055. echo "${ECHO_T}using $withval" >&6; }
  22056. NSSDIR=$withval
  22057. nss_inc="-I$NSSDIR/include"
  22058. nss_lib="-L$NSSDIR/lib"
  22059. nss_libdir="$NSSDIR/lib"
  22060. else
  22061. echo
  22062. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22063. echo "$as_me: error: $withval not found" >&2;}
  22064. { (exit 1); exit 1; }; }
  22065. fi
  22066. else
  22067. { echo "$as_me:$LINENO: result: no" >&5
  22068. echo "${ECHO_T}no" >&6; }
  22069. fi
  22070. # check for --with-nss-inc
  22071. { echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  22072. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6; }
  22073. # Check whether --with-nss-inc was given.
  22074. if test "${with_nss_inc+set}" = set; then
  22075. withval=$with_nss_inc;
  22076. if test -e "$withval"/nss.h
  22077. then
  22078. { echo "$as_me:$LINENO: result: using $withval" >&5
  22079. echo "${ECHO_T}using $withval" >&6; }
  22080. nss_inc="-I$withval"
  22081. else
  22082. echo
  22083. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22084. echo "$as_me: error: $withval not found" >&2;}
  22085. { (exit 1); exit 1; }; }
  22086. fi
  22087. else
  22088. { echo "$as_me:$LINENO: result: no" >&5
  22089. echo "${ECHO_T}no" >&6; }
  22090. fi
  22091. # check for --with-nss-lib
  22092. { echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  22093. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6; }
  22094. # Check whether --with-nss-lib was given.
  22095. if test "${with_nss_lib+set}" = set; then
  22096. withval=$with_nss_lib;
  22097. if test -d "$withval"
  22098. then
  22099. { echo "$as_me:$LINENO: result: using $withval" >&5
  22100. echo "${ECHO_T}using $withval" >&6; }
  22101. nss_lib="-L$withval"
  22102. nss_libdir="$withval"
  22103. else
  22104. echo
  22105. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22106. echo "$as_me: error: $withval not found" >&2;}
  22107. { (exit 1); exit 1; }; }
  22108. fi
  22109. else
  22110. { echo "$as_me:$LINENO: result: no" >&5
  22111. echo "${ECHO_T}no" >&6; }
  22112. fi
  22113. # if NSS is not found yet, try pkg-config
  22114. # last resort
  22115. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  22116. # Extract the first word of "pkg-config", so it can be a program name with args.
  22117. set dummy pkg-config; ac_word=$2
  22118. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  22119. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22120. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22121. echo $ECHO_N "(cached) $ECHO_C" >&6
  22122. else
  22123. case $PKG_CONFIG in
  22124. [\\/]* | ?:[\\/]*)
  22125. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22126. ;;
  22127. *)
  22128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22129. for as_dir in $PATH
  22130. do
  22131. IFS=$as_save_IFS
  22132. test -z "$as_dir" && as_dir=.
  22133. for ac_exec_ext in '' $ac_executable_extensions; do
  22134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22135. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22136. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22137. break 2
  22138. fi
  22139. done
  22140. done
  22141. IFS=$as_save_IFS
  22142. ;;
  22143. esac
  22144. fi
  22145. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22146. if test -n "$PKG_CONFIG"; then
  22147. { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22148. echo "${ECHO_T}$PKG_CONFIG" >&6; }
  22149. else
  22150. { echo "$as_me:$LINENO: result: no" >&5
  22151. echo "${ECHO_T}no" >&6; }
  22152. fi
  22153. { echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  22154. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6; }
  22155. if test -n "$PKG_CONFIG"; then
  22156. if $PKG_CONFIG --exists nss; then
  22157. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  22158. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  22159. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  22160. { echo "$as_me:$LINENO: result: using system NSS" >&5
  22161. echo "${ECHO_T}using system NSS" >&6; }
  22162. elif $PKG_CONFIG --exists dirsec-nss; then
  22163. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  22164. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  22165. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  22166. { echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  22167. echo "${ECHO_T}using system dirsec NSS" >&6; }
  22168. else
  22169. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  22170. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  22171. { (exit 1); exit 1; }; }
  22172. fi
  22173. fi
  22174. fi
  22175. # BEGIN COPYRIGHT BLOCK
  22176. # Copyright (C) 2007 Red Hat, Inc.
  22177. # All rights reserved.
  22178. #
  22179. # This program is free software; you can redistribute it and/or
  22180. # modify it under the terms of the GNU General Public License
  22181. # as published by the Free Software Foundation; either version 2
  22182. # of the License, or (at your option) any later version.
  22183. #
  22184. # This program is distributed in the hope that it will be useful,
  22185. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22186. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22187. # GNU General Public License for more details.
  22188. #
  22189. # You should have received a copy of the GNU General Public License
  22190. # along with this program; if not, write to the Free Software
  22191. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22192. #
  22193. # END COPYRIGHT BLOCK
  22194. { echo "$as_me:$LINENO: checking for LDAPSDK..." >&5
  22195. echo "$as_me: checking for LDAPSDK..." >&6;}
  22196. # check for --with-ldapsdk
  22197. { echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  22198. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6; }
  22199. # Check whether --with-ldapsdk was given.
  22200. if test "${with_ldapsdk+set}" = set; then
  22201. withval=$with_ldapsdk;
  22202. if test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  22203. then
  22204. { echo "$as_me:$LINENO: result: using $withval" >&5
  22205. echo "${ECHO_T}using $withval" >&6; }
  22206. LDAPSDKDIR=$withval
  22207. ldapsdk_inc="-I$LDAPSDKDIR/include"
  22208. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  22209. ldapsdk_libdir="$LDAPSDKDIR/lib"
  22210. ldapsdk_bindir="$LDAPSDKDIR/bin"
  22211. else
  22212. echo
  22213. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22214. echo "$as_me: error: $withval not found" >&2;}
  22215. { (exit 1); exit 1; }; }
  22216. fi
  22217. else
  22218. { echo "$as_me:$LINENO: result: no" >&5
  22219. echo "${ECHO_T}no" >&6; }
  22220. fi
  22221. # check for --with-ldapsdk-inc
  22222. { echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  22223. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6; }
  22224. # Check whether --with-ldapsdk-inc was given.
  22225. if test "${with_ldapsdk_inc+set}" = set; then
  22226. withval=$with_ldapsdk_inc;
  22227. if test -e "$withval"/ldap.h
  22228. then
  22229. { echo "$as_me:$LINENO: result: using $withval" >&5
  22230. echo "${ECHO_T}using $withval" >&6; }
  22231. ldapsdk_inc="-I$withval"
  22232. else
  22233. echo
  22234. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22235. echo "$as_me: error: $withval not found" >&2;}
  22236. { (exit 1); exit 1; }; }
  22237. fi
  22238. else
  22239. { echo "$as_me:$LINENO: result: no" >&5
  22240. echo "${ECHO_T}no" >&6; }
  22241. fi
  22242. # check for --with-ldapsdk-lib
  22243. { echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  22244. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6; }
  22245. # Check whether --with-ldapsdk-lib was given.
  22246. if test "${with_ldapsdk_lib+set}" = set; then
  22247. withval=$with_ldapsdk_lib;
  22248. if test -d "$withval"
  22249. then
  22250. { echo "$as_me:$LINENO: result: using $withval" >&5
  22251. echo "${ECHO_T}using $withval" >&6; }
  22252. ldapsdk_lib="-L$withval"
  22253. ldapsdk_libdir="$withval"
  22254. else
  22255. echo
  22256. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22257. echo "$as_me: error: $withval not found" >&2;}
  22258. { (exit 1); exit 1; }; }
  22259. fi
  22260. else
  22261. { echo "$as_me:$LINENO: result: no" >&5
  22262. echo "${ECHO_T}no" >&6; }
  22263. fi
  22264. # check for --with-ldapsdk-bin
  22265. { echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  22266. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6; }
  22267. # Check whether --with-ldapsdk-bin was given.
  22268. if test "${with_ldapsdk_bin+set}" = set; then
  22269. withval=$with_ldapsdk_bin;
  22270. if test -d "$withval"
  22271. then
  22272. { echo "$as_me:$LINENO: result: using $withval" >&5
  22273. echo "${ECHO_T}using $withval" >&6; }
  22274. ldapsdk_bindir="$withval"
  22275. else
  22276. echo
  22277. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22278. echo "$as_me: error: $withval not found" >&2;}
  22279. { (exit 1); exit 1; }; }
  22280. fi
  22281. else
  22282. { echo "$as_me:$LINENO: result: no" >&5
  22283. echo "${ECHO_T}no" >&6; }
  22284. fi
  22285. # if LDAPSDK is not found yet, try pkg-config
  22286. # last resort
  22287. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  22288. # Extract the first word of "pkg-config", so it can be a program name with args.
  22289. set dummy pkg-config; ac_word=$2
  22290. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  22291. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22292. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22293. echo $ECHO_N "(cached) $ECHO_C" >&6
  22294. else
  22295. case $PKG_CONFIG in
  22296. [\\/]* | ?:[\\/]*)
  22297. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22298. ;;
  22299. *)
  22300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22301. for as_dir in $PATH
  22302. do
  22303. IFS=$as_save_IFS
  22304. test -z "$as_dir" && as_dir=.
  22305. for ac_exec_ext in '' $ac_executable_extensions; do
  22306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22307. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22309. break 2
  22310. fi
  22311. done
  22312. done
  22313. IFS=$as_save_IFS
  22314. ;;
  22315. esac
  22316. fi
  22317. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22318. if test -n "$PKG_CONFIG"; then
  22319. { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22320. echo "${ECHO_T}$PKG_CONFIG" >&6; }
  22321. else
  22322. { echo "$as_me:$LINENO: result: no" >&5
  22323. echo "${ECHO_T}no" >&6; }
  22324. fi
  22325. { echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  22326. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6; }
  22327. if test -n "$PKG_CONFIG"; then
  22328. if $PKG_CONFIG --exists mozldap6; then
  22329. mozldappkg=mozldap6
  22330. elif $PKG_CONFIG --exists mozldap; then
  22331. mozldappkg=mozldap
  22332. else
  22333. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22334. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22335. { (exit 1); exit 1; }; }
  22336. fi
  22337. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  22338. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  22339. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  22340. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  22341. { echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  22342. echo "${ECHO_T}using system $mozldappkg" >&6; }
  22343. fi
  22344. fi
  22345. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  22346. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22347. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22348. { (exit 1); exit 1; }; }
  22349. fi
  22350. if test -z "$ldapsdk_bindir" ; then
  22351. if -d $libdir/mozldap6 ; then
  22352. ldapsdk_bindir=$libdir/mozldap6
  22353. else
  22354. ldapsdk_bindir=$libdir/mozldap
  22355. fi
  22356. fi
  22357. save_cppflags="$CPPFLAGS"
  22358. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  22359. { echo "$as_me:$LINENO: checking for ldap.h" >&5
  22360. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
  22361. if test "${ac_cv_header_ldap_h+set}" = set; then
  22362. echo $ECHO_N "(cached) $ECHO_C" >&6
  22363. else
  22364. cat >conftest.$ac_ext <<_ACEOF
  22365. /* confdefs.h. */
  22366. _ACEOF
  22367. cat confdefs.h >>conftest.$ac_ext
  22368. cat >>conftest.$ac_ext <<_ACEOF
  22369. /* end confdefs.h. */
  22370. #include <ldap-standard.h>
  22371. #if LDAP_VENDOR_VERSION < 600
  22372. #error The LDAP C SDK version is not supported
  22373. #endif
  22374. #include <ldap.h>
  22375. _ACEOF
  22376. rm -f conftest.$ac_objext
  22377. if { (ac_try="$ac_compile"
  22378. case "(($ac_try" in
  22379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22380. *) ac_try_echo=$ac_try;;
  22381. esac
  22382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22383. (eval "$ac_compile") 2>conftest.er1
  22384. ac_status=$?
  22385. grep -v '^ *+' conftest.er1 >conftest.err
  22386. rm -f conftest.er1
  22387. cat conftest.err >&5
  22388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22389. (exit $ac_status); } && {
  22390. test -z "$ac_c_werror_flag" ||
  22391. test ! -s conftest.err
  22392. } && test -s conftest.$ac_objext; then
  22393. ac_cv_header_ldap_h=yes
  22394. else
  22395. echo "$as_me: failed program was:" >&5
  22396. sed 's/^/| /' conftest.$ac_ext >&5
  22397. ac_cv_header_ldap_h=no
  22398. fi
  22399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22400. fi
  22401. { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  22402. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
  22403. if test $ac_cv_header_ldap_h = yes; then
  22404. isversion6=1
  22405. else
  22406. isversion6=
  22407. fi
  22408. CPPFLAGS="$save_cppflags"
  22409. if test -z "$isversion6" ; then
  22410. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  22411. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  22412. { (exit 1); exit 1; }; }
  22413. fi
  22414. # BEGIN COPYRIGHT BLOCK
  22415. # Copyright (C) 2007 Red Hat, Inc.
  22416. # All rights reserved.
  22417. #
  22418. # This program is free software; you can redistribute it and/or
  22419. # modify it under the terms of the GNU General Public License
  22420. # as published by the Free Software Foundation; either version 2
  22421. # of the License, or (at your option) any later version.
  22422. #
  22423. # This program is distributed in the hope that it will be useful,
  22424. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22425. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22426. # GNU General Public License for more details.
  22427. #
  22428. # You should have received a copy of the GNU General Public License
  22429. # along with this program; if not, write to the Free Software
  22430. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22431. #
  22432. # END COPYRIGHT BLOCK
  22433. { echo "$as_me:$LINENO: checking for db..." >&5
  22434. echo "$as_me: checking for db..." >&6;}
  22435. { echo "$as_me:$LINENO: checking for --with-db" >&5
  22436. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6; }
  22437. # Check whether --with-db was given.
  22438. if test "${with_db+set}" = set; then
  22439. withval=$with_db;
  22440. if test "$withval" = "yes"; then
  22441. { echo "$as_me:$LINENO: result: yes" >&5
  22442. echo "${ECHO_T}yes" >&6; }
  22443. if test -f "/usr/include/db.h"; then
  22444. db_incdir="/usr/include"
  22445. db_inc="-I/usr/include"
  22446. db_lib='-L$(libdir)'
  22447. db_libdir='$(libdir)'
  22448. else
  22449. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  22450. echo "$as_me: error: db.h not found" >&2;}
  22451. { (exit 1); exit 1; }; }
  22452. fi
  22453. elif test -d "$withval"/include -a -d "$withval"/lib; then
  22454. { echo "$as_me:$LINENO: result: using $withval" >&5
  22455. echo "${ECHO_T}using $withval" >&6; }
  22456. DBDIR=$withval
  22457. db_lib="-L$DBDIR/lib"
  22458. db_libdir="$DBDIR/lib"
  22459. db_incdir="$DBDIR/include"
  22460. if ! test -e "$db_incdir/db.h" ; then
  22461. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  22462. echo "$as_me: error: $withval include dir not found" >&2;}
  22463. { (exit 1); exit 1; }; }
  22464. fi
  22465. db_inc="-I$db_incdir"
  22466. else
  22467. echo
  22468. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22469. echo "$as_me: error: $withval not found" >&2;}
  22470. { (exit 1); exit 1; }; }
  22471. fi
  22472. else
  22473. { echo "$as_me:$LINENO: result: no" >&5
  22474. echo "${ECHO_T}no" >&6; }
  22475. fi
  22476. if test -z "$db_inc"; then
  22477. { echo "$as_me:$LINENO: checking for db.h" >&5
  22478. echo $ECHO_N "checking for db.h... $ECHO_C" >&6; }
  22479. if test -f "/usr/include/db.h"; then
  22480. { echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  22481. echo "${ECHO_T}using /usr/include/db.h" >&6; }
  22482. db_incdir="/usr/include"
  22483. db_inc="-I/usr/include"
  22484. db_lib='-L$(libdir)'
  22485. db_libdir='$(libdir)'
  22486. else
  22487. { echo "$as_me:$LINENO: result: no" >&5
  22488. echo "${ECHO_T}no" >&6; }
  22489. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  22490. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  22491. { (exit 1); exit 1; }; }
  22492. fi
  22493. fi
  22494. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  22495. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  22496. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  22497. db_libver=${db_ver_maj}.${db_ver_min}
  22498. save_ldflags="$LDFLAGS"
  22499. LDFLAGS="$db_lib $LDFLAGS"
  22500. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  22501. { echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  22502. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6; }
  22503. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  22504. echo $ECHO_N "(cached) $ECHO_C" >&6
  22505. else
  22506. ac_check_lib_save_LIBS=$LIBS
  22507. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  22508. cat >conftest.$ac_ext <<_ACEOF
  22509. /* confdefs.h. */
  22510. _ACEOF
  22511. cat confdefs.h >>conftest.$ac_ext
  22512. cat >>conftest.$ac_ext <<_ACEOF
  22513. /* end confdefs.h. */
  22514. /* Override any GCC internal prototype to avoid an error.
  22515. Use char because int might match the return type of a GCC
  22516. builtin and then its argument prototype would still apply. */
  22517. #ifdef __cplusplus
  22518. extern "C"
  22519. #endif
  22520. char db_create ();
  22521. int
  22522. main ()
  22523. {
  22524. return db_create ();
  22525. ;
  22526. return 0;
  22527. }
  22528. _ACEOF
  22529. rm -f conftest.$ac_objext conftest$ac_exeext
  22530. if { (ac_try="$ac_link"
  22531. case "(($ac_try" in
  22532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22533. *) ac_try_echo=$ac_try;;
  22534. esac
  22535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22536. (eval "$ac_link") 2>conftest.er1
  22537. ac_status=$?
  22538. grep -v '^ *+' conftest.er1 >conftest.err
  22539. rm -f conftest.er1
  22540. cat conftest.err >&5
  22541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22542. (exit $ac_status); } && {
  22543. test -z "$ac_c_werror_flag" ||
  22544. test ! -s conftest.err
  22545. } && test -s conftest$ac_exeext &&
  22546. $as_test_x conftest$ac_exeext; then
  22547. eval "$as_ac_Lib=yes"
  22548. else
  22549. echo "$as_me: failed program was:" >&5
  22550. sed 's/^/| /' conftest.$ac_ext >&5
  22551. eval "$as_ac_Lib=no"
  22552. fi
  22553. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22554. conftest$ac_exeext conftest.$ac_ext
  22555. LIBS=$ac_check_lib_save_LIBS
  22556. fi
  22557. ac_res=`eval echo '${'$as_ac_Lib'}'`
  22558. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22559. echo "${ECHO_T}$ac_res" >&6; }
  22560. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22561. true
  22562. else
  22563. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  22564. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  22565. { (exit 1); exit 1; }; }
  22566. fi
  22567. LDFLAGS="$save_ldflags"
  22568. # if DB is not found yet, try pkg-config
  22569. # last resort
  22570. # Although the other db_* variables are correctly assigned at this point,
  22571. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  22572. if test -n "$PKG_CONFIG"; then
  22573. if $PKG_CONFIG --exists db; then
  22574. db_bindir=`$PKG_CONFIG --variable=bindir db`
  22575. else
  22576. db_bindir=/usr/bin
  22577. fi
  22578. else
  22579. db_bindir=/usr/bin
  22580. fi
  22581. # BEGIN COPYRIGHT BLOCK
  22582. # Copyright (C) 2007 Red Hat, Inc.
  22583. # All rights reserved.
  22584. #
  22585. # This program is free software; you can redistribute it and/or
  22586. # modify it under the terms of the GNU General Public License
  22587. # as published by the Free Software Foundation; either version 2
  22588. # of the License, or (at your option) any later version.
  22589. #
  22590. # This program is distributed in the hope that it will be useful,
  22591. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22592. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22593. # GNU General Public License for more details.
  22594. #
  22595. # You should have received a copy of the GNU General Public License
  22596. # along with this program; if not, write to the Free Software
  22597. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22598. #
  22599. # END COPYRIGHT BLOCK
  22600. # -*- tab-width: 4; -*-
  22601. # Configure paths for SASL
  22602. { echo "$as_me:$LINENO: checking for sasl..." >&5
  22603. echo "$as_me: checking for sasl..." >&6;}
  22604. { echo "$as_me:$LINENO: checking for --with-sasl" >&5
  22605. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6; }
  22606. # Check whether --with-sasl was given.
  22607. if test "${with_sasl+set}" = set; then
  22608. withval=$with_sasl;
  22609. if test "$withval" = "yes"; then
  22610. { echo "$as_me:$LINENO: result: yes" >&5
  22611. echo "${ECHO_T}yes" >&6; }
  22612. if test -f /usr/include/sasl/sasl.h; then
  22613. sasl_inc="-I/usr/include/sasl"
  22614. elif test -f /usr/include/sasl.h; then
  22615. sasl_inc="-I/usr/include"
  22616. else
  22617. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22618. echo "$as_me: error: sasl.h not found" >&2;}
  22619. { (exit 1); exit 1; }; }
  22620. fi
  22621. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22622. { echo "$as_me:$LINENO: result: using $withval" >&5
  22623. echo "${ECHO_T}using $withval" >&6; }
  22624. if test -f "$withval/include/sasl/sasl.h"; then
  22625. sasl_inc="-I$withval/include/sasl"
  22626. elif test -f "$withval/include/sasl.h"; then
  22627. sasl_inc="-I$withval/include"
  22628. else
  22629. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22630. echo "$as_me: error: sasl.h not found" >&2;}
  22631. { (exit 1); exit 1; }; }
  22632. fi
  22633. sasl_lib="-L$withval/lib"
  22634. sasl_libdir="$withval/lib"
  22635. else
  22636. { echo "$as_me:$LINENO: result: yes" >&5
  22637. echo "${ECHO_T}yes" >&6; }
  22638. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  22639. echo "$as_me: error: sasl not found in $withval" >&2;}
  22640. { (exit 1); exit 1; }; }
  22641. fi
  22642. else
  22643. { echo "$as_me:$LINENO: result: no" >&5
  22644. echo "${ECHO_T}no" >&6; }
  22645. fi
  22646. { echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  22647. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6; }
  22648. # Check whether --with-sasl-inc was given.
  22649. if test "${with_sasl_inc+set}" = set; then
  22650. withval=$with_sasl_inc;
  22651. if test -f "$withval"/sasl.h; then
  22652. { echo "$as_me:$LINENO: result: using $withval" >&5
  22653. echo "${ECHO_T}using $withval" >&6; }
  22654. sasl_inc="-I$withval"
  22655. else
  22656. echo
  22657. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  22658. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  22659. { (exit 1); exit 1; }; }
  22660. fi
  22661. else
  22662. { echo "$as_me:$LINENO: result: no" >&5
  22663. echo "${ECHO_T}no" >&6; }
  22664. fi
  22665. { echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  22666. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6; }
  22667. # Check whether --with-sasl-lib was given.
  22668. if test "${with_sasl_lib+set}" = set; then
  22669. withval=$with_sasl_lib;
  22670. if test -d "$withval"; then
  22671. { echo "$as_me:$LINENO: result: using $withval" >&5
  22672. echo "${ECHO_T}using $withval" >&6; }
  22673. sasl_lib="-L$withval"
  22674. sasl_libdir="$withval"
  22675. else
  22676. echo
  22677. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22678. echo "$as_me: error: $withval not found" >&2;}
  22679. { (exit 1); exit 1; }; }
  22680. fi
  22681. else
  22682. { echo "$as_me:$LINENO: result: no" >&5
  22683. echo "${ECHO_T}no" >&6; }
  22684. fi
  22685. if test -z "$sasl_inc"; then
  22686. { echo "$as_me:$LINENO: checking for sasl.h" >&5
  22687. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6; }
  22688. if test -f /usr/include/sasl/sasl.h; then
  22689. { echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  22690. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6; }
  22691. sasl_inc="-I/usr/include/sasl"
  22692. elif test -f /usr/include/sasl.h; then
  22693. { echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  22694. echo "${ECHO_T}using /usr/include/sasl.h" >&6; }
  22695. sasl_inc="-I/usr/include"
  22696. else
  22697. { echo "$as_me:$LINENO: result: no" >&5
  22698. echo "${ECHO_T}no" >&6; }
  22699. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  22700. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  22701. { (exit 1); exit 1; }; }
  22702. fi
  22703. fi
  22704. # BEGIN COPYRIGHT BLOCK
  22705. # Copyright (C) 2007 Red Hat, Inc.
  22706. # All rights reserved.
  22707. #
  22708. # This program is free software; you can redistribute it and/or
  22709. # modify it under the terms of the GNU General Public License
  22710. # as published by the Free Software Foundation; either version 2
  22711. # of the License, or (at your option) any later version.
  22712. #
  22713. # This program is distributed in the hope that it will be useful,
  22714. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22715. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22716. # GNU General Public License for more details.
  22717. #
  22718. # You should have received a copy of the GNU General Public License
  22719. # along with this program; if not, write to the Free Software
  22720. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22721. #
  22722. # END COPYRIGHT BLOCK
  22723. #
  22724. # Configure paths for SVRCORE
  22725. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  22726. echo "$as_me: checking for svrcore..." >&6;}
  22727. { echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  22728. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6; }
  22729. # Check whether --with-svrcore was given.
  22730. if test "${with_svrcore+set}" = set; then
  22731. withval=$with_svrcore;
  22732. if test "$withval" = "yes"; then
  22733. { echo "$as_me:$LINENO: result: yes" >&5
  22734. echo "${ECHO_T}yes" >&6; }
  22735. if test -f /usr/include/svrcore.h; then
  22736. svrcore_inc="-I/usr/include"
  22737. else
  22738. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22739. echo "$as_me: error: svrcore.h not found" >&2;}
  22740. { (exit 1); exit 1; }; }
  22741. fi
  22742. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22743. { echo "$as_me:$LINENO: result: using $withval" >&5
  22744. echo "${ECHO_T}using $withval" >&6; }
  22745. if test -f "$withval/include/svrcore.h"; then
  22746. svrcore_inc="-I$withval/include"
  22747. else
  22748. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22749. echo "$as_me: error: svrcore.h not found" >&2;}
  22750. { (exit 1); exit 1; }; }
  22751. fi
  22752. svrcore_lib="-L$withval/lib"
  22753. else
  22754. { echo "$as_me:$LINENO: result: yes" >&5
  22755. echo "${ECHO_T}yes" >&6; }
  22756. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  22757. echo "$as_me: error: svrcore not found in $withval" >&2;}
  22758. { (exit 1); exit 1; }; }
  22759. fi
  22760. else
  22761. { echo "$as_me:$LINENO: result: no" >&5
  22762. echo "${ECHO_T}no" >&6; }
  22763. fi
  22764. { echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  22765. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6; }
  22766. # Check whether --with-svrcore-inc was given.
  22767. if test "${with_svrcore_inc+set}" = set; then
  22768. withval=$with_svrcore_inc;
  22769. if test -f "$withval"/svrcore.h; then
  22770. { echo "$as_me:$LINENO: result: using $withval" >&5
  22771. echo "${ECHO_T}using $withval" >&6; }
  22772. svrcore_inc="-I$withval"
  22773. else
  22774. echo
  22775. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  22776. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  22777. { (exit 1); exit 1; }; }
  22778. fi
  22779. else
  22780. { echo "$as_me:$LINENO: result: no" >&5
  22781. echo "${ECHO_T}no" >&6; }
  22782. fi
  22783. { echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  22784. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6; }
  22785. # Check whether --with-svrcore-lib was given.
  22786. if test "${with_svrcore_lib+set}" = set; then
  22787. withval=$with_svrcore_lib;
  22788. if test -d "$withval"; then
  22789. { echo "$as_me:$LINENO: result: using $withval" >&5
  22790. echo "${ECHO_T}using $withval" >&6; }
  22791. svrcore_lib="-L$withval"
  22792. else
  22793. echo
  22794. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22795. echo "$as_me: error: $withval not found" >&2;}
  22796. { (exit 1); exit 1; }; }
  22797. fi
  22798. else
  22799. { echo "$as_me:$LINENO: result: no" >&5
  22800. echo "${ECHO_T}no" >&6; }
  22801. fi
  22802. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22803. # Extract the first word of "pkg-config", so it can be a program name with args.
  22804. set dummy pkg-config; ac_word=$2
  22805. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  22806. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  22807. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22808. echo $ECHO_N "(cached) $ECHO_C" >&6
  22809. else
  22810. case $PKG_CONFIG in
  22811. [\\/]* | ?:[\\/]*)
  22812. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22813. ;;
  22814. *)
  22815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22816. for as_dir in $PATH
  22817. do
  22818. IFS=$as_save_IFS
  22819. test -z "$as_dir" && as_dir=.
  22820. for ac_exec_ext in '' $ac_executable_extensions; do
  22821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22822. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22823. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22824. break 2
  22825. fi
  22826. done
  22827. done
  22828. IFS=$as_save_IFS
  22829. ;;
  22830. esac
  22831. fi
  22832. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22833. if test -n "$PKG_CONFIG"; then
  22834. { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22835. echo "${ECHO_T}$PKG_CONFIG" >&6; }
  22836. else
  22837. { echo "$as_me:$LINENO: result: no" >&5
  22838. echo "${ECHO_T}no" >&6; }
  22839. fi
  22840. { echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  22841. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6; }
  22842. if test -n "$PKG_CONFIG"; then
  22843. if $PKG_CONFIG --exists svrcore; then
  22844. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  22845. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  22846. { echo "$as_me:$LINENO: result: using system svrcore" >&5
  22847. echo "${ECHO_T}using system svrcore" >&6; }
  22848. fi
  22849. fi
  22850. fi
  22851. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22852. { echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  22853. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6; }
  22854. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  22855. echo $ECHO_N "(cached) $ECHO_C" >&6
  22856. else
  22857. ac_check_lib_save_LIBS=$LIBS
  22858. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  22859. cat >conftest.$ac_ext <<_ACEOF
  22860. /* confdefs.h. */
  22861. _ACEOF
  22862. cat confdefs.h >>conftest.$ac_ext
  22863. cat >>conftest.$ac_ext <<_ACEOF
  22864. /* end confdefs.h. */
  22865. /* Override any GCC internal prototype to avoid an error.
  22866. Use char because int might match the return type of a GCC
  22867. builtin and then its argument prototype would still apply. */
  22868. #ifdef __cplusplus
  22869. extern "C"
  22870. #endif
  22871. char SVRCORE_GetRegisteredPinObj ();
  22872. int
  22873. main ()
  22874. {
  22875. return SVRCORE_GetRegisteredPinObj ();
  22876. ;
  22877. return 0;
  22878. }
  22879. _ACEOF
  22880. rm -f conftest.$ac_objext conftest$ac_exeext
  22881. if { (ac_try="$ac_link"
  22882. case "(($ac_try" in
  22883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22884. *) ac_try_echo=$ac_try;;
  22885. esac
  22886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22887. (eval "$ac_link") 2>conftest.er1
  22888. ac_status=$?
  22889. grep -v '^ *+' conftest.er1 >conftest.err
  22890. rm -f conftest.er1
  22891. cat conftest.err >&5
  22892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22893. (exit $ac_status); } && {
  22894. test -z "$ac_c_werror_flag" ||
  22895. test ! -s conftest.err
  22896. } && test -s conftest$ac_exeext &&
  22897. $as_test_x conftest$ac_exeext; then
  22898. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  22899. else
  22900. echo "$as_me: failed program was:" >&5
  22901. sed 's/^/| /' conftest.$ac_ext >&5
  22902. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  22903. fi
  22904. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22905. conftest$ac_exeext conftest.$ac_ext
  22906. LIBS=$ac_check_lib_save_LIBS
  22907. fi
  22908. { echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  22909. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  22910. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  22911. havesvrcore=1
  22912. fi
  22913. if test -n "$havesvrcore" ; then
  22914. save_cppflags="$CPPFLAGS"
  22915. CPPFLAGS="$nss_inc $nspr_inc"
  22916. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22917. { echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22918. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6; }
  22919. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22920. echo $ECHO_N "(cached) $ECHO_C" >&6
  22921. fi
  22922. { echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22923. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6; }
  22924. else
  22925. # Is the header compilable?
  22926. { echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  22927. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6; }
  22928. cat >conftest.$ac_ext <<_ACEOF
  22929. /* confdefs.h. */
  22930. _ACEOF
  22931. cat confdefs.h >>conftest.$ac_ext
  22932. cat >>conftest.$ac_ext <<_ACEOF
  22933. /* end confdefs.h. */
  22934. $ac_includes_default
  22935. #include <svrcore.h>
  22936. _ACEOF
  22937. rm -f conftest.$ac_objext
  22938. if { (ac_try="$ac_compile"
  22939. case "(($ac_try" in
  22940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22941. *) ac_try_echo=$ac_try;;
  22942. esac
  22943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22944. (eval "$ac_compile") 2>conftest.er1
  22945. ac_status=$?
  22946. grep -v '^ *+' conftest.er1 >conftest.err
  22947. rm -f conftest.er1
  22948. cat conftest.err >&5
  22949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22950. (exit $ac_status); } && {
  22951. test -z "$ac_c_werror_flag" ||
  22952. test ! -s conftest.err
  22953. } && test -s conftest.$ac_objext; then
  22954. ac_header_compiler=yes
  22955. else
  22956. echo "$as_me: failed program was:" >&5
  22957. sed 's/^/| /' conftest.$ac_ext >&5
  22958. ac_header_compiler=no
  22959. fi
  22960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22961. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22962. echo "${ECHO_T}$ac_header_compiler" >&6; }
  22963. # Is the header present?
  22964. { echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  22965. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6; }
  22966. cat >conftest.$ac_ext <<_ACEOF
  22967. /* confdefs.h. */
  22968. _ACEOF
  22969. cat confdefs.h >>conftest.$ac_ext
  22970. cat >>conftest.$ac_ext <<_ACEOF
  22971. /* end confdefs.h. */
  22972. #include <svrcore.h>
  22973. _ACEOF
  22974. if { (ac_try="$ac_cpp conftest.$ac_ext"
  22975. case "(($ac_try" in
  22976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22977. *) ac_try_echo=$ac_try;;
  22978. esac
  22979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22980. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22981. ac_status=$?
  22982. grep -v '^ *+' conftest.er1 >conftest.err
  22983. rm -f conftest.er1
  22984. cat conftest.err >&5
  22985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22986. (exit $ac_status); } >/dev/null && {
  22987. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22988. test ! -s conftest.err
  22989. }; then
  22990. ac_header_preproc=yes
  22991. else
  22992. echo "$as_me: failed program was:" >&5
  22993. sed 's/^/| /' conftest.$ac_ext >&5
  22994. ac_header_preproc=no
  22995. fi
  22996. rm -f conftest.err conftest.$ac_ext
  22997. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22998. echo "${ECHO_T}$ac_header_preproc" >&6; }
  22999. # So? What about this header?
  23000. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23001. yes:no: )
  23002. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  23003. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23004. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  23005. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  23006. ac_header_preproc=yes
  23007. ;;
  23008. no:yes:* )
  23009. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  23010. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  23011. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  23012. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  23013. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  23014. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  23015. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  23016. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  23017. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  23018. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  23019. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  23020. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  23021. ( cat <<\_ASBOX
  23022. ## ------------------------------------------ ##
  23023. ## Report this to http://bugzilla.redhat.com/ ##
  23024. ## ------------------------------------------ ##
  23025. _ASBOX
  23026. ) | sed "s/^/$as_me: WARNING: /" >&2
  23027. ;;
  23028. esac
  23029. { echo "$as_me:$LINENO: checking for svrcore.h" >&5
  23030. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6; }
  23031. if test "${ac_cv_header_svrcore_h+set}" = set; then
  23032. echo $ECHO_N "(cached) $ECHO_C" >&6
  23033. else
  23034. ac_cv_header_svrcore_h=$ac_header_preproc
  23035. fi
  23036. { echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  23037. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6; }
  23038. fi
  23039. if test $ac_cv_header_svrcore_h = yes; then
  23040. havesvrcore=1
  23041. else
  23042. havesvrcore=
  23043. fi
  23044. CPPFLAGS="$save_cppflags"
  23045. fi
  23046. if test -z "$havesvrcore" ; then
  23047. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  23048. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  23049. { (exit 1); exit 1; }; }
  23050. fi
  23051. fi
  23052. # BEGIN COPYRIGHT BLOCK
  23053. # Copyright (C) 2006 Red Hat, Inc.
  23054. # All rights reserved.
  23055. #
  23056. # This program is free software; you can redistribute it and/or
  23057. # modify it under the terms of the GNU General Public License
  23058. # as published by the Free Software Foundation; either version 2
  23059. # of the License, or (at your option) any later version.
  23060. #
  23061. # This program is distributed in the hope that it will be useful,
  23062. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23063. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23064. # GNU General Public License for more details.
  23065. #
  23066. # You should have received a copy of the GNU General Public License
  23067. # along with this program; if not, write to the Free Software
  23068. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23069. #
  23070. # END COPYRIGHT BLOCK
  23071. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  23072. echo "$as_me: checking for LIBICU..." >&6;}
  23073. # check for --with-icu
  23074. { echo "$as_me:$LINENO: checking for --with-icu" >&5
  23075. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6; }
  23076. # Check whether --with-icu was given.
  23077. if test "${with_icu+set}" = set; then
  23078. withval=$with_icu;
  23079. if test -d "$withval"/lib
  23080. then
  23081. { echo "$as_me:$LINENO: result: using $withval" >&5
  23082. echo "${ECHO_T}using $withval" >&6; }
  23083. ICUDIR=$withval
  23084. icu_lib="-L$ICUDIR/lib"
  23085. else
  23086. echo
  23087. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23088. echo "$as_me: error: $withval not found" >&2;}
  23089. { (exit 1); exit 1; }; }
  23090. fi
  23091. icu_inc="-I$withval/include"
  23092. icu_bin="$withval/bin"
  23093. else
  23094. { echo "$as_me:$LINENO: result: no" >&5
  23095. echo "${ECHO_T}no" >&6; }
  23096. fi
  23097. # check for --with-icu-inc
  23098. { echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  23099. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6; }
  23100. # Check whether --with-icu-inc was given.
  23101. if test "${with_icu_inc+set}" = set; then
  23102. withval=$with_icu_inc;
  23103. if test -d "$withval"
  23104. then
  23105. { echo "$as_me:$LINENO: result: using $withval" >&5
  23106. echo "${ECHO_T}using $withval" >&6; }
  23107. icu_inc="-I$withval"
  23108. else
  23109. echo
  23110. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23111. echo "$as_me: error: $withval not found" >&2;}
  23112. { (exit 1); exit 1; }; }
  23113. fi
  23114. else
  23115. { echo "$as_me:$LINENO: result: no" >&5
  23116. echo "${ECHO_T}no" >&6; }
  23117. fi
  23118. # check for --with-icu-lib
  23119. { echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  23120. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6; }
  23121. # Check whether --with-icu-lib was given.
  23122. if test "${with_icu_lib+set}" = set; then
  23123. withval=$with_icu_lib;
  23124. if test -d "$withval"
  23125. then
  23126. { echo "$as_me:$LINENO: result: using $withval" >&5
  23127. echo "${ECHO_T}using $withval" >&6; }
  23128. icu_lib="-L$withval"
  23129. else
  23130. echo
  23131. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23132. echo "$as_me: error: $withval not found" >&2;}
  23133. { (exit 1); exit 1; }; }
  23134. fi
  23135. else
  23136. { echo "$as_me:$LINENO: result: no" >&5
  23137. echo "${ECHO_T}no" >&6; }
  23138. fi
  23139. # check for --with-icu-bin
  23140. { echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  23141. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6; }
  23142. # Check whether --with-icu-bin was given.
  23143. if test "${with_icu_bin+set}" = set; then
  23144. withval=$with_icu_bin;
  23145. if test -d "$withval"
  23146. then
  23147. { echo "$as_me:$LINENO: result: using $withval" >&5
  23148. echo "${ECHO_T}using $withval" >&6; }
  23149. icu_bin="$withval"
  23150. else
  23151. echo
  23152. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23153. echo "$as_me: error: $withval not found" >&2;}
  23154. { (exit 1); exit 1; }; }
  23155. fi
  23156. else
  23157. { echo "$as_me:$LINENO: result: no" >&5
  23158. echo "${ECHO_T}no" >&6; }
  23159. fi
  23160. # if ICU is not found yet, try pkg-config
  23161. # last resort
  23162. if test -z "$icu_lib"; then
  23163. { echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  23164. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6; }
  23165. # Extract the first word of "icu-config", so it can be a program name with args.
  23166. set dummy icu-config; ac_word=$2
  23167. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23169. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  23170. echo $ECHO_N "(cached) $ECHO_C" >&6
  23171. else
  23172. case $ICU_CONFIG in
  23173. [\\/]* | ?:[\\/]*)
  23174. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  23175. ;;
  23176. *)
  23177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23178. for as_dir in $PATH
  23179. do
  23180. IFS=$as_save_IFS
  23181. test -z "$as_dir" && as_dir=.
  23182. for ac_exec_ext in '' $ac_executable_extensions; do
  23183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23184. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23185. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23186. break 2
  23187. fi
  23188. done
  23189. done
  23190. IFS=$as_save_IFS
  23191. ;;
  23192. esac
  23193. fi
  23194. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  23195. if test -n "$ICU_CONFIG"; then
  23196. { echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  23197. echo "${ECHO_T}$ICU_CONFIG" >&6; }
  23198. else
  23199. { echo "$as_me:$LINENO: result: no" >&5
  23200. echo "${ECHO_T}no" >&6; }
  23201. fi
  23202. if test -n "$ICU_CONFIG"; then
  23203. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  23204. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  23205. icu_bin=`$ICU_CONFIG --bindir`
  23206. { echo "$as_me:$LINENO: result: using system ICU" >&5
  23207. echo "${ECHO_T}using system ICU" >&6; }
  23208. else
  23209. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  23210. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  23211. { (exit 1); exit 1; }; }
  23212. fi
  23213. fi
  23214. # BEGIN COPYRIGHT BLOCK
  23215. # Copyright (C) 2006 Red Hat, Inc.
  23216. # All rights reserved.
  23217. #
  23218. # This program is free software; you can redistribute it and/or
  23219. # modify it under the terms of the GNU General Public License
  23220. # as published by the Free Software Foundation; either version 2
  23221. # of the License, or (at your option) any later version.
  23222. #
  23223. # This program is distributed in the hope that it will be useful,
  23224. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23225. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23226. # GNU General Public License for more details.
  23227. #
  23228. # You should have received a copy of the GNU General Public License
  23229. # along with this program; if not, write to the Free Software
  23230. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23231. #
  23232. # END COPYRIGHT BLOCK
  23233. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  23234. echo "$as_me: checking for Net-SNMP..." >&6;}
  23235. { echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  23236. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6; }
  23237. # Check whether --with-netsnmp was given.
  23238. if test "${with_netsnmp+set}" = set; then
  23239. withval=$with_netsnmp;
  23240. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  23241. { echo "$as_me:$LINENO: result: using $withval" >&5
  23242. echo "${ECHO_T}using $withval" >&6; }
  23243. NETSNMPDIR=$withval
  23244. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  23245. netsnmp_inc="-I$withval/include"
  23246. else
  23247. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  23248. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  23249. { (exit 1); exit 1; }; }
  23250. fi
  23251. netsnmp_lib="-L$withval/lib"
  23252. netsnmp_libdir="$withval/lib"
  23253. else
  23254. { echo "$as_me:$LINENO: result: yes" >&5
  23255. echo "${ECHO_T}yes" >&6; }
  23256. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23257. echo "$as_me: error: $withval not found" >&2;}
  23258. { (exit 1); exit 1; }; }
  23259. fi
  23260. else
  23261. { echo "$as_me:$LINENO: result: no" >&5
  23262. echo "${ECHO_T}no" >&6; }
  23263. fi
  23264. { echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  23265. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6; }
  23266. # Check whether --with-netsnmp-inc was given.
  23267. if test "${with_netsnmp_inc+set}" = set; then
  23268. withval=$with_netsnmp_inc;
  23269. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  23270. { echo "$as_me:$LINENO: result: using $withval" >&5
  23271. echo "${ECHO_T}using $withval" >&6; }
  23272. netsnmp_inc="-I$withval"
  23273. else
  23274. echo
  23275. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  23276. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  23277. { (exit 1); exit 1; }; }
  23278. fi
  23279. else
  23280. { echo "$as_me:$LINENO: result: no" >&5
  23281. echo "${ECHO_T}no" >&6; }
  23282. fi
  23283. { echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  23284. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6; }
  23285. # Check whether --with-netsnmp-lib was given.
  23286. if test "${with_netsnmp_lib+set}" = set; then
  23287. withval=$with_netsnmp_lib;
  23288. if test -d "$withval"
  23289. then
  23290. { echo "$as_me:$LINENO: result: using $withval" >&5
  23291. echo "${ECHO_T}using $withval" >&6; }
  23292. netsnmp_lib="-L$withval"
  23293. netsnmp_libdir="$withval"
  23294. else
  23295. echo
  23296. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23297. echo "$as_me: error: $withval not found" >&2;}
  23298. { (exit 1); exit 1; }; }
  23299. fi
  23300. else
  23301. { echo "$as_me:$LINENO: result: no" >&5
  23302. echo "${ECHO_T}no" >&6; }
  23303. fi
  23304. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  23305. { echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  23306. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6; }
  23307. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  23308. { echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  23309. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  23310. netsnmp_inc="-I/usr/include"
  23311. else
  23312. { echo "$as_me:$LINENO: result: no" >&5
  23313. echo "${ECHO_T}no" >&6; }
  23314. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  23315. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  23316. { (exit 1); exit 1; }; }
  23317. fi
  23318. fi
  23319. if test -n "$netsnmp_inc"; then
  23320. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  23321. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  23322. else
  23323. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  23324. set dummy net-snmp-config; ac_word=$2
  23325. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23326. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23327. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  23328. echo $ECHO_N "(cached) $ECHO_C" >&6
  23329. else
  23330. case $NETSNMP_CONFIG in
  23331. [\\/]* | ?:[\\/]*)
  23332. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  23333. ;;
  23334. *)
  23335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23336. for as_dir in $PATH
  23337. do
  23338. IFS=$as_save_IFS
  23339. test -z "$as_dir" && as_dir=.
  23340. for ac_exec_ext in '' $ac_executable_extensions; do
  23341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23342. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23343. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23344. break 2
  23345. fi
  23346. done
  23347. done
  23348. IFS=$as_save_IFS
  23349. ;;
  23350. esac
  23351. fi
  23352. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  23353. if test -n "$NETSNMP_CONFIG"; then
  23354. { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  23355. echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
  23356. else
  23357. { echo "$as_me:$LINENO: result: no" >&5
  23358. echo "${ECHO_T}no" >&6; }
  23359. fi
  23360. fi
  23361. if test -n "$NETSNMP_CONFIG"; then
  23362. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  23363. else
  23364. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  23365. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  23366. { (exit 1); exit 1; }; }
  23367. fi
  23368. else
  23369. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  23370. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  23371. { (exit 1); exit 1; }; }
  23372. fi
  23373. # BEGIN COPYRIGHT BLOCK
  23374. # Copyright (C) 2008 Red Hat, Inc.
  23375. # All rights reserved.
  23376. #
  23377. # This program is free software; you can redistribute it and/or
  23378. # modify it under the terms of the GNU General Public License
  23379. # as published by the Free Software Foundation; either version 2
  23380. # of the License, or (at your option) any later version.
  23381. #
  23382. # This program is distributed in the hope that it will be useful,
  23383. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23384. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23385. # GNU General Public License for more details.
  23386. #
  23387. # You should have received a copy of the GNU General Public License
  23388. # along with this program; if not, write to the Free Software
  23389. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23390. #
  23391. # END COPYRIGHT BLOCK
  23392. # -*- tab-width: 4; -*-
  23393. # Configure paths for Kerberos
  23394. { echo "$as_me:$LINENO: checking for kerberos..." >&5
  23395. echo "$as_me: checking for kerberos..." >&6;}
  23396. if test -z "$with_kerberos" ; then
  23397. with_kerberos=yes # if not set on cmdline, set default
  23398. fi
  23399. { echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  23400. echo $ECHO_N "checking for --with-kerberos... $ECHO_C" >&6; }
  23401. # Check whether --with-kerberos was given.
  23402. if test "${with_kerberos+set}" = set; then
  23403. withval=$with_kerberos;
  23404. if test "x$withval" = "xyes"; then
  23405. { echo "$as_me:$LINENO: result: yes" >&5
  23406. echo "${ECHO_T}yes" >&6; }
  23407. elif test "x$withval" = "xno"; then
  23408. { echo "$as_me:$LINENO: result: no" >&5
  23409. echo "${ECHO_T}no" >&6; }
  23410. with_kerberos=
  23411. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  23412. { echo "$as_me:$LINENO: result: using $withval" >&5
  23413. echo "${ECHO_T}using $withval" >&6; }
  23414. kerberos_incdir="$withval/include"
  23415. kerberos_libdir="$withval/lib"
  23416. else
  23417. { echo "$as_me:$LINENO: result: yes" >&5
  23418. echo "${ECHO_T}yes" >&6; }
  23419. { { echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  23420. echo "$as_me: error: kerberos not found in $withval" >&2;}
  23421. { (exit 1); exit 1; }; }
  23422. fi
  23423. else
  23424. { echo "$as_me:$LINENO: result: no" >&5
  23425. echo "${ECHO_T}no" >&6; }
  23426. with_kerberos=
  23427. fi
  23428. { echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  23429. echo $ECHO_N "checking for --with-kerberos-inc... $ECHO_C" >&6; }
  23430. # Check whether --with-kerberos-inc was given.
  23431. if test "${with_kerberos_inc+set}" = set; then
  23432. withval=$with_kerberos_inc;
  23433. if test -f "$withval"/krb5.h; then
  23434. { echo "$as_me:$LINENO: result: using $withval" >&5
  23435. echo "${ECHO_T}using $withval" >&6; }
  23436. kerberos_incdir="$withval"
  23437. with_kerberos=yes # implies use of kerberos
  23438. else
  23439. echo
  23440. { { echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  23441. echo "$as_me: error: $withval/krb5.h not found" >&2;}
  23442. { (exit 1); exit 1; }; }
  23443. fi
  23444. else
  23445. { echo "$as_me:$LINENO: result: no" >&5
  23446. echo "${ECHO_T}no" >&6; }
  23447. fi
  23448. { echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  23449. echo $ECHO_N "checking for --with-kerberos-lib... $ECHO_C" >&6; }
  23450. # Check whether --with-kerberos-lib was given.
  23451. if test "${with_kerberos_lib+set}" = set; then
  23452. withval=$with_kerberos_lib;
  23453. if test -d "$withval"; then
  23454. { echo "$as_me:$LINENO: result: using $withval" >&5
  23455. echo "${ECHO_T}using $withval" >&6; }
  23456. kerberos_libdir="$withval"
  23457. with_kerberos=yes # implies use of kerberos
  23458. else
  23459. echo
  23460. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23461. echo "$as_me: error: $withval not found" >&2;}
  23462. { (exit 1); exit 1; }; }
  23463. fi
  23464. else
  23465. { echo "$as_me:$LINENO: result: no" >&5
  23466. echo "${ECHO_T}no" >&6; }
  23467. fi
  23468. if test -n "$with_kerberos" ; then
  23469. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  23470. if test -z "$KRB5_CONFIG_BIN" ; then
  23471. # Extract the first word of "krb5-config", so it can be a program name with args.
  23472. set dummy krb5-config; ac_word=$2
  23473. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23474. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23475. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  23476. echo $ECHO_N "(cached) $ECHO_C" >&6
  23477. else
  23478. case $KRB5_CONFIG_BIN in
  23479. [\\/]* | ?:[\\/]*)
  23480. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  23481. ;;
  23482. *)
  23483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23484. for as_dir in $PATH
  23485. do
  23486. IFS=$as_save_IFS
  23487. test -z "$as_dir" && as_dir=.
  23488. for ac_exec_ext in '' $ac_executable_extensions; do
  23489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23490. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  23491. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23492. break 2
  23493. fi
  23494. done
  23495. done
  23496. IFS=$as_save_IFS
  23497. ;;
  23498. esac
  23499. fi
  23500. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  23501. if test -n "$KRB5_CONFIG_BIN"; then
  23502. { echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  23503. echo "${ECHO_T}$KRB5_CONFIG_BIN" >&6; }
  23504. else
  23505. { echo "$as_me:$LINENO: result: no" >&5
  23506. echo "${ECHO_T}no" >&6; }
  23507. fi
  23508. fi
  23509. if test -n "$KRB5_CONFIG_BIN" ; then
  23510. { echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  23511. echo $ECHO_N "checking for kerberos with $KRB5_CONFIG_BIN... $ECHO_C" >&6; }
  23512. if test -z "$kerberos_libdir" ; then
  23513. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  23514. fi
  23515. if test -z "$kerberos_incdir" ; then
  23516. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  23517. fi
  23518. if test -n "$kerberos_lib" ; then
  23519. { echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  23520. echo "${ECHO_T}using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  23521. have_krb5=yes
  23522. fi
  23523. fi
  23524. fi
  23525. fi
  23526. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  23527. # save these in order to set them to use the check macros below
  23528. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  23529. save_CPPFLAGS="$CPPFLAGS"
  23530. if test -n "$kerberos_incdir" ; then
  23531. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  23532. fi
  23533. save_LDFLAGS="$LDFLAGS"
  23534. if test -n "$kerberos_libdir" ; then
  23535. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  23536. fi
  23537. krb5_impl=mit
  23538. for ac_header in heim_err.h
  23539. do
  23540. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23541. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23542. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  23543. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  23544. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23545. echo $ECHO_N "(cached) $ECHO_C" >&6
  23546. fi
  23547. ac_res=`eval echo '${'$as_ac_Header'}'`
  23548. { echo "$as_me:$LINENO: result: $ac_res" >&5
  23549. echo "${ECHO_T}$ac_res" >&6; }
  23550. else
  23551. # Is the header compilable?
  23552. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23553. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  23554. cat >conftest.$ac_ext <<_ACEOF
  23555. /* confdefs.h. */
  23556. _ACEOF
  23557. cat confdefs.h >>conftest.$ac_ext
  23558. cat >>conftest.$ac_ext <<_ACEOF
  23559. /* end confdefs.h. */
  23560. $ac_includes_default
  23561. #include <$ac_header>
  23562. _ACEOF
  23563. rm -f conftest.$ac_objext
  23564. if { (ac_try="$ac_compile"
  23565. case "(($ac_try" in
  23566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23567. *) ac_try_echo=$ac_try;;
  23568. esac
  23569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23570. (eval "$ac_compile") 2>conftest.er1
  23571. ac_status=$?
  23572. grep -v '^ *+' conftest.er1 >conftest.err
  23573. rm -f conftest.er1
  23574. cat conftest.err >&5
  23575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23576. (exit $ac_status); } && {
  23577. test -z "$ac_c_werror_flag" ||
  23578. test ! -s conftest.err
  23579. } && test -s conftest.$ac_objext; then
  23580. ac_header_compiler=yes
  23581. else
  23582. echo "$as_me: failed program was:" >&5
  23583. sed 's/^/| /' conftest.$ac_ext >&5
  23584. ac_header_compiler=no
  23585. fi
  23586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23587. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23588. echo "${ECHO_T}$ac_header_compiler" >&6; }
  23589. # Is the header present?
  23590. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23591. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  23592. cat >conftest.$ac_ext <<_ACEOF
  23593. /* confdefs.h. */
  23594. _ACEOF
  23595. cat confdefs.h >>conftest.$ac_ext
  23596. cat >>conftest.$ac_ext <<_ACEOF
  23597. /* end confdefs.h. */
  23598. #include <$ac_header>
  23599. _ACEOF
  23600. if { (ac_try="$ac_cpp conftest.$ac_ext"
  23601. case "(($ac_try" in
  23602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23603. *) ac_try_echo=$ac_try;;
  23604. esac
  23605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23606. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  23607. ac_status=$?
  23608. grep -v '^ *+' conftest.er1 >conftest.err
  23609. rm -f conftest.er1
  23610. cat conftest.err >&5
  23611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23612. (exit $ac_status); } >/dev/null && {
  23613. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  23614. test ! -s conftest.err
  23615. }; then
  23616. ac_header_preproc=yes
  23617. else
  23618. echo "$as_me: failed program was:" >&5
  23619. sed 's/^/| /' conftest.$ac_ext >&5
  23620. ac_header_preproc=no
  23621. fi
  23622. rm -f conftest.err conftest.$ac_ext
  23623. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23624. echo "${ECHO_T}$ac_header_preproc" >&6; }
  23625. # So? What about this header?
  23626. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23627. yes:no: )
  23628. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23629. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23630. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23631. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23632. ac_header_preproc=yes
  23633. ;;
  23634. no:yes:* )
  23635. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23636. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23637. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23638. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23639. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23640. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23641. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23642. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23643. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23644. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23645. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23646. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23647. ( cat <<\_ASBOX
  23648. ## ------------------------------------------ ##
  23649. ## Report this to http://bugzilla.redhat.com/ ##
  23650. ## ------------------------------------------ ##
  23651. _ASBOX
  23652. ) | sed "s/^/$as_me: WARNING: /" >&2
  23653. ;;
  23654. esac
  23655. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  23656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  23657. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  23658. echo $ECHO_N "(cached) $ECHO_C" >&6
  23659. else
  23660. eval "$as_ac_Header=\$ac_header_preproc"
  23661. fi
  23662. ac_res=`eval echo '${'$as_ac_Header'}'`
  23663. { echo "$as_me:$LINENO: result: $ac_res" >&5
  23664. echo "${ECHO_T}$ac_res" >&6; }
  23665. fi
  23666. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23667. cat >>confdefs.h <<_ACEOF
  23668. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23669. _ACEOF
  23670. fi
  23671. done
  23672. if test $ac_cv_header_heim_err_h = yes ; then
  23673. krb5_impl=heimdal
  23674. fi
  23675. if test "x$krb5_impl" = "xmit"; then
  23676. { echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  23677. echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6; }
  23678. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  23679. echo $ECHO_N "(cached) $ECHO_C" >&6
  23680. else
  23681. ac_check_lib_save_LIBS=$LIBS
  23682. LIBS="-lk5crypto $LIBS"
  23683. cat >conftest.$ac_ext <<_ACEOF
  23684. /* confdefs.h. */
  23685. _ACEOF
  23686. cat confdefs.h >>conftest.$ac_ext
  23687. cat >>conftest.$ac_ext <<_ACEOF
  23688. /* end confdefs.h. */
  23689. int
  23690. main ()
  23691. {
  23692. return main ();
  23693. ;
  23694. return 0;
  23695. }
  23696. _ACEOF
  23697. rm -f conftest.$ac_objext conftest$ac_exeext
  23698. if { (ac_try="$ac_link"
  23699. case "(($ac_try" in
  23700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23701. *) ac_try_echo=$ac_try;;
  23702. esac
  23703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23704. (eval "$ac_link") 2>conftest.er1
  23705. ac_status=$?
  23706. grep -v '^ *+' conftest.er1 >conftest.err
  23707. rm -f conftest.er1
  23708. cat conftest.err >&5
  23709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23710. (exit $ac_status); } && {
  23711. test -z "$ac_c_werror_flag" ||
  23712. test ! -s conftest.err
  23713. } && test -s conftest$ac_exeext &&
  23714. $as_test_x conftest$ac_exeext; then
  23715. ac_cv_lib_k5crypto_main=yes
  23716. else
  23717. echo "$as_me: failed program was:" >&5
  23718. sed 's/^/| /' conftest.$ac_ext >&5
  23719. ac_cv_lib_k5crypto_main=no
  23720. fi
  23721. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23722. conftest$ac_exeext conftest.$ac_ext
  23723. LIBS=$ac_check_lib_save_LIBS
  23724. fi
  23725. { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  23726. echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6; }
  23727. if test $ac_cv_lib_k5crypto_main = yes; then
  23728. krb5crypto=k5crypto
  23729. else
  23730. krb5crypto=crypto
  23731. fi
  23732. { echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23733. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6; }
  23734. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23735. echo $ECHO_N "(cached) $ECHO_C" >&6
  23736. else
  23737. ac_check_lib_save_LIBS=$LIBS
  23738. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  23739. cat >conftest.$ac_ext <<_ACEOF
  23740. /* confdefs.h. */
  23741. _ACEOF
  23742. cat confdefs.h >>conftest.$ac_ext
  23743. cat >>conftest.$ac_ext <<_ACEOF
  23744. /* end confdefs.h. */
  23745. int
  23746. main ()
  23747. {
  23748. return main ();
  23749. ;
  23750. return 0;
  23751. }
  23752. _ACEOF
  23753. rm -f conftest.$ac_objext conftest$ac_exeext
  23754. if { (ac_try="$ac_link"
  23755. case "(($ac_try" in
  23756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23757. *) ac_try_echo=$ac_try;;
  23758. esac
  23759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23760. (eval "$ac_link") 2>conftest.er1
  23761. ac_status=$?
  23762. grep -v '^ *+' conftest.er1 >conftest.err
  23763. rm -f conftest.er1
  23764. cat conftest.err >&5
  23765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23766. (exit $ac_status); } && {
  23767. test -z "$ac_c_werror_flag" ||
  23768. test ! -s conftest.err
  23769. } && test -s conftest$ac_exeext &&
  23770. $as_test_x conftest$ac_exeext; then
  23771. ac_cv_lib_krb5_main=yes
  23772. else
  23773. echo "$as_me: failed program was:" >&5
  23774. sed 's/^/| /' conftest.$ac_ext >&5
  23775. ac_cv_lib_krb5_main=no
  23776. fi
  23777. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23778. conftest$ac_exeext conftest.$ac_ext
  23779. LIBS=$ac_check_lib_save_LIBS
  23780. fi
  23781. { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23782. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6; }
  23783. if test $ac_cv_lib_krb5_main = yes; then
  23784. have_krb5=yes
  23785. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  23786. else
  23787. have_krb5=no
  23788. fi
  23789. elif test "x$krb5_impl" = "xheimdal"; then
  23790. { echo "$as_me:$LINENO: checking for main in -ldes" >&5
  23791. echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6; }
  23792. if test "${ac_cv_lib_des_main+set}" = set; then
  23793. echo $ECHO_N "(cached) $ECHO_C" >&6
  23794. else
  23795. ac_check_lib_save_LIBS=$LIBS
  23796. LIBS="-ldes $LIBS"
  23797. cat >conftest.$ac_ext <<_ACEOF
  23798. /* confdefs.h. */
  23799. _ACEOF
  23800. cat confdefs.h >>conftest.$ac_ext
  23801. cat >>conftest.$ac_ext <<_ACEOF
  23802. /* end confdefs.h. */
  23803. int
  23804. main ()
  23805. {
  23806. return main ();
  23807. ;
  23808. return 0;
  23809. }
  23810. _ACEOF
  23811. rm -f conftest.$ac_objext conftest$ac_exeext
  23812. if { (ac_try="$ac_link"
  23813. case "(($ac_try" in
  23814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23815. *) ac_try_echo=$ac_try;;
  23816. esac
  23817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23818. (eval "$ac_link") 2>conftest.er1
  23819. ac_status=$?
  23820. grep -v '^ *+' conftest.er1 >conftest.err
  23821. rm -f conftest.er1
  23822. cat conftest.err >&5
  23823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23824. (exit $ac_status); } && {
  23825. test -z "$ac_c_werror_flag" ||
  23826. test ! -s conftest.err
  23827. } && test -s conftest$ac_exeext &&
  23828. $as_test_x conftest$ac_exeext; then
  23829. ac_cv_lib_des_main=yes
  23830. else
  23831. echo "$as_me: failed program was:" >&5
  23832. sed 's/^/| /' conftest.$ac_ext >&5
  23833. ac_cv_lib_des_main=no
  23834. fi
  23835. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23836. conftest$ac_exeext conftest.$ac_ext
  23837. LIBS=$ac_check_lib_save_LIBS
  23838. fi
  23839. { echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  23840. echo "${ECHO_T}$ac_cv_lib_des_main" >&6; }
  23841. if test $ac_cv_lib_des_main = yes; then
  23842. krb5crypto=des
  23843. else
  23844. krb5crypto=crypto
  23845. fi
  23846. { echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23847. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6; }
  23848. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23849. echo $ECHO_N "(cached) $ECHO_C" >&6
  23850. else
  23851. ac_check_lib_save_LIBS=$LIBS
  23852. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  23853. cat >conftest.$ac_ext <<_ACEOF
  23854. /* confdefs.h. */
  23855. _ACEOF
  23856. cat confdefs.h >>conftest.$ac_ext
  23857. cat >>conftest.$ac_ext <<_ACEOF
  23858. /* end confdefs.h. */
  23859. int
  23860. main ()
  23861. {
  23862. return main ();
  23863. ;
  23864. return 0;
  23865. }
  23866. _ACEOF
  23867. rm -f conftest.$ac_objext conftest$ac_exeext
  23868. if { (ac_try="$ac_link"
  23869. case "(($ac_try" in
  23870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23871. *) ac_try_echo=$ac_try;;
  23872. esac
  23873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23874. (eval "$ac_link") 2>conftest.er1
  23875. ac_status=$?
  23876. grep -v '^ *+' conftest.er1 >conftest.err
  23877. rm -f conftest.er1
  23878. cat conftest.err >&5
  23879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23880. (exit $ac_status); } && {
  23881. test -z "$ac_c_werror_flag" ||
  23882. test ! -s conftest.err
  23883. } && test -s conftest$ac_exeext &&
  23884. $as_test_x conftest$ac_exeext; then
  23885. ac_cv_lib_krb5_main=yes
  23886. else
  23887. echo "$as_me: failed program was:" >&5
  23888. sed 's/^/| /' conftest.$ac_ext >&5
  23889. ac_cv_lib_krb5_main=no
  23890. fi
  23891. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23892. conftest$ac_exeext conftest.$ac_ext
  23893. LIBS=$ac_check_lib_save_LIBS
  23894. fi
  23895. { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23896. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6; }
  23897. if test $ac_cv_lib_krb5_main = yes; then
  23898. have_krb5=yes
  23899. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  23900. else
  23901. have_krb5=no
  23902. fi
  23903. cat >>confdefs.h <<\_ACEOF
  23904. #define HAVE_HEIMDAL_KERBEROS 1
  23905. _ACEOF
  23906. else
  23907. have_krb5=no
  23908. { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  23909. echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  23910. fi
  23911. # reset to original values
  23912. CPPFLAGS="$save_CPPFLAGS"
  23913. LDFLAGS="$save_LDFLAGS"
  23914. if test -n "$kerberos_incdir" ; then
  23915. kerberos_inc="-I$kerberos_incdir"
  23916. fi
  23917. if test -n "$kerberos_libdir" ; then
  23918. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  23919. fi
  23920. fi
  23921. if test -n "$with_kerberos" ; then
  23922. if test "x$have_krb5" = "xyes" ; then
  23923. cat >>confdefs.h <<\_ACEOF
  23924. #define HAVE_KRB5 1
  23925. _ACEOF
  23926. else
  23927. { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  23928. echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  23929. { (exit 1); exit 1; }; }
  23930. fi
  23931. save_LIBS="$LIBS"
  23932. LIBS="$kerberos_lib"
  23933. save_CPPFLAGS="$CPPFLAGS"
  23934. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  23935. for ac_func in krb5_cc_new_unique
  23936. do
  23937. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23938. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  23939. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  23940. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  23941. echo $ECHO_N "(cached) $ECHO_C" >&6
  23942. else
  23943. cat >conftest.$ac_ext <<_ACEOF
  23944. /* confdefs.h. */
  23945. _ACEOF
  23946. cat confdefs.h >>conftest.$ac_ext
  23947. cat >>conftest.$ac_ext <<_ACEOF
  23948. /* end confdefs.h. */
  23949. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23950. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23951. #define $ac_func innocuous_$ac_func
  23952. /* System header to define __stub macros and hopefully few prototypes,
  23953. which can conflict with char $ac_func (); below.
  23954. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23955. <limits.h> exists even on freestanding compilers. */
  23956. #ifdef __STDC__
  23957. # include <limits.h>
  23958. #else
  23959. # include <assert.h>
  23960. #endif
  23961. #undef $ac_func
  23962. /* Override any GCC internal prototype to avoid an error.
  23963. Use char because int might match the return type of a GCC
  23964. builtin and then its argument prototype would still apply. */
  23965. #ifdef __cplusplus
  23966. extern "C"
  23967. #endif
  23968. char $ac_func ();
  23969. /* The GNU C library defines this for functions which it implements
  23970. to always fail with ENOSYS. Some functions are actually named
  23971. something starting with __ and the normal name is an alias. */
  23972. #if defined __stub_$ac_func || defined __stub___$ac_func
  23973. choke me
  23974. #endif
  23975. int
  23976. main ()
  23977. {
  23978. return $ac_func ();
  23979. ;
  23980. return 0;
  23981. }
  23982. _ACEOF
  23983. rm -f conftest.$ac_objext conftest$ac_exeext
  23984. if { (ac_try="$ac_link"
  23985. case "(($ac_try" in
  23986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23987. *) ac_try_echo=$ac_try;;
  23988. esac
  23989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23990. (eval "$ac_link") 2>conftest.er1
  23991. ac_status=$?
  23992. grep -v '^ *+' conftest.er1 >conftest.err
  23993. rm -f conftest.er1
  23994. cat conftest.err >&5
  23995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23996. (exit $ac_status); } && {
  23997. test -z "$ac_c_werror_flag" ||
  23998. test ! -s conftest.err
  23999. } && test -s conftest$ac_exeext &&
  24000. $as_test_x conftest$ac_exeext; then
  24001. eval "$as_ac_var=yes"
  24002. else
  24003. echo "$as_me: failed program was:" >&5
  24004. sed 's/^/| /' conftest.$ac_ext >&5
  24005. eval "$as_ac_var=no"
  24006. fi
  24007. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24008. conftest$ac_exeext conftest.$ac_ext
  24009. fi
  24010. ac_res=`eval echo '${'$as_ac_var'}'`
  24011. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24012. echo "${ECHO_T}$ac_res" >&6; }
  24013. if test `eval echo '${'$as_ac_var'}'` = yes; then
  24014. cat >>confdefs.h <<_ACEOF
  24015. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24016. _ACEOF
  24017. fi
  24018. done
  24019. LIBS="$save_LIBS"
  24020. CPPFLAGS="$save_CPPFLAGS"
  24021. fi
  24022. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  24023. # set sasl_path for wrapper scripts
  24024. if test -z "$sasl_libdir" ; then
  24025. sasl_path="$libdir/sasl2"
  24026. else
  24027. sasl_path="$sasl_libdir/sasl2"
  24028. fi
  24029. # write out paths for binary components
  24030. cat >>confdefs.h <<\_ACEOF
  24031. #define LDAP_DEBUG 1
  24032. _ACEOF
  24033. cat >>confdefs.h <<\_ACEOF
  24034. #define LDAP_DONT_USE_SMARTHEAP 1
  24035. _ACEOF
  24036. # libtool on fedora/rhel contains some gcc-isms which cause problems
  24037. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  24038. # we remove them here
  24039. if test "$GCC" != yes ; then
  24040. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  24041. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  24042. cp -p libtool libtool.orig
  24043. cp -p libtool libtool.tmp
  24044. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  24045. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  24046. # perl produced write-only code . . .
  24047. sed -e '/^gcc_dir/ d' \
  24048. -e '/^gcc_ver/ d' \
  24049. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  24050. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  24051. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  24052. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  24053. libtool > libtool.tmp
  24054. cp -p libtool.tmp libtool
  24055. rm -f libtool.tmp
  24056. fi
  24057. ac_config_files="$ac_config_files Makefile"
  24058. cat >confcache <<\_ACEOF
  24059. # This file is a shell script that caches the results of configure
  24060. # tests run on this system so they can be shared between configure
  24061. # scripts and configure runs, see configure's option --config-cache.
  24062. # It is not useful on other systems. If it contains results you don't
  24063. # want to keep, you may remove or edit it.
  24064. #
  24065. # config.status only pays attention to the cache file if you give it
  24066. # the --recheck option to rerun configure.
  24067. #
  24068. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24069. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24070. # following values.
  24071. _ACEOF
  24072. # The following way of writing the cache mishandles newlines in values,
  24073. # but we know of no workaround that is simple, portable, and efficient.
  24074. # So, we kill variables containing newlines.
  24075. # Ultrix sh set writes to stderr and can't be redirected directly,
  24076. # and sets the high bit in the cache file unless we assign to the vars.
  24077. (
  24078. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24079. eval ac_val=\$$ac_var
  24080. case $ac_val in #(
  24081. *${as_nl}*)
  24082. case $ac_var in #(
  24083. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  24084. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  24085. esac
  24086. case $ac_var in #(
  24087. _ | IFS | as_nl) ;; #(
  24088. *) $as_unset $ac_var ;;
  24089. esac ;;
  24090. esac
  24091. done
  24092. (set) 2>&1 |
  24093. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24094. *${as_nl}ac_space=\ *)
  24095. # `set' does not quote correctly, so add quotes (double-quote
  24096. # substitution turns \\\\ into \\, and sed turns \\ into \).
  24097. sed -n \
  24098. "s/'/'\\\\''/g;
  24099. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24100. ;; #(
  24101. *)
  24102. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24103. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24104. ;;
  24105. esac |
  24106. sort
  24107. ) |
  24108. sed '
  24109. /^ac_cv_env_/b end
  24110. t clear
  24111. :clear
  24112. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  24113. t end
  24114. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24115. :end' >>confcache
  24116. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24117. if test -w "$cache_file"; then
  24118. test "x$cache_file" != "x/dev/null" &&
  24119. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  24120. echo "$as_me: updating cache $cache_file" >&6;}
  24121. cat confcache >$cache_file
  24122. else
  24123. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  24124. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  24125. fi
  24126. fi
  24127. rm -f confcache
  24128. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24129. # Let make expand exec_prefix.
  24130. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24131. DEFS=-DHAVE_CONFIG_H
  24132. ac_libobjs=
  24133. ac_ltlibobjs=
  24134. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24135. # 1. Remove the extension, and $U if already installed.
  24136. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24137. ac_i=`echo "$ac_i" | sed "$ac_script"`
  24138. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24139. # will be set to the directory where LIBOBJS objects are built.
  24140. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24141. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  24142. done
  24143. LIBOBJS=$ac_libobjs
  24144. LTLIBOBJS=$ac_ltlibobjs
  24145. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  24146. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  24147. Usually this means the macro was only invoked conditionally." >&5
  24148. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  24149. Usually this means the macro was only invoked conditionally." >&2;}
  24150. { (exit 1); exit 1; }; }
  24151. fi
  24152. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  24153. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  24154. Usually this means the macro was only invoked conditionally." >&5
  24155. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  24156. Usually this means the macro was only invoked conditionally." >&2;}
  24157. { (exit 1); exit 1; }; }
  24158. fi
  24159. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  24160. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  24161. Usually this means the macro was only invoked conditionally." >&5
  24162. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  24163. Usually this means the macro was only invoked conditionally." >&2;}
  24164. { (exit 1); exit 1; }; }
  24165. fi
  24166. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  24167. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  24168. Usually this means the macro was only invoked conditionally." >&5
  24169. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  24170. Usually this means the macro was only invoked conditionally." >&2;}
  24171. { (exit 1); exit 1; }; }
  24172. fi
  24173. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  24174. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  24175. Usually this means the macro was only invoked conditionally." >&5
  24176. echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  24177. Usually this means the macro was only invoked conditionally." >&2;}
  24178. { (exit 1); exit 1; }; }
  24179. fi
  24180. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  24181. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  24182. Usually this means the macro was only invoked conditionally." >&5
  24183. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  24184. Usually this means the macro was only invoked conditionally." >&2;}
  24185. { (exit 1); exit 1; }; }
  24186. fi
  24187. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  24188. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  24189. Usually this means the macro was only invoked conditionally." >&5
  24190. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  24191. Usually this means the macro was only invoked conditionally." >&2;}
  24192. { (exit 1); exit 1; }; }
  24193. fi
  24194. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  24195. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  24196. Usually this means the macro was only invoked conditionally." >&5
  24197. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  24198. Usually this means the macro was only invoked conditionally." >&2;}
  24199. { (exit 1); exit 1; }; }
  24200. fi
  24201. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  24202. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  24203. Usually this means the macro was only invoked conditionally." >&5
  24204. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  24205. Usually this means the macro was only invoked conditionally." >&2;}
  24206. { (exit 1); exit 1; }; }
  24207. fi
  24208. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  24209. { { echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  24210. Usually this means the macro was only invoked conditionally." >&5
  24211. echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  24212. Usually this means the macro was only invoked conditionally." >&2;}
  24213. { (exit 1); exit 1; }; }
  24214. fi
  24215. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  24216. { { echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24217. Usually this means the macro was only invoked conditionally." >&5
  24218. echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24219. Usually this means the macro was only invoked conditionally." >&2;}
  24220. { (exit 1); exit 1; }; }
  24221. fi
  24222. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  24223. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  24224. Usually this means the macro was only invoked conditionally." >&5
  24225. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  24226. Usually this means the macro was only invoked conditionally." >&2;}
  24227. { (exit 1); exit 1; }; }
  24228. fi
  24229. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  24230. { { echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  24231. Usually this means the macro was only invoked conditionally." >&5
  24232. echo "$as_me: error: conditional \"enable_presence\" was never defined.
  24233. Usually this means the macro was only invoked conditionally." >&2;}
  24234. { (exit 1); exit 1; }; }
  24235. fi
  24236. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  24237. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  24238. Usually this means the macro was only invoked conditionally." >&5
  24239. echo "$as_me: error: conditional \"WINNT\" was never defined.
  24240. Usually this means the macro was only invoked conditionally." >&2;}
  24241. { (exit 1); exit 1; }; }
  24242. fi
  24243. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  24244. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  24245. Usually this means the macro was only invoked conditionally." >&5
  24246. echo "$as_me: error: conditional \"HPUX\" was never defined.
  24247. Usually this means the macro was only invoked conditionally." >&2;}
  24248. { (exit 1); exit 1; }; }
  24249. fi
  24250. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  24251. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  24252. Usually this means the macro was only invoked conditionally." >&5
  24253. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  24254. Usually this means the macro was only invoked conditionally." >&2;}
  24255. { (exit 1); exit 1; }; }
  24256. fi
  24257. : ${CONFIG_STATUS=./config.status}
  24258. ac_clean_files_save=$ac_clean_files
  24259. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24260. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  24261. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  24262. cat >$CONFIG_STATUS <<_ACEOF
  24263. #! $SHELL
  24264. # Generated by $as_me.
  24265. # Run this file to recreate the current configuration.
  24266. # Compiler output produced by configure, useful for debugging
  24267. # configure, is in config.log if it exists.
  24268. debug=false
  24269. ac_cs_recheck=false
  24270. ac_cs_silent=false
  24271. SHELL=\${CONFIG_SHELL-$SHELL}
  24272. _ACEOF
  24273. cat >>$CONFIG_STATUS <<\_ACEOF
  24274. ## --------------------- ##
  24275. ## M4sh Initialization. ##
  24276. ## --------------------- ##
  24277. # Be more Bourne compatible
  24278. DUALCASE=1; export DUALCASE # for MKS sh
  24279. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  24280. emulate sh
  24281. NULLCMD=:
  24282. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  24283. # is contrary to our usage. Disable this feature.
  24284. alias -g '${1+"$@"}'='"$@"'
  24285. setopt NO_GLOB_SUBST
  24286. else
  24287. case `(set -o) 2>/dev/null` in
  24288. *posix*) set -o posix ;;
  24289. esac
  24290. fi
  24291. # PATH needs CR
  24292. # Avoid depending upon Character Ranges.
  24293. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24294. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24295. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24296. as_cr_digits='0123456789'
  24297. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24298. # The user is always right.
  24299. if test "${PATH_SEPARATOR+set}" != set; then
  24300. echo "#! /bin/sh" >conf$$.sh
  24301. echo "exit 0" >>conf$$.sh
  24302. chmod +x conf$$.sh
  24303. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  24304. PATH_SEPARATOR=';'
  24305. else
  24306. PATH_SEPARATOR=:
  24307. fi
  24308. rm -f conf$$.sh
  24309. fi
  24310. # Support unset when possible.
  24311. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24312. as_unset=unset
  24313. else
  24314. as_unset=false
  24315. fi
  24316. # IFS
  24317. # We need space, tab and new line, in precisely that order. Quoting is
  24318. # there to prevent editors from complaining about space-tab.
  24319. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  24320. # splitting by setting IFS to empty value.)
  24321. as_nl='
  24322. '
  24323. IFS=" "" $as_nl"
  24324. # Find who we are. Look in the path if we contain no directory separator.
  24325. case $0 in
  24326. *[\\/]* ) as_myself=$0 ;;
  24327. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24328. for as_dir in $PATH
  24329. do
  24330. IFS=$as_save_IFS
  24331. test -z "$as_dir" && as_dir=.
  24332. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  24333. done
  24334. IFS=$as_save_IFS
  24335. ;;
  24336. esac
  24337. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24338. # in which case we are not to be found in the path.
  24339. if test "x$as_myself" = x; then
  24340. as_myself=$0
  24341. fi
  24342. if test ! -f "$as_myself"; then
  24343. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  24344. { (exit 1); exit 1; }
  24345. fi
  24346. # Work around bugs in pre-3.0 UWIN ksh.
  24347. for as_var in ENV MAIL MAILPATH
  24348. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  24349. done
  24350. PS1='$ '
  24351. PS2='> '
  24352. PS4='+ '
  24353. # NLS nuisances.
  24354. for as_var in \
  24355. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  24356. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  24357. LC_TELEPHONE LC_TIME
  24358. do
  24359. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  24360. eval $as_var=C; export $as_var
  24361. else
  24362. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  24363. fi
  24364. done
  24365. # Required to use basename.
  24366. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24367. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24368. as_expr=expr
  24369. else
  24370. as_expr=false
  24371. fi
  24372. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24373. as_basename=basename
  24374. else
  24375. as_basename=false
  24376. fi
  24377. # Name of the executable.
  24378. as_me=`$as_basename -- "$0" ||
  24379. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24380. X"$0" : 'X\(//\)$' \| \
  24381. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24382. echo X/"$0" |
  24383. sed '/^.*\/\([^/][^/]*\)\/*$/{
  24384. s//\1/
  24385. q
  24386. }
  24387. /^X\/\(\/\/\)$/{
  24388. s//\1/
  24389. q
  24390. }
  24391. /^X\/\(\/\).*/{
  24392. s//\1/
  24393. q
  24394. }
  24395. s/.*/./; q'`
  24396. # CDPATH.
  24397. $as_unset CDPATH
  24398. as_lineno_1=$LINENO
  24399. as_lineno_2=$LINENO
  24400. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24401. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  24402. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  24403. # uniformly replaced by the line number. The first 'sed' inserts a
  24404. # line-number line after each line using $LINENO; the second 'sed'
  24405. # does the real work. The second script uses 'N' to pair each
  24406. # line-number line with the line containing $LINENO, and appends
  24407. # trailing '-' during substitution so that $LINENO is not a special
  24408. # case at line end.
  24409. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  24410. # scripts with optimization help from Paolo Bonzini. Blame Lee
  24411. # E. McMahon (1931-1989) for sed's syntax. :-)
  24412. sed -n '
  24413. p
  24414. /[$]LINENO/=
  24415. ' <$as_myself |
  24416. sed '
  24417. s/[$]LINENO.*/&-/
  24418. t lineno
  24419. b
  24420. :lineno
  24421. N
  24422. :loop
  24423. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  24424. t loop
  24425. s/-\n.*//
  24426. ' >$as_me.lineno &&
  24427. chmod +x "$as_me.lineno" ||
  24428. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  24429. { (exit 1); exit 1; }; }
  24430. # Don't try to exec as it changes $[0], causing all sort of problems
  24431. # (the dirname of $[0] is not the place where we might find the
  24432. # original and so on. Autoconf is especially sensitive to this).
  24433. . "./$as_me.lineno"
  24434. # Exit status is that of the last command.
  24435. exit
  24436. }
  24437. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24438. as_dirname=dirname
  24439. else
  24440. as_dirname=false
  24441. fi
  24442. ECHO_C= ECHO_N= ECHO_T=
  24443. case `echo -n x` in
  24444. -n*)
  24445. case `echo 'x\c'` in
  24446. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  24447. *) ECHO_C='\c';;
  24448. esac;;
  24449. *)
  24450. ECHO_N='-n';;
  24451. esac
  24452. if expr a : '\(a\)' >/dev/null 2>&1 &&
  24453. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24454. as_expr=expr
  24455. else
  24456. as_expr=false
  24457. fi
  24458. rm -f conf$$ conf$$.exe conf$$.file
  24459. if test -d conf$$.dir; then
  24460. rm -f conf$$.dir/conf$$.file
  24461. else
  24462. rm -f conf$$.dir
  24463. mkdir conf$$.dir
  24464. fi
  24465. echo >conf$$.file
  24466. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24467. as_ln_s='ln -s'
  24468. # ... but there are two gotchas:
  24469. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24470. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24471. # In both cases, we have to default to `cp -p'.
  24472. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24473. as_ln_s='cp -p'
  24474. elif ln conf$$.file conf$$ 2>/dev/null; then
  24475. as_ln_s=ln
  24476. else
  24477. as_ln_s='cp -p'
  24478. fi
  24479. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24480. rmdir conf$$.dir 2>/dev/null
  24481. if mkdir -p . 2>/dev/null; then
  24482. as_mkdir_p=:
  24483. else
  24484. test -d ./-p && rmdir ./-p
  24485. as_mkdir_p=false
  24486. fi
  24487. if test -x / >/dev/null 2>&1; then
  24488. as_test_x='test -x'
  24489. else
  24490. if ls -dL / >/dev/null 2>&1; then
  24491. as_ls_L_option=L
  24492. else
  24493. as_ls_L_option=
  24494. fi
  24495. as_test_x='
  24496. eval sh -c '\''
  24497. if test -d "$1"; then
  24498. test -d "$1/.";
  24499. else
  24500. case $1 in
  24501. -*)set "./$1";;
  24502. esac;
  24503. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  24504. ???[sx]*):;;*)false;;esac;fi
  24505. '\'' sh
  24506. '
  24507. fi
  24508. as_executable_p=$as_test_x
  24509. # Sed expression to map a string onto a valid CPP name.
  24510. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24511. # Sed expression to map a string onto a valid variable name.
  24512. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24513. exec 6>&1
  24514. # Save the log message, to keep $[0] and so on meaningful, and to
  24515. # report actual input values of CONFIG_FILES etc. instead of their
  24516. # values after options handling.
  24517. ac_log="
  24518. This file was extended by dirsrv $as_me 1.2.0, which was
  24519. generated by GNU Autoconf 2.61. Invocation command line was
  24520. CONFIG_FILES = $CONFIG_FILES
  24521. CONFIG_HEADERS = $CONFIG_HEADERS
  24522. CONFIG_LINKS = $CONFIG_LINKS
  24523. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24524. $ $0 $@
  24525. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24526. "
  24527. _ACEOF
  24528. cat >>$CONFIG_STATUS <<_ACEOF
  24529. # Files that config.status was made for.
  24530. config_files="$ac_config_files"
  24531. config_headers="$ac_config_headers"
  24532. config_commands="$ac_config_commands"
  24533. _ACEOF
  24534. cat >>$CONFIG_STATUS <<\_ACEOF
  24535. ac_cs_usage="\
  24536. \`$as_me' instantiates files from templates according to the
  24537. current configuration.
  24538. Usage: $0 [OPTIONS] [FILE]...
  24539. -h, --help print this help, then exit
  24540. -V, --version print version number and configuration settings, then exit
  24541. -q, --quiet do not print progress messages
  24542. -d, --debug don't remove temporary files
  24543. --recheck update $as_me by reconfiguring in the same conditions
  24544. --file=FILE[:TEMPLATE]
  24545. instantiate the configuration file FILE
  24546. --header=FILE[:TEMPLATE]
  24547. instantiate the configuration header FILE
  24548. Configuration files:
  24549. $config_files
  24550. Configuration headers:
  24551. $config_headers
  24552. Configuration commands:
  24553. $config_commands
  24554. Report bugs to <[email protected]>."
  24555. _ACEOF
  24556. cat >>$CONFIG_STATUS <<_ACEOF
  24557. ac_cs_version="\\
  24558. dirsrv config.status 1.2.0
  24559. configured by $0, generated by GNU Autoconf 2.61,
  24560. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  24561. Copyright (C) 2006 Free Software Foundation, Inc.
  24562. This config.status script is free software; the Free Software Foundation
  24563. gives unlimited permission to copy, distribute and modify it."
  24564. ac_pwd='$ac_pwd'
  24565. srcdir='$srcdir'
  24566. INSTALL='$INSTALL'
  24567. MKDIR_P='$MKDIR_P'
  24568. _ACEOF
  24569. cat >>$CONFIG_STATUS <<\_ACEOF
  24570. # If no file are specified by the user, then we need to provide default
  24571. # value. By we need to know if files were specified by the user.
  24572. ac_need_defaults=:
  24573. while test $# != 0
  24574. do
  24575. case $1 in
  24576. --*=*)
  24577. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24578. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  24579. ac_shift=:
  24580. ;;
  24581. *)
  24582. ac_option=$1
  24583. ac_optarg=$2
  24584. ac_shift=shift
  24585. ;;
  24586. esac
  24587. case $ac_option in
  24588. # Handling of the options.
  24589. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24590. ac_cs_recheck=: ;;
  24591. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24592. echo "$ac_cs_version"; exit ;;
  24593. --debug | --debu | --deb | --de | --d | -d )
  24594. debug=: ;;
  24595. --file | --fil | --fi | --f )
  24596. $ac_shift
  24597. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  24598. ac_need_defaults=false;;
  24599. --header | --heade | --head | --hea )
  24600. $ac_shift
  24601. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  24602. ac_need_defaults=false;;
  24603. --he | --h)
  24604. # Conflict between --help and --header
  24605. { echo "$as_me: error: ambiguous option: $1
  24606. Try \`$0 --help' for more information." >&2
  24607. { (exit 1); exit 1; }; };;
  24608. --help | --hel | -h )
  24609. echo "$ac_cs_usage"; exit ;;
  24610. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24611. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24612. ac_cs_silent=: ;;
  24613. # This is an error.
  24614. -*) { echo "$as_me: error: unrecognized option: $1
  24615. Try \`$0 --help' for more information." >&2
  24616. { (exit 1); exit 1; }; } ;;
  24617. *) ac_config_targets="$ac_config_targets $1"
  24618. ac_need_defaults=false ;;
  24619. esac
  24620. shift
  24621. done
  24622. ac_configure_extra_args=
  24623. if $ac_cs_silent; then
  24624. exec 6>/dev/null
  24625. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24626. fi
  24627. _ACEOF
  24628. cat >>$CONFIG_STATUS <<_ACEOF
  24629. if \$ac_cs_recheck; then
  24630. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  24631. CONFIG_SHELL=$SHELL
  24632. export CONFIG_SHELL
  24633. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24634. fi
  24635. _ACEOF
  24636. cat >>$CONFIG_STATUS <<\_ACEOF
  24637. exec 5>>config.log
  24638. {
  24639. echo
  24640. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24641. ## Running $as_me. ##
  24642. _ASBOX
  24643. echo "$ac_log"
  24644. } >&5
  24645. _ACEOF
  24646. cat >>$CONFIG_STATUS <<_ACEOF
  24647. #
  24648. # INIT-COMMANDS
  24649. #
  24650. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24651. _ACEOF
  24652. cat >>$CONFIG_STATUS <<\_ACEOF
  24653. # Handling of arguments.
  24654. for ac_config_target in $ac_config_targets
  24655. do
  24656. case $ac_config_target in
  24657. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24658. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24659. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24660. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  24661. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  24662. { (exit 1); exit 1; }; };;
  24663. esac
  24664. done
  24665. # If the user did not use the arguments to specify the items to instantiate,
  24666. # then the envvar interface is used. Set only those that are not.
  24667. # We use the long form for the default assignment because of an extremely
  24668. # bizarre bug on SunOS 4.1.3.
  24669. if $ac_need_defaults; then
  24670. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24671. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24672. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24673. fi
  24674. # Have a temporary directory for convenience. Make it in the build tree
  24675. # simply because there is no reason against having it here, and in addition,
  24676. # creating and moving files from /tmp can sometimes cause problems.
  24677. # Hook for its removal unless debugging.
  24678. # Note that there is a small window in which the directory will not be cleaned:
  24679. # after its creation but before its name has been assigned to `$tmp'.
  24680. $debug ||
  24681. {
  24682. tmp=
  24683. trap 'exit_status=$?
  24684. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  24685. ' 0
  24686. trap '{ (exit 1); exit 1; }' 1 2 13 15
  24687. }
  24688. # Create a (secure) tmp directory for tmp files.
  24689. {
  24690. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24691. test -n "$tmp" && test -d "$tmp"
  24692. } ||
  24693. {
  24694. tmp=./conf$$-$RANDOM
  24695. (umask 077 && mkdir "$tmp")
  24696. } ||
  24697. {
  24698. echo "$me: cannot create a temporary directory in ." >&2
  24699. { (exit 1); exit 1; }
  24700. }
  24701. #
  24702. # Set up the sed scripts for CONFIG_FILES section.
  24703. #
  24704. # No need to generate the scripts if there are no CONFIG_FILES.
  24705. # This happens for instance when ./config.status config.h
  24706. if test -n "$CONFIG_FILES"; then
  24707. _ACEOF
  24708. ac_delim='%!_!# '
  24709. for ac_last_try in false false false false false :; do
  24710. cat >conf$$subs.sed <<_ACEOF
  24711. SHELL!$SHELL$ac_delim
  24712. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  24713. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  24714. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  24715. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  24716. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  24717. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  24718. exec_prefix!$exec_prefix$ac_delim
  24719. prefix!$prefix$ac_delim
  24720. program_transform_name!$program_transform_name$ac_delim
  24721. bindir!$bindir$ac_delim
  24722. sbindir!$sbindir$ac_delim
  24723. libexecdir!$libexecdir$ac_delim
  24724. datarootdir!$datarootdir$ac_delim
  24725. datadir!$datadir$ac_delim
  24726. sysconfdir!$sysconfdir$ac_delim
  24727. sharedstatedir!$sharedstatedir$ac_delim
  24728. localstatedir!$localstatedir$ac_delim
  24729. includedir!$includedir$ac_delim
  24730. oldincludedir!$oldincludedir$ac_delim
  24731. docdir!$docdir$ac_delim
  24732. infodir!$infodir$ac_delim
  24733. htmldir!$htmldir$ac_delim
  24734. dvidir!$dvidir$ac_delim
  24735. pdfdir!$pdfdir$ac_delim
  24736. psdir!$psdir$ac_delim
  24737. libdir!$libdir$ac_delim
  24738. localedir!$localedir$ac_delim
  24739. mandir!$mandir$ac_delim
  24740. DEFS!$DEFS$ac_delim
  24741. ECHO_C!$ECHO_C$ac_delim
  24742. ECHO_N!$ECHO_N$ac_delim
  24743. ECHO_T!$ECHO_T$ac_delim
  24744. LIBS!$LIBS$ac_delim
  24745. build_alias!$build_alias$ac_delim
  24746. host_alias!$host_alias$ac_delim
  24747. target_alias!$target_alias$ac_delim
  24748. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  24749. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  24750. INSTALL_DATA!$INSTALL_DATA$ac_delim
  24751. am__isrc!$am__isrc$ac_delim
  24752. CYGPATH_W!$CYGPATH_W$ac_delim
  24753. PACKAGE!$PACKAGE$ac_delim
  24754. VERSION!$VERSION$ac_delim
  24755. ACLOCAL!$ACLOCAL$ac_delim
  24756. AUTOCONF!$AUTOCONF$ac_delim
  24757. AUTOMAKE!$AUTOMAKE$ac_delim
  24758. AUTOHEADER!$AUTOHEADER$ac_delim
  24759. MAKEINFO!$MAKEINFO$ac_delim
  24760. install_sh!$install_sh$ac_delim
  24761. STRIP!$STRIP$ac_delim
  24762. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  24763. mkdir_p!$mkdir_p$ac_delim
  24764. AWK!$AWK$ac_delim
  24765. SET_MAKE!$SET_MAKE$ac_delim
  24766. am__leading_dot!$am__leading_dot$ac_delim
  24767. AMTAR!$AMTAR$ac_delim
  24768. am__tar!$am__tar$ac_delim
  24769. am__untar!$am__untar$ac_delim
  24770. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  24771. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  24772. MAINT!$MAINT$ac_delim
  24773. build!$build$ac_delim
  24774. build_cpu!$build_cpu$ac_delim
  24775. build_vendor!$build_vendor$ac_delim
  24776. build_os!$build_os$ac_delim
  24777. host!$host$ac_delim
  24778. host_cpu!$host_cpu$ac_delim
  24779. host_vendor!$host_vendor$ac_delim
  24780. host_os!$host_os$ac_delim
  24781. CXX!$CXX$ac_delim
  24782. CXXFLAGS!$CXXFLAGS$ac_delim
  24783. LDFLAGS!$LDFLAGS$ac_delim
  24784. CPPFLAGS!$CPPFLAGS$ac_delim
  24785. ac_ct_CXX!$ac_ct_CXX$ac_delim
  24786. EXEEXT!$EXEEXT$ac_delim
  24787. OBJEXT!$OBJEXT$ac_delim
  24788. DEPDIR!$DEPDIR$ac_delim
  24789. am__include!$am__include$ac_delim
  24790. am__quote!$am__quote$ac_delim
  24791. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  24792. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  24793. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  24794. CXXDEPMODE!$CXXDEPMODE$ac_delim
  24795. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  24796. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  24797. CC!$CC$ac_delim
  24798. CFLAGS!$CFLAGS$ac_delim
  24799. ac_ct_CC!$ac_ct_CC$ac_delim
  24800. CCDEPMODE!$CCDEPMODE$ac_delim
  24801. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  24802. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  24803. CCAS!$CCAS$ac_delim
  24804. CCASFLAGS!$CCASFLAGS$ac_delim
  24805. CCASDEPMODE!$CCASDEPMODE$ac_delim
  24806. am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
  24807. am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
  24808. _ACEOF
  24809. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  24810. break
  24811. elif $ac_last_try; then
  24812. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  24813. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  24814. { (exit 1); exit 1; }; }
  24815. else
  24816. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24817. fi
  24818. done
  24819. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  24820. if test -n "$ac_eof"; then
  24821. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  24822. ac_eof=`expr $ac_eof + 1`
  24823. fi
  24824. cat >>$CONFIG_STATUS <<_ACEOF
  24825. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  24826. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24827. _ACEOF
  24828. sed '
  24829. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  24830. s/^/s,@/; s/!/@,|#_!!_#|/
  24831. :n
  24832. t n
  24833. s/'"$ac_delim"'$/,g/; t
  24834. s/$/\\/; p
  24835. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  24836. ' >>$CONFIG_STATUS <conf$$subs.sed
  24837. rm -f conf$$subs.sed
  24838. cat >>$CONFIG_STATUS <<_ACEOF
  24839. CEOF$ac_eof
  24840. _ACEOF
  24841. ac_delim='%!_!# '
  24842. for ac_last_try in false false false false false :; do
  24843. cat >conf$$subs.sed <<_ACEOF
  24844. SED!$SED$ac_delim
  24845. GREP!$GREP$ac_delim
  24846. EGREP!$EGREP$ac_delim
  24847. LN_S!$LN_S$ac_delim
  24848. ECHO!$ECHO$ac_delim
  24849. AR!$AR$ac_delim
  24850. RANLIB!$RANLIB$ac_delim
  24851. CPP!$CPP$ac_delim
  24852. CXXCPP!$CXXCPP$ac_delim
  24853. F77!$F77$ac_delim
  24854. FFLAGS!$FFLAGS$ac_delim
  24855. ac_ct_F77!$ac_ct_F77$ac_delim
  24856. LIBTOOL!$LIBTOOL$ac_delim
  24857. LIBOBJS!$LIBOBJS$ac_delim
  24858. debug_defs!$debug_defs$ac_delim
  24859. BUNDLE_TRUE!$BUNDLE_TRUE$ac_delim
  24860. BUNDLE_FALSE!$BUNDLE_FALSE$ac_delim
  24861. enable_pam_passthru_TRUE!$enable_pam_passthru_TRUE$ac_delim
  24862. enable_pam_passthru_FALSE!$enable_pam_passthru_FALSE$ac_delim
  24863. enable_dna_TRUE!$enable_dna_TRUE$ac_delim
  24864. enable_dna_FALSE!$enable_dna_FALSE$ac_delim
  24865. enable_ldapi_TRUE!$enable_ldapi_TRUE$ac_delim
  24866. enable_ldapi_FALSE!$enable_ldapi_FALSE$ac_delim
  24867. enable_autobind_TRUE!$enable_autobind_TRUE$ac_delim
  24868. enable_autobind_FALSE!$enable_autobind_FALSE$ac_delim
  24869. enable_auto_dn_suffix_TRUE!$enable_auto_dn_suffix_TRUE$ac_delim
  24870. enable_auto_dn_suffix_FALSE!$enable_auto_dn_suffix_FALSE$ac_delim
  24871. enable_bitwise_TRUE!$enable_bitwise_TRUE$ac_delim
  24872. enable_bitwise_FALSE!$enable_bitwise_FALSE$ac_delim
  24873. enable_presence_TRUE!$enable_presence_TRUE$ac_delim
  24874. enable_presence_FALSE!$enable_presence_FALSE$ac_delim
  24875. with_fhs_opt!$with_fhs_opt$ac_delim
  24876. configdir!$configdir$ac_delim
  24877. sampledatadir!$sampledatadir$ac_delim
  24878. propertydir!$propertydir$ac_delim
  24879. schemadir!$schemadir$ac_delim
  24880. serverdir!$serverdir$ac_delim
  24881. serverplugindir!$serverplugindir$ac_delim
  24882. scripttemplatedir!$scripttemplatedir$ac_delim
  24883. perldir!$perldir$ac_delim
  24884. infdir!$infdir$ac_delim
  24885. mibdir!$mibdir$ac_delim
  24886. defaultuser!$defaultuser$ac_delim
  24887. defaultgroup!$defaultgroup$ac_delim
  24888. instconfigdir!$instconfigdir$ac_delim
  24889. WINNT_TRUE!$WINNT_TRUE$ac_delim
  24890. WINNT_FALSE!$WINNT_FALSE$ac_delim
  24891. LIBSOCKET!$LIBSOCKET$ac_delim
  24892. LIBNSL!$LIBNSL$ac_delim
  24893. LIBDL!$LIBDL$ac_delim
  24894. LIBCSTD!$LIBCSTD$ac_delim
  24895. LIBCRUN!$LIBCRUN$ac_delim
  24896. initdir!$initdir$ac_delim
  24897. perlexec!$perlexec$ac_delim
  24898. initconfigdir!$initconfigdir$ac_delim
  24899. HPUX_TRUE!$HPUX_TRUE$ac_delim
  24900. HPUX_FALSE!$HPUX_FALSE$ac_delim
  24901. SOLARIS_TRUE!$SOLARIS_TRUE$ac_delim
  24902. SOLARIS_FALSE!$SOLARIS_FALSE$ac_delim
  24903. PKG_CONFIG!$PKG_CONFIG$ac_delim
  24904. ICU_CONFIG!$ICU_CONFIG$ac_delim
  24905. NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
  24906. KRB5_CONFIG_BIN!$KRB5_CONFIG_BIN$ac_delim
  24907. kerberos_inc!$kerberos_inc$ac_delim
  24908. kerberos_lib!$kerberos_lib$ac_delim
  24909. kerberos_libdir!$kerberos_libdir$ac_delim
  24910. PACKAGE_BASE_VERSION!$PACKAGE_BASE_VERSION$ac_delim
  24911. nspr_inc!$nspr_inc$ac_delim
  24912. nspr_lib!$nspr_lib$ac_delim
  24913. nspr_libdir!$nspr_libdir$ac_delim
  24914. nss_inc!$nss_inc$ac_delim
  24915. nss_lib!$nss_lib$ac_delim
  24916. nss_libdir!$nss_libdir$ac_delim
  24917. ldapsdk_inc!$ldapsdk_inc$ac_delim
  24918. ldapsdk_lib!$ldapsdk_lib$ac_delim
  24919. ldapsdk_libdir!$ldapsdk_libdir$ac_delim
  24920. ldapsdk_bindir!$ldapsdk_bindir$ac_delim
  24921. db_inc!$db_inc$ac_delim
  24922. db_incdir!$db_incdir$ac_delim
  24923. db_lib!$db_lib$ac_delim
  24924. db_libdir!$db_libdir$ac_delim
  24925. db_bindir!$db_bindir$ac_delim
  24926. db_libver!$db_libver$ac_delim
  24927. sasl_inc!$sasl_inc$ac_delim
  24928. sasl_lib!$sasl_lib$ac_delim
  24929. sasl_libdir!$sasl_libdir$ac_delim
  24930. sasl_path!$sasl_path$ac_delim
  24931. svrcore_inc!$svrcore_inc$ac_delim
  24932. svrcore_lib!$svrcore_lib$ac_delim
  24933. icu_lib!$icu_lib$ac_delim
  24934. icu_inc!$icu_inc$ac_delim
  24935. icu_bin!$icu_bin$ac_delim
  24936. netsnmp_inc!$netsnmp_inc$ac_delim
  24937. netsnmp_lib!$netsnmp_lib$ac_delim
  24938. netsnmp_libdir!$netsnmp_libdir$ac_delim
  24939. netsnmp_link!$netsnmp_link$ac_delim
  24940. brand!$brand$ac_delim
  24941. _ACEOF
  24942. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  24943. break
  24944. elif $ac_last_try; then
  24945. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  24946. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  24947. { (exit 1); exit 1; }; }
  24948. else
  24949. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24950. fi
  24951. done
  24952. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  24953. if test -n "$ac_eof"; then
  24954. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  24955. ac_eof=`expr $ac_eof + 1`
  24956. fi
  24957. cat >>$CONFIG_STATUS <<_ACEOF
  24958. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  24959. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24960. _ACEOF
  24961. sed '
  24962. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  24963. s/^/s,@/; s/!/@,|#_!!_#|/
  24964. :n
  24965. t n
  24966. s/'"$ac_delim"'$/,g/; t
  24967. s/$/\\/; p
  24968. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  24969. ' >>$CONFIG_STATUS <conf$$subs.sed
  24970. rm -f conf$$subs.sed
  24971. cat >>$CONFIG_STATUS <<_ACEOF
  24972. CEOF$ac_eof
  24973. _ACEOF
  24974. ac_delim='%!_!# '
  24975. for ac_last_try in false false false false false :; do
  24976. cat >conf$$subs.sed <<_ACEOF
  24977. capbrand!$capbrand$ac_delim
  24978. vendor!$vendor$ac_delim
  24979. LTLIBOBJS!$LTLIBOBJS$ac_delim
  24980. _ACEOF
  24981. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
  24982. break
  24983. elif $ac_last_try; then
  24984. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  24985. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  24986. { (exit 1); exit 1; }; }
  24987. else
  24988. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  24989. fi
  24990. done
  24991. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  24992. if test -n "$ac_eof"; then
  24993. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  24994. ac_eof=`expr $ac_eof + 1`
  24995. fi
  24996. cat >>$CONFIG_STATUS <<_ACEOF
  24997. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  24998. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  24999. _ACEOF
  25000. sed '
  25001. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  25002. s/^/s,@/; s/!/@,|#_!!_#|/
  25003. :n
  25004. t n
  25005. s/'"$ac_delim"'$/,g/; t
  25006. s/$/\\/; p
  25007. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  25008. ' >>$CONFIG_STATUS <conf$$subs.sed
  25009. rm -f conf$$subs.sed
  25010. cat >>$CONFIG_STATUS <<_ACEOF
  25011. :end
  25012. s/|#_!!_#|//g
  25013. CEOF$ac_eof
  25014. _ACEOF
  25015. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  25016. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  25017. # trailing colons and then remove the whole line if VPATH becomes empty
  25018. # (actually we leave an empty line to preserve line numbers).
  25019. if test "x$srcdir" = x.; then
  25020. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  25021. s/:*\$(srcdir):*/:/
  25022. s/:*\${srcdir}:*/:/
  25023. s/:*@srcdir@:*/:/
  25024. s/^\([^=]*=[ ]*\):*/\1/
  25025. s/:*$//
  25026. s/^[^=]*=[ ]*$//
  25027. }'
  25028. fi
  25029. cat >>$CONFIG_STATUS <<\_ACEOF
  25030. fi # test -n "$CONFIG_FILES"
  25031. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  25032. do
  25033. case $ac_tag in
  25034. :[FHLC]) ac_mode=$ac_tag; continue;;
  25035. esac
  25036. case $ac_mode$ac_tag in
  25037. :[FHL]*:*);;
  25038. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  25039. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  25040. { (exit 1); exit 1; }; };;
  25041. :[FH]-) ac_tag=-:-;;
  25042. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  25043. esac
  25044. ac_save_IFS=$IFS
  25045. IFS=:
  25046. set x $ac_tag
  25047. IFS=$ac_save_IFS
  25048. shift
  25049. ac_file=$1
  25050. shift
  25051. case $ac_mode in
  25052. :L) ac_source=$1;;
  25053. :[FH])
  25054. ac_file_inputs=
  25055. for ac_f
  25056. do
  25057. case $ac_f in
  25058. -) ac_f="$tmp/stdin";;
  25059. *) # Look for the file first in the build tree, then in the source tree
  25060. # (if the path is not absolute). The absolute path cannot be DOS-style,
  25061. # because $ac_f cannot contain `:'.
  25062. test -f "$ac_f" ||
  25063. case $ac_f in
  25064. [\\/$]*) false;;
  25065. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  25066. esac ||
  25067. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  25068. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  25069. { (exit 1); exit 1; }; };;
  25070. esac
  25071. ac_file_inputs="$ac_file_inputs $ac_f"
  25072. done
  25073. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25074. # use $as_me), people would be surprised to read:
  25075. # /* config.h. Generated by config.status. */
  25076. configure_input="Generated from "`IFS=:
  25077. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  25078. if test x"$ac_file" != x-; then
  25079. configure_input="$ac_file. $configure_input"
  25080. { echo "$as_me:$LINENO: creating $ac_file" >&5
  25081. echo "$as_me: creating $ac_file" >&6;}
  25082. fi
  25083. case $ac_tag in
  25084. *:-:* | *:-) cat >"$tmp/stdin";;
  25085. esac
  25086. ;;
  25087. esac
  25088. ac_dir=`$as_dirname -- "$ac_file" ||
  25089. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25090. X"$ac_file" : 'X\(//\)[^/]' \| \
  25091. X"$ac_file" : 'X\(//\)$' \| \
  25092. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25093. echo X"$ac_file" |
  25094. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25095. s//\1/
  25096. q
  25097. }
  25098. /^X\(\/\/\)[^/].*/{
  25099. s//\1/
  25100. q
  25101. }
  25102. /^X\(\/\/\)$/{
  25103. s//\1/
  25104. q
  25105. }
  25106. /^X\(\/\).*/{
  25107. s//\1/
  25108. q
  25109. }
  25110. s/.*/./; q'`
  25111. { as_dir="$ac_dir"
  25112. case $as_dir in #(
  25113. -*) as_dir=./$as_dir;;
  25114. esac
  25115. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  25116. as_dirs=
  25117. while :; do
  25118. case $as_dir in #(
  25119. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  25120. *) as_qdir=$as_dir;;
  25121. esac
  25122. as_dirs="'$as_qdir' $as_dirs"
  25123. as_dir=`$as_dirname -- "$as_dir" ||
  25124. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25125. X"$as_dir" : 'X\(//\)[^/]' \| \
  25126. X"$as_dir" : 'X\(//\)$' \| \
  25127. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25128. echo X"$as_dir" |
  25129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25130. s//\1/
  25131. q
  25132. }
  25133. /^X\(\/\/\)[^/].*/{
  25134. s//\1/
  25135. q
  25136. }
  25137. /^X\(\/\/\)$/{
  25138. s//\1/
  25139. q
  25140. }
  25141. /^X\(\/\).*/{
  25142. s//\1/
  25143. q
  25144. }
  25145. s/.*/./; q'`
  25146. test -d "$as_dir" && break
  25147. done
  25148. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25149. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  25150. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  25151. { (exit 1); exit 1; }; }; }
  25152. ac_builddir=.
  25153. case "$ac_dir" in
  25154. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25155. *)
  25156. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25157. # A ".." for each directory in $ac_dir_suffix.
  25158. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  25159. case $ac_top_builddir_sub in
  25160. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25161. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25162. esac ;;
  25163. esac
  25164. ac_abs_top_builddir=$ac_pwd
  25165. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25166. # for backward compatibility:
  25167. ac_top_builddir=$ac_top_build_prefix
  25168. case $srcdir in
  25169. .) # We are building in place.
  25170. ac_srcdir=.
  25171. ac_top_srcdir=$ac_top_builddir_sub
  25172. ac_abs_top_srcdir=$ac_pwd ;;
  25173. [\\/]* | ?:[\\/]* ) # Absolute name.
  25174. ac_srcdir=$srcdir$ac_dir_suffix;
  25175. ac_top_srcdir=$srcdir
  25176. ac_abs_top_srcdir=$srcdir ;;
  25177. *) # Relative name.
  25178. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25179. ac_top_srcdir=$ac_top_build_prefix$srcdir
  25180. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25181. esac
  25182. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25183. case $ac_mode in
  25184. :F)
  25185. #
  25186. # CONFIG_FILE
  25187. #
  25188. case $INSTALL in
  25189. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25190. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25191. esac
  25192. ac_MKDIR_P=$MKDIR_P
  25193. case $MKDIR_P in
  25194. [\\/$]* | ?:[\\/]* ) ;;
  25195. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  25196. esac
  25197. _ACEOF
  25198. cat >>$CONFIG_STATUS <<\_ACEOF
  25199. # If the template does not know about datarootdir, expand it.
  25200. # FIXME: This hack should be removed a few years after 2.60.
  25201. ac_datarootdir_hack=; ac_datarootdir_seen=
  25202. case `sed -n '/datarootdir/ {
  25203. p
  25204. q
  25205. }
  25206. /@datadir@/p
  25207. /@docdir@/p
  25208. /@infodir@/p
  25209. /@localedir@/p
  25210. /@mandir@/p
  25211. ' $ac_file_inputs` in
  25212. *datarootdir*) ac_datarootdir_seen=yes;;
  25213. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25214. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25215. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25216. _ACEOF
  25217. cat >>$CONFIG_STATUS <<_ACEOF
  25218. ac_datarootdir_hack='
  25219. s&@datadir@&$datadir&g
  25220. s&@docdir@&$docdir&g
  25221. s&@infodir@&$infodir&g
  25222. s&@localedir@&$localedir&g
  25223. s&@mandir@&$mandir&g
  25224. s&\\\${datarootdir}&$datarootdir&g' ;;
  25225. esac
  25226. _ACEOF
  25227. # Neutralize VPATH when `$srcdir' = `.'.
  25228. # Shell code in configure.ac might set extrasub.
  25229. # FIXME: do we really want to maintain this feature?
  25230. cat >>$CONFIG_STATUS <<_ACEOF
  25231. sed "$ac_vpsub
  25232. $extrasub
  25233. _ACEOF
  25234. cat >>$CONFIG_STATUS <<\_ACEOF
  25235. :t
  25236. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25237. s&@configure_input@&$configure_input&;t t
  25238. s&@top_builddir@&$ac_top_builddir_sub&;t t
  25239. s&@srcdir@&$ac_srcdir&;t t
  25240. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25241. s&@top_srcdir@&$ac_top_srcdir&;t t
  25242. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25243. s&@builddir@&$ac_builddir&;t t
  25244. s&@abs_builddir@&$ac_abs_builddir&;t t
  25245. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25246. s&@INSTALL@&$ac_INSTALL&;t t
  25247. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  25248. $ac_datarootdir_hack
  25249. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  25250. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25251. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  25252. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  25253. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25254. which seems to be undefined. Please make sure it is defined." >&5
  25255. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25256. which seems to be undefined. Please make sure it is defined." >&2;}
  25257. rm -f "$tmp/stdin"
  25258. case $ac_file in
  25259. -) cat "$tmp/out"; rm -f "$tmp/out";;
  25260. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  25261. esac
  25262. ;;
  25263. :H)
  25264. #
  25265. # CONFIG_HEADER
  25266. #
  25267. _ACEOF
  25268. # Transform confdefs.h into a sed script `conftest.defines', that
  25269. # substitutes the proper values into config.h.in to produce config.h.
  25270. rm -f conftest.defines conftest.tail
  25271. # First, append a space to every undef/define line, to ease matching.
  25272. echo 's/$/ /' >conftest.defines
  25273. # Then, protect against being on the right side of a sed subst, or in
  25274. # an unquoted here document, in config.status. If some macros were
  25275. # called several times there might be several #defines for the same
  25276. # symbol, which is useless. But do not sort them, since the last
  25277. # AC_DEFINE must be honored.
  25278. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25279. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  25280. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  25281. # PARAMS is the parameter list in the macro definition--in most cases, it's
  25282. # just an empty string.
  25283. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  25284. ac_dB='\\)[ (].*,\\1define\\2'
  25285. ac_dC=' '
  25286. ac_dD=' ,'
  25287. uniq confdefs.h |
  25288. sed -n '
  25289. t rset
  25290. :rset
  25291. s/^[ ]*#[ ]*define[ ][ ]*//
  25292. t ok
  25293. d
  25294. :ok
  25295. s/[\\&,]/\\&/g
  25296. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  25297. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  25298. ' >>conftest.defines
  25299. # Remove the space that was appended to ease matching.
  25300. # Then replace #undef with comments. This is necessary, for
  25301. # example, in the case of _POSIX_SOURCE, which is predefined and required
  25302. # on some systems where configure will not decide to define it.
  25303. # (The regexp can be short, since the line contains either #define or #undef.)
  25304. echo 's/ $//
  25305. s,^[ #]*u.*,/* & */,' >>conftest.defines
  25306. # Break up conftest.defines:
  25307. ac_max_sed_lines=50
  25308. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  25309. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  25310. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  25311. # et cetera.
  25312. ac_in='$ac_file_inputs'
  25313. ac_out='"$tmp/out1"'
  25314. ac_nxt='"$tmp/out2"'
  25315. while :
  25316. do
  25317. # Write a here document:
  25318. cat >>$CONFIG_STATUS <<_ACEOF
  25319. # First, check the format of the line:
  25320. cat >"\$tmp/defines.sed" <<\\CEOF
  25321. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  25322. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  25323. b
  25324. :def
  25325. _ACEOF
  25326. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  25327. echo 'CEOF
  25328. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  25329. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  25330. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  25331. grep . conftest.tail >/dev/null || break
  25332. rm -f conftest.defines
  25333. mv conftest.tail conftest.defines
  25334. done
  25335. rm -f conftest.defines conftest.tail
  25336. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  25337. cat >>$CONFIG_STATUS <<\_ACEOF
  25338. if test x"$ac_file" != x-; then
  25339. echo "/* $configure_input */" >"$tmp/config.h"
  25340. cat "$ac_result" >>"$tmp/config.h"
  25341. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  25342. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  25343. echo "$as_me: $ac_file is unchanged" >&6;}
  25344. else
  25345. rm -f $ac_file
  25346. mv "$tmp/config.h" $ac_file
  25347. fi
  25348. else
  25349. echo "/* $configure_input */"
  25350. cat "$ac_result"
  25351. fi
  25352. rm -f "$tmp/out12"
  25353. # Compute $ac_file's index in $config_headers.
  25354. _am_arg=$ac_file
  25355. _am_stamp_count=1
  25356. for _am_header in $config_headers :; do
  25357. case $_am_header in
  25358. $_am_arg | $_am_arg:* )
  25359. break ;;
  25360. * )
  25361. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  25362. esac
  25363. done
  25364. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  25365. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25366. X"$_am_arg" : 'X\(//\)[^/]' \| \
  25367. X"$_am_arg" : 'X\(//\)$' \| \
  25368. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  25369. echo X"$_am_arg" |
  25370. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25371. s//\1/
  25372. q
  25373. }
  25374. /^X\(\/\/\)[^/].*/{
  25375. s//\1/
  25376. q
  25377. }
  25378. /^X\(\/\/\)$/{
  25379. s//\1/
  25380. q
  25381. }
  25382. /^X\(\/\).*/{
  25383. s//\1/
  25384. q
  25385. }
  25386. s/.*/./; q'`/stamp-h$_am_stamp_count
  25387. ;;
  25388. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  25389. echo "$as_me: executing $ac_file commands" >&6;}
  25390. ;;
  25391. esac
  25392. case $ac_file$ac_mode in
  25393. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  25394. # Strip MF so we end up with the name of the file.
  25395. mf=`echo "$mf" | sed -e 's/:.*$//'`
  25396. # Check whether this is an Automake generated Makefile or not.
  25397. # We used to match only the files named `Makefile.in', but
  25398. # some people rename them; so instead we look at the file content.
  25399. # Grep'ing the first line is not enough: some people post-process
  25400. # each Makefile.in and add a new line on top of each file to say so.
  25401. # Grep'ing the whole file is not good either: AIX grep has a line
  25402. # limit of 2048, but all sed's we know have understand at least 4000.
  25403. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  25404. dirpart=`$as_dirname -- "$mf" ||
  25405. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25406. X"$mf" : 'X\(//\)[^/]' \| \
  25407. X"$mf" : 'X\(//\)$' \| \
  25408. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  25409. echo X"$mf" |
  25410. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25411. s//\1/
  25412. q
  25413. }
  25414. /^X\(\/\/\)[^/].*/{
  25415. s//\1/
  25416. q
  25417. }
  25418. /^X\(\/\/\)$/{
  25419. s//\1/
  25420. q
  25421. }
  25422. /^X\(\/\).*/{
  25423. s//\1/
  25424. q
  25425. }
  25426. s/.*/./; q'`
  25427. else
  25428. continue
  25429. fi
  25430. # Extract the definition of DEPDIR, am__include, and am__quote
  25431. # from the Makefile without running `make'.
  25432. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  25433. test -z "$DEPDIR" && continue
  25434. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  25435. test -z "am__include" && continue
  25436. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  25437. # When using ansi2knr, U may be empty or an underscore; expand it
  25438. U=`sed -n 's/^U = //p' < "$mf"`
  25439. # Find all dependency output files, they are included files with
  25440. # $(DEPDIR) in their names. We invoke sed twice because it is the
  25441. # simplest approach to changing $(DEPDIR) to its actual value in the
  25442. # expansion.
  25443. for file in `sed -n "
  25444. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  25445. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  25446. # Make sure the directory exists.
  25447. test -f "$dirpart/$file" && continue
  25448. fdir=`$as_dirname -- "$file" ||
  25449. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25450. X"$file" : 'X\(//\)[^/]' \| \
  25451. X"$file" : 'X\(//\)$' \| \
  25452. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  25453. echo X"$file" |
  25454. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25455. s//\1/
  25456. q
  25457. }
  25458. /^X\(\/\/\)[^/].*/{
  25459. s//\1/
  25460. q
  25461. }
  25462. /^X\(\/\/\)$/{
  25463. s//\1/
  25464. q
  25465. }
  25466. /^X\(\/\).*/{
  25467. s//\1/
  25468. q
  25469. }
  25470. s/.*/./; q'`
  25471. { as_dir=$dirpart/$fdir
  25472. case $as_dir in #(
  25473. -*) as_dir=./$as_dir;;
  25474. esac
  25475. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  25476. as_dirs=
  25477. while :; do
  25478. case $as_dir in #(
  25479. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  25480. *) as_qdir=$as_dir;;
  25481. esac
  25482. as_dirs="'$as_qdir' $as_dirs"
  25483. as_dir=`$as_dirname -- "$as_dir" ||
  25484. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25485. X"$as_dir" : 'X\(//\)[^/]' \| \
  25486. X"$as_dir" : 'X\(//\)$' \| \
  25487. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25488. echo X"$as_dir" |
  25489. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25490. s//\1/
  25491. q
  25492. }
  25493. /^X\(\/\/\)[^/].*/{
  25494. s//\1/
  25495. q
  25496. }
  25497. /^X\(\/\/\)$/{
  25498. s//\1/
  25499. q
  25500. }
  25501. /^X\(\/\).*/{
  25502. s//\1/
  25503. q
  25504. }
  25505. s/.*/./; q'`
  25506. test -d "$as_dir" && break
  25507. done
  25508. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25509. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  25510. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  25511. { (exit 1); exit 1; }; }; }
  25512. # echo "creating $dirpart/$file"
  25513. echo '# dummy' > "$dirpart/$file"
  25514. done
  25515. done
  25516. ;;
  25517. esac
  25518. done # for ac_tag
  25519. { (exit 0); exit 0; }
  25520. _ACEOF
  25521. chmod +x $CONFIG_STATUS
  25522. ac_clean_files=$ac_clean_files_save
  25523. # configure is writing to config.log, and then calls config.status.
  25524. # config.status does its own redirection, appending to config.log.
  25525. # Unfortunately, on DOS this fails, as config.log is still kept open
  25526. # by configure, so config.status won't be able to write to it; its
  25527. # output is simply discarded. So we exec the FD to /dev/null,
  25528. # effectively closing config.log, so it can be properly (re)opened and
  25529. # appended to by config.status. When coming back to configure, we
  25530. # need to make the FD available again.
  25531. if test "$no_create" != yes; then
  25532. ac_cs_success=:
  25533. ac_config_status_args=
  25534. test "$silent" = yes &&
  25535. ac_config_status_args="$ac_config_status_args --quiet"
  25536. exec 5>/dev/null
  25537. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25538. exec 5>>config.log
  25539. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25540. # would make configure fail if this is the last instruction.
  25541. $ac_cs_success || { (exit 1); exit 1; }
  25542. fi