configure 847 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dirsrv 1.1.4.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Check that we are running under the correct shell.
  217. SHELL=${CONFIG_SHELL-/bin/sh}
  218. case X$ECHO in
  219. X*--fallback-echo)
  220. # Remove one level of quotation (which was required for Make).
  221. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  222. ;;
  223. esac
  224. echo=${ECHO-echo}
  225. if test "X$1" = X--no-reexec; then
  226. # Discard the --no-reexec flag, and continue.
  227. shift
  228. elif test "X$1" = X--fallback-echo; then
  229. # Avoid inline document here, it may be left over
  230. :
  231. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  232. # Yippee, $echo works!
  233. :
  234. else
  235. # Restart under the correct shell.
  236. exec $SHELL "$0" --no-reexec ${1+"$@"}
  237. fi
  238. if test "X$1" = X--fallback-echo; then
  239. # used as fallback echo
  240. shift
  241. cat <<EOF
  242. $*
  243. EOF
  244. exit 0
  245. fi
  246. # The HP-UX ksh and POSIX shell print the target directory to stdout
  247. # if CDPATH is set.
  248. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  249. if test -z "$ECHO"; then
  250. if test "X${echo_test_string+set}" != Xset; then
  251. # find a string as large as possible, as long as the shell can cope with it
  252. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  253. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  254. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  255. echo_test_string=`eval $cmd` &&
  256. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  257. then
  258. break
  259. fi
  260. done
  261. fi
  262. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  263. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  264. test "X$echo_testing_string" = "X$echo_test_string"; then
  265. :
  266. else
  267. # The Solaris, AIX, and Digital Unix default echo programs unquote
  268. # backslashes. This makes it impossible to quote backslashes using
  269. # echo "$something" | sed 's/\\/\\\\/g'
  270. #
  271. # So, first we look for a working echo in the user's PATH.
  272. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  273. for dir in $PATH /usr/ucb; do
  274. IFS="$lt_save_ifs"
  275. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  276. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  277. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  278. test "X$echo_testing_string" = "X$echo_test_string"; then
  279. echo="$dir/echo"
  280. break
  281. fi
  282. done
  283. IFS="$lt_save_ifs"
  284. if test "X$echo" = Xecho; then
  285. # We didn't find a better echo, so look for alternatives.
  286. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  287. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  288. test "X$echo_testing_string" = "X$echo_test_string"; then
  289. # This shell has a builtin print -r that does the trick.
  290. echo='print -r'
  291. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  292. test "X$CONFIG_SHELL" != X/bin/ksh; then
  293. # If we have ksh, try running configure again with it.
  294. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  295. export ORIGINAL_CONFIG_SHELL
  296. CONFIG_SHELL=/bin/ksh
  297. export CONFIG_SHELL
  298. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  299. else
  300. # Try using printf.
  301. echo='printf %s\n'
  302. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  303. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  304. test "X$echo_testing_string" = "X$echo_test_string"; then
  305. # Cool, printf works
  306. :
  307. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  308. test "X$echo_testing_string" = 'X\t' &&
  309. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  310. test "X$echo_testing_string" = "X$echo_test_string"; then
  311. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  312. export CONFIG_SHELL
  313. SHELL="$CONFIG_SHELL"
  314. export SHELL
  315. echo="$CONFIG_SHELL $0 --fallback-echo"
  316. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  317. test "X$echo_testing_string" = 'X\t' &&
  318. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  319. test "X$echo_testing_string" = "X$echo_test_string"; then
  320. echo="$CONFIG_SHELL $0 --fallback-echo"
  321. else
  322. # maybe with a smaller string...
  323. prev=:
  324. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  325. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  326. then
  327. break
  328. fi
  329. prev="$cmd"
  330. done
  331. if test "$prev" != 'sed 50q "$0"'; then
  332. echo_test_string=`eval $prev`
  333. export echo_test_string
  334. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  335. else
  336. # Oops. We lost completely, so just stick with echo.
  337. echo=echo
  338. fi
  339. fi
  340. fi
  341. fi
  342. fi
  343. fi
  344. # Copy echo and quote the copy suitably for passing to libtool from
  345. # the Makefile, instead of quoting the original, which is used later.
  346. ECHO=$echo
  347. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  348. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  349. fi
  350. tagnames=${tagnames+${tagnames},}CXX
  351. tagnames=${tagnames+${tagnames},}F77
  352. # Name of the host.
  353. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  354. # so uname gets run too.
  355. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  356. exec 6>&1
  357. #
  358. # Initializations.
  359. #
  360. ac_default_prefix=/usr/local
  361. ac_config_libobj_dir=.
  362. cross_compiling=no
  363. subdirs=
  364. MFLAGS=
  365. MAKEFLAGS=
  366. SHELL=${CONFIG_SHELL-/bin/sh}
  367. # Maximum number of lines to put in a shell here document.
  368. # This variable seems obsolete. It should probably be removed, and
  369. # only ac_max_sed_lines should be used.
  370. : ${ac_max_here_lines=38}
  371. # Identity of this package.
  372. PACKAGE_NAME='dirsrv'
  373. PACKAGE_TARNAME='dirsrv'
  374. PACKAGE_VERSION='1.1.4'
  375. PACKAGE_STRING='dirsrv 1.1.4'
  376. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  377. # Factoring default headers for most tests.
  378. ac_includes_default="\
  379. #include <stdio.h>
  380. #if HAVE_SYS_TYPES_H
  381. # include <sys/types.h>
  382. #endif
  383. #if HAVE_SYS_STAT_H
  384. # include <sys/stat.h>
  385. #endif
  386. #if STDC_HEADERS
  387. # include <stdlib.h>
  388. # include <stddef.h>
  389. #else
  390. # if HAVE_STDLIB_H
  391. # include <stdlib.h>
  392. # endif
  393. #endif
  394. #if HAVE_STRING_H
  395. # if !STDC_HEADERS && HAVE_MEMORY_H
  396. # include <memory.h>
  397. # endif
  398. # include <string.h>
  399. #endif
  400. #if HAVE_STRINGS_H
  401. # include <strings.h>
  402. #endif
  403. #if HAVE_INTTYPES_H
  404. # include <inttypes.h>
  405. #else
  406. # if HAVE_STDINT_H
  407. # include <stdint.h>
  408. # endif
  409. #endif
  410. #if HAVE_UNISTD_H
  411. # include <unistd.h>
  412. #endif"
  413. ac_default_prefix=/opt/$PACKAGE_NAME
  414. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS debug_defs BUNDLE_TRUE BUNDLE_FALSE enable_pam_passthru_TRUE enable_pam_passthru_FALSE enable_dna_TRUE enable_dna_FALSE enable_ldapi_TRUE enable_ldapi_FALSE enable_autobind_TRUE enable_autobind_FALSE enable_bitwise_TRUE enable_bitwise_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec initconfigdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG PACKAGE_BASE_VERSION nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib ldapsdk_libdir ldapsdk_bindir db_inc db_incdir db_lib db_libdir db_bindir db_libver sasl_inc sasl_lib sasl_libdir sasl_path svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link brand capbrand vendor LTLIBOBJS'
  415. ac_subst_files=''
  416. # Initialize some variables set by options.
  417. ac_init_help=
  418. ac_init_version=false
  419. # The variables have the same names as the options, with
  420. # dashes changed to underlines.
  421. cache_file=/dev/null
  422. exec_prefix=NONE
  423. no_create=
  424. no_recursion=
  425. prefix=NONE
  426. program_prefix=NONE
  427. program_suffix=NONE
  428. program_transform_name=s,x,x,
  429. silent=
  430. site=
  431. srcdir=
  432. verbose=
  433. x_includes=NONE
  434. x_libraries=NONE
  435. # Installation directory options.
  436. # These are left unexpanded so users can "make install exec_prefix=/foo"
  437. # and all the variables that are supposed to be based on exec_prefix
  438. # by default will actually change.
  439. # Use braces instead of parens because sh, perl, etc. also accept them.
  440. bindir='${exec_prefix}/bin'
  441. sbindir='${exec_prefix}/sbin'
  442. libexecdir='${exec_prefix}/libexec'
  443. datadir='${prefix}/share'
  444. sysconfdir='${prefix}/etc'
  445. sharedstatedir='${prefix}/com'
  446. localstatedir='${prefix}/var'
  447. libdir='${exec_prefix}/lib'
  448. includedir='${prefix}/include'
  449. oldincludedir='/usr/include'
  450. infodir='${prefix}/info'
  451. mandir='${prefix}/man'
  452. ac_prev=
  453. for ac_option
  454. do
  455. # If the previous option needs an argument, assign it.
  456. if test -n "$ac_prev"; then
  457. eval "$ac_prev=\$ac_option"
  458. ac_prev=
  459. continue
  460. fi
  461. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  462. # Accept the important Cygnus configure options, so we can diagnose typos.
  463. case $ac_option in
  464. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  465. ac_prev=bindir ;;
  466. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  467. bindir=$ac_optarg ;;
  468. -build | --build | --buil | --bui | --bu)
  469. ac_prev=build_alias ;;
  470. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  471. build_alias=$ac_optarg ;;
  472. -cache-file | --cache-file | --cache-fil | --cache-fi \
  473. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  474. ac_prev=cache_file ;;
  475. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  476. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  477. cache_file=$ac_optarg ;;
  478. --config-cache | -C)
  479. cache_file=config.cache ;;
  480. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  481. ac_prev=datadir ;;
  482. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  483. | --da=*)
  484. datadir=$ac_optarg ;;
  485. -disable-* | --disable-*)
  486. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. eval "enable_$ac_feature=no" ;;
  493. -enable-* | --enable-*)
  494. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  495. # Reject names that are not valid shell variable names.
  496. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  497. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  498. { (exit 1); exit 1; }; }
  499. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  500. case $ac_option in
  501. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  502. *) ac_optarg=yes ;;
  503. esac
  504. eval "enable_$ac_feature='$ac_optarg'" ;;
  505. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  506. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  507. | --exec | --exe | --ex)
  508. ac_prev=exec_prefix ;;
  509. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  510. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  511. | --exec=* | --exe=* | --ex=*)
  512. exec_prefix=$ac_optarg ;;
  513. -gas | --gas | --ga | --g)
  514. # Obsolete; use --with-gas.
  515. with_gas=yes ;;
  516. -help | --help | --hel | --he | -h)
  517. ac_init_help=long ;;
  518. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  519. ac_init_help=recursive ;;
  520. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  521. ac_init_help=short ;;
  522. -host | --host | --hos | --ho)
  523. ac_prev=host_alias ;;
  524. -host=* | --host=* | --hos=* | --ho=*)
  525. host_alias=$ac_optarg ;;
  526. -includedir | --includedir | --includedi | --included | --include \
  527. | --includ | --inclu | --incl | --inc)
  528. ac_prev=includedir ;;
  529. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  530. | --includ=* | --inclu=* | --incl=* | --inc=*)
  531. includedir=$ac_optarg ;;
  532. -infodir | --infodir | --infodi | --infod | --info | --inf)
  533. ac_prev=infodir ;;
  534. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  535. infodir=$ac_optarg ;;
  536. -libdir | --libdir | --libdi | --libd)
  537. ac_prev=libdir ;;
  538. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  539. libdir=$ac_optarg ;;
  540. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  541. | --libexe | --libex | --libe)
  542. ac_prev=libexecdir ;;
  543. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  544. | --libexe=* | --libex=* | --libe=*)
  545. libexecdir=$ac_optarg ;;
  546. -localstatedir | --localstatedir | --localstatedi | --localstated \
  547. | --localstate | --localstat | --localsta | --localst \
  548. | --locals | --local | --loca | --loc | --lo)
  549. ac_prev=localstatedir ;;
  550. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  551. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  552. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  553. localstatedir=$ac_optarg ;;
  554. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  555. ac_prev=mandir ;;
  556. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  557. mandir=$ac_optarg ;;
  558. -nfp | --nfp | --nf)
  559. # Obsolete; use --without-fp.
  560. with_fp=no ;;
  561. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  562. | --no-cr | --no-c | -n)
  563. no_create=yes ;;
  564. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  565. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  566. no_recursion=yes ;;
  567. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  568. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  569. | --oldin | --oldi | --old | --ol | --o)
  570. ac_prev=oldincludedir ;;
  571. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  572. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  573. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  574. oldincludedir=$ac_optarg ;;
  575. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  576. ac_prev=prefix ;;
  577. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  578. prefix=$ac_optarg ;;
  579. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  580. | --program-pre | --program-pr | --program-p)
  581. ac_prev=program_prefix ;;
  582. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  583. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  584. program_prefix=$ac_optarg ;;
  585. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  586. | --program-suf | --program-su | --program-s)
  587. ac_prev=program_suffix ;;
  588. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  589. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  590. program_suffix=$ac_optarg ;;
  591. -program-transform-name | --program-transform-name \
  592. | --program-transform-nam | --program-transform-na \
  593. | --program-transform-n | --program-transform- \
  594. | --program-transform | --program-transfor \
  595. | --program-transfo | --program-transf \
  596. | --program-trans | --program-tran \
  597. | --progr-tra | --program-tr | --program-t)
  598. ac_prev=program_transform_name ;;
  599. -program-transform-name=* | --program-transform-name=* \
  600. | --program-transform-nam=* | --program-transform-na=* \
  601. | --program-transform-n=* | --program-transform-=* \
  602. | --program-transform=* | --program-transfor=* \
  603. | --program-transfo=* | --program-transf=* \
  604. | --program-trans=* | --program-tran=* \
  605. | --progr-tra=* | --program-tr=* | --program-t=*)
  606. program_transform_name=$ac_optarg ;;
  607. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  608. | -silent | --silent | --silen | --sile | --sil)
  609. silent=yes ;;
  610. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  611. ac_prev=sbindir ;;
  612. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  613. | --sbi=* | --sb=*)
  614. sbindir=$ac_optarg ;;
  615. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  616. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  617. | --sharedst | --shareds | --shared | --share | --shar \
  618. | --sha | --sh)
  619. ac_prev=sharedstatedir ;;
  620. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  621. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  622. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  623. | --sha=* | --sh=*)
  624. sharedstatedir=$ac_optarg ;;
  625. -site | --site | --sit)
  626. ac_prev=site ;;
  627. -site=* | --site=* | --sit=*)
  628. site=$ac_optarg ;;
  629. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  630. ac_prev=srcdir ;;
  631. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  632. srcdir=$ac_optarg ;;
  633. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  634. | --syscon | --sysco | --sysc | --sys | --sy)
  635. ac_prev=sysconfdir ;;
  636. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  637. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  638. sysconfdir=$ac_optarg ;;
  639. -target | --target | --targe | --targ | --tar | --ta | --t)
  640. ac_prev=target_alias ;;
  641. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  642. target_alias=$ac_optarg ;;
  643. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  644. verbose=yes ;;
  645. -version | --version | --versio | --versi | --vers | -V)
  646. ac_init_version=: ;;
  647. -with-* | --with-*)
  648. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  649. # Reject names that are not valid shell variable names.
  650. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  651. { echo "$as_me: error: invalid package name: $ac_package" >&2
  652. { (exit 1); exit 1; }; }
  653. ac_package=`echo $ac_package| sed 's/-/_/g'`
  654. case $ac_option in
  655. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  656. *) ac_optarg=yes ;;
  657. esac
  658. eval "with_$ac_package='$ac_optarg'" ;;
  659. -without-* | --without-*)
  660. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  661. # Reject names that are not valid shell variable names.
  662. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  663. { echo "$as_me: error: invalid package name: $ac_package" >&2
  664. { (exit 1); exit 1; }; }
  665. ac_package=`echo $ac_package | sed 's/-/_/g'`
  666. eval "with_$ac_package=no" ;;
  667. --x)
  668. # Obsolete; use --with-x.
  669. with_x=yes ;;
  670. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  671. | --x-incl | --x-inc | --x-in | --x-i)
  672. ac_prev=x_includes ;;
  673. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  674. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  675. x_includes=$ac_optarg ;;
  676. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  677. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  678. ac_prev=x_libraries ;;
  679. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  680. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  681. x_libraries=$ac_optarg ;;
  682. -*) { echo "$as_me: error: unrecognized option: $ac_option
  683. Try \`$0 --help' for more information." >&2
  684. { (exit 1); exit 1; }; }
  685. ;;
  686. *=*)
  687. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  688. # Reject names that are not valid shell variable names.
  689. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  690. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  691. { (exit 1); exit 1; }; }
  692. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  693. eval "$ac_envvar='$ac_optarg'"
  694. export $ac_envvar ;;
  695. *)
  696. # FIXME: should be removed in autoconf 3.0.
  697. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  698. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  699. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  700. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  701. ;;
  702. esac
  703. done
  704. if test -n "$ac_prev"; then
  705. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  706. { echo "$as_me: error: missing argument to $ac_option" >&2
  707. { (exit 1); exit 1; }; }
  708. fi
  709. # Be sure to have absolute paths.
  710. for ac_var in exec_prefix prefix
  711. do
  712. eval ac_val=$`echo $ac_var`
  713. case $ac_val in
  714. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  715. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  716. { (exit 1); exit 1; }; };;
  717. esac
  718. done
  719. # Be sure to have absolute paths.
  720. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  721. localstatedir libdir includedir oldincludedir infodir mandir
  722. do
  723. eval ac_val=$`echo $ac_var`
  724. case $ac_val in
  725. [\\/$]* | ?:[\\/]* ) ;;
  726. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  727. { (exit 1); exit 1; }; };;
  728. esac
  729. done
  730. # There might be people who depend on the old broken behavior: `$host'
  731. # used to hold the argument of --host etc.
  732. # FIXME: To remove some day.
  733. build=$build_alias
  734. host=$host_alias
  735. target=$target_alias
  736. # FIXME: To remove some day.
  737. if test "x$host_alias" != x; then
  738. if test "x$build_alias" = x; then
  739. cross_compiling=maybe
  740. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  741. If a cross compiler is detected then cross compile mode will be used." >&2
  742. elif test "x$build_alias" != "x$host_alias"; then
  743. cross_compiling=yes
  744. fi
  745. fi
  746. ac_tool_prefix=
  747. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  748. test "$silent" = yes && exec 6>/dev/null
  749. # Find the source files, if location was not specified.
  750. if test -z "$srcdir"; then
  751. ac_srcdir_defaulted=yes
  752. # Try the directory containing this script, then its parent.
  753. ac_confdir=`(dirname "$0") 2>/dev/null ||
  754. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  755. X"$0" : 'X\(//\)[^/]' \| \
  756. X"$0" : 'X\(//\)$' \| \
  757. X"$0" : 'X\(/\)' \| \
  758. . : '\(.\)' 2>/dev/null ||
  759. echo X"$0" |
  760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  761. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  762. /^X\(\/\/\)$/{ s//\1/; q; }
  763. /^X\(\/\).*/{ s//\1/; q; }
  764. s/.*/./; q'`
  765. srcdir=$ac_confdir
  766. if test ! -r $srcdir/$ac_unique_file; then
  767. srcdir=..
  768. fi
  769. else
  770. ac_srcdir_defaulted=no
  771. fi
  772. if test ! -r $srcdir/$ac_unique_file; then
  773. if test "$ac_srcdir_defaulted" = yes; then
  774. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  775. { (exit 1); exit 1; }; }
  776. else
  777. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  778. { (exit 1); exit 1; }; }
  779. fi
  780. fi
  781. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  782. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  783. { (exit 1); exit 1; }; }
  784. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  785. ac_env_build_alias_set=${build_alias+set}
  786. ac_env_build_alias_value=$build_alias
  787. ac_cv_env_build_alias_set=${build_alias+set}
  788. ac_cv_env_build_alias_value=$build_alias
  789. ac_env_host_alias_set=${host_alias+set}
  790. ac_env_host_alias_value=$host_alias
  791. ac_cv_env_host_alias_set=${host_alias+set}
  792. ac_cv_env_host_alias_value=$host_alias
  793. ac_env_target_alias_set=${target_alias+set}
  794. ac_env_target_alias_value=$target_alias
  795. ac_cv_env_target_alias_set=${target_alias+set}
  796. ac_cv_env_target_alias_value=$target_alias
  797. ac_env_CXX_set=${CXX+set}
  798. ac_env_CXX_value=$CXX
  799. ac_cv_env_CXX_set=${CXX+set}
  800. ac_cv_env_CXX_value=$CXX
  801. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  802. ac_env_CXXFLAGS_value=$CXXFLAGS
  803. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  804. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  805. ac_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_env_LDFLAGS_value=$LDFLAGS
  807. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  808. ac_cv_env_LDFLAGS_value=$LDFLAGS
  809. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  812. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  813. ac_env_CC_set=${CC+set}
  814. ac_env_CC_value=$CC
  815. ac_cv_env_CC_set=${CC+set}
  816. ac_cv_env_CC_value=$CC
  817. ac_env_CFLAGS_set=${CFLAGS+set}
  818. ac_env_CFLAGS_value=$CFLAGS
  819. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  820. ac_cv_env_CFLAGS_value=$CFLAGS
  821. ac_env_CCAS_set=${CCAS+set}
  822. ac_env_CCAS_value=$CCAS
  823. ac_cv_env_CCAS_set=${CCAS+set}
  824. ac_cv_env_CCAS_value=$CCAS
  825. ac_env_CCASFLAGS_set=${CCASFLAGS+set}
  826. ac_env_CCASFLAGS_value=$CCASFLAGS
  827. ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
  828. ac_cv_env_CCASFLAGS_value=$CCASFLAGS
  829. ac_env_CPP_set=${CPP+set}
  830. ac_env_CPP_value=$CPP
  831. ac_cv_env_CPP_set=${CPP+set}
  832. ac_cv_env_CPP_value=$CPP
  833. ac_env_CXXCPP_set=${CXXCPP+set}
  834. ac_env_CXXCPP_value=$CXXCPP
  835. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  836. ac_cv_env_CXXCPP_value=$CXXCPP
  837. ac_env_F77_set=${F77+set}
  838. ac_env_F77_value=$F77
  839. ac_cv_env_F77_set=${F77+set}
  840. ac_cv_env_F77_value=$F77
  841. ac_env_FFLAGS_set=${FFLAGS+set}
  842. ac_env_FFLAGS_value=$FFLAGS
  843. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  844. ac_cv_env_FFLAGS_value=$FFLAGS
  845. #
  846. # Report the --help message.
  847. #
  848. if test "$ac_init_help" = "long"; then
  849. # Omit some internal or obsolete options to make the list less imposing.
  850. # This message is too long to be a string in the A/UX 3.1 sh.
  851. cat <<_ACEOF
  852. \`configure' configures dirsrv 1.1.4 to adapt to many kinds of systems.
  853. Usage: $0 [OPTION]... [VAR=VALUE]...
  854. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  855. VAR=VALUE. See below for descriptions of some of the useful variables.
  856. Defaults for the options are specified in brackets.
  857. Configuration:
  858. -h, --help display this help and exit
  859. --help=short display options specific to this package
  860. --help=recursive display the short help of all the included packages
  861. -V, --version display version information and exit
  862. -q, --quiet, --silent do not print \`checking...' messages
  863. --cache-file=FILE cache test results in FILE [disabled]
  864. -C, --config-cache alias for \`--cache-file=config.cache'
  865. -n, --no-create do not create output files
  866. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  867. _ACEOF
  868. cat <<_ACEOF
  869. Installation directories:
  870. --prefix=PREFIX install architecture-independent files in PREFIX
  871. [$ac_default_prefix]
  872. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  873. [PREFIX]
  874. By default, \`make install' will install all the files in
  875. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  876. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  877. for instance \`--prefix=\$HOME'.
  878. For better control, use the options below.
  879. Fine tuning of the installation directories:
  880. --bindir=DIR user executables [EPREFIX/bin]
  881. --sbindir=DIR system admin executables [EPREFIX/sbin]
  882. --libexecdir=DIR program executables [EPREFIX/libexec]
  883. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  884. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  885. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  886. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  887. --libdir=DIR object code libraries [EPREFIX/lib]
  888. --includedir=DIR C header files [PREFIX/include]
  889. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  890. --infodir=DIR info documentation [PREFIX/info]
  891. --mandir=DIR man documentation [PREFIX/man]
  892. _ACEOF
  893. cat <<\_ACEOF
  894. Program names:
  895. --program-prefix=PREFIX prepend PREFIX to installed program names
  896. --program-suffix=SUFFIX append SUFFIX to installed program names
  897. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  898. System types:
  899. --build=BUILD configure for building on BUILD [guessed]
  900. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  901. _ACEOF
  902. fi
  903. if test -n "$ac_init_help"; then
  904. case $ac_init_help in
  905. short | recursive ) echo "Configuration of dirsrv 1.1.4:";;
  906. esac
  907. cat <<\_ACEOF
  908. Optional Features:
  909. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  910. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  911. --enable-maintainer-mode enable make rules and dependencies not useful
  912. (and sometimes confusing) to the casual installer
  913. --disable-dependency-tracking speeds up one-time build
  914. --enable-dependency-tracking do not reject slow dependency extractors
  915. --enable-static[=PKGS]
  916. build static libraries [default=no]
  917. --enable-shared[=PKGS]
  918. build shared libraries [default=yes]
  919. --enable-fast-install[=PKGS]
  920. optimize for fast installation [default=yes]
  921. --disable-libtool-lock avoid locking (might break parallel builds)
  922. --enable-debug Enable debug features (default: no)
  923. --enable-bundle Enable bundled dependencies (default: no)
  924. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  925. yes)
  926. --enable-dna enable the Distributed Numeric Assignment (DNA)
  927. plugin (default: yes)
  928. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  929. (default: yes)
  930. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  931. support (default: no)
  932. --enable-bitwise enable the bitwise matching rule plugin (default:
  933. yes)
  934. Optional Packages:
  935. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  936. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  937. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  938. --with-pic try to use only PIC/non-PIC objects [default=use
  939. both]
  940. --with-tags[=TAGS]
  941. include additional configurations [automatic]
  942. --with-fhs Use FHS layout
  943. --with-fhs-opt Use FHS optional layout
  944. --with-instconfigdir=/path
  945. Base directory for instance specific writable
  946. configuration directories (default
  947. $sysconfdir/$PACKAGE_NAME)
  948. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  949. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  950. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  951. --with-nss=PATH Network Security Services (NSS) directory
  952. --with-nss-inc=PATH Network Security Services (NSS) include directory
  953. --with-nss-lib=PATH Network Security Services (NSS) library directory
  954. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  955. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  956. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  957. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  958. --with-db=PATH Berkeley DB directory
  959. --with-sasl=PATH Use sasl from supplied path
  960. --with-sasl-inc=PATH SASL include file directory
  961. --with-sasl-lib=PATH SASL library directory
  962. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  963. --with-svrcore-inc=PATH SVRCORE include file directory
  964. --with-svrcore-lib=PATH SVRCORE library directory
  965. --with-icu=PATH ICU directory
  966. --with-icu-inc=PATH ICU include directory
  967. --with-icu-lib=PATH ICU library directory
  968. --with-icu-bin=PATH ICU binary directory
  969. --with-netsnmp=PATH Net-SNMP directory
  970. --with-netsnmp-inc=PATH Net-SNMP include directory
  971. --with-netsnmp-lib=PATH Net-SNMP library directory
  972. Some influential environment variables:
  973. CXX C++ compiler command
  974. CXXFLAGS C++ compiler flags
  975. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  976. nonstandard directory <lib dir>
  977. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  978. headers in a nonstandard directory <include dir>
  979. CC C compiler command
  980. CFLAGS C compiler flags
  981. CCAS assembler compiler command (defaults to CC)
  982. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  983. CPP C preprocessor
  984. CXXCPP C++ preprocessor
  985. F77 Fortran 77 compiler command
  986. FFLAGS Fortran 77 compiler flags
  987. Use these variables to override the choices made by `configure' or to help
  988. it to find libraries and programs with nonstandard names/locations.
  989. Report bugs to <http://bugzilla.redhat.com/>.
  990. _ACEOF
  991. fi
  992. if test "$ac_init_help" = "recursive"; then
  993. # If there are subdirs, report their specific --help.
  994. ac_popdir=`pwd`
  995. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  996. test -d $ac_dir || continue
  997. ac_builddir=.
  998. if test "$ac_dir" != .; then
  999. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1000. # A "../" for each directory in $ac_dir_suffix.
  1001. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1002. else
  1003. ac_dir_suffix= ac_top_builddir=
  1004. fi
  1005. case $srcdir in
  1006. .) # No --srcdir option. We are building in place.
  1007. ac_srcdir=.
  1008. if test -z "$ac_top_builddir"; then
  1009. ac_top_srcdir=.
  1010. else
  1011. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1012. fi ;;
  1013. [\\/]* | ?:[\\/]* ) # Absolute path.
  1014. ac_srcdir=$srcdir$ac_dir_suffix;
  1015. ac_top_srcdir=$srcdir ;;
  1016. *) # Relative path.
  1017. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1018. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1019. esac
  1020. # Do not use `cd foo && pwd` to compute absolute paths, because
  1021. # the directories may not exist.
  1022. case `pwd` in
  1023. .) ac_abs_builddir="$ac_dir";;
  1024. *)
  1025. case "$ac_dir" in
  1026. .) ac_abs_builddir=`pwd`;;
  1027. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1028. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1029. esac;;
  1030. esac
  1031. case $ac_abs_builddir in
  1032. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1033. *)
  1034. case ${ac_top_builddir}. in
  1035. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1036. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1037. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1038. esac;;
  1039. esac
  1040. case $ac_abs_builddir in
  1041. .) ac_abs_srcdir=$ac_srcdir;;
  1042. *)
  1043. case $ac_srcdir in
  1044. .) ac_abs_srcdir=$ac_abs_builddir;;
  1045. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1046. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1047. esac;;
  1048. esac
  1049. case $ac_abs_builddir in
  1050. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1051. *)
  1052. case $ac_top_srcdir in
  1053. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1054. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1055. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1056. esac;;
  1057. esac
  1058. cd $ac_dir
  1059. # Check for guested configure; otherwise get Cygnus style configure.
  1060. if test -f $ac_srcdir/configure.gnu; then
  1061. echo
  1062. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1063. elif test -f $ac_srcdir/configure; then
  1064. echo
  1065. $SHELL $ac_srcdir/configure --help=recursive
  1066. elif test -f $ac_srcdir/configure.ac ||
  1067. test -f $ac_srcdir/configure.in; then
  1068. echo
  1069. $ac_configure --help
  1070. else
  1071. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1072. fi
  1073. cd $ac_popdir
  1074. done
  1075. fi
  1076. test -n "$ac_init_help" && exit 0
  1077. if $ac_init_version; then
  1078. cat <<\_ACEOF
  1079. dirsrv configure 1.1.4
  1080. generated by GNU Autoconf 2.59
  1081. Copyright (C) 2003 Free Software Foundation, Inc.
  1082. This configure script is free software; the Free Software Foundation
  1083. gives unlimited permission to copy, distribute and modify it.
  1084. _ACEOF
  1085. exit 0
  1086. fi
  1087. exec 5>config.log
  1088. cat >&5 <<_ACEOF
  1089. This file contains any messages produced by compilers while
  1090. running configure, to aid debugging if configure makes a mistake.
  1091. It was created by dirsrv $as_me 1.1.4, which was
  1092. generated by GNU Autoconf 2.59. Invocation command line was
  1093. $ $0 $@
  1094. _ACEOF
  1095. {
  1096. cat <<_ASUNAME
  1097. ## --------- ##
  1098. ## Platform. ##
  1099. ## --------- ##
  1100. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1101. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1102. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1103. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1104. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1105. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1106. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1107. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1108. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1109. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1110. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1111. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1112. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1113. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1114. _ASUNAME
  1115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1116. for as_dir in $PATH
  1117. do
  1118. IFS=$as_save_IFS
  1119. test -z "$as_dir" && as_dir=.
  1120. echo "PATH: $as_dir"
  1121. done
  1122. } >&5
  1123. cat >&5 <<_ACEOF
  1124. ## ----------- ##
  1125. ## Core tests. ##
  1126. ## ----------- ##
  1127. _ACEOF
  1128. # Keep a trace of the command line.
  1129. # Strip out --no-create and --no-recursion so they do not pile up.
  1130. # Strip out --silent because we don't want to record it for future runs.
  1131. # Also quote any args containing shell meta-characters.
  1132. # Make two passes to allow for proper duplicate-argument suppression.
  1133. ac_configure_args=
  1134. ac_configure_args0=
  1135. ac_configure_args1=
  1136. ac_sep=
  1137. ac_must_keep_next=false
  1138. for ac_pass in 1 2
  1139. do
  1140. for ac_arg
  1141. do
  1142. case $ac_arg in
  1143. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1144. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1145. | -silent | --silent | --silen | --sile | --sil)
  1146. continue ;;
  1147. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1148. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1149. esac
  1150. case $ac_pass in
  1151. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1152. 2)
  1153. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1154. if test $ac_must_keep_next = true; then
  1155. ac_must_keep_next=false # Got value, back to normal.
  1156. else
  1157. case $ac_arg in
  1158. *=* | --config-cache | -C | -disable-* | --disable-* \
  1159. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1160. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1161. | -with-* | --with-* | -without-* | --without-* | --x)
  1162. case "$ac_configure_args0 " in
  1163. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1164. esac
  1165. ;;
  1166. -* ) ac_must_keep_next=true ;;
  1167. esac
  1168. fi
  1169. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1170. # Get rid of the leading space.
  1171. ac_sep=" "
  1172. ;;
  1173. esac
  1174. done
  1175. done
  1176. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1177. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1178. # When interrupted or exit'd, cleanup temporary files, and complete
  1179. # config.log. We remove comments because anyway the quotes in there
  1180. # would cause problems or look ugly.
  1181. # WARNING: Be sure not to use single quotes in there, as some shells,
  1182. # such as our DU 5.0 friend, will then `close' the trap.
  1183. trap 'exit_status=$?
  1184. # Save into config.log some information that might help in debugging.
  1185. {
  1186. echo
  1187. cat <<\_ASBOX
  1188. ## ---------------- ##
  1189. ## Cache variables. ##
  1190. ## ---------------- ##
  1191. _ASBOX
  1192. echo
  1193. # The following way of writing the cache mishandles newlines in values,
  1194. {
  1195. (set) 2>&1 |
  1196. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1197. *ac_space=\ *)
  1198. sed -n \
  1199. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1200. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1201. ;;
  1202. *)
  1203. sed -n \
  1204. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1205. ;;
  1206. esac;
  1207. }
  1208. echo
  1209. cat <<\_ASBOX
  1210. ## ----------------- ##
  1211. ## Output variables. ##
  1212. ## ----------------- ##
  1213. _ASBOX
  1214. echo
  1215. for ac_var in $ac_subst_vars
  1216. do
  1217. eval ac_val=$`echo $ac_var`
  1218. echo "$ac_var='"'"'$ac_val'"'"'"
  1219. done | sort
  1220. echo
  1221. if test -n "$ac_subst_files"; then
  1222. cat <<\_ASBOX
  1223. ## ------------- ##
  1224. ## Output files. ##
  1225. ## ------------- ##
  1226. _ASBOX
  1227. echo
  1228. for ac_var in $ac_subst_files
  1229. do
  1230. eval ac_val=$`echo $ac_var`
  1231. echo "$ac_var='"'"'$ac_val'"'"'"
  1232. done | sort
  1233. echo
  1234. fi
  1235. if test -s confdefs.h; then
  1236. cat <<\_ASBOX
  1237. ## ----------- ##
  1238. ## confdefs.h. ##
  1239. ## ----------- ##
  1240. _ASBOX
  1241. echo
  1242. sed "/^$/d" confdefs.h | sort
  1243. echo
  1244. fi
  1245. test "$ac_signal" != 0 &&
  1246. echo "$as_me: caught signal $ac_signal"
  1247. echo "$as_me: exit $exit_status"
  1248. } >&5
  1249. rm -f core *.core &&
  1250. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1251. exit $exit_status
  1252. ' 0
  1253. for ac_signal in 1 2 13 15; do
  1254. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1255. done
  1256. ac_signal=0
  1257. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1258. rm -rf conftest* confdefs.h
  1259. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1260. echo >confdefs.h
  1261. # Predefined preprocessor variables.
  1262. cat >>confdefs.h <<_ACEOF
  1263. #define PACKAGE_NAME "$PACKAGE_NAME"
  1264. _ACEOF
  1265. cat >>confdefs.h <<_ACEOF
  1266. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1267. _ACEOF
  1268. cat >>confdefs.h <<_ACEOF
  1269. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1270. _ACEOF
  1271. cat >>confdefs.h <<_ACEOF
  1272. #define PACKAGE_STRING "$PACKAGE_STRING"
  1273. _ACEOF
  1274. cat >>confdefs.h <<_ACEOF
  1275. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1276. _ACEOF
  1277. # Let the site file select an alternate cache file if it wants to.
  1278. # Prefer explicitly selected file to automatically selected ones.
  1279. if test -z "$CONFIG_SITE"; then
  1280. if test "x$prefix" != xNONE; then
  1281. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1282. else
  1283. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1284. fi
  1285. fi
  1286. for ac_site_file in $CONFIG_SITE; do
  1287. if test -r "$ac_site_file"; then
  1288. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1289. echo "$as_me: loading site script $ac_site_file" >&6;}
  1290. sed 's/^/| /' "$ac_site_file" >&5
  1291. . "$ac_site_file"
  1292. fi
  1293. done
  1294. if test -r "$cache_file"; then
  1295. # Some versions of bash will fail to source /dev/null (special
  1296. # files actually), so we avoid doing that.
  1297. if test -f "$cache_file"; then
  1298. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1299. echo "$as_me: loading cache $cache_file" >&6;}
  1300. case $cache_file in
  1301. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1302. *) . ./$cache_file;;
  1303. esac
  1304. fi
  1305. else
  1306. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1307. echo "$as_me: creating cache $cache_file" >&6;}
  1308. >$cache_file
  1309. fi
  1310. # Check that the precious variables saved in the cache have kept the same
  1311. # value.
  1312. ac_cache_corrupted=false
  1313. for ac_var in `(set) 2>&1 |
  1314. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1315. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1316. eval ac_new_set=\$ac_env_${ac_var}_set
  1317. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1318. eval ac_new_val="\$ac_env_${ac_var}_value"
  1319. case $ac_old_set,$ac_new_set in
  1320. set,)
  1321. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1322. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1323. ac_cache_corrupted=: ;;
  1324. ,set)
  1325. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1326. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1327. ac_cache_corrupted=: ;;
  1328. ,);;
  1329. *)
  1330. if test "x$ac_old_val" != "x$ac_new_val"; then
  1331. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1332. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1333. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1334. echo "$as_me: former value: $ac_old_val" >&2;}
  1335. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1336. echo "$as_me: current value: $ac_new_val" >&2;}
  1337. ac_cache_corrupted=:
  1338. fi;;
  1339. esac
  1340. # Pass precious variables to config.status.
  1341. if test "$ac_new_set" = set; then
  1342. case $ac_new_val in
  1343. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1344. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1345. *) ac_arg=$ac_var=$ac_new_val ;;
  1346. esac
  1347. case " $ac_configure_args " in
  1348. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1349. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1350. esac
  1351. fi
  1352. done
  1353. if $ac_cache_corrupted; then
  1354. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1355. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1356. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1357. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1358. { (exit 1); exit 1; }; }
  1359. fi
  1360. ac_ext=c
  1361. ac_cpp='$CPP $CPPFLAGS'
  1362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1365. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1366. ac_config_headers="$ac_config_headers config.h"
  1367. am__api_version="1.9"
  1368. ac_aux_dir=
  1369. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1370. if test -f $ac_dir/install-sh; then
  1371. ac_aux_dir=$ac_dir
  1372. ac_install_sh="$ac_aux_dir/install-sh -c"
  1373. break
  1374. elif test -f $ac_dir/install.sh; then
  1375. ac_aux_dir=$ac_dir
  1376. ac_install_sh="$ac_aux_dir/install.sh -c"
  1377. break
  1378. elif test -f $ac_dir/shtool; then
  1379. ac_aux_dir=$ac_dir
  1380. ac_install_sh="$ac_aux_dir/shtool install -c"
  1381. break
  1382. fi
  1383. done
  1384. if test -z "$ac_aux_dir"; then
  1385. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1386. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1387. { (exit 1); exit 1; }; }
  1388. fi
  1389. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1390. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1391. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1392. # Find a good install program. We prefer a C program (faster),
  1393. # so one script is as good as another. But avoid the broken or
  1394. # incompatible versions:
  1395. # SysV /etc/install, /usr/sbin/install
  1396. # SunOS /usr/etc/install
  1397. # IRIX /sbin/install
  1398. # AIX /bin/install
  1399. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1400. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1401. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1402. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1403. # OS/2's system install, which has a completely different semantic
  1404. # ./install, which can be erroneously created by make from ./install.sh.
  1405. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1406. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1407. if test -z "$INSTALL"; then
  1408. if test "${ac_cv_path_install+set}" = set; then
  1409. echo $ECHO_N "(cached) $ECHO_C" >&6
  1410. else
  1411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1412. for as_dir in $PATH
  1413. do
  1414. IFS=$as_save_IFS
  1415. test -z "$as_dir" && as_dir=.
  1416. # Account for people who put trailing slashes in PATH elements.
  1417. case $as_dir/ in
  1418. ./ | .// | /cC/* | \
  1419. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1420. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1421. /usr/ucb/* ) ;;
  1422. *)
  1423. # OSF1 and SCO ODT 3.0 have their own names for install.
  1424. # Don't use installbsd from OSF since it installs stuff as root
  1425. # by default.
  1426. for ac_prog in ginstall scoinst install; do
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1429. if test $ac_prog = install &&
  1430. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1431. # AIX install. It has an incompatible calling convention.
  1432. :
  1433. elif test $ac_prog = install &&
  1434. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1435. # program-specific install script used by HP pwplus--don't use.
  1436. :
  1437. else
  1438. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1439. break 3
  1440. fi
  1441. fi
  1442. done
  1443. done
  1444. ;;
  1445. esac
  1446. done
  1447. fi
  1448. if test "${ac_cv_path_install+set}" = set; then
  1449. INSTALL=$ac_cv_path_install
  1450. else
  1451. # As a last resort, use the slow shell script. We don't cache a
  1452. # path for INSTALL within a source directory, because that will
  1453. # break other packages using the cache if that directory is
  1454. # removed, or if the path is relative.
  1455. INSTALL=$ac_install_sh
  1456. fi
  1457. fi
  1458. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1459. echo "${ECHO_T}$INSTALL" >&6
  1460. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1461. # It thinks the first close brace ends the variable substitution.
  1462. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1463. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1464. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1465. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1466. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1467. # Just in case
  1468. sleep 1
  1469. echo timestamp > conftest.file
  1470. # Do `set' in a subshell so we don't clobber the current shell's
  1471. # arguments. Must try -L first in case configure is actually a
  1472. # symlink; some systems play weird games with the mod time of symlinks
  1473. # (eg FreeBSD returns the mod time of the symlink's containing
  1474. # directory).
  1475. if (
  1476. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1477. if test "$*" = "X"; then
  1478. # -L didn't work.
  1479. set X `ls -t $srcdir/configure conftest.file`
  1480. fi
  1481. rm -f conftest.file
  1482. if test "$*" != "X $srcdir/configure conftest.file" \
  1483. && test "$*" != "X conftest.file $srcdir/configure"; then
  1484. # If neither matched, then we have a broken ls. This can happen
  1485. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1486. # broken ls alias from the environment. This has actually
  1487. # happened. Such a system could not be considered "sane".
  1488. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1489. alias in your environment" >&5
  1490. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1491. alias in your environment" >&2;}
  1492. { (exit 1); exit 1; }; }
  1493. fi
  1494. test "$2" = conftest.file
  1495. )
  1496. then
  1497. # Ok.
  1498. :
  1499. else
  1500. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1501. Check your system clock" >&5
  1502. echo "$as_me: error: newly created file is older than distributed files!
  1503. Check your system clock" >&2;}
  1504. { (exit 1); exit 1; }; }
  1505. fi
  1506. echo "$as_me:$LINENO: result: yes" >&5
  1507. echo "${ECHO_T}yes" >&6
  1508. test "$program_prefix" != NONE &&
  1509. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1510. # Use a double $ so make ignores it.
  1511. test "$program_suffix" != NONE &&
  1512. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1513. # Double any \ or $. echo might interpret backslashes.
  1514. # By default was `s,x,x', remove it if useless.
  1515. cat <<\_ACEOF >conftest.sed
  1516. s/[\\$]/&&/g;s/;s,x,x,$//
  1517. _ACEOF
  1518. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1519. rm conftest.sed
  1520. # expand $ac_aux_dir to an absolute path
  1521. am_aux_dir=`cd $ac_aux_dir && pwd`
  1522. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1523. # Use eval to expand $SHELL
  1524. if eval "$MISSING --run true"; then
  1525. am_missing_run="$MISSING --run "
  1526. else
  1527. am_missing_run=
  1528. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1529. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1530. fi
  1531. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1532. # We used to keeping the `.' as first argument, in order to
  1533. # allow $(mkdir_p) to be used without argument. As in
  1534. # $(mkdir_p) $(somedir)
  1535. # where $(somedir) is conditionally defined. However this is wrong
  1536. # for two reasons:
  1537. # 1. if the package is installed by a user who cannot write `.'
  1538. # make install will fail,
  1539. # 2. the above comment should most certainly read
  1540. # $(mkdir_p) $(DESTDIR)$(somedir)
  1541. # so it does not work when $(somedir) is undefined and
  1542. # $(DESTDIR) is not.
  1543. # To support the latter case, we have to write
  1544. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1545. # so the `.' trick is pointless.
  1546. mkdir_p='mkdir -p --'
  1547. else
  1548. # On NextStep and OpenStep, the `mkdir' command does not
  1549. # recognize any option. It will interpret all options as
  1550. # directories to create, and then abort because `.' already
  1551. # exists.
  1552. for d in ./-p ./--version;
  1553. do
  1554. test -d $d && rmdir $d
  1555. done
  1556. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1557. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1558. mkdir_p='$(mkinstalldirs)'
  1559. else
  1560. mkdir_p='$(install_sh) -d'
  1561. fi
  1562. fi
  1563. for ac_prog in gawk mawk nawk awk
  1564. do
  1565. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1566. set dummy $ac_prog; ac_word=$2
  1567. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1568. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1569. if test "${ac_cv_prog_AWK+set}" = set; then
  1570. echo $ECHO_N "(cached) $ECHO_C" >&6
  1571. else
  1572. if test -n "$AWK"; then
  1573. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1574. else
  1575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1576. for as_dir in $PATH
  1577. do
  1578. IFS=$as_save_IFS
  1579. test -z "$as_dir" && as_dir=.
  1580. for ac_exec_ext in '' $ac_executable_extensions; do
  1581. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1582. ac_cv_prog_AWK="$ac_prog"
  1583. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1584. break 2
  1585. fi
  1586. done
  1587. done
  1588. fi
  1589. fi
  1590. AWK=$ac_cv_prog_AWK
  1591. if test -n "$AWK"; then
  1592. echo "$as_me:$LINENO: result: $AWK" >&5
  1593. echo "${ECHO_T}$AWK" >&6
  1594. else
  1595. echo "$as_me:$LINENO: result: no" >&5
  1596. echo "${ECHO_T}no" >&6
  1597. fi
  1598. test -n "$AWK" && break
  1599. done
  1600. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1601. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1602. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1603. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1604. echo $ECHO_N "(cached) $ECHO_C" >&6
  1605. else
  1606. cat >conftest.make <<\_ACEOF
  1607. all:
  1608. @echo 'ac_maketemp="$(MAKE)"'
  1609. _ACEOF
  1610. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1611. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1612. if test -n "$ac_maketemp"; then
  1613. eval ac_cv_prog_make_${ac_make}_set=yes
  1614. else
  1615. eval ac_cv_prog_make_${ac_make}_set=no
  1616. fi
  1617. rm -f conftest.make
  1618. fi
  1619. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1620. echo "$as_me:$LINENO: result: yes" >&5
  1621. echo "${ECHO_T}yes" >&6
  1622. SET_MAKE=
  1623. else
  1624. echo "$as_me:$LINENO: result: no" >&5
  1625. echo "${ECHO_T}no" >&6
  1626. SET_MAKE="MAKE=${MAKE-make}"
  1627. fi
  1628. rm -rf .tst 2>/dev/null
  1629. mkdir .tst 2>/dev/null
  1630. if test -d .tst; then
  1631. am__leading_dot=.
  1632. else
  1633. am__leading_dot=_
  1634. fi
  1635. rmdir .tst 2>/dev/null
  1636. # test to see if srcdir already configured
  1637. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1638. test -f $srcdir/config.status; then
  1639. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1640. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1641. { (exit 1); exit 1; }; }
  1642. fi
  1643. # test whether we have cygpath
  1644. if test -z "$CYGPATH_W"; then
  1645. if (cygpath --version) >/dev/null 2>/dev/null; then
  1646. CYGPATH_W='cygpath -w'
  1647. else
  1648. CYGPATH_W=echo
  1649. fi
  1650. fi
  1651. # Define the identity of the package.
  1652. PACKAGE='dirsrv'
  1653. VERSION='1.1.4'
  1654. cat >>confdefs.h <<_ACEOF
  1655. #define PACKAGE "$PACKAGE"
  1656. _ACEOF
  1657. cat >>confdefs.h <<_ACEOF
  1658. #define VERSION "$VERSION"
  1659. _ACEOF
  1660. # Some tools Automake needs.
  1661. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1662. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1663. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1664. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1665. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1666. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1667. # Installed binaries are usually stripped using `strip' when the user
  1668. # run `make install-strip'. However `strip' might not be the right
  1669. # tool to use in cross-compilation environments, therefore Automake
  1670. # will honor the `STRIP' environment variable to overrule this program.
  1671. if test "$cross_compiling" != no; then
  1672. if test -n "$ac_tool_prefix"; then
  1673. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1674. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1675. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1676. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1677. if test "${ac_cv_prog_STRIP+set}" = set; then
  1678. echo $ECHO_N "(cached) $ECHO_C" >&6
  1679. else
  1680. if test -n "$STRIP"; then
  1681. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1682. else
  1683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1684. for as_dir in $PATH
  1685. do
  1686. IFS=$as_save_IFS
  1687. test -z "$as_dir" && as_dir=.
  1688. for ac_exec_ext in '' $ac_executable_extensions; do
  1689. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1690. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1691. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1692. break 2
  1693. fi
  1694. done
  1695. done
  1696. fi
  1697. fi
  1698. STRIP=$ac_cv_prog_STRIP
  1699. if test -n "$STRIP"; then
  1700. echo "$as_me:$LINENO: result: $STRIP" >&5
  1701. echo "${ECHO_T}$STRIP" >&6
  1702. else
  1703. echo "$as_me:$LINENO: result: no" >&5
  1704. echo "${ECHO_T}no" >&6
  1705. fi
  1706. fi
  1707. if test -z "$ac_cv_prog_STRIP"; then
  1708. ac_ct_STRIP=$STRIP
  1709. # Extract the first word of "strip", so it can be a program name with args.
  1710. set dummy strip; ac_word=$2
  1711. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1712. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1713. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1714. echo $ECHO_N "(cached) $ECHO_C" >&6
  1715. else
  1716. if test -n "$ac_ct_STRIP"; then
  1717. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1718. else
  1719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1720. for as_dir in $PATH
  1721. do
  1722. IFS=$as_save_IFS
  1723. test -z "$as_dir" && as_dir=.
  1724. for ac_exec_ext in '' $ac_executable_extensions; do
  1725. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1726. ac_cv_prog_ac_ct_STRIP="strip"
  1727. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1728. break 2
  1729. fi
  1730. done
  1731. done
  1732. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1733. fi
  1734. fi
  1735. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1736. if test -n "$ac_ct_STRIP"; then
  1737. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1738. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1739. else
  1740. echo "$as_me:$LINENO: result: no" >&5
  1741. echo "${ECHO_T}no" >&6
  1742. fi
  1743. STRIP=$ac_ct_STRIP
  1744. else
  1745. STRIP="$ac_cv_prog_STRIP"
  1746. fi
  1747. fi
  1748. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1749. # We need awk for the "check" target. The system "awk" is bad on
  1750. # some platforms.
  1751. # Always define AMTAR for backward compatibility.
  1752. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1753. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1754. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1755. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1756. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1757. if test "${enable_maintainer_mode+set}" = set; then
  1758. enableval="$enable_maintainer_mode"
  1759. USE_MAINTAINER_MODE=$enableval
  1760. else
  1761. USE_MAINTAINER_MODE=no
  1762. fi;
  1763. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1764. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1765. if test $USE_MAINTAINER_MODE = yes; then
  1766. MAINTAINER_MODE_TRUE=
  1767. MAINTAINER_MODE_FALSE='#'
  1768. else
  1769. MAINTAINER_MODE_TRUE='#'
  1770. MAINTAINER_MODE_FALSE=
  1771. fi
  1772. MAINT=$MAINTAINER_MODE_TRUE
  1773. # Make sure we can run config.sub.
  1774. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1775. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1776. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1777. { (exit 1); exit 1; }; }
  1778. echo "$as_me:$LINENO: checking build system type" >&5
  1779. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1780. if test "${ac_cv_build+set}" = set; then
  1781. echo $ECHO_N "(cached) $ECHO_C" >&6
  1782. else
  1783. ac_cv_build_alias=$build_alias
  1784. test -z "$ac_cv_build_alias" &&
  1785. ac_cv_build_alias=`$ac_config_guess`
  1786. test -z "$ac_cv_build_alias" &&
  1787. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1788. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1789. { (exit 1); exit 1; }; }
  1790. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1791. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1792. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1793. { (exit 1); exit 1; }; }
  1794. fi
  1795. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1796. echo "${ECHO_T}$ac_cv_build" >&6
  1797. build=$ac_cv_build
  1798. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1799. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1800. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1801. echo "$as_me:$LINENO: checking host system type" >&5
  1802. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1803. if test "${ac_cv_host+set}" = set; then
  1804. echo $ECHO_N "(cached) $ECHO_C" >&6
  1805. else
  1806. ac_cv_host_alias=$host_alias
  1807. test -z "$ac_cv_host_alias" &&
  1808. ac_cv_host_alias=$ac_cv_build_alias
  1809. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1810. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1811. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1812. { (exit 1); exit 1; }; }
  1813. fi
  1814. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1815. echo "${ECHO_T}$ac_cv_host" >&6
  1816. host=$ac_cv_host
  1817. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1818. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1819. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1820. # Checks for programs.
  1821. ac_ext=cc
  1822. ac_cpp='$CXXCPP $CPPFLAGS'
  1823. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1824. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1825. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1826. if test -n "$ac_tool_prefix"; then
  1827. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1828. do
  1829. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1830. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1831. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1832. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1833. if test "${ac_cv_prog_CXX+set}" = set; then
  1834. echo $ECHO_N "(cached) $ECHO_C" >&6
  1835. else
  1836. if test -n "$CXX"; then
  1837. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1838. else
  1839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1840. for as_dir in $PATH
  1841. do
  1842. IFS=$as_save_IFS
  1843. test -z "$as_dir" && as_dir=.
  1844. for ac_exec_ext in '' $ac_executable_extensions; do
  1845. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1846. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1847. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1848. break 2
  1849. fi
  1850. done
  1851. done
  1852. fi
  1853. fi
  1854. CXX=$ac_cv_prog_CXX
  1855. if test -n "$CXX"; then
  1856. echo "$as_me:$LINENO: result: $CXX" >&5
  1857. echo "${ECHO_T}$CXX" >&6
  1858. else
  1859. echo "$as_me:$LINENO: result: no" >&5
  1860. echo "${ECHO_T}no" >&6
  1861. fi
  1862. test -n "$CXX" && break
  1863. done
  1864. fi
  1865. if test -z "$CXX"; then
  1866. ac_ct_CXX=$CXX
  1867. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1868. do
  1869. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1870. set dummy $ac_prog; ac_word=$2
  1871. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1872. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1873. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1874. echo $ECHO_N "(cached) $ECHO_C" >&6
  1875. else
  1876. if test -n "$ac_ct_CXX"; then
  1877. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1878. else
  1879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1880. for as_dir in $PATH
  1881. do
  1882. IFS=$as_save_IFS
  1883. test -z "$as_dir" && as_dir=.
  1884. for ac_exec_ext in '' $ac_executable_extensions; do
  1885. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1886. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1887. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1888. break 2
  1889. fi
  1890. done
  1891. done
  1892. fi
  1893. fi
  1894. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1895. if test -n "$ac_ct_CXX"; then
  1896. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1897. echo "${ECHO_T}$ac_ct_CXX" >&6
  1898. else
  1899. echo "$as_me:$LINENO: result: no" >&5
  1900. echo "${ECHO_T}no" >&6
  1901. fi
  1902. test -n "$ac_ct_CXX" && break
  1903. done
  1904. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1905. CXX=$ac_ct_CXX
  1906. fi
  1907. # Provide some information about the compiler.
  1908. echo "$as_me:$LINENO:" \
  1909. "checking for C++ compiler version" >&5
  1910. ac_compiler=`set X $ac_compile; echo $2`
  1911. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1912. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1913. ac_status=$?
  1914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1915. (exit $ac_status); }
  1916. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1917. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1918. ac_status=$?
  1919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1920. (exit $ac_status); }
  1921. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1922. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1923. ac_status=$?
  1924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1925. (exit $ac_status); }
  1926. cat >conftest.$ac_ext <<_ACEOF
  1927. /* confdefs.h. */
  1928. _ACEOF
  1929. cat confdefs.h >>conftest.$ac_ext
  1930. cat >>conftest.$ac_ext <<_ACEOF
  1931. /* end confdefs.h. */
  1932. int
  1933. main ()
  1934. {
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. ac_clean_files_save=$ac_clean_files
  1940. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1941. # Try to create an executable without -o first, disregard a.out.
  1942. # It will help us diagnose broken compilers, and finding out an intuition
  1943. # of exeext.
  1944. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1945. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1946. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1947. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1948. (eval $ac_link_default) 2>&5
  1949. ac_status=$?
  1950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1951. (exit $ac_status); }; then
  1952. # Find the output, starting from the most likely. This scheme is
  1953. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1954. # resort.
  1955. # Be careful to initialize this variable, since it used to be cached.
  1956. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1957. ac_cv_exeext=
  1958. # b.out is created by i960 compilers.
  1959. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1960. do
  1961. test -f "$ac_file" || continue
  1962. case $ac_file in
  1963. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1964. ;;
  1965. conftest.$ac_ext )
  1966. # This is the source file.
  1967. ;;
  1968. [ab].out )
  1969. # We found the default executable, but exeext='' is most
  1970. # certainly right.
  1971. break;;
  1972. *.* )
  1973. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1974. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1975. # but it would be cool to find out if it's true. Does anybody
  1976. # maintain Libtool? --akim.
  1977. export ac_cv_exeext
  1978. break;;
  1979. * )
  1980. break;;
  1981. esac
  1982. done
  1983. else
  1984. echo "$as_me: failed program was:" >&5
  1985. sed 's/^/| /' conftest.$ac_ext >&5
  1986. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1987. See \`config.log' for more details." >&5
  1988. echo "$as_me: error: C++ compiler cannot create executables
  1989. See \`config.log' for more details." >&2;}
  1990. { (exit 77); exit 77; }; }
  1991. fi
  1992. ac_exeext=$ac_cv_exeext
  1993. echo "$as_me:$LINENO: result: $ac_file" >&5
  1994. echo "${ECHO_T}$ac_file" >&6
  1995. # Check the compiler produces executables we can run. If not, either
  1996. # the compiler is broken, or we cross compile.
  1997. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1998. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1999. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2000. # If not cross compiling, check that we can run a simple program.
  2001. if test "$cross_compiling" != yes; then
  2002. if { ac_try='./$ac_file'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. cross_compiling=no
  2009. else
  2010. if test "$cross_compiling" = maybe; then
  2011. cross_compiling=yes
  2012. else
  2013. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2014. If you meant to cross compile, use \`--host'.
  2015. See \`config.log' for more details." >&5
  2016. echo "$as_me: error: cannot run C++ compiled programs.
  2017. If you meant to cross compile, use \`--host'.
  2018. See \`config.log' for more details." >&2;}
  2019. { (exit 1); exit 1; }; }
  2020. fi
  2021. fi
  2022. fi
  2023. echo "$as_me:$LINENO: result: yes" >&5
  2024. echo "${ECHO_T}yes" >&6
  2025. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2026. ac_clean_files=$ac_clean_files_save
  2027. # Check the compiler produces executables we can run. If not, either
  2028. # the compiler is broken, or we cross compile.
  2029. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2030. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2031. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2032. echo "${ECHO_T}$cross_compiling" >&6
  2033. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2034. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2035. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2036. (eval $ac_link) 2>&5
  2037. ac_status=$?
  2038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2039. (exit $ac_status); }; then
  2040. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2041. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2042. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2043. # `rm'.
  2044. for ac_file in conftest.exe conftest conftest.*; do
  2045. test -f "$ac_file" || continue
  2046. case $ac_file in
  2047. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2048. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2049. export ac_cv_exeext
  2050. break;;
  2051. * ) break;;
  2052. esac
  2053. done
  2054. else
  2055. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2056. See \`config.log' for more details." >&5
  2057. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2058. See \`config.log' for more details." >&2;}
  2059. { (exit 1); exit 1; }; }
  2060. fi
  2061. rm -f conftest$ac_cv_exeext
  2062. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2063. echo "${ECHO_T}$ac_cv_exeext" >&6
  2064. rm -f conftest.$ac_ext
  2065. EXEEXT=$ac_cv_exeext
  2066. ac_exeext=$EXEEXT
  2067. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2068. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2069. if test "${ac_cv_objext+set}" = set; then
  2070. echo $ECHO_N "(cached) $ECHO_C" >&6
  2071. else
  2072. cat >conftest.$ac_ext <<_ACEOF
  2073. /* confdefs.h. */
  2074. _ACEOF
  2075. cat confdefs.h >>conftest.$ac_ext
  2076. cat >>conftest.$ac_ext <<_ACEOF
  2077. /* end confdefs.h. */
  2078. int
  2079. main ()
  2080. {
  2081. ;
  2082. return 0;
  2083. }
  2084. _ACEOF
  2085. rm -f conftest.o conftest.obj
  2086. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2087. (eval $ac_compile) 2>&5
  2088. ac_status=$?
  2089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2090. (exit $ac_status); }; then
  2091. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2092. case $ac_file in
  2093. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2094. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2095. break;;
  2096. esac
  2097. done
  2098. else
  2099. echo "$as_me: failed program was:" >&5
  2100. sed 's/^/| /' conftest.$ac_ext >&5
  2101. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2102. See \`config.log' for more details." >&5
  2103. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2104. See \`config.log' for more details." >&2;}
  2105. { (exit 1); exit 1; }; }
  2106. fi
  2107. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2108. fi
  2109. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2110. echo "${ECHO_T}$ac_cv_objext" >&6
  2111. OBJEXT=$ac_cv_objext
  2112. ac_objext=$OBJEXT
  2113. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2114. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2115. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2116. echo $ECHO_N "(cached) $ECHO_C" >&6
  2117. else
  2118. cat >conftest.$ac_ext <<_ACEOF
  2119. /* confdefs.h. */
  2120. _ACEOF
  2121. cat confdefs.h >>conftest.$ac_ext
  2122. cat >>conftest.$ac_ext <<_ACEOF
  2123. /* end confdefs.h. */
  2124. int
  2125. main ()
  2126. {
  2127. #ifndef __GNUC__
  2128. choke me
  2129. #endif
  2130. ;
  2131. return 0;
  2132. }
  2133. _ACEOF
  2134. rm -f conftest.$ac_objext
  2135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2136. (eval $ac_compile) 2>conftest.er1
  2137. ac_status=$?
  2138. grep -v '^ *+' conftest.er1 >conftest.err
  2139. rm -f conftest.er1
  2140. cat conftest.err >&5
  2141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2142. (exit $ac_status); } &&
  2143. { ac_try='test -z "$ac_cxx_werror_flag"
  2144. || test ! -s conftest.err'
  2145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2146. (eval $ac_try) 2>&5
  2147. ac_status=$?
  2148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2149. (exit $ac_status); }; } &&
  2150. { ac_try='test -s conftest.$ac_objext'
  2151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2152. (eval $ac_try) 2>&5
  2153. ac_status=$?
  2154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2155. (exit $ac_status); }; }; then
  2156. ac_compiler_gnu=yes
  2157. else
  2158. echo "$as_me: failed program was:" >&5
  2159. sed 's/^/| /' conftest.$ac_ext >&5
  2160. ac_compiler_gnu=no
  2161. fi
  2162. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2163. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2164. fi
  2165. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2166. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2167. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2168. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2169. ac_save_CXXFLAGS=$CXXFLAGS
  2170. CXXFLAGS="-g"
  2171. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2172. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2173. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2174. echo $ECHO_N "(cached) $ECHO_C" >&6
  2175. else
  2176. cat >conftest.$ac_ext <<_ACEOF
  2177. /* confdefs.h. */
  2178. _ACEOF
  2179. cat confdefs.h >>conftest.$ac_ext
  2180. cat >>conftest.$ac_ext <<_ACEOF
  2181. /* end confdefs.h. */
  2182. int
  2183. main ()
  2184. {
  2185. ;
  2186. return 0;
  2187. }
  2188. _ACEOF
  2189. rm -f conftest.$ac_objext
  2190. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2191. (eval $ac_compile) 2>conftest.er1
  2192. ac_status=$?
  2193. grep -v '^ *+' conftest.er1 >conftest.err
  2194. rm -f conftest.er1
  2195. cat conftest.err >&5
  2196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2197. (exit $ac_status); } &&
  2198. { ac_try='test -z "$ac_cxx_werror_flag"
  2199. || test ! -s conftest.err'
  2200. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2201. (eval $ac_try) 2>&5
  2202. ac_status=$?
  2203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2204. (exit $ac_status); }; } &&
  2205. { ac_try='test -s conftest.$ac_objext'
  2206. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2207. (eval $ac_try) 2>&5
  2208. ac_status=$?
  2209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2210. (exit $ac_status); }; }; then
  2211. ac_cv_prog_cxx_g=yes
  2212. else
  2213. echo "$as_me: failed program was:" >&5
  2214. sed 's/^/| /' conftest.$ac_ext >&5
  2215. ac_cv_prog_cxx_g=no
  2216. fi
  2217. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2220. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2221. if test "$ac_test_CXXFLAGS" = set; then
  2222. CXXFLAGS=$ac_save_CXXFLAGS
  2223. elif test $ac_cv_prog_cxx_g = yes; then
  2224. if test "$GXX" = yes; then
  2225. CXXFLAGS="-g -O2"
  2226. else
  2227. CXXFLAGS="-g"
  2228. fi
  2229. else
  2230. if test "$GXX" = yes; then
  2231. CXXFLAGS="-O2"
  2232. else
  2233. CXXFLAGS=
  2234. fi
  2235. fi
  2236. for ac_declaration in \
  2237. '' \
  2238. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2239. 'extern "C" void std::exit (int); using std::exit;' \
  2240. 'extern "C" void exit (int) throw ();' \
  2241. 'extern "C" void exit (int);' \
  2242. 'void exit (int);'
  2243. do
  2244. cat >conftest.$ac_ext <<_ACEOF
  2245. /* confdefs.h. */
  2246. _ACEOF
  2247. cat confdefs.h >>conftest.$ac_ext
  2248. cat >>conftest.$ac_ext <<_ACEOF
  2249. /* end confdefs.h. */
  2250. $ac_declaration
  2251. #include <stdlib.h>
  2252. int
  2253. main ()
  2254. {
  2255. exit (42);
  2256. ;
  2257. return 0;
  2258. }
  2259. _ACEOF
  2260. rm -f conftest.$ac_objext
  2261. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2262. (eval $ac_compile) 2>conftest.er1
  2263. ac_status=$?
  2264. grep -v '^ *+' conftest.er1 >conftest.err
  2265. rm -f conftest.er1
  2266. cat conftest.err >&5
  2267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2268. (exit $ac_status); } &&
  2269. { ac_try='test -z "$ac_cxx_werror_flag"
  2270. || test ! -s conftest.err'
  2271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2272. (eval $ac_try) 2>&5
  2273. ac_status=$?
  2274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2275. (exit $ac_status); }; } &&
  2276. { ac_try='test -s conftest.$ac_objext'
  2277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2278. (eval $ac_try) 2>&5
  2279. ac_status=$?
  2280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2281. (exit $ac_status); }; }; then
  2282. :
  2283. else
  2284. echo "$as_me: failed program was:" >&5
  2285. sed 's/^/| /' conftest.$ac_ext >&5
  2286. continue
  2287. fi
  2288. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2289. cat >conftest.$ac_ext <<_ACEOF
  2290. /* confdefs.h. */
  2291. _ACEOF
  2292. cat confdefs.h >>conftest.$ac_ext
  2293. cat >>conftest.$ac_ext <<_ACEOF
  2294. /* end confdefs.h. */
  2295. $ac_declaration
  2296. int
  2297. main ()
  2298. {
  2299. exit (42);
  2300. ;
  2301. return 0;
  2302. }
  2303. _ACEOF
  2304. rm -f conftest.$ac_objext
  2305. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2306. (eval $ac_compile) 2>conftest.er1
  2307. ac_status=$?
  2308. grep -v '^ *+' conftest.er1 >conftest.err
  2309. rm -f conftest.er1
  2310. cat conftest.err >&5
  2311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2312. (exit $ac_status); } &&
  2313. { ac_try='test -z "$ac_cxx_werror_flag"
  2314. || test ! -s conftest.err'
  2315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2316. (eval $ac_try) 2>&5
  2317. ac_status=$?
  2318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2319. (exit $ac_status); }; } &&
  2320. { ac_try='test -s conftest.$ac_objext'
  2321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2322. (eval $ac_try) 2>&5
  2323. ac_status=$?
  2324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2325. (exit $ac_status); }; }; then
  2326. break
  2327. else
  2328. echo "$as_me: failed program was:" >&5
  2329. sed 's/^/| /' conftest.$ac_ext >&5
  2330. fi
  2331. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2332. done
  2333. rm -f conftest*
  2334. if test -n "$ac_declaration"; then
  2335. echo '#ifdef __cplusplus' >>confdefs.h
  2336. echo $ac_declaration >>confdefs.h
  2337. echo '#endif' >>confdefs.h
  2338. fi
  2339. ac_ext=c
  2340. ac_cpp='$CPP $CPPFLAGS'
  2341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2344. DEPDIR="${am__leading_dot}deps"
  2345. ac_config_commands="$ac_config_commands depfiles"
  2346. am_make=${MAKE-make}
  2347. cat > confinc << 'END'
  2348. am__doit:
  2349. @echo done
  2350. .PHONY: am__doit
  2351. END
  2352. # If we don't find an include directive, just comment out the code.
  2353. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2354. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2355. am__include="#"
  2356. am__quote=
  2357. _am_result=none
  2358. # First try GNU make style include.
  2359. echo "include confinc" > confmf
  2360. # We grep out `Entering directory' and `Leaving directory'
  2361. # messages which can occur if `w' ends up in MAKEFLAGS.
  2362. # In particular we don't look at `^make:' because GNU make might
  2363. # be invoked under some other name (usually "gmake"), in which
  2364. # case it prints its new name instead of `make'.
  2365. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2366. am__include=include
  2367. am__quote=
  2368. _am_result=GNU
  2369. fi
  2370. # Now try BSD make style include.
  2371. if test "$am__include" = "#"; then
  2372. echo '.include "confinc"' > confmf
  2373. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2374. am__include=.include
  2375. am__quote="\""
  2376. _am_result=BSD
  2377. fi
  2378. fi
  2379. echo "$as_me:$LINENO: result: $_am_result" >&5
  2380. echo "${ECHO_T}$_am_result" >&6
  2381. rm -f confinc confmf
  2382. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2383. if test "${enable_dependency_tracking+set}" = set; then
  2384. enableval="$enable_dependency_tracking"
  2385. fi;
  2386. if test "x$enable_dependency_tracking" != xno; then
  2387. am_depcomp="$ac_aux_dir/depcomp"
  2388. AMDEPBACKSLASH='\'
  2389. fi
  2390. if test "x$enable_dependency_tracking" != xno; then
  2391. AMDEP_TRUE=
  2392. AMDEP_FALSE='#'
  2393. else
  2394. AMDEP_TRUE='#'
  2395. AMDEP_FALSE=
  2396. fi
  2397. depcc="$CXX" am_compiler_list=
  2398. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2399. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2400. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2401. echo $ECHO_N "(cached) $ECHO_C" >&6
  2402. else
  2403. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2404. # We make a subdir and do the tests there. Otherwise we can end up
  2405. # making bogus files that we don't know about and never remove. For
  2406. # instance it was reported that on HP-UX the gcc test will end up
  2407. # making a dummy file named `D' -- because `-MD' means `put the output
  2408. # in D'.
  2409. mkdir conftest.dir
  2410. # Copy depcomp to subdir because otherwise we won't find it if we're
  2411. # using a relative directory.
  2412. cp "$am_depcomp" conftest.dir
  2413. cd conftest.dir
  2414. # We will build objects and dependencies in a subdirectory because
  2415. # it helps to detect inapplicable dependency modes. For instance
  2416. # both Tru64's cc and ICC support -MD to output dependencies as a
  2417. # side effect of compilation, but ICC will put the dependencies in
  2418. # the current directory while Tru64 will put them in the object
  2419. # directory.
  2420. mkdir sub
  2421. am_cv_CXX_dependencies_compiler_type=none
  2422. if test "$am_compiler_list" = ""; then
  2423. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2424. fi
  2425. for depmode in $am_compiler_list; do
  2426. # Setup a source with many dependencies, because some compilers
  2427. # like to wrap large dependency lists on column 80 (with \), and
  2428. # we should not choose a depcomp mode which is confused by this.
  2429. #
  2430. # We need to recreate these files for each test, as the compiler may
  2431. # overwrite some of them when testing with obscure command lines.
  2432. # This happens at least with the AIX C compiler.
  2433. : > sub/conftest.c
  2434. for i in 1 2 3 4 5 6; do
  2435. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2436. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2437. # Solaris 8's {/usr,}/bin/sh.
  2438. touch sub/conftst$i.h
  2439. done
  2440. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2441. case $depmode in
  2442. nosideeffect)
  2443. # after this tag, mechanisms are not by side-effect, so they'll
  2444. # only be used when explicitly requested
  2445. if test "x$enable_dependency_tracking" = xyes; then
  2446. continue
  2447. else
  2448. break
  2449. fi
  2450. ;;
  2451. none) break ;;
  2452. esac
  2453. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2454. # mode. It turns out that the SunPro C++ compiler does not properly
  2455. # handle `-M -o', and we need to detect this.
  2456. if depmode=$depmode \
  2457. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2458. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2459. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2460. >/dev/null 2>conftest.err &&
  2461. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2462. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2463. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2464. # icc doesn't choke on unknown options, it will just issue warnings
  2465. # or remarks (even with -Werror). So we grep stderr for any message
  2466. # that says an option was ignored or not supported.
  2467. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2468. # icc: Command line warning: ignoring option '-M'; no argument required
  2469. # The diagnosis changed in icc 8.0:
  2470. # icc: Command line remark: option '-MP' not supported
  2471. if (grep 'ignoring option' conftest.err ||
  2472. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2473. am_cv_CXX_dependencies_compiler_type=$depmode
  2474. break
  2475. fi
  2476. fi
  2477. done
  2478. cd ..
  2479. rm -rf conftest.dir
  2480. else
  2481. am_cv_CXX_dependencies_compiler_type=none
  2482. fi
  2483. fi
  2484. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2485. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2486. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2487. if
  2488. test "x$enable_dependency_tracking" != xno \
  2489. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2490. am__fastdepCXX_TRUE=
  2491. am__fastdepCXX_FALSE='#'
  2492. else
  2493. am__fastdepCXX_TRUE='#'
  2494. am__fastdepCXX_FALSE=
  2495. fi
  2496. ac_ext=c
  2497. ac_cpp='$CPP $CPPFLAGS'
  2498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2501. if test -n "$ac_tool_prefix"; then
  2502. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2503. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2504. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2505. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2506. if test "${ac_cv_prog_CC+set}" = set; then
  2507. echo $ECHO_N "(cached) $ECHO_C" >&6
  2508. else
  2509. if test -n "$CC"; then
  2510. ac_cv_prog_CC="$CC" # Let the user override the test.
  2511. else
  2512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513. for as_dir in $PATH
  2514. do
  2515. IFS=$as_save_IFS
  2516. test -z "$as_dir" && as_dir=.
  2517. for ac_exec_ext in '' $ac_executable_extensions; do
  2518. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2519. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2520. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. break 2
  2522. fi
  2523. done
  2524. done
  2525. fi
  2526. fi
  2527. CC=$ac_cv_prog_CC
  2528. if test -n "$CC"; then
  2529. echo "$as_me:$LINENO: result: $CC" >&5
  2530. echo "${ECHO_T}$CC" >&6
  2531. else
  2532. echo "$as_me:$LINENO: result: no" >&5
  2533. echo "${ECHO_T}no" >&6
  2534. fi
  2535. fi
  2536. if test -z "$ac_cv_prog_CC"; then
  2537. ac_ct_CC=$CC
  2538. # Extract the first word of "gcc", so it can be a program name with args.
  2539. set dummy gcc; ac_word=$2
  2540. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2541. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2542. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2543. echo $ECHO_N "(cached) $ECHO_C" >&6
  2544. else
  2545. if test -n "$ac_ct_CC"; then
  2546. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2547. else
  2548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. for as_dir in $PATH
  2550. do
  2551. IFS=$as_save_IFS
  2552. test -z "$as_dir" && as_dir=.
  2553. for ac_exec_ext in '' $ac_executable_extensions; do
  2554. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2555. ac_cv_prog_ac_ct_CC="gcc"
  2556. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. fi
  2562. fi
  2563. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2564. if test -n "$ac_ct_CC"; then
  2565. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2566. echo "${ECHO_T}$ac_ct_CC" >&6
  2567. else
  2568. echo "$as_me:$LINENO: result: no" >&5
  2569. echo "${ECHO_T}no" >&6
  2570. fi
  2571. CC=$ac_ct_CC
  2572. else
  2573. CC="$ac_cv_prog_CC"
  2574. fi
  2575. if test -z "$CC"; then
  2576. if test -n "$ac_tool_prefix"; then
  2577. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2578. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2579. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2580. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2581. if test "${ac_cv_prog_CC+set}" = set; then
  2582. echo $ECHO_N "(cached) $ECHO_C" >&6
  2583. else
  2584. if test -n "$CC"; then
  2585. ac_cv_prog_CC="$CC" # Let the user override the test.
  2586. else
  2587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2588. for as_dir in $PATH
  2589. do
  2590. IFS=$as_save_IFS
  2591. test -z "$as_dir" && as_dir=.
  2592. for ac_exec_ext in '' $ac_executable_extensions; do
  2593. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2594. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2595. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2596. break 2
  2597. fi
  2598. done
  2599. done
  2600. fi
  2601. fi
  2602. CC=$ac_cv_prog_CC
  2603. if test -n "$CC"; then
  2604. echo "$as_me:$LINENO: result: $CC" >&5
  2605. echo "${ECHO_T}$CC" >&6
  2606. else
  2607. echo "$as_me:$LINENO: result: no" >&5
  2608. echo "${ECHO_T}no" >&6
  2609. fi
  2610. fi
  2611. if test -z "$ac_cv_prog_CC"; then
  2612. ac_ct_CC=$CC
  2613. # Extract the first word of "cc", so it can be a program name with args.
  2614. set dummy cc; ac_word=$2
  2615. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2616. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2617. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2618. echo $ECHO_N "(cached) $ECHO_C" >&6
  2619. else
  2620. if test -n "$ac_ct_CC"; then
  2621. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2622. else
  2623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2624. for as_dir in $PATH
  2625. do
  2626. IFS=$as_save_IFS
  2627. test -z "$as_dir" && as_dir=.
  2628. for ac_exec_ext in '' $ac_executable_extensions; do
  2629. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2630. ac_cv_prog_ac_ct_CC="cc"
  2631. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2632. break 2
  2633. fi
  2634. done
  2635. done
  2636. fi
  2637. fi
  2638. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2639. if test -n "$ac_ct_CC"; then
  2640. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2641. echo "${ECHO_T}$ac_ct_CC" >&6
  2642. else
  2643. echo "$as_me:$LINENO: result: no" >&5
  2644. echo "${ECHO_T}no" >&6
  2645. fi
  2646. CC=$ac_ct_CC
  2647. else
  2648. CC="$ac_cv_prog_CC"
  2649. fi
  2650. fi
  2651. if test -z "$CC"; then
  2652. # Extract the first word of "cc", so it can be a program name with args.
  2653. set dummy cc; ac_word=$2
  2654. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2655. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2656. if test "${ac_cv_prog_CC+set}" = set; then
  2657. echo $ECHO_N "(cached) $ECHO_C" >&6
  2658. else
  2659. if test -n "$CC"; then
  2660. ac_cv_prog_CC="$CC" # Let the user override the test.
  2661. else
  2662. ac_prog_rejected=no
  2663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2664. for as_dir in $PATH
  2665. do
  2666. IFS=$as_save_IFS
  2667. test -z "$as_dir" && as_dir=.
  2668. for ac_exec_ext in '' $ac_executable_extensions; do
  2669. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2670. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2671. ac_prog_rejected=yes
  2672. continue
  2673. fi
  2674. ac_cv_prog_CC="cc"
  2675. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2676. break 2
  2677. fi
  2678. done
  2679. done
  2680. if test $ac_prog_rejected = yes; then
  2681. # We found a bogon in the path, so make sure we never use it.
  2682. set dummy $ac_cv_prog_CC
  2683. shift
  2684. if test $# != 0; then
  2685. # We chose a different compiler from the bogus one.
  2686. # However, it has the same basename, so the bogon will be chosen
  2687. # first if we set CC to just the basename; use the full file name.
  2688. shift
  2689. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2690. fi
  2691. fi
  2692. fi
  2693. fi
  2694. CC=$ac_cv_prog_CC
  2695. if test -n "$CC"; then
  2696. echo "$as_me:$LINENO: result: $CC" >&5
  2697. echo "${ECHO_T}$CC" >&6
  2698. else
  2699. echo "$as_me:$LINENO: result: no" >&5
  2700. echo "${ECHO_T}no" >&6
  2701. fi
  2702. fi
  2703. if test -z "$CC"; then
  2704. if test -n "$ac_tool_prefix"; then
  2705. for ac_prog in cl
  2706. do
  2707. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2708. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2709. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2710. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2711. if test "${ac_cv_prog_CC+set}" = set; then
  2712. echo $ECHO_N "(cached) $ECHO_C" >&6
  2713. else
  2714. if test -n "$CC"; then
  2715. ac_cv_prog_CC="$CC" # Let the user override the test.
  2716. else
  2717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2718. for as_dir in $PATH
  2719. do
  2720. IFS=$as_save_IFS
  2721. test -z "$as_dir" && as_dir=.
  2722. for ac_exec_ext in '' $ac_executable_extensions; do
  2723. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2724. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2725. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2726. break 2
  2727. fi
  2728. done
  2729. done
  2730. fi
  2731. fi
  2732. CC=$ac_cv_prog_CC
  2733. if test -n "$CC"; then
  2734. echo "$as_me:$LINENO: result: $CC" >&5
  2735. echo "${ECHO_T}$CC" >&6
  2736. else
  2737. echo "$as_me:$LINENO: result: no" >&5
  2738. echo "${ECHO_T}no" >&6
  2739. fi
  2740. test -n "$CC" && break
  2741. done
  2742. fi
  2743. if test -z "$CC"; then
  2744. ac_ct_CC=$CC
  2745. for ac_prog in cl
  2746. do
  2747. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2748. set dummy $ac_prog; ac_word=$2
  2749. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2750. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2751. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2752. echo $ECHO_N "(cached) $ECHO_C" >&6
  2753. else
  2754. if test -n "$ac_ct_CC"; then
  2755. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2756. else
  2757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2758. for as_dir in $PATH
  2759. do
  2760. IFS=$as_save_IFS
  2761. test -z "$as_dir" && as_dir=.
  2762. for ac_exec_ext in '' $ac_executable_extensions; do
  2763. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2764. ac_cv_prog_ac_ct_CC="$ac_prog"
  2765. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2766. break 2
  2767. fi
  2768. done
  2769. done
  2770. fi
  2771. fi
  2772. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2773. if test -n "$ac_ct_CC"; then
  2774. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2775. echo "${ECHO_T}$ac_ct_CC" >&6
  2776. else
  2777. echo "$as_me:$LINENO: result: no" >&5
  2778. echo "${ECHO_T}no" >&6
  2779. fi
  2780. test -n "$ac_ct_CC" && break
  2781. done
  2782. CC=$ac_ct_CC
  2783. fi
  2784. fi
  2785. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2786. See \`config.log' for more details." >&5
  2787. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2788. See \`config.log' for more details." >&2;}
  2789. { (exit 1); exit 1; }; }
  2790. # Provide some information about the compiler.
  2791. echo "$as_me:$LINENO:" \
  2792. "checking for C compiler version" >&5
  2793. ac_compiler=`set X $ac_compile; echo $2`
  2794. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2795. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2796. ac_status=$?
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); }
  2799. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2800. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2801. ac_status=$?
  2802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803. (exit $ac_status); }
  2804. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2805. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2806. ac_status=$?
  2807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2808. (exit $ac_status); }
  2809. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2810. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2811. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2812. echo $ECHO_N "(cached) $ECHO_C" >&6
  2813. else
  2814. cat >conftest.$ac_ext <<_ACEOF
  2815. /* confdefs.h. */
  2816. _ACEOF
  2817. cat confdefs.h >>conftest.$ac_ext
  2818. cat >>conftest.$ac_ext <<_ACEOF
  2819. /* end confdefs.h. */
  2820. int
  2821. main ()
  2822. {
  2823. #ifndef __GNUC__
  2824. choke me
  2825. #endif
  2826. ;
  2827. return 0;
  2828. }
  2829. _ACEOF
  2830. rm -f conftest.$ac_objext
  2831. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2832. (eval $ac_compile) 2>conftest.er1
  2833. ac_status=$?
  2834. grep -v '^ *+' conftest.er1 >conftest.err
  2835. rm -f conftest.er1
  2836. cat conftest.err >&5
  2837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2838. (exit $ac_status); } &&
  2839. { ac_try='test -z "$ac_c_werror_flag"
  2840. || test ! -s conftest.err'
  2841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2842. (eval $ac_try) 2>&5
  2843. ac_status=$?
  2844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2845. (exit $ac_status); }; } &&
  2846. { ac_try='test -s conftest.$ac_objext'
  2847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2848. (eval $ac_try) 2>&5
  2849. ac_status=$?
  2850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2851. (exit $ac_status); }; }; then
  2852. ac_compiler_gnu=yes
  2853. else
  2854. echo "$as_me: failed program was:" >&5
  2855. sed 's/^/| /' conftest.$ac_ext >&5
  2856. ac_compiler_gnu=no
  2857. fi
  2858. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2859. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2860. fi
  2861. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2862. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2863. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2864. ac_test_CFLAGS=${CFLAGS+set}
  2865. ac_save_CFLAGS=$CFLAGS
  2866. CFLAGS="-g"
  2867. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2868. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2869. if test "${ac_cv_prog_cc_g+set}" = set; then
  2870. echo $ECHO_N "(cached) $ECHO_C" >&6
  2871. else
  2872. cat >conftest.$ac_ext <<_ACEOF
  2873. /* confdefs.h. */
  2874. _ACEOF
  2875. cat confdefs.h >>conftest.$ac_ext
  2876. cat >>conftest.$ac_ext <<_ACEOF
  2877. /* end confdefs.h. */
  2878. int
  2879. main ()
  2880. {
  2881. ;
  2882. return 0;
  2883. }
  2884. _ACEOF
  2885. rm -f conftest.$ac_objext
  2886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2887. (eval $ac_compile) 2>conftest.er1
  2888. ac_status=$?
  2889. grep -v '^ *+' conftest.er1 >conftest.err
  2890. rm -f conftest.er1
  2891. cat conftest.err >&5
  2892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893. (exit $ac_status); } &&
  2894. { ac_try='test -z "$ac_c_werror_flag"
  2895. || test ! -s conftest.err'
  2896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2897. (eval $ac_try) 2>&5
  2898. ac_status=$?
  2899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2900. (exit $ac_status); }; } &&
  2901. { ac_try='test -s conftest.$ac_objext'
  2902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2903. (eval $ac_try) 2>&5
  2904. ac_status=$?
  2905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2906. (exit $ac_status); }; }; then
  2907. ac_cv_prog_cc_g=yes
  2908. else
  2909. echo "$as_me: failed program was:" >&5
  2910. sed 's/^/| /' conftest.$ac_ext >&5
  2911. ac_cv_prog_cc_g=no
  2912. fi
  2913. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2914. fi
  2915. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2916. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2917. if test "$ac_test_CFLAGS" = set; then
  2918. CFLAGS=$ac_save_CFLAGS
  2919. elif test $ac_cv_prog_cc_g = yes; then
  2920. if test "$GCC" = yes; then
  2921. CFLAGS="-g -O2"
  2922. else
  2923. CFLAGS="-g"
  2924. fi
  2925. else
  2926. if test "$GCC" = yes; then
  2927. CFLAGS="-O2"
  2928. else
  2929. CFLAGS=
  2930. fi
  2931. fi
  2932. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2933. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2934. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2935. echo $ECHO_N "(cached) $ECHO_C" >&6
  2936. else
  2937. ac_cv_prog_cc_stdc=no
  2938. ac_save_CC=$CC
  2939. cat >conftest.$ac_ext <<_ACEOF
  2940. /* confdefs.h. */
  2941. _ACEOF
  2942. cat confdefs.h >>conftest.$ac_ext
  2943. cat >>conftest.$ac_ext <<_ACEOF
  2944. /* end confdefs.h. */
  2945. #include <stdarg.h>
  2946. #include <stdio.h>
  2947. #include <sys/types.h>
  2948. #include <sys/stat.h>
  2949. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2950. struct buf { int x; };
  2951. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2952. static char *e (p, i)
  2953. char **p;
  2954. int i;
  2955. {
  2956. return p[i];
  2957. }
  2958. static char *f (char * (*g) (char **, int), char **p, ...)
  2959. {
  2960. char *s;
  2961. va_list v;
  2962. va_start (v,p);
  2963. s = g (p, va_arg (v,int));
  2964. va_end (v);
  2965. return s;
  2966. }
  2967. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2968. function prototypes and stuff, but not '\xHH' hex character constants.
  2969. These don't provoke an error unfortunately, instead are silently treated
  2970. as 'x'. The following induces an error, until -std1 is added to get
  2971. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2972. array size at least. It's necessary to write '\x00'==0 to get something
  2973. that's true only with -std1. */
  2974. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2975. int test (int i, double x);
  2976. struct s1 {int (*f) (int a);};
  2977. struct s2 {int (*f) (double a);};
  2978. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2979. int argc;
  2980. char **argv;
  2981. int
  2982. main ()
  2983. {
  2984. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2985. ;
  2986. return 0;
  2987. }
  2988. _ACEOF
  2989. # Don't try gcc -ansi; that turns off useful extensions and
  2990. # breaks some systems' header files.
  2991. # AIX -qlanglvl=ansi
  2992. # Ultrix and OSF/1 -std1
  2993. # HP-UX 10.20 and later -Ae
  2994. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2995. # SVR4 -Xc -D__EXTENSIONS__
  2996. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2997. do
  2998. CC="$ac_save_CC $ac_arg"
  2999. rm -f conftest.$ac_objext
  3000. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3001. (eval $ac_compile) 2>conftest.er1
  3002. ac_status=$?
  3003. grep -v '^ *+' conftest.er1 >conftest.err
  3004. rm -f conftest.er1
  3005. cat conftest.err >&5
  3006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3007. (exit $ac_status); } &&
  3008. { ac_try='test -z "$ac_c_werror_flag"
  3009. || test ! -s conftest.err'
  3010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3011. (eval $ac_try) 2>&5
  3012. ac_status=$?
  3013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3014. (exit $ac_status); }; } &&
  3015. { ac_try='test -s conftest.$ac_objext'
  3016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3017. (eval $ac_try) 2>&5
  3018. ac_status=$?
  3019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3020. (exit $ac_status); }; }; then
  3021. ac_cv_prog_cc_stdc=$ac_arg
  3022. break
  3023. else
  3024. echo "$as_me: failed program was:" >&5
  3025. sed 's/^/| /' conftest.$ac_ext >&5
  3026. fi
  3027. rm -f conftest.err conftest.$ac_objext
  3028. done
  3029. rm -f conftest.$ac_ext conftest.$ac_objext
  3030. CC=$ac_save_CC
  3031. fi
  3032. case "x$ac_cv_prog_cc_stdc" in
  3033. x|xno)
  3034. echo "$as_me:$LINENO: result: none needed" >&5
  3035. echo "${ECHO_T}none needed" >&6 ;;
  3036. *)
  3037. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3038. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3039. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3040. esac
  3041. # Some people use a C++ compiler to compile C. Since we use `exit',
  3042. # in C++ we need to declare it. In case someone uses the same compiler
  3043. # for both compiling C and C++ we need to have the C++ compiler decide
  3044. # the declaration of exit, since it's the most demanding environment.
  3045. cat >conftest.$ac_ext <<_ACEOF
  3046. #ifndef __cplusplus
  3047. choke me
  3048. #endif
  3049. _ACEOF
  3050. rm -f conftest.$ac_objext
  3051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3052. (eval $ac_compile) 2>conftest.er1
  3053. ac_status=$?
  3054. grep -v '^ *+' conftest.er1 >conftest.err
  3055. rm -f conftest.er1
  3056. cat conftest.err >&5
  3057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3058. (exit $ac_status); } &&
  3059. { ac_try='test -z "$ac_c_werror_flag"
  3060. || test ! -s conftest.err'
  3061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3062. (eval $ac_try) 2>&5
  3063. ac_status=$?
  3064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3065. (exit $ac_status); }; } &&
  3066. { ac_try='test -s conftest.$ac_objext'
  3067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3068. (eval $ac_try) 2>&5
  3069. ac_status=$?
  3070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3071. (exit $ac_status); }; }; then
  3072. for ac_declaration in \
  3073. '' \
  3074. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3075. 'extern "C" void std::exit (int); using std::exit;' \
  3076. 'extern "C" void exit (int) throw ();' \
  3077. 'extern "C" void exit (int);' \
  3078. 'void exit (int);'
  3079. do
  3080. cat >conftest.$ac_ext <<_ACEOF
  3081. /* confdefs.h. */
  3082. _ACEOF
  3083. cat confdefs.h >>conftest.$ac_ext
  3084. cat >>conftest.$ac_ext <<_ACEOF
  3085. /* end confdefs.h. */
  3086. $ac_declaration
  3087. #include <stdlib.h>
  3088. int
  3089. main ()
  3090. {
  3091. exit (42);
  3092. ;
  3093. return 0;
  3094. }
  3095. _ACEOF
  3096. rm -f conftest.$ac_objext
  3097. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3098. (eval $ac_compile) 2>conftest.er1
  3099. ac_status=$?
  3100. grep -v '^ *+' conftest.er1 >conftest.err
  3101. rm -f conftest.er1
  3102. cat conftest.err >&5
  3103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3104. (exit $ac_status); } &&
  3105. { ac_try='test -z "$ac_c_werror_flag"
  3106. || test ! -s conftest.err'
  3107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3108. (eval $ac_try) 2>&5
  3109. ac_status=$?
  3110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3111. (exit $ac_status); }; } &&
  3112. { ac_try='test -s conftest.$ac_objext'
  3113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3114. (eval $ac_try) 2>&5
  3115. ac_status=$?
  3116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3117. (exit $ac_status); }; }; then
  3118. :
  3119. else
  3120. echo "$as_me: failed program was:" >&5
  3121. sed 's/^/| /' conftest.$ac_ext >&5
  3122. continue
  3123. fi
  3124. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3125. cat >conftest.$ac_ext <<_ACEOF
  3126. /* confdefs.h. */
  3127. _ACEOF
  3128. cat confdefs.h >>conftest.$ac_ext
  3129. cat >>conftest.$ac_ext <<_ACEOF
  3130. /* end confdefs.h. */
  3131. $ac_declaration
  3132. int
  3133. main ()
  3134. {
  3135. exit (42);
  3136. ;
  3137. return 0;
  3138. }
  3139. _ACEOF
  3140. rm -f conftest.$ac_objext
  3141. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3142. (eval $ac_compile) 2>conftest.er1
  3143. ac_status=$?
  3144. grep -v '^ *+' conftest.er1 >conftest.err
  3145. rm -f conftest.er1
  3146. cat conftest.err >&5
  3147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3148. (exit $ac_status); } &&
  3149. { ac_try='test -z "$ac_c_werror_flag"
  3150. || test ! -s conftest.err'
  3151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3152. (eval $ac_try) 2>&5
  3153. ac_status=$?
  3154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3155. (exit $ac_status); }; } &&
  3156. { ac_try='test -s conftest.$ac_objext'
  3157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3158. (eval $ac_try) 2>&5
  3159. ac_status=$?
  3160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3161. (exit $ac_status); }; }; then
  3162. break
  3163. else
  3164. echo "$as_me: failed program was:" >&5
  3165. sed 's/^/| /' conftest.$ac_ext >&5
  3166. fi
  3167. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3168. done
  3169. rm -f conftest*
  3170. if test -n "$ac_declaration"; then
  3171. echo '#ifdef __cplusplus' >>confdefs.h
  3172. echo $ac_declaration >>confdefs.h
  3173. echo '#endif' >>confdefs.h
  3174. fi
  3175. else
  3176. echo "$as_me: failed program was:" >&5
  3177. sed 's/^/| /' conftest.$ac_ext >&5
  3178. fi
  3179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3180. ac_ext=c
  3181. ac_cpp='$CPP $CPPFLAGS'
  3182. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3183. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3184. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3185. depcc="$CC" am_compiler_list=
  3186. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3187. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3188. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3189. echo $ECHO_N "(cached) $ECHO_C" >&6
  3190. else
  3191. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3192. # We make a subdir and do the tests there. Otherwise we can end up
  3193. # making bogus files that we don't know about and never remove. For
  3194. # instance it was reported that on HP-UX the gcc test will end up
  3195. # making a dummy file named `D' -- because `-MD' means `put the output
  3196. # in D'.
  3197. mkdir conftest.dir
  3198. # Copy depcomp to subdir because otherwise we won't find it if we're
  3199. # using a relative directory.
  3200. cp "$am_depcomp" conftest.dir
  3201. cd conftest.dir
  3202. # We will build objects and dependencies in a subdirectory because
  3203. # it helps to detect inapplicable dependency modes. For instance
  3204. # both Tru64's cc and ICC support -MD to output dependencies as a
  3205. # side effect of compilation, but ICC will put the dependencies in
  3206. # the current directory while Tru64 will put them in the object
  3207. # directory.
  3208. mkdir sub
  3209. am_cv_CC_dependencies_compiler_type=none
  3210. if test "$am_compiler_list" = ""; then
  3211. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3212. fi
  3213. for depmode in $am_compiler_list; do
  3214. # Setup a source with many dependencies, because some compilers
  3215. # like to wrap large dependency lists on column 80 (with \), and
  3216. # we should not choose a depcomp mode which is confused by this.
  3217. #
  3218. # We need to recreate these files for each test, as the compiler may
  3219. # overwrite some of them when testing with obscure command lines.
  3220. # This happens at least with the AIX C compiler.
  3221. : > sub/conftest.c
  3222. for i in 1 2 3 4 5 6; do
  3223. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3224. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3225. # Solaris 8's {/usr,}/bin/sh.
  3226. touch sub/conftst$i.h
  3227. done
  3228. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3229. case $depmode in
  3230. nosideeffect)
  3231. # after this tag, mechanisms are not by side-effect, so they'll
  3232. # only be used when explicitly requested
  3233. if test "x$enable_dependency_tracking" = xyes; then
  3234. continue
  3235. else
  3236. break
  3237. fi
  3238. ;;
  3239. none) break ;;
  3240. esac
  3241. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3242. # mode. It turns out that the SunPro C++ compiler does not properly
  3243. # handle `-M -o', and we need to detect this.
  3244. if depmode=$depmode \
  3245. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3246. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3247. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3248. >/dev/null 2>conftest.err &&
  3249. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3250. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3251. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3252. # icc doesn't choke on unknown options, it will just issue warnings
  3253. # or remarks (even with -Werror). So we grep stderr for any message
  3254. # that says an option was ignored or not supported.
  3255. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3256. # icc: Command line warning: ignoring option '-M'; no argument required
  3257. # The diagnosis changed in icc 8.0:
  3258. # icc: Command line remark: option '-MP' not supported
  3259. if (grep 'ignoring option' conftest.err ||
  3260. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3261. am_cv_CC_dependencies_compiler_type=$depmode
  3262. break
  3263. fi
  3264. fi
  3265. done
  3266. cd ..
  3267. rm -rf conftest.dir
  3268. else
  3269. am_cv_CC_dependencies_compiler_type=none
  3270. fi
  3271. fi
  3272. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3273. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3274. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3275. if
  3276. test "x$enable_dependency_tracking" != xno \
  3277. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3278. am__fastdepCC_TRUE=
  3279. am__fastdepCC_FALSE='#'
  3280. else
  3281. am__fastdepCC_TRUE='#'
  3282. am__fastdepCC_FALSE=
  3283. fi
  3284. if test "x$CC" != xcc; then
  3285. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3286. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3287. else
  3288. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3289. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3290. fi
  3291. set dummy $CC; ac_cc=`echo $2 |
  3292. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3293. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3294. echo $ECHO_N "(cached) $ECHO_C" >&6
  3295. else
  3296. cat >conftest.$ac_ext <<_ACEOF
  3297. /* confdefs.h. */
  3298. _ACEOF
  3299. cat confdefs.h >>conftest.$ac_ext
  3300. cat >>conftest.$ac_ext <<_ACEOF
  3301. /* end confdefs.h. */
  3302. int
  3303. main ()
  3304. {
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. # Make sure it works both with $CC and with simple cc.
  3310. # We do the test twice because some compilers refuse to overwrite an
  3311. # existing .o file with -o, though they will create one.
  3312. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3313. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3314. (eval $ac_try) 2>&5
  3315. ac_status=$?
  3316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3317. (exit $ac_status); } &&
  3318. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3319. (eval $ac_try) 2>&5
  3320. ac_status=$?
  3321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3322. (exit $ac_status); };
  3323. then
  3324. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3325. if test "x$CC" != xcc; then
  3326. # Test first that cc exists at all.
  3327. if { ac_try='cc -c conftest.$ac_ext >&5'
  3328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3329. (eval $ac_try) 2>&5
  3330. ac_status=$?
  3331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3332. (exit $ac_status); }; }; then
  3333. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3334. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3335. (eval $ac_try) 2>&5
  3336. ac_status=$?
  3337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3338. (exit $ac_status); } &&
  3339. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3340. (eval $ac_try) 2>&5
  3341. ac_status=$?
  3342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3343. (exit $ac_status); };
  3344. then
  3345. # cc works too.
  3346. :
  3347. else
  3348. # cc exists but doesn't like -o.
  3349. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3350. fi
  3351. fi
  3352. fi
  3353. else
  3354. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3355. fi
  3356. rm -f conftest*
  3357. fi
  3358. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3359. echo "$as_me:$LINENO: result: yes" >&5
  3360. echo "${ECHO_T}yes" >&6
  3361. else
  3362. echo "$as_me:$LINENO: result: no" >&5
  3363. echo "${ECHO_T}no" >&6
  3364. cat >>confdefs.h <<\_ACEOF
  3365. #define NO_MINUS_C_MINUS_O 1
  3366. _ACEOF
  3367. fi
  3368. # FIXME: we rely on the cache variable name because
  3369. # there is no other way.
  3370. set dummy $CC
  3371. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3372. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3373. # Losing compiler, so override with the script.
  3374. # FIXME: It is wrong to rewrite CC.
  3375. # But if we don't then we get into trouble of one sort or another.
  3376. # A longer-term fix would be to have automake use am__CC in this case,
  3377. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3378. CC="$am_aux_dir/compile $CC"
  3379. fi
  3380. # By default we simply use the C compiler to build assembly code.
  3381. test "${CCAS+set}" = set || CCAS=$CC
  3382. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3383. # disable static libs by default - we only use a couple
  3384. # Check whether --enable-static or --disable-static was given.
  3385. if test "${enable_static+set}" = set; then
  3386. enableval="$enable_static"
  3387. p=${PACKAGE-default}
  3388. case $enableval in
  3389. yes) enable_static=yes ;;
  3390. no) enable_static=no ;;
  3391. *)
  3392. enable_static=no
  3393. # Look at the argument we got. We use all the common list separators.
  3394. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3395. for pkg in $enableval; do
  3396. IFS="$lt_save_ifs"
  3397. if test "X$pkg" = "X$p"; then
  3398. enable_static=yes
  3399. fi
  3400. done
  3401. IFS="$lt_save_ifs"
  3402. ;;
  3403. esac
  3404. else
  3405. enable_static=no
  3406. fi;
  3407. # Check whether --enable-shared or --disable-shared was given.
  3408. if test "${enable_shared+set}" = set; then
  3409. enableval="$enable_shared"
  3410. p=${PACKAGE-default}
  3411. case $enableval in
  3412. yes) enable_shared=yes ;;
  3413. no) enable_shared=no ;;
  3414. *)
  3415. enable_shared=no
  3416. # Look at the argument we got. We use all the common list separators.
  3417. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3418. for pkg in $enableval; do
  3419. IFS="$lt_save_ifs"
  3420. if test "X$pkg" = "X$p"; then
  3421. enable_shared=yes
  3422. fi
  3423. done
  3424. IFS="$lt_save_ifs"
  3425. ;;
  3426. esac
  3427. else
  3428. enable_shared=yes
  3429. fi;
  3430. # Check whether --enable-fast-install or --disable-fast-install was given.
  3431. if test "${enable_fast_install+set}" = set; then
  3432. enableval="$enable_fast_install"
  3433. p=${PACKAGE-default}
  3434. case $enableval in
  3435. yes) enable_fast_install=yes ;;
  3436. no) enable_fast_install=no ;;
  3437. *)
  3438. enable_fast_install=no
  3439. # Look at the argument we got. We use all the common list separators.
  3440. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3441. for pkg in $enableval; do
  3442. IFS="$lt_save_ifs"
  3443. if test "X$pkg" = "X$p"; then
  3444. enable_fast_install=yes
  3445. fi
  3446. done
  3447. IFS="$lt_save_ifs"
  3448. ;;
  3449. esac
  3450. else
  3451. enable_fast_install=yes
  3452. fi;
  3453. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3454. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3455. if test "${lt_cv_path_SED+set}" = set; then
  3456. echo $ECHO_N "(cached) $ECHO_C" >&6
  3457. else
  3458. # Loop through the user's path and test for sed and gsed.
  3459. # Then use that list of sed's as ones to test for truncation.
  3460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3461. for as_dir in $PATH
  3462. do
  3463. IFS=$as_save_IFS
  3464. test -z "$as_dir" && as_dir=.
  3465. for lt_ac_prog in sed gsed; do
  3466. for ac_exec_ext in '' $ac_executable_extensions; do
  3467. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3468. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3469. fi
  3470. done
  3471. done
  3472. done
  3473. IFS=$as_save_IFS
  3474. lt_ac_max=0
  3475. lt_ac_count=0
  3476. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3477. # along with /bin/sed that truncates output.
  3478. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3479. test ! -f $lt_ac_sed && continue
  3480. cat /dev/null > conftest.in
  3481. lt_ac_count=0
  3482. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3483. # Check for GNU sed and select it if it is found.
  3484. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3485. lt_cv_path_SED=$lt_ac_sed
  3486. break
  3487. fi
  3488. while true; do
  3489. cat conftest.in conftest.in >conftest.tmp
  3490. mv conftest.tmp conftest.in
  3491. cp conftest.in conftest.nl
  3492. echo >>conftest.nl
  3493. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3494. cmp -s conftest.out conftest.nl || break
  3495. # 10000 chars as input seems more than enough
  3496. test $lt_ac_count -gt 10 && break
  3497. lt_ac_count=`expr $lt_ac_count + 1`
  3498. if test $lt_ac_count -gt $lt_ac_max; then
  3499. lt_ac_max=$lt_ac_count
  3500. lt_cv_path_SED=$lt_ac_sed
  3501. fi
  3502. done
  3503. done
  3504. fi
  3505. SED=$lt_cv_path_SED
  3506. echo "$as_me:$LINENO: result: $SED" >&5
  3507. echo "${ECHO_T}$SED" >&6
  3508. echo "$as_me:$LINENO: checking for egrep" >&5
  3509. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3510. if test "${ac_cv_prog_egrep+set}" = set; then
  3511. echo $ECHO_N "(cached) $ECHO_C" >&6
  3512. else
  3513. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3514. then ac_cv_prog_egrep='grep -E'
  3515. else ac_cv_prog_egrep='egrep'
  3516. fi
  3517. fi
  3518. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3519. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3520. EGREP=$ac_cv_prog_egrep
  3521. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3522. if test "${with_gnu_ld+set}" = set; then
  3523. withval="$with_gnu_ld"
  3524. test "$withval" = no || with_gnu_ld=yes
  3525. else
  3526. with_gnu_ld=no
  3527. fi;
  3528. ac_prog=ld
  3529. if test "$GCC" = yes; then
  3530. # Check if gcc -print-prog-name=ld gives a path.
  3531. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3532. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3533. case $host in
  3534. *-*-mingw*)
  3535. # gcc leaves a trailing carriage return which upsets mingw
  3536. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3537. *)
  3538. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3539. esac
  3540. case $ac_prog in
  3541. # Accept absolute paths.
  3542. [\\/]* | ?:[\\/]*)
  3543. re_direlt='/[^/][^/]*/\.\./'
  3544. # Canonicalize the pathname of ld
  3545. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3546. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3547. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3548. done
  3549. test -z "$LD" && LD="$ac_prog"
  3550. ;;
  3551. "")
  3552. # If it fails, then pretend we aren't using GCC.
  3553. ac_prog=ld
  3554. ;;
  3555. *)
  3556. # If it is relative, then search for the first ld in PATH.
  3557. with_gnu_ld=unknown
  3558. ;;
  3559. esac
  3560. elif test "$with_gnu_ld" = yes; then
  3561. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3562. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3563. else
  3564. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3565. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3566. fi
  3567. if test "${lt_cv_path_LD+set}" = set; then
  3568. echo $ECHO_N "(cached) $ECHO_C" >&6
  3569. else
  3570. if test -z "$LD"; then
  3571. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3572. for ac_dir in $PATH; do
  3573. IFS="$lt_save_ifs"
  3574. test -z "$ac_dir" && ac_dir=.
  3575. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3576. lt_cv_path_LD="$ac_dir/$ac_prog"
  3577. # Check to see if the program is GNU ld. I'd rather use --version,
  3578. # but apparently some variants of GNU ld only accept -v.
  3579. # Break only if it was the GNU/non-GNU ld that we prefer.
  3580. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3581. *GNU* | *'with BFD'*)
  3582. test "$with_gnu_ld" != no && break
  3583. ;;
  3584. *)
  3585. test "$with_gnu_ld" != yes && break
  3586. ;;
  3587. esac
  3588. fi
  3589. done
  3590. IFS="$lt_save_ifs"
  3591. else
  3592. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3593. fi
  3594. fi
  3595. LD="$lt_cv_path_LD"
  3596. if test -n "$LD"; then
  3597. echo "$as_me:$LINENO: result: $LD" >&5
  3598. echo "${ECHO_T}$LD" >&6
  3599. else
  3600. echo "$as_me:$LINENO: result: no" >&5
  3601. echo "${ECHO_T}no" >&6
  3602. fi
  3603. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3604. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3605. { (exit 1); exit 1; }; }
  3606. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3607. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3608. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3609. echo $ECHO_N "(cached) $ECHO_C" >&6
  3610. else
  3611. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3612. case `$LD -v 2>&1 </dev/null` in
  3613. *GNU* | *'with BFD'*)
  3614. lt_cv_prog_gnu_ld=yes
  3615. ;;
  3616. *)
  3617. lt_cv_prog_gnu_ld=no
  3618. ;;
  3619. esac
  3620. fi
  3621. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3622. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3623. with_gnu_ld=$lt_cv_prog_gnu_ld
  3624. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3625. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3626. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3627. echo $ECHO_N "(cached) $ECHO_C" >&6
  3628. else
  3629. lt_cv_ld_reload_flag='-r'
  3630. fi
  3631. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3632. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3633. reload_flag=$lt_cv_ld_reload_flag
  3634. case $reload_flag in
  3635. "" | " "*) ;;
  3636. *) reload_flag=" $reload_flag" ;;
  3637. esac
  3638. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3639. case $host_os in
  3640. darwin*)
  3641. if test "$GCC" = yes; then
  3642. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3643. else
  3644. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3645. fi
  3646. ;;
  3647. esac
  3648. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3649. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3650. if test "${lt_cv_path_NM+set}" = set; then
  3651. echo $ECHO_N "(cached) $ECHO_C" >&6
  3652. else
  3653. if test -n "$NM"; then
  3654. # Let the user override the test.
  3655. lt_cv_path_NM="$NM"
  3656. else
  3657. lt_nm_to_check="${ac_tool_prefix}nm"
  3658. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3659. lt_nm_to_check="$lt_nm_to_check nm"
  3660. fi
  3661. for lt_tmp_nm in $lt_nm_to_check; do
  3662. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3663. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3664. IFS="$lt_save_ifs"
  3665. test -z "$ac_dir" && ac_dir=.
  3666. tmp_nm="$ac_dir/$lt_tmp_nm"
  3667. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3668. # Check to see if the nm accepts a BSD-compat flag.
  3669. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3670. # nm: unknown option "B" ignored
  3671. # Tru64's nm complains that /dev/null is an invalid object file
  3672. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3673. */dev/null* | *'Invalid file or object type'*)
  3674. lt_cv_path_NM="$tmp_nm -B"
  3675. break
  3676. ;;
  3677. *)
  3678. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3679. */dev/null*)
  3680. lt_cv_path_NM="$tmp_nm -p"
  3681. break
  3682. ;;
  3683. *)
  3684. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3685. continue # so that we can try to find one that supports BSD flags
  3686. ;;
  3687. esac
  3688. ;;
  3689. esac
  3690. fi
  3691. done
  3692. IFS="$lt_save_ifs"
  3693. done
  3694. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3695. fi
  3696. fi
  3697. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3698. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3699. NM="$lt_cv_path_NM"
  3700. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3701. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3702. LN_S=$as_ln_s
  3703. if test "$LN_S" = "ln -s"; then
  3704. echo "$as_me:$LINENO: result: yes" >&5
  3705. echo "${ECHO_T}yes" >&6
  3706. else
  3707. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3708. echo "${ECHO_T}no, using $LN_S" >&6
  3709. fi
  3710. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3711. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3712. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3713. echo $ECHO_N "(cached) $ECHO_C" >&6
  3714. else
  3715. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3716. lt_cv_file_magic_test_file=
  3717. lt_cv_deplibs_check_method='unknown'
  3718. # Need to set the preceding variable on all platforms that support
  3719. # interlibrary dependencies.
  3720. # 'none' -- dependencies not supported.
  3721. # `unknown' -- same as none, but documents that we really don't know.
  3722. # 'pass_all' -- all dependencies passed with no checks.
  3723. # 'test_compile' -- check by making test program.
  3724. # 'file_magic [[regex]]' -- check by looking for files in library path
  3725. # which responds to the $file_magic_cmd with a given extended regex.
  3726. # If you have `file' or equivalent on your system and you're not sure
  3727. # whether `pass_all' will *always* work, you probably want this one.
  3728. case $host_os in
  3729. aix4* | aix5*)
  3730. lt_cv_deplibs_check_method=pass_all
  3731. ;;
  3732. beos*)
  3733. lt_cv_deplibs_check_method=pass_all
  3734. ;;
  3735. bsdi[45]*)
  3736. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3737. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3738. lt_cv_file_magic_test_file=/shlib/libc.so
  3739. ;;
  3740. cygwin*)
  3741. # func_win32_libid is a shell function defined in ltmain.sh
  3742. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3743. lt_cv_file_magic_cmd='func_win32_libid'
  3744. ;;
  3745. mingw* | pw32*)
  3746. # Base MSYS/MinGW do not provide the 'file' command needed by
  3747. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3748. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3749. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3750. ;;
  3751. darwin* | rhapsody*)
  3752. lt_cv_deplibs_check_method=pass_all
  3753. ;;
  3754. freebsd* | kfreebsd*-gnu | dragonfly*)
  3755. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3756. case $host_cpu in
  3757. i*86 )
  3758. # Not sure whether the presence of OpenBSD here was a mistake.
  3759. # Let's accept both of them until this is cleared up.
  3760. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3761. lt_cv_file_magic_cmd=/usr/bin/file
  3762. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3763. ;;
  3764. esac
  3765. else
  3766. lt_cv_deplibs_check_method=pass_all
  3767. fi
  3768. ;;
  3769. gnu*)
  3770. lt_cv_deplibs_check_method=pass_all
  3771. ;;
  3772. hpux10.20* | hpux11*)
  3773. lt_cv_file_magic_cmd=/usr/bin/file
  3774. case $host_cpu in
  3775. ia64*)
  3776. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3777. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3778. ;;
  3779. hppa*64*)
  3780. 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]'
  3781. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3782. ;;
  3783. *)
  3784. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3785. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3786. ;;
  3787. esac
  3788. ;;
  3789. interix3*)
  3790. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3791. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3792. ;;
  3793. irix5* | irix6* | nonstopux*)
  3794. case $LD in
  3795. *-32|*"-32 ") libmagic=32-bit;;
  3796. *-n32|*"-n32 ") libmagic=N32;;
  3797. *-64|*"-64 ") libmagic=64-bit;;
  3798. *) libmagic=never-match;;
  3799. esac
  3800. lt_cv_deplibs_check_method=pass_all
  3801. ;;
  3802. # This must be Linux ELF.
  3803. linux*)
  3804. lt_cv_deplibs_check_method=pass_all
  3805. ;;
  3806. netbsd*)
  3807. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3809. else
  3810. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3811. fi
  3812. ;;
  3813. newos6*)
  3814. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3815. lt_cv_file_magic_cmd=/usr/bin/file
  3816. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3817. ;;
  3818. nto-qnx*)
  3819. lt_cv_deplibs_check_method=unknown
  3820. ;;
  3821. openbsd*)
  3822. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3823. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3824. else
  3825. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3826. fi
  3827. ;;
  3828. osf3* | osf4* | osf5*)
  3829. lt_cv_deplibs_check_method=pass_all
  3830. ;;
  3831. solaris*)
  3832. lt_cv_deplibs_check_method=pass_all
  3833. ;;
  3834. sysv4 | sysv4.3*)
  3835. case $host_vendor in
  3836. motorola)
  3837. 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]'
  3838. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3839. ;;
  3840. ncr)
  3841. lt_cv_deplibs_check_method=pass_all
  3842. ;;
  3843. sequent)
  3844. lt_cv_file_magic_cmd='/bin/file'
  3845. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3846. ;;
  3847. sni)
  3848. lt_cv_file_magic_cmd='/bin/file'
  3849. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3850. lt_cv_file_magic_test_file=/lib/libc.so
  3851. ;;
  3852. siemens)
  3853. lt_cv_deplibs_check_method=pass_all
  3854. ;;
  3855. pc)
  3856. lt_cv_deplibs_check_method=pass_all
  3857. ;;
  3858. esac
  3859. ;;
  3860. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3861. lt_cv_deplibs_check_method=pass_all
  3862. ;;
  3863. esac
  3864. fi
  3865. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3866. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3867. file_magic_cmd=$lt_cv_file_magic_cmd
  3868. deplibs_check_method=$lt_cv_deplibs_check_method
  3869. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3870. # If no C compiler was specified, use CC.
  3871. LTCC=${LTCC-"$CC"}
  3872. # If no C compiler flags were specified, use CFLAGS.
  3873. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3874. # Allow CC to be a program name with arguments.
  3875. compiler=$CC
  3876. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3877. if test "${enable_libtool_lock+set}" = set; then
  3878. enableval="$enable_libtool_lock"
  3879. fi;
  3880. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3881. # Some flags need to be propagated to the compiler or linker for good
  3882. # libtool support.
  3883. case $host in
  3884. ia64-*-hpux*)
  3885. # Find out which ABI we are using.
  3886. echo 'int i;' > conftest.$ac_ext
  3887. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3888. (eval $ac_compile) 2>&5
  3889. ac_status=$?
  3890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3891. (exit $ac_status); }; then
  3892. case `/usr/bin/file conftest.$ac_objext` in
  3893. *ELF-32*)
  3894. HPUX_IA64_MODE="32"
  3895. ;;
  3896. *ELF-64*)
  3897. HPUX_IA64_MODE="64"
  3898. ;;
  3899. esac
  3900. fi
  3901. rm -rf conftest*
  3902. ;;
  3903. *-*-irix6*)
  3904. # Find out which ABI we are using.
  3905. echo '#line 4334 "configure"' > conftest.$ac_ext
  3906. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3907. (eval $ac_compile) 2>&5
  3908. ac_status=$?
  3909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3910. (exit $ac_status); }; then
  3911. if test "$lt_cv_prog_gnu_ld" = yes; then
  3912. case `/usr/bin/file conftest.$ac_objext` in
  3913. *32-bit*)
  3914. LD="${LD-ld} -melf32bsmip"
  3915. ;;
  3916. *N32*)
  3917. LD="${LD-ld} -melf32bmipn32"
  3918. ;;
  3919. *64-bit*)
  3920. LD="${LD-ld} -melf64bmip"
  3921. ;;
  3922. esac
  3923. else
  3924. case `/usr/bin/file conftest.$ac_objext` in
  3925. *32-bit*)
  3926. LD="${LD-ld} -32"
  3927. ;;
  3928. *N32*)
  3929. LD="${LD-ld} -n32"
  3930. ;;
  3931. *64-bit*)
  3932. LD="${LD-ld} -64"
  3933. ;;
  3934. esac
  3935. fi
  3936. fi
  3937. rm -rf conftest*
  3938. ;;
  3939. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3940. # Find out which ABI we are using.
  3941. echo 'int i;' > conftest.$ac_ext
  3942. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3943. (eval $ac_compile) 2>&5
  3944. ac_status=$?
  3945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3946. (exit $ac_status); }; then
  3947. case `/usr/bin/file conftest.o` in
  3948. *32-bit*)
  3949. case $host in
  3950. x86_64-*linux*)
  3951. LD="${LD-ld} -m elf_i386"
  3952. ;;
  3953. ppc64-*linux*|powerpc64-*linux*)
  3954. LD="${LD-ld} -m elf32ppclinux"
  3955. ;;
  3956. s390x-*linux*)
  3957. LD="${LD-ld} -m elf_s390"
  3958. ;;
  3959. sparc64-*linux*)
  3960. LD="${LD-ld} -m elf32_sparc"
  3961. ;;
  3962. esac
  3963. ;;
  3964. *64-bit*)
  3965. case $host in
  3966. x86_64-*linux*)
  3967. LD="${LD-ld} -m elf_x86_64"
  3968. ;;
  3969. ppc*-*linux*|powerpc*-*linux*)
  3970. LD="${LD-ld} -m elf64ppc"
  3971. ;;
  3972. s390*-*linux*)
  3973. LD="${LD-ld} -m elf64_s390"
  3974. ;;
  3975. sparc*-*linux*)
  3976. LD="${LD-ld} -m elf64_sparc"
  3977. ;;
  3978. esac
  3979. ;;
  3980. esac
  3981. fi
  3982. rm -rf conftest*
  3983. ;;
  3984. *-*-sco3.2v5*)
  3985. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3986. SAVE_CFLAGS="$CFLAGS"
  3987. CFLAGS="$CFLAGS -belf"
  3988. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3989. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3990. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3991. echo $ECHO_N "(cached) $ECHO_C" >&6
  3992. else
  3993. ac_ext=c
  3994. ac_cpp='$CPP $CPPFLAGS'
  3995. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3996. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3997. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3998. cat >conftest.$ac_ext <<_ACEOF
  3999. /* confdefs.h. */
  4000. _ACEOF
  4001. cat confdefs.h >>conftest.$ac_ext
  4002. cat >>conftest.$ac_ext <<_ACEOF
  4003. /* end confdefs.h. */
  4004. int
  4005. main ()
  4006. {
  4007. ;
  4008. return 0;
  4009. }
  4010. _ACEOF
  4011. rm -f conftest.$ac_objext conftest$ac_exeext
  4012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4013. (eval $ac_link) 2>conftest.er1
  4014. ac_status=$?
  4015. grep -v '^ *+' conftest.er1 >conftest.err
  4016. rm -f conftest.er1
  4017. cat conftest.err >&5
  4018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4019. (exit $ac_status); } &&
  4020. { ac_try='test -z "$ac_c_werror_flag"
  4021. || test ! -s conftest.err'
  4022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4023. (eval $ac_try) 2>&5
  4024. ac_status=$?
  4025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4026. (exit $ac_status); }; } &&
  4027. { ac_try='test -s conftest$ac_exeext'
  4028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4029. (eval $ac_try) 2>&5
  4030. ac_status=$?
  4031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032. (exit $ac_status); }; }; then
  4033. lt_cv_cc_needs_belf=yes
  4034. else
  4035. echo "$as_me: failed program was:" >&5
  4036. sed 's/^/| /' conftest.$ac_ext >&5
  4037. lt_cv_cc_needs_belf=no
  4038. fi
  4039. rm -f conftest.err conftest.$ac_objext \
  4040. conftest$ac_exeext conftest.$ac_ext
  4041. ac_ext=c
  4042. ac_cpp='$CPP $CPPFLAGS'
  4043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4046. fi
  4047. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4048. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4049. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4050. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4051. CFLAGS="$SAVE_CFLAGS"
  4052. fi
  4053. ;;
  4054. sparc*-*solaris*)
  4055. # Find out which ABI we are using.
  4056. echo 'int i;' > conftest.$ac_ext
  4057. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4058. (eval $ac_compile) 2>&5
  4059. ac_status=$?
  4060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4061. (exit $ac_status); }; then
  4062. case `/usr/bin/file conftest.o` in
  4063. *64-bit*)
  4064. case $lt_cv_prog_gnu_ld in
  4065. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4066. *) LD="${LD-ld} -64" ;;
  4067. esac
  4068. ;;
  4069. esac
  4070. fi
  4071. rm -rf conftest*
  4072. ;;
  4073. esac
  4074. need_locks="$enable_libtool_lock"
  4075. ac_ext=c
  4076. ac_cpp='$CPP $CPPFLAGS'
  4077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4080. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4081. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4082. # On Suns, sometimes $CPP names a directory.
  4083. if test -n "$CPP" && test -d "$CPP"; then
  4084. CPP=
  4085. fi
  4086. if test -z "$CPP"; then
  4087. if test "${ac_cv_prog_CPP+set}" = set; then
  4088. echo $ECHO_N "(cached) $ECHO_C" >&6
  4089. else
  4090. # Double quotes because CPP needs to be expanded
  4091. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4092. do
  4093. ac_preproc_ok=false
  4094. for ac_c_preproc_warn_flag in '' yes
  4095. do
  4096. # Use a header file that comes with gcc, so configuring glibc
  4097. # with a fresh cross-compiler works.
  4098. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4099. # <limits.h> exists even on freestanding compilers.
  4100. # On the NeXT, cc -E runs the code through the compiler's parser,
  4101. # not just through cpp. "Syntax error" is here to catch this case.
  4102. cat >conftest.$ac_ext <<_ACEOF
  4103. /* confdefs.h. */
  4104. _ACEOF
  4105. cat confdefs.h >>conftest.$ac_ext
  4106. cat >>conftest.$ac_ext <<_ACEOF
  4107. /* end confdefs.h. */
  4108. #ifdef __STDC__
  4109. # include <limits.h>
  4110. #else
  4111. # include <assert.h>
  4112. #endif
  4113. Syntax error
  4114. _ACEOF
  4115. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4116. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4117. ac_status=$?
  4118. grep -v '^ *+' conftest.er1 >conftest.err
  4119. rm -f conftest.er1
  4120. cat conftest.err >&5
  4121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. (exit $ac_status); } >/dev/null; then
  4123. if test -s conftest.err; then
  4124. ac_cpp_err=$ac_c_preproc_warn_flag
  4125. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4126. else
  4127. ac_cpp_err=
  4128. fi
  4129. else
  4130. ac_cpp_err=yes
  4131. fi
  4132. if test -z "$ac_cpp_err"; then
  4133. :
  4134. else
  4135. echo "$as_me: failed program was:" >&5
  4136. sed 's/^/| /' conftest.$ac_ext >&5
  4137. # Broken: fails on valid input.
  4138. continue
  4139. fi
  4140. rm -f conftest.err conftest.$ac_ext
  4141. # OK, works on sane cases. Now check whether non-existent headers
  4142. # can be detected and how.
  4143. cat >conftest.$ac_ext <<_ACEOF
  4144. /* confdefs.h. */
  4145. _ACEOF
  4146. cat confdefs.h >>conftest.$ac_ext
  4147. cat >>conftest.$ac_ext <<_ACEOF
  4148. /* end confdefs.h. */
  4149. #include <ac_nonexistent.h>
  4150. _ACEOF
  4151. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4152. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4153. ac_status=$?
  4154. grep -v '^ *+' conftest.er1 >conftest.err
  4155. rm -f conftest.er1
  4156. cat conftest.err >&5
  4157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4158. (exit $ac_status); } >/dev/null; then
  4159. if test -s conftest.err; then
  4160. ac_cpp_err=$ac_c_preproc_warn_flag
  4161. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4162. else
  4163. ac_cpp_err=
  4164. fi
  4165. else
  4166. ac_cpp_err=yes
  4167. fi
  4168. if test -z "$ac_cpp_err"; then
  4169. # Broken: success on invalid input.
  4170. continue
  4171. else
  4172. echo "$as_me: failed program was:" >&5
  4173. sed 's/^/| /' conftest.$ac_ext >&5
  4174. # Passes both tests.
  4175. ac_preproc_ok=:
  4176. break
  4177. fi
  4178. rm -f conftest.err conftest.$ac_ext
  4179. done
  4180. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4181. rm -f conftest.err conftest.$ac_ext
  4182. if $ac_preproc_ok; then
  4183. break
  4184. fi
  4185. done
  4186. ac_cv_prog_CPP=$CPP
  4187. fi
  4188. CPP=$ac_cv_prog_CPP
  4189. else
  4190. ac_cv_prog_CPP=$CPP
  4191. fi
  4192. echo "$as_me:$LINENO: result: $CPP" >&5
  4193. echo "${ECHO_T}$CPP" >&6
  4194. ac_preproc_ok=false
  4195. for ac_c_preproc_warn_flag in '' yes
  4196. do
  4197. # Use a header file that comes with gcc, so configuring glibc
  4198. # with a fresh cross-compiler works.
  4199. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4200. # <limits.h> exists even on freestanding compilers.
  4201. # On the NeXT, cc -E runs the code through the compiler's parser,
  4202. # not just through cpp. "Syntax error" is here to catch this case.
  4203. cat >conftest.$ac_ext <<_ACEOF
  4204. /* confdefs.h. */
  4205. _ACEOF
  4206. cat confdefs.h >>conftest.$ac_ext
  4207. cat >>conftest.$ac_ext <<_ACEOF
  4208. /* end confdefs.h. */
  4209. #ifdef __STDC__
  4210. # include <limits.h>
  4211. #else
  4212. # include <assert.h>
  4213. #endif
  4214. Syntax error
  4215. _ACEOF
  4216. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4217. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4218. ac_status=$?
  4219. grep -v '^ *+' conftest.er1 >conftest.err
  4220. rm -f conftest.er1
  4221. cat conftest.err >&5
  4222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); } >/dev/null; then
  4224. if test -s conftest.err; then
  4225. ac_cpp_err=$ac_c_preproc_warn_flag
  4226. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4227. else
  4228. ac_cpp_err=
  4229. fi
  4230. else
  4231. ac_cpp_err=yes
  4232. fi
  4233. if test -z "$ac_cpp_err"; then
  4234. :
  4235. else
  4236. echo "$as_me: failed program was:" >&5
  4237. sed 's/^/| /' conftest.$ac_ext >&5
  4238. # Broken: fails on valid input.
  4239. continue
  4240. fi
  4241. rm -f conftest.err conftest.$ac_ext
  4242. # OK, works on sane cases. Now check whether non-existent headers
  4243. # can be detected and how.
  4244. cat >conftest.$ac_ext <<_ACEOF
  4245. /* confdefs.h. */
  4246. _ACEOF
  4247. cat confdefs.h >>conftest.$ac_ext
  4248. cat >>conftest.$ac_ext <<_ACEOF
  4249. /* end confdefs.h. */
  4250. #include <ac_nonexistent.h>
  4251. _ACEOF
  4252. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4253. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4254. ac_status=$?
  4255. grep -v '^ *+' conftest.er1 >conftest.err
  4256. rm -f conftest.er1
  4257. cat conftest.err >&5
  4258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4259. (exit $ac_status); } >/dev/null; then
  4260. if test -s conftest.err; then
  4261. ac_cpp_err=$ac_c_preproc_warn_flag
  4262. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4263. else
  4264. ac_cpp_err=
  4265. fi
  4266. else
  4267. ac_cpp_err=yes
  4268. fi
  4269. if test -z "$ac_cpp_err"; then
  4270. # Broken: success on invalid input.
  4271. continue
  4272. else
  4273. echo "$as_me: failed program was:" >&5
  4274. sed 's/^/| /' conftest.$ac_ext >&5
  4275. # Passes both tests.
  4276. ac_preproc_ok=:
  4277. break
  4278. fi
  4279. rm -f conftest.err conftest.$ac_ext
  4280. done
  4281. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4282. rm -f conftest.err conftest.$ac_ext
  4283. if $ac_preproc_ok; then
  4284. :
  4285. else
  4286. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4287. See \`config.log' for more details." >&5
  4288. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4289. See \`config.log' for more details." >&2;}
  4290. { (exit 1); exit 1; }; }
  4291. fi
  4292. ac_ext=c
  4293. ac_cpp='$CPP $CPPFLAGS'
  4294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4297. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4298. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4299. if test "${ac_cv_header_stdc+set}" = set; then
  4300. echo $ECHO_N "(cached) $ECHO_C" >&6
  4301. else
  4302. cat >conftest.$ac_ext <<_ACEOF
  4303. /* confdefs.h. */
  4304. _ACEOF
  4305. cat confdefs.h >>conftest.$ac_ext
  4306. cat >>conftest.$ac_ext <<_ACEOF
  4307. /* end confdefs.h. */
  4308. #include <stdlib.h>
  4309. #include <stdarg.h>
  4310. #include <string.h>
  4311. #include <float.h>
  4312. int
  4313. main ()
  4314. {
  4315. ;
  4316. return 0;
  4317. }
  4318. _ACEOF
  4319. rm -f conftest.$ac_objext
  4320. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4321. (eval $ac_compile) 2>conftest.er1
  4322. ac_status=$?
  4323. grep -v '^ *+' conftest.er1 >conftest.err
  4324. rm -f conftest.er1
  4325. cat conftest.err >&5
  4326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4327. (exit $ac_status); } &&
  4328. { ac_try='test -z "$ac_c_werror_flag"
  4329. || test ! -s conftest.err'
  4330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4331. (eval $ac_try) 2>&5
  4332. ac_status=$?
  4333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); }; } &&
  4335. { ac_try='test -s conftest.$ac_objext'
  4336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4337. (eval $ac_try) 2>&5
  4338. ac_status=$?
  4339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4340. (exit $ac_status); }; }; then
  4341. ac_cv_header_stdc=yes
  4342. else
  4343. echo "$as_me: failed program was:" >&5
  4344. sed 's/^/| /' conftest.$ac_ext >&5
  4345. ac_cv_header_stdc=no
  4346. fi
  4347. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4348. if test $ac_cv_header_stdc = yes; then
  4349. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4350. cat >conftest.$ac_ext <<_ACEOF
  4351. /* confdefs.h. */
  4352. _ACEOF
  4353. cat confdefs.h >>conftest.$ac_ext
  4354. cat >>conftest.$ac_ext <<_ACEOF
  4355. /* end confdefs.h. */
  4356. #include <string.h>
  4357. _ACEOF
  4358. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4359. $EGREP "memchr" >/dev/null 2>&1; then
  4360. :
  4361. else
  4362. ac_cv_header_stdc=no
  4363. fi
  4364. rm -f conftest*
  4365. fi
  4366. if test $ac_cv_header_stdc = yes; then
  4367. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4368. cat >conftest.$ac_ext <<_ACEOF
  4369. /* confdefs.h. */
  4370. _ACEOF
  4371. cat confdefs.h >>conftest.$ac_ext
  4372. cat >>conftest.$ac_ext <<_ACEOF
  4373. /* end confdefs.h. */
  4374. #include <stdlib.h>
  4375. _ACEOF
  4376. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4377. $EGREP "free" >/dev/null 2>&1; then
  4378. :
  4379. else
  4380. ac_cv_header_stdc=no
  4381. fi
  4382. rm -f conftest*
  4383. fi
  4384. if test $ac_cv_header_stdc = yes; then
  4385. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4386. if test "$cross_compiling" = yes; then
  4387. :
  4388. else
  4389. cat >conftest.$ac_ext <<_ACEOF
  4390. /* confdefs.h. */
  4391. _ACEOF
  4392. cat confdefs.h >>conftest.$ac_ext
  4393. cat >>conftest.$ac_ext <<_ACEOF
  4394. /* end confdefs.h. */
  4395. #include <ctype.h>
  4396. #if ((' ' & 0x0FF) == 0x020)
  4397. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4398. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4399. #else
  4400. # define ISLOWER(c) \
  4401. (('a' <= (c) && (c) <= 'i') \
  4402. || ('j' <= (c) && (c) <= 'r') \
  4403. || ('s' <= (c) && (c) <= 'z'))
  4404. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4405. #endif
  4406. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4407. int
  4408. main ()
  4409. {
  4410. int i;
  4411. for (i = 0; i < 256; i++)
  4412. if (XOR (islower (i), ISLOWER (i))
  4413. || toupper (i) != TOUPPER (i))
  4414. exit(2);
  4415. exit (0);
  4416. }
  4417. _ACEOF
  4418. rm -f conftest$ac_exeext
  4419. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4420. (eval $ac_link) 2>&5
  4421. ac_status=$?
  4422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4423. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4425. (eval $ac_try) 2>&5
  4426. ac_status=$?
  4427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4428. (exit $ac_status); }; }; then
  4429. :
  4430. else
  4431. echo "$as_me: program exited with status $ac_status" >&5
  4432. echo "$as_me: failed program was:" >&5
  4433. sed 's/^/| /' conftest.$ac_ext >&5
  4434. ( exit $ac_status )
  4435. ac_cv_header_stdc=no
  4436. fi
  4437. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4438. fi
  4439. fi
  4440. fi
  4441. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4442. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4443. if test $ac_cv_header_stdc = yes; then
  4444. cat >>confdefs.h <<\_ACEOF
  4445. #define STDC_HEADERS 1
  4446. _ACEOF
  4447. fi
  4448. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4449. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4450. inttypes.h stdint.h unistd.h
  4451. do
  4452. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4453. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4454. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4455. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4456. echo $ECHO_N "(cached) $ECHO_C" >&6
  4457. else
  4458. cat >conftest.$ac_ext <<_ACEOF
  4459. /* confdefs.h. */
  4460. _ACEOF
  4461. cat confdefs.h >>conftest.$ac_ext
  4462. cat >>conftest.$ac_ext <<_ACEOF
  4463. /* end confdefs.h. */
  4464. $ac_includes_default
  4465. #include <$ac_header>
  4466. _ACEOF
  4467. rm -f conftest.$ac_objext
  4468. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4469. (eval $ac_compile) 2>conftest.er1
  4470. ac_status=$?
  4471. grep -v '^ *+' conftest.er1 >conftest.err
  4472. rm -f conftest.er1
  4473. cat conftest.err >&5
  4474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4475. (exit $ac_status); } &&
  4476. { ac_try='test -z "$ac_c_werror_flag"
  4477. || test ! -s conftest.err'
  4478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4479. (eval $ac_try) 2>&5
  4480. ac_status=$?
  4481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4482. (exit $ac_status); }; } &&
  4483. { ac_try='test -s conftest.$ac_objext'
  4484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4485. (eval $ac_try) 2>&5
  4486. ac_status=$?
  4487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4488. (exit $ac_status); }; }; then
  4489. eval "$as_ac_Header=yes"
  4490. else
  4491. echo "$as_me: failed program was:" >&5
  4492. sed 's/^/| /' conftest.$ac_ext >&5
  4493. eval "$as_ac_Header=no"
  4494. fi
  4495. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4496. fi
  4497. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4498. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4499. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4500. cat >>confdefs.h <<_ACEOF
  4501. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4502. _ACEOF
  4503. fi
  4504. done
  4505. for ac_header in dlfcn.h
  4506. do
  4507. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4508. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4509. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4510. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4511. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4512. echo $ECHO_N "(cached) $ECHO_C" >&6
  4513. fi
  4514. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4515. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4516. else
  4517. # Is the header compilable?
  4518. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4519. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4520. cat >conftest.$ac_ext <<_ACEOF
  4521. /* confdefs.h. */
  4522. _ACEOF
  4523. cat confdefs.h >>conftest.$ac_ext
  4524. cat >>conftest.$ac_ext <<_ACEOF
  4525. /* end confdefs.h. */
  4526. $ac_includes_default
  4527. #include <$ac_header>
  4528. _ACEOF
  4529. rm -f conftest.$ac_objext
  4530. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4531. (eval $ac_compile) 2>conftest.er1
  4532. ac_status=$?
  4533. grep -v '^ *+' conftest.er1 >conftest.err
  4534. rm -f conftest.er1
  4535. cat conftest.err >&5
  4536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4537. (exit $ac_status); } &&
  4538. { ac_try='test -z "$ac_c_werror_flag"
  4539. || test ! -s conftest.err'
  4540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; } &&
  4545. { ac_try='test -s conftest.$ac_objext'
  4546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4547. (eval $ac_try) 2>&5
  4548. ac_status=$?
  4549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550. (exit $ac_status); }; }; then
  4551. ac_header_compiler=yes
  4552. else
  4553. echo "$as_me: failed program was:" >&5
  4554. sed 's/^/| /' conftest.$ac_ext >&5
  4555. ac_header_compiler=no
  4556. fi
  4557. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4558. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4559. echo "${ECHO_T}$ac_header_compiler" >&6
  4560. # Is the header present?
  4561. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4562. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4563. cat >conftest.$ac_ext <<_ACEOF
  4564. /* confdefs.h. */
  4565. _ACEOF
  4566. cat confdefs.h >>conftest.$ac_ext
  4567. cat >>conftest.$ac_ext <<_ACEOF
  4568. /* end confdefs.h. */
  4569. #include <$ac_header>
  4570. _ACEOF
  4571. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4572. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4573. ac_status=$?
  4574. grep -v '^ *+' conftest.er1 >conftest.err
  4575. rm -f conftest.er1
  4576. cat conftest.err >&5
  4577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. (exit $ac_status); } >/dev/null; then
  4579. if test -s conftest.err; then
  4580. ac_cpp_err=$ac_c_preproc_warn_flag
  4581. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4582. else
  4583. ac_cpp_err=
  4584. fi
  4585. else
  4586. ac_cpp_err=yes
  4587. fi
  4588. if test -z "$ac_cpp_err"; then
  4589. ac_header_preproc=yes
  4590. else
  4591. echo "$as_me: failed program was:" >&5
  4592. sed 's/^/| /' conftest.$ac_ext >&5
  4593. ac_header_preproc=no
  4594. fi
  4595. rm -f conftest.err conftest.$ac_ext
  4596. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4597. echo "${ECHO_T}$ac_header_preproc" >&6
  4598. # So? What about this header?
  4599. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4600. yes:no: )
  4601. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4602. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4603. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4604. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4605. ac_header_preproc=yes
  4606. ;;
  4607. no:yes:* )
  4608. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4609. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4610. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4611. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4612. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4613. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4614. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4615. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4616. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4617. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4618. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4619. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4620. (
  4621. cat <<\_ASBOX
  4622. ## ------------------------------------------ ##
  4623. ## Report this to http://bugzilla.redhat.com/ ##
  4624. ## ------------------------------------------ ##
  4625. _ASBOX
  4626. ) |
  4627. sed "s/^/$as_me: WARNING: /" >&2
  4628. ;;
  4629. esac
  4630. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4631. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4632. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4633. echo $ECHO_N "(cached) $ECHO_C" >&6
  4634. else
  4635. eval "$as_ac_Header=\$ac_header_preproc"
  4636. fi
  4637. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4638. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4639. fi
  4640. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4641. cat >>confdefs.h <<_ACEOF
  4642. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4643. _ACEOF
  4644. fi
  4645. done
  4646. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4647. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4648. (test "X$CXX" != "Xg++"))) ; then
  4649. ac_ext=cc
  4650. ac_cpp='$CXXCPP $CPPFLAGS'
  4651. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4652. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4653. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4654. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4655. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4656. if test -z "$CXXCPP"; then
  4657. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4658. echo $ECHO_N "(cached) $ECHO_C" >&6
  4659. else
  4660. # Double quotes because CXXCPP needs to be expanded
  4661. for CXXCPP in "$CXX -E" "/lib/cpp"
  4662. do
  4663. ac_preproc_ok=false
  4664. for ac_cxx_preproc_warn_flag in '' yes
  4665. do
  4666. # Use a header file that comes with gcc, so configuring glibc
  4667. # with a fresh cross-compiler works.
  4668. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4669. # <limits.h> exists even on freestanding compilers.
  4670. # On the NeXT, cc -E runs the code through the compiler's parser,
  4671. # not just through cpp. "Syntax error" is here to catch this case.
  4672. cat >conftest.$ac_ext <<_ACEOF
  4673. /* confdefs.h. */
  4674. _ACEOF
  4675. cat confdefs.h >>conftest.$ac_ext
  4676. cat >>conftest.$ac_ext <<_ACEOF
  4677. /* end confdefs.h. */
  4678. #ifdef __STDC__
  4679. # include <limits.h>
  4680. #else
  4681. # include <assert.h>
  4682. #endif
  4683. Syntax error
  4684. _ACEOF
  4685. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4686. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4687. ac_status=$?
  4688. grep -v '^ *+' conftest.er1 >conftest.err
  4689. rm -f conftest.er1
  4690. cat conftest.err >&5
  4691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4692. (exit $ac_status); } >/dev/null; then
  4693. if test -s conftest.err; then
  4694. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4695. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4696. else
  4697. ac_cpp_err=
  4698. fi
  4699. else
  4700. ac_cpp_err=yes
  4701. fi
  4702. if test -z "$ac_cpp_err"; then
  4703. :
  4704. else
  4705. echo "$as_me: failed program was:" >&5
  4706. sed 's/^/| /' conftest.$ac_ext >&5
  4707. # Broken: fails on valid input.
  4708. continue
  4709. fi
  4710. rm -f conftest.err conftest.$ac_ext
  4711. # OK, works on sane cases. Now check whether non-existent headers
  4712. # can be detected and how.
  4713. cat >conftest.$ac_ext <<_ACEOF
  4714. /* confdefs.h. */
  4715. _ACEOF
  4716. cat confdefs.h >>conftest.$ac_ext
  4717. cat >>conftest.$ac_ext <<_ACEOF
  4718. /* end confdefs.h. */
  4719. #include <ac_nonexistent.h>
  4720. _ACEOF
  4721. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4722. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4723. ac_status=$?
  4724. grep -v '^ *+' conftest.er1 >conftest.err
  4725. rm -f conftest.er1
  4726. cat conftest.err >&5
  4727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4728. (exit $ac_status); } >/dev/null; then
  4729. if test -s conftest.err; then
  4730. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4731. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4732. else
  4733. ac_cpp_err=
  4734. fi
  4735. else
  4736. ac_cpp_err=yes
  4737. fi
  4738. if test -z "$ac_cpp_err"; then
  4739. # Broken: success on invalid input.
  4740. continue
  4741. else
  4742. echo "$as_me: failed program was:" >&5
  4743. sed 's/^/| /' conftest.$ac_ext >&5
  4744. # Passes both tests.
  4745. ac_preproc_ok=:
  4746. break
  4747. fi
  4748. rm -f conftest.err conftest.$ac_ext
  4749. done
  4750. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4751. rm -f conftest.err conftest.$ac_ext
  4752. if $ac_preproc_ok; then
  4753. break
  4754. fi
  4755. done
  4756. ac_cv_prog_CXXCPP=$CXXCPP
  4757. fi
  4758. CXXCPP=$ac_cv_prog_CXXCPP
  4759. else
  4760. ac_cv_prog_CXXCPP=$CXXCPP
  4761. fi
  4762. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4763. echo "${ECHO_T}$CXXCPP" >&6
  4764. ac_preproc_ok=false
  4765. for ac_cxx_preproc_warn_flag in '' yes
  4766. do
  4767. # Use a header file that comes with gcc, so configuring glibc
  4768. # with a fresh cross-compiler works.
  4769. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4770. # <limits.h> exists even on freestanding compilers.
  4771. # On the NeXT, cc -E runs the code through the compiler's parser,
  4772. # not just through cpp. "Syntax error" is here to catch this case.
  4773. cat >conftest.$ac_ext <<_ACEOF
  4774. /* confdefs.h. */
  4775. _ACEOF
  4776. cat confdefs.h >>conftest.$ac_ext
  4777. cat >>conftest.$ac_ext <<_ACEOF
  4778. /* end confdefs.h. */
  4779. #ifdef __STDC__
  4780. # include <limits.h>
  4781. #else
  4782. # include <assert.h>
  4783. #endif
  4784. Syntax error
  4785. _ACEOF
  4786. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4787. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4788. ac_status=$?
  4789. grep -v '^ *+' conftest.er1 >conftest.err
  4790. rm -f conftest.er1
  4791. cat conftest.err >&5
  4792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4793. (exit $ac_status); } >/dev/null; then
  4794. if test -s conftest.err; then
  4795. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4796. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4797. else
  4798. ac_cpp_err=
  4799. fi
  4800. else
  4801. ac_cpp_err=yes
  4802. fi
  4803. if test -z "$ac_cpp_err"; then
  4804. :
  4805. else
  4806. echo "$as_me: failed program was:" >&5
  4807. sed 's/^/| /' conftest.$ac_ext >&5
  4808. # Broken: fails on valid input.
  4809. continue
  4810. fi
  4811. rm -f conftest.err conftest.$ac_ext
  4812. # OK, works on sane cases. Now check whether non-existent headers
  4813. # can be detected and how.
  4814. cat >conftest.$ac_ext <<_ACEOF
  4815. /* confdefs.h. */
  4816. _ACEOF
  4817. cat confdefs.h >>conftest.$ac_ext
  4818. cat >>conftest.$ac_ext <<_ACEOF
  4819. /* end confdefs.h. */
  4820. #include <ac_nonexistent.h>
  4821. _ACEOF
  4822. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4823. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4824. ac_status=$?
  4825. grep -v '^ *+' conftest.er1 >conftest.err
  4826. rm -f conftest.er1
  4827. cat conftest.err >&5
  4828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4829. (exit $ac_status); } >/dev/null; then
  4830. if test -s conftest.err; then
  4831. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4832. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4833. else
  4834. ac_cpp_err=
  4835. fi
  4836. else
  4837. ac_cpp_err=yes
  4838. fi
  4839. if test -z "$ac_cpp_err"; then
  4840. # Broken: success on invalid input.
  4841. continue
  4842. else
  4843. echo "$as_me: failed program was:" >&5
  4844. sed 's/^/| /' conftest.$ac_ext >&5
  4845. # Passes both tests.
  4846. ac_preproc_ok=:
  4847. break
  4848. fi
  4849. rm -f conftest.err conftest.$ac_ext
  4850. done
  4851. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4852. rm -f conftest.err conftest.$ac_ext
  4853. if $ac_preproc_ok; then
  4854. :
  4855. else
  4856. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4857. See \`config.log' for more details." >&5
  4858. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4859. See \`config.log' for more details." >&2;}
  4860. { (exit 1); exit 1; }; }
  4861. fi
  4862. ac_ext=cc
  4863. ac_cpp='$CXXCPP $CPPFLAGS'
  4864. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4865. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4866. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4867. fi
  4868. ac_ext=f
  4869. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4870. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4871. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4872. if test -n "$ac_tool_prefix"; then
  4873. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4874. do
  4875. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4876. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4877. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4878. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4879. if test "${ac_cv_prog_F77+set}" = set; then
  4880. echo $ECHO_N "(cached) $ECHO_C" >&6
  4881. else
  4882. if test -n "$F77"; then
  4883. ac_cv_prog_F77="$F77" # Let the user override the test.
  4884. else
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4892. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4893. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. fi
  4899. fi
  4900. F77=$ac_cv_prog_F77
  4901. if test -n "$F77"; then
  4902. echo "$as_me:$LINENO: result: $F77" >&5
  4903. echo "${ECHO_T}$F77" >&6
  4904. else
  4905. echo "$as_me:$LINENO: result: no" >&5
  4906. echo "${ECHO_T}no" >&6
  4907. fi
  4908. test -n "$F77" && break
  4909. done
  4910. fi
  4911. if test -z "$F77"; then
  4912. ac_ct_F77=$F77
  4913. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4914. do
  4915. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4916. set dummy $ac_prog; ac_word=$2
  4917. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4918. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4919. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4920. echo $ECHO_N "(cached) $ECHO_C" >&6
  4921. else
  4922. if test -n "$ac_ct_F77"; then
  4923. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4932. ac_cv_prog_ac_ct_F77="$ac_prog"
  4933. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. fi
  4939. fi
  4940. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4941. if test -n "$ac_ct_F77"; then
  4942. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4943. echo "${ECHO_T}$ac_ct_F77" >&6
  4944. else
  4945. echo "$as_me:$LINENO: result: no" >&5
  4946. echo "${ECHO_T}no" >&6
  4947. fi
  4948. test -n "$ac_ct_F77" && break
  4949. done
  4950. F77=$ac_ct_F77
  4951. fi
  4952. # Provide some information about the compiler.
  4953. echo "$as_me:5469:" \
  4954. "checking for Fortran 77 compiler version" >&5
  4955. ac_compiler=`set X $ac_compile; echo $2`
  4956. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4957. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4958. ac_status=$?
  4959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4960. (exit $ac_status); }
  4961. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4962. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4963. ac_status=$?
  4964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4965. (exit $ac_status); }
  4966. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4967. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4968. ac_status=$?
  4969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4970. (exit $ac_status); }
  4971. rm -f a.out
  4972. # If we don't use `.F' as extension, the preprocessor is not run on the
  4973. # input file. (Note that this only needs to work for GNU compilers.)
  4974. ac_save_ext=$ac_ext
  4975. ac_ext=F
  4976. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4977. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4978. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4979. echo $ECHO_N "(cached) $ECHO_C" >&6
  4980. else
  4981. cat >conftest.$ac_ext <<_ACEOF
  4982. program main
  4983. #ifndef __GNUC__
  4984. choke me
  4985. #endif
  4986. end
  4987. _ACEOF
  4988. rm -f conftest.$ac_objext
  4989. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4990. (eval $ac_compile) 2>conftest.er1
  4991. ac_status=$?
  4992. grep -v '^ *+' conftest.er1 >conftest.err
  4993. rm -f conftest.er1
  4994. cat conftest.err >&5
  4995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4996. (exit $ac_status); } &&
  4997. { ac_try='test -z "$ac_f77_werror_flag"
  4998. || test ! -s conftest.err'
  4999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5000. (eval $ac_try) 2>&5
  5001. ac_status=$?
  5002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5003. (exit $ac_status); }; } &&
  5004. { ac_try='test -s conftest.$ac_objext'
  5005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5006. (eval $ac_try) 2>&5
  5007. ac_status=$?
  5008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5009. (exit $ac_status); }; }; then
  5010. ac_compiler_gnu=yes
  5011. else
  5012. echo "$as_me: failed program was:" >&5
  5013. sed 's/^/| /' conftest.$ac_ext >&5
  5014. ac_compiler_gnu=no
  5015. fi
  5016. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5017. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5018. fi
  5019. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5020. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5021. ac_ext=$ac_save_ext
  5022. ac_test_FFLAGS=${FFLAGS+set}
  5023. ac_save_FFLAGS=$FFLAGS
  5024. FFLAGS=
  5025. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5026. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5027. if test "${ac_cv_prog_f77_g+set}" = set; then
  5028. echo $ECHO_N "(cached) $ECHO_C" >&6
  5029. else
  5030. FFLAGS=-g
  5031. cat >conftest.$ac_ext <<_ACEOF
  5032. program main
  5033. end
  5034. _ACEOF
  5035. rm -f conftest.$ac_objext
  5036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5037. (eval $ac_compile) 2>conftest.er1
  5038. ac_status=$?
  5039. grep -v '^ *+' conftest.er1 >conftest.err
  5040. rm -f conftest.er1
  5041. cat conftest.err >&5
  5042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5043. (exit $ac_status); } &&
  5044. { ac_try='test -z "$ac_f77_werror_flag"
  5045. || test ! -s conftest.err'
  5046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5047. (eval $ac_try) 2>&5
  5048. ac_status=$?
  5049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. (exit $ac_status); }; } &&
  5051. { ac_try='test -s conftest.$ac_objext'
  5052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5053. (eval $ac_try) 2>&5
  5054. ac_status=$?
  5055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5056. (exit $ac_status); }; }; then
  5057. ac_cv_prog_f77_g=yes
  5058. else
  5059. echo "$as_me: failed program was:" >&5
  5060. sed 's/^/| /' conftest.$ac_ext >&5
  5061. ac_cv_prog_f77_g=no
  5062. fi
  5063. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5064. fi
  5065. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5066. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5067. if test "$ac_test_FFLAGS" = set; then
  5068. FFLAGS=$ac_save_FFLAGS
  5069. elif test $ac_cv_prog_f77_g = yes; then
  5070. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5071. FFLAGS="-g -O2"
  5072. else
  5073. FFLAGS="-g"
  5074. fi
  5075. else
  5076. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5077. FFLAGS="-O2"
  5078. else
  5079. FFLAGS=
  5080. fi
  5081. fi
  5082. G77=`test $ac_compiler_gnu = yes && echo yes`
  5083. ac_ext=c
  5084. ac_cpp='$CPP $CPPFLAGS'
  5085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5088. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5089. # find the maximum length of command line arguments
  5090. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5091. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5092. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5093. echo $ECHO_N "(cached) $ECHO_C" >&6
  5094. else
  5095. i=0
  5096. teststring="ABCD"
  5097. case $build_os in
  5098. msdosdjgpp*)
  5099. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5100. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5101. # during glob expansion). Even if it were fixed, the result of this
  5102. # check would be larger than it should be.
  5103. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5104. ;;
  5105. gnu*)
  5106. # Under GNU Hurd, this test is not required because there is
  5107. # no limit to the length of command line arguments.
  5108. # Libtool will interpret -1 as no limit whatsoever
  5109. lt_cv_sys_max_cmd_len=-1;
  5110. ;;
  5111. cygwin* | mingw*)
  5112. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5113. # about 5 minutes as the teststring grows exponentially.
  5114. # Worse, since 9x/ME are not pre-emptively multitasking,
  5115. # you end up with a "frozen" computer, even though with patience
  5116. # the test eventually succeeds (with a max line length of 256k).
  5117. # Instead, let's just punt: use the minimum linelength reported by
  5118. # all of the supported platforms: 8192 (on NT/2K/XP).
  5119. lt_cv_sys_max_cmd_len=8192;
  5120. ;;
  5121. amigaos*)
  5122. # On AmigaOS with pdksh, this test takes hours, literally.
  5123. # So we just punt and use a minimum line length of 8192.
  5124. lt_cv_sys_max_cmd_len=8192;
  5125. ;;
  5126. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5127. # This has been around since 386BSD, at least. Likely further.
  5128. if test -x /sbin/sysctl; then
  5129. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5130. elif test -x /usr/sbin/sysctl; then
  5131. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5132. else
  5133. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5134. fi
  5135. # And add a safety zone
  5136. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5137. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5138. ;;
  5139. interix*)
  5140. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5141. lt_cv_sys_max_cmd_len=196608
  5142. ;;
  5143. osf*)
  5144. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5145. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5146. # nice to cause kernel panics so lets avoid the loop below.
  5147. # First set a reasonable default.
  5148. lt_cv_sys_max_cmd_len=16384
  5149. #
  5150. if test -x /sbin/sysconfig; then
  5151. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5152. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5153. esac
  5154. fi
  5155. ;;
  5156. sco3.2v5*)
  5157. lt_cv_sys_max_cmd_len=102400
  5158. ;;
  5159. sysv5* | sco5v6* | sysv4.2uw2*)
  5160. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5161. if test -n "$kargmax"; then
  5162. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5163. else
  5164. lt_cv_sys_max_cmd_len=32768
  5165. fi
  5166. ;;
  5167. *)
  5168. # If test is not a shell built-in, we'll probably end up computing a
  5169. # maximum length that is only half of the actual maximum length, but
  5170. # we can't tell.
  5171. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5172. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5173. = "XX$teststring") >/dev/null 2>&1 &&
  5174. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5175. lt_cv_sys_max_cmd_len=$new_result &&
  5176. test $i != 17 # 1/2 MB should be enough
  5177. do
  5178. i=`expr $i + 1`
  5179. teststring=$teststring$teststring
  5180. done
  5181. teststring=
  5182. # Add a significant safety factor because C++ compilers can tack on massive
  5183. # amounts of additional arguments before passing them to the linker.
  5184. # It appears as though 1/2 is a usable value.
  5185. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5186. ;;
  5187. esac
  5188. fi
  5189. if test -n $lt_cv_sys_max_cmd_len ; then
  5190. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5191. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5192. else
  5193. echo "$as_me:$LINENO: result: none" >&5
  5194. echo "${ECHO_T}none" >&6
  5195. fi
  5196. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5197. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5198. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5199. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5200. echo $ECHO_N "(cached) $ECHO_C" >&6
  5201. else
  5202. # These are sane defaults that work on at least a few old systems.
  5203. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5204. # Character class describing NM global symbol codes.
  5205. symcode='[BCDEGRST]'
  5206. # Regexp to match symbols that can be accessed directly from C.
  5207. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5208. # Transform an extracted symbol line into a proper C declaration
  5209. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5210. # Transform an extracted symbol line into symbol name and symbol address
  5211. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5212. # Define system-specific variables.
  5213. case $host_os in
  5214. aix*)
  5215. symcode='[BCDT]'
  5216. ;;
  5217. cygwin* | mingw* | pw32*)
  5218. symcode='[ABCDGISTW]'
  5219. ;;
  5220. hpux*) # Its linker distinguishes data from code symbols
  5221. if test "$host_cpu" = ia64; then
  5222. symcode='[ABCDEGRST]'
  5223. fi
  5224. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5225. 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'"
  5226. ;;
  5227. linux*)
  5228. if test "$host_cpu" = ia64; then
  5229. symcode='[ABCDGIRSTW]'
  5230. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5231. 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'"
  5232. fi
  5233. ;;
  5234. irix* | nonstopux*)
  5235. symcode='[BCDEGRST]'
  5236. ;;
  5237. osf*)
  5238. symcode='[BCDEGQRST]'
  5239. ;;
  5240. solaris*)
  5241. symcode='[BDRT]'
  5242. ;;
  5243. sco3.2v5*)
  5244. symcode='[DT]'
  5245. ;;
  5246. sysv4.2uw2*)
  5247. symcode='[DT]'
  5248. ;;
  5249. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5250. symcode='[ABDT]'
  5251. ;;
  5252. sysv4)
  5253. symcode='[DFNSTU]'
  5254. ;;
  5255. esac
  5256. # Handle CRLF in mingw tool chain
  5257. opt_cr=
  5258. case $build_os in
  5259. mingw*)
  5260. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5261. ;;
  5262. esac
  5263. # If we're using GNU nm, then use its standard symbol codes.
  5264. case `$NM -V 2>&1` in
  5265. *GNU* | *'with BFD'*)
  5266. symcode='[ABCDGIRSTW]' ;;
  5267. esac
  5268. # Try without a prefix undercore, then with it.
  5269. for ac_symprfx in "" "_"; do
  5270. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5271. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5272. # Write the raw and C identifiers.
  5273. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5274. # Check to see that the pipe works correctly.
  5275. pipe_works=no
  5276. rm -f conftest*
  5277. cat > conftest.$ac_ext <<EOF
  5278. #ifdef __cplusplus
  5279. extern "C" {
  5280. #endif
  5281. char nm_test_var;
  5282. void nm_test_func(){}
  5283. #ifdef __cplusplus
  5284. }
  5285. #endif
  5286. int main(){nm_test_var='a';nm_test_func();return(0);}
  5287. EOF
  5288. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5289. (eval $ac_compile) 2>&5
  5290. ac_status=$?
  5291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5292. (exit $ac_status); }; then
  5293. # Now try to grab the symbols.
  5294. nlist=conftest.nm
  5295. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5296. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5297. ac_status=$?
  5298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5299. (exit $ac_status); } && test -s "$nlist"; then
  5300. # Try sorting and uniquifying the output.
  5301. if sort "$nlist" | uniq > "$nlist"T; then
  5302. mv -f "$nlist"T "$nlist"
  5303. else
  5304. rm -f "$nlist"T
  5305. fi
  5306. # Make sure that we snagged all the symbols we need.
  5307. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5308. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5309. cat <<EOF > conftest.$ac_ext
  5310. #ifdef __cplusplus
  5311. extern "C" {
  5312. #endif
  5313. EOF
  5314. # Now generate the symbol file.
  5315. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5316. cat <<EOF >> conftest.$ac_ext
  5317. #if defined (__STDC__) && __STDC__
  5318. # define lt_ptr_t void *
  5319. #else
  5320. # define lt_ptr_t char *
  5321. # define const
  5322. #endif
  5323. /* The mapping between symbol names and symbols. */
  5324. const struct {
  5325. const char *name;
  5326. lt_ptr_t address;
  5327. }
  5328. lt_preloaded_symbols[] =
  5329. {
  5330. EOF
  5331. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5332. cat <<\EOF >> conftest.$ac_ext
  5333. {0, (lt_ptr_t) 0}
  5334. };
  5335. #ifdef __cplusplus
  5336. }
  5337. #endif
  5338. EOF
  5339. # Now try linking the two files.
  5340. mv conftest.$ac_objext conftstm.$ac_objext
  5341. lt_save_LIBS="$LIBS"
  5342. lt_save_CFLAGS="$CFLAGS"
  5343. LIBS="conftstm.$ac_objext"
  5344. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5345. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5346. (eval $ac_link) 2>&5
  5347. ac_status=$?
  5348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5349. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5350. pipe_works=yes
  5351. fi
  5352. LIBS="$lt_save_LIBS"
  5353. CFLAGS="$lt_save_CFLAGS"
  5354. else
  5355. echo "cannot find nm_test_func in $nlist" >&5
  5356. fi
  5357. else
  5358. echo "cannot find nm_test_var in $nlist" >&5
  5359. fi
  5360. else
  5361. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5362. fi
  5363. else
  5364. echo "$progname: failed program was:" >&5
  5365. cat conftest.$ac_ext >&5
  5366. fi
  5367. rm -f conftest* conftst*
  5368. # Do not use the global_symbol_pipe unless it works.
  5369. if test "$pipe_works" = yes; then
  5370. break
  5371. else
  5372. lt_cv_sys_global_symbol_pipe=
  5373. fi
  5374. done
  5375. fi
  5376. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5377. lt_cv_sys_global_symbol_to_cdecl=
  5378. fi
  5379. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5380. echo "$as_me:$LINENO: result: failed" >&5
  5381. echo "${ECHO_T}failed" >&6
  5382. else
  5383. echo "$as_me:$LINENO: result: ok" >&5
  5384. echo "${ECHO_T}ok" >&6
  5385. fi
  5386. echo "$as_me:$LINENO: checking for objdir" >&5
  5387. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5388. if test "${lt_cv_objdir+set}" = set; then
  5389. echo $ECHO_N "(cached) $ECHO_C" >&6
  5390. else
  5391. rm -f .libs 2>/dev/null
  5392. mkdir .libs 2>/dev/null
  5393. if test -d .libs; then
  5394. lt_cv_objdir=.libs
  5395. else
  5396. # MS-DOS does not allow filenames that begin with a dot.
  5397. lt_cv_objdir=_libs
  5398. fi
  5399. rmdir .libs 2>/dev/null
  5400. fi
  5401. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5402. echo "${ECHO_T}$lt_cv_objdir" >&6
  5403. objdir=$lt_cv_objdir
  5404. case $host_os in
  5405. aix3*)
  5406. # AIX sometimes has problems with the GCC collect2 program. For some
  5407. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5408. # vanish in a puff of smoke.
  5409. if test "X${COLLECT_NAMES+set}" != Xset; then
  5410. COLLECT_NAMES=
  5411. export COLLECT_NAMES
  5412. fi
  5413. ;;
  5414. esac
  5415. # Sed substitution that helps us do robust quoting. It backslashifies
  5416. # metacharacters that are still active within double-quoted strings.
  5417. Xsed='sed -e 1s/^X//'
  5418. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5419. # Same as above, but do not quote variable references.
  5420. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5421. # Sed substitution to delay expansion of an escaped shell variable in a
  5422. # double_quote_subst'ed string.
  5423. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5424. # Sed substitution to avoid accidental globbing in evaled expressions
  5425. no_glob_subst='s/\*/\\\*/g'
  5426. # Constants:
  5427. rm="rm -f"
  5428. # Global variables:
  5429. default_ofile=libtool
  5430. can_build_shared=yes
  5431. # All known linkers require a `.a' archive for static linking (except MSVC,
  5432. # which needs '.lib').
  5433. libext=a
  5434. ltmain="$ac_aux_dir/ltmain.sh"
  5435. ofile="$default_ofile"
  5436. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5437. if test -n "$ac_tool_prefix"; then
  5438. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5439. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5440. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5441. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5442. if test "${ac_cv_prog_AR+set}" = set; then
  5443. echo $ECHO_N "(cached) $ECHO_C" >&6
  5444. else
  5445. if test -n "$AR"; then
  5446. ac_cv_prog_AR="$AR" # Let the user override the test.
  5447. else
  5448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5449. for as_dir in $PATH
  5450. do
  5451. IFS=$as_save_IFS
  5452. test -z "$as_dir" && as_dir=.
  5453. for ac_exec_ext in '' $ac_executable_extensions; do
  5454. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5455. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5456. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5457. break 2
  5458. fi
  5459. done
  5460. done
  5461. fi
  5462. fi
  5463. AR=$ac_cv_prog_AR
  5464. if test -n "$AR"; then
  5465. echo "$as_me:$LINENO: result: $AR" >&5
  5466. echo "${ECHO_T}$AR" >&6
  5467. else
  5468. echo "$as_me:$LINENO: result: no" >&5
  5469. echo "${ECHO_T}no" >&6
  5470. fi
  5471. fi
  5472. if test -z "$ac_cv_prog_AR"; then
  5473. ac_ct_AR=$AR
  5474. # Extract the first word of "ar", so it can be a program name with args.
  5475. set dummy ar; ac_word=$2
  5476. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5477. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5478. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5479. echo $ECHO_N "(cached) $ECHO_C" >&6
  5480. else
  5481. if test -n "$ac_ct_AR"; then
  5482. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5483. else
  5484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5485. for as_dir in $PATH
  5486. do
  5487. IFS=$as_save_IFS
  5488. test -z "$as_dir" && as_dir=.
  5489. for ac_exec_ext in '' $ac_executable_extensions; do
  5490. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5491. ac_cv_prog_ac_ct_AR="ar"
  5492. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5493. break 2
  5494. fi
  5495. done
  5496. done
  5497. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5498. fi
  5499. fi
  5500. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5501. if test -n "$ac_ct_AR"; then
  5502. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5503. echo "${ECHO_T}$ac_ct_AR" >&6
  5504. else
  5505. echo "$as_me:$LINENO: result: no" >&5
  5506. echo "${ECHO_T}no" >&6
  5507. fi
  5508. AR=$ac_ct_AR
  5509. else
  5510. AR="$ac_cv_prog_AR"
  5511. fi
  5512. if test -n "$ac_tool_prefix"; then
  5513. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5514. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5515. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5516. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5517. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5518. echo $ECHO_N "(cached) $ECHO_C" >&6
  5519. else
  5520. if test -n "$RANLIB"; then
  5521. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5522. else
  5523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5524. for as_dir in $PATH
  5525. do
  5526. IFS=$as_save_IFS
  5527. test -z "$as_dir" && as_dir=.
  5528. for ac_exec_ext in '' $ac_executable_extensions; do
  5529. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5530. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5531. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5532. break 2
  5533. fi
  5534. done
  5535. done
  5536. fi
  5537. fi
  5538. RANLIB=$ac_cv_prog_RANLIB
  5539. if test -n "$RANLIB"; then
  5540. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5541. echo "${ECHO_T}$RANLIB" >&6
  5542. else
  5543. echo "$as_me:$LINENO: result: no" >&5
  5544. echo "${ECHO_T}no" >&6
  5545. fi
  5546. fi
  5547. if test -z "$ac_cv_prog_RANLIB"; then
  5548. ac_ct_RANLIB=$RANLIB
  5549. # Extract the first word of "ranlib", so it can be a program name with args.
  5550. set dummy ranlib; ac_word=$2
  5551. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5552. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5553. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5554. echo $ECHO_N "(cached) $ECHO_C" >&6
  5555. else
  5556. if test -n "$ac_ct_RANLIB"; then
  5557. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5566. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5567. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5573. fi
  5574. fi
  5575. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5576. if test -n "$ac_ct_RANLIB"; then
  5577. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5578. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5579. else
  5580. echo "$as_me:$LINENO: result: no" >&5
  5581. echo "${ECHO_T}no" >&6
  5582. fi
  5583. RANLIB=$ac_ct_RANLIB
  5584. else
  5585. RANLIB="$ac_cv_prog_RANLIB"
  5586. fi
  5587. if test -n "$ac_tool_prefix"; then
  5588. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5589. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5590. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5591. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5592. if test "${ac_cv_prog_STRIP+set}" = set; then
  5593. echo $ECHO_N "(cached) $ECHO_C" >&6
  5594. else
  5595. if test -n "$STRIP"; then
  5596. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5597. else
  5598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5599. for as_dir in $PATH
  5600. do
  5601. IFS=$as_save_IFS
  5602. test -z "$as_dir" && as_dir=.
  5603. for ac_exec_ext in '' $ac_executable_extensions; do
  5604. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5605. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5606. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5607. break 2
  5608. fi
  5609. done
  5610. done
  5611. fi
  5612. fi
  5613. STRIP=$ac_cv_prog_STRIP
  5614. if test -n "$STRIP"; then
  5615. echo "$as_me:$LINENO: result: $STRIP" >&5
  5616. echo "${ECHO_T}$STRIP" >&6
  5617. else
  5618. echo "$as_me:$LINENO: result: no" >&5
  5619. echo "${ECHO_T}no" >&6
  5620. fi
  5621. fi
  5622. if test -z "$ac_cv_prog_STRIP"; then
  5623. ac_ct_STRIP=$STRIP
  5624. # Extract the first word of "strip", so it can be a program name with args.
  5625. set dummy strip; ac_word=$2
  5626. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5627. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5628. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5629. echo $ECHO_N "(cached) $ECHO_C" >&6
  5630. else
  5631. if test -n "$ac_ct_STRIP"; then
  5632. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5633. else
  5634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5635. for as_dir in $PATH
  5636. do
  5637. IFS=$as_save_IFS
  5638. test -z "$as_dir" && as_dir=.
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5641. ac_cv_prog_ac_ct_STRIP="strip"
  5642. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5643. break 2
  5644. fi
  5645. done
  5646. done
  5647. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5648. fi
  5649. fi
  5650. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5651. if test -n "$ac_ct_STRIP"; then
  5652. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5653. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5654. else
  5655. echo "$as_me:$LINENO: result: no" >&5
  5656. echo "${ECHO_T}no" >&6
  5657. fi
  5658. STRIP=$ac_ct_STRIP
  5659. else
  5660. STRIP="$ac_cv_prog_STRIP"
  5661. fi
  5662. old_CC="$CC"
  5663. old_CFLAGS="$CFLAGS"
  5664. # Set sane defaults for various variables
  5665. test -z "$AR" && AR=ar
  5666. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5667. test -z "$AS" && AS=as
  5668. test -z "$CC" && CC=cc
  5669. test -z "$LTCC" && LTCC=$CC
  5670. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5671. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5672. test -z "$LD" && LD=ld
  5673. test -z "$LN_S" && LN_S="ln -s"
  5674. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5675. test -z "$NM" && NM=nm
  5676. test -z "$SED" && SED=sed
  5677. test -z "$OBJDUMP" && OBJDUMP=objdump
  5678. test -z "$RANLIB" && RANLIB=:
  5679. test -z "$STRIP" && STRIP=:
  5680. test -z "$ac_objext" && ac_objext=o
  5681. # Determine commands to create old-style static archives.
  5682. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5683. old_postinstall_cmds='chmod 644 $oldlib'
  5684. old_postuninstall_cmds=
  5685. if test -n "$RANLIB"; then
  5686. case $host_os in
  5687. openbsd*)
  5688. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5689. ;;
  5690. *)
  5691. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5692. ;;
  5693. esac
  5694. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5695. fi
  5696. for cc_temp in $compiler""; do
  5697. case $cc_temp in
  5698. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5699. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5700. \-*) ;;
  5701. *) break;;
  5702. esac
  5703. done
  5704. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5705. # Only perform the check for file, if the check method requires it
  5706. case $deplibs_check_method in
  5707. file_magic*)
  5708. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5709. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5710. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5711. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5712. echo $ECHO_N "(cached) $ECHO_C" >&6
  5713. else
  5714. case $MAGIC_CMD in
  5715. [\\/*] | ?:[\\/]*)
  5716. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5717. ;;
  5718. *)
  5719. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5720. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5721. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5722. for ac_dir in $ac_dummy; do
  5723. IFS="$lt_save_ifs"
  5724. test -z "$ac_dir" && ac_dir=.
  5725. if test -f $ac_dir/${ac_tool_prefix}file; then
  5726. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5727. if test -n "$file_magic_test_file"; then
  5728. case $deplibs_check_method in
  5729. "file_magic "*)
  5730. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5731. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5732. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5733. $EGREP "$file_magic_regex" > /dev/null; then
  5734. :
  5735. else
  5736. cat <<EOF 1>&2
  5737. *** Warning: the command libtool uses to detect shared libraries,
  5738. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5739. *** The result is that libtool may fail to recognize shared libraries
  5740. *** as such. This will affect the creation of libtool libraries that
  5741. *** depend on shared libraries, but programs linked with such libtool
  5742. *** libraries will work regardless of this problem. Nevertheless, you
  5743. *** may want to report the problem to your system manager and/or to
  5744. *** [email protected]
  5745. EOF
  5746. fi ;;
  5747. esac
  5748. fi
  5749. break
  5750. fi
  5751. done
  5752. IFS="$lt_save_ifs"
  5753. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5754. ;;
  5755. esac
  5756. fi
  5757. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5758. if test -n "$MAGIC_CMD"; then
  5759. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5760. echo "${ECHO_T}$MAGIC_CMD" >&6
  5761. else
  5762. echo "$as_me:$LINENO: result: no" >&5
  5763. echo "${ECHO_T}no" >&6
  5764. fi
  5765. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5766. if test -n "$ac_tool_prefix"; then
  5767. echo "$as_me:$LINENO: checking for file" >&5
  5768. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5769. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5770. echo $ECHO_N "(cached) $ECHO_C" >&6
  5771. else
  5772. case $MAGIC_CMD in
  5773. [\\/*] | ?:[\\/]*)
  5774. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5775. ;;
  5776. *)
  5777. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5778. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5779. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5780. for ac_dir in $ac_dummy; do
  5781. IFS="$lt_save_ifs"
  5782. test -z "$ac_dir" && ac_dir=.
  5783. if test -f $ac_dir/file; then
  5784. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5785. if test -n "$file_magic_test_file"; then
  5786. case $deplibs_check_method in
  5787. "file_magic "*)
  5788. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5789. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5790. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5791. $EGREP "$file_magic_regex" > /dev/null; then
  5792. :
  5793. else
  5794. cat <<EOF 1>&2
  5795. *** Warning: the command libtool uses to detect shared libraries,
  5796. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5797. *** The result is that libtool may fail to recognize shared libraries
  5798. *** as such. This will affect the creation of libtool libraries that
  5799. *** depend on shared libraries, but programs linked with such libtool
  5800. *** libraries will work regardless of this problem. Nevertheless, you
  5801. *** may want to report the problem to your system manager and/or to
  5802. *** [email protected]
  5803. EOF
  5804. fi ;;
  5805. esac
  5806. fi
  5807. break
  5808. fi
  5809. done
  5810. IFS="$lt_save_ifs"
  5811. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5812. ;;
  5813. esac
  5814. fi
  5815. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5816. if test -n "$MAGIC_CMD"; then
  5817. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5818. echo "${ECHO_T}$MAGIC_CMD" >&6
  5819. else
  5820. echo "$as_me:$LINENO: result: no" >&5
  5821. echo "${ECHO_T}no" >&6
  5822. fi
  5823. else
  5824. MAGIC_CMD=:
  5825. fi
  5826. fi
  5827. fi
  5828. ;;
  5829. esac
  5830. enable_dlopen=no
  5831. enable_win32_dll=no
  5832. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5833. if test "${enable_libtool_lock+set}" = set; then
  5834. enableval="$enable_libtool_lock"
  5835. fi;
  5836. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5837. # Check whether --with-pic or --without-pic was given.
  5838. if test "${with_pic+set}" = set; then
  5839. withval="$with_pic"
  5840. pic_mode="$withval"
  5841. else
  5842. pic_mode=default
  5843. fi;
  5844. test -z "$pic_mode" && pic_mode=default
  5845. # Use C for the default configuration in the libtool script
  5846. tagname=
  5847. lt_save_CC="$CC"
  5848. ac_ext=c
  5849. ac_cpp='$CPP $CPPFLAGS'
  5850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5853. # Source file extension for C test sources.
  5854. ac_ext=c
  5855. # Object file extension for compiled C test sources.
  5856. objext=o
  5857. objext=$objext
  5858. # Code to be used in simple compile tests
  5859. lt_simple_compile_test_code="int some_variable = 0;\n"
  5860. # Code to be used in simple link tests
  5861. lt_simple_link_test_code='int main(){return(0);}\n'
  5862. # If no C compiler was specified, use CC.
  5863. LTCC=${LTCC-"$CC"}
  5864. # If no C compiler flags were specified, use CFLAGS.
  5865. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5866. # Allow CC to be a program name with arguments.
  5867. compiler=$CC
  5868. # save warnings/boilerplate of simple test code
  5869. ac_outfile=conftest.$ac_objext
  5870. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5871. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5872. _lt_compiler_boilerplate=`cat conftest.err`
  5873. $rm conftest*
  5874. ac_outfile=conftest.$ac_objext
  5875. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5876. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5877. _lt_linker_boilerplate=`cat conftest.err`
  5878. $rm conftest*
  5879. lt_prog_compiler_no_builtin_flag=
  5880. if test "$GCC" = yes; then
  5881. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5882. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5883. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5884. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5885. echo $ECHO_N "(cached) $ECHO_C" >&6
  5886. else
  5887. lt_cv_prog_compiler_rtti_exceptions=no
  5888. ac_outfile=conftest.$ac_objext
  5889. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5890. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5891. # Insert the option either (1) after the last *FLAGS variable, or
  5892. # (2) before a word containing "conftest.", or (3) at the end.
  5893. # Note that $ac_compile itself does not contain backslashes and begins
  5894. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5895. # The option is referenced via a variable to avoid confusing sed.
  5896. lt_compile=`echo "$ac_compile" | $SED \
  5897. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5898. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5899. -e 's:$: $lt_compiler_flag:'`
  5900. (eval echo "\"\$as_me:6532: $lt_compile\"" >&5)
  5901. (eval "$lt_compile" 2>conftest.err)
  5902. ac_status=$?
  5903. cat conftest.err >&5
  5904. echo "$as_me:6536: \$? = $ac_status" >&5
  5905. if (exit $ac_status) && test -s "$ac_outfile"; then
  5906. # The compiler can only warn and ignore the option if not recognized
  5907. # So say no if there are warnings other than the usual output.
  5908. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5909. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5910. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5911. lt_cv_prog_compiler_rtti_exceptions=yes
  5912. fi
  5913. fi
  5914. $rm conftest*
  5915. fi
  5916. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5917. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5918. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5919. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5920. else
  5921. :
  5922. fi
  5923. fi
  5924. lt_prog_compiler_wl=
  5925. lt_prog_compiler_pic=
  5926. lt_prog_compiler_static=
  5927. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5928. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5929. if test "$GCC" = yes; then
  5930. lt_prog_compiler_wl='-Wl,'
  5931. lt_prog_compiler_static='-static'
  5932. case $host_os in
  5933. aix*)
  5934. # All AIX code is PIC.
  5935. if test "$host_cpu" = ia64; then
  5936. # AIX 5 now supports IA64 processor
  5937. lt_prog_compiler_static='-Bstatic'
  5938. fi
  5939. ;;
  5940. amigaos*)
  5941. # FIXME: we need at least 68020 code to build shared libraries, but
  5942. # adding the `-m68020' flag to GCC prevents building anything better,
  5943. # like `-m68040'.
  5944. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5945. ;;
  5946. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5947. # PIC is the default for these OSes.
  5948. ;;
  5949. mingw* | pw32* | os2*)
  5950. # This hack is so that the source file can tell whether it is being
  5951. # built for inclusion in a dll (and should export symbols for example).
  5952. lt_prog_compiler_pic='-DDLL_EXPORT'
  5953. ;;
  5954. darwin* | rhapsody*)
  5955. # PIC is the default on this platform
  5956. # Common symbols not allowed in MH_DYLIB files
  5957. lt_prog_compiler_pic='-fno-common'
  5958. ;;
  5959. interix3*)
  5960. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5961. # Instead, we relocate shared libraries at runtime.
  5962. ;;
  5963. msdosdjgpp*)
  5964. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5965. # on systems that don't support them.
  5966. lt_prog_compiler_can_build_shared=no
  5967. enable_shared=no
  5968. ;;
  5969. sysv4*MP*)
  5970. if test -d /usr/nec; then
  5971. lt_prog_compiler_pic=-Kconform_pic
  5972. fi
  5973. ;;
  5974. hpux*)
  5975. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5976. # not for PA HP-UX.
  5977. case $host_cpu in
  5978. hppa*64*|ia64*)
  5979. # +Z the default
  5980. ;;
  5981. *)
  5982. lt_prog_compiler_pic='-fPIC'
  5983. ;;
  5984. esac
  5985. ;;
  5986. *)
  5987. lt_prog_compiler_pic='-fPIC'
  5988. ;;
  5989. esac
  5990. else
  5991. # PORTME Check for flag to pass linker flags through the system compiler.
  5992. case $host_os in
  5993. aix*)
  5994. lt_prog_compiler_wl='-Wl,'
  5995. if test "$host_cpu" = ia64; then
  5996. # AIX 5 now supports IA64 processor
  5997. lt_prog_compiler_static='-Bstatic'
  5998. else
  5999. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6000. fi
  6001. ;;
  6002. darwin*)
  6003. # PIC is the default on this platform
  6004. # Common symbols not allowed in MH_DYLIB files
  6005. case $cc_basename in
  6006. xlc*)
  6007. lt_prog_compiler_pic='-qnocommon'
  6008. lt_prog_compiler_wl='-Wl,'
  6009. ;;
  6010. esac
  6011. ;;
  6012. mingw* | pw32* | os2*)
  6013. # This hack is so that the source file can tell whether it is being
  6014. # built for inclusion in a dll (and should export symbols for example).
  6015. lt_prog_compiler_pic='-DDLL_EXPORT'
  6016. ;;
  6017. hpux9* | hpux10* | hpux11*)
  6018. lt_prog_compiler_wl='-Wl,'
  6019. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6020. # not for PA HP-UX.
  6021. case $host_cpu in
  6022. hppa*64*|ia64*)
  6023. # +Z the default
  6024. ;;
  6025. *)
  6026. lt_prog_compiler_pic='+Z'
  6027. ;;
  6028. esac
  6029. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6030. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6031. ;;
  6032. irix5* | irix6* | nonstopux*)
  6033. lt_prog_compiler_wl='-Wl,'
  6034. # PIC (with -KPIC) is the default.
  6035. lt_prog_compiler_static='-non_shared'
  6036. ;;
  6037. newsos6)
  6038. lt_prog_compiler_pic='-KPIC'
  6039. lt_prog_compiler_static='-Bstatic'
  6040. ;;
  6041. linux*)
  6042. case $cc_basename in
  6043. icc* | ecc*)
  6044. lt_prog_compiler_wl='-Wl,'
  6045. lt_prog_compiler_pic='-KPIC'
  6046. lt_prog_compiler_static='-static'
  6047. ;;
  6048. pgcc* | pgf77* | pgf90* | pgf95*)
  6049. # Portland Group compilers (*not* the Pentium gcc compiler,
  6050. # which looks to be a dead project)
  6051. lt_prog_compiler_wl='-Wl,'
  6052. lt_prog_compiler_pic='-fpic'
  6053. lt_prog_compiler_static='-Bstatic'
  6054. ;;
  6055. ccc*)
  6056. lt_prog_compiler_wl='-Wl,'
  6057. # All Alpha code is PIC.
  6058. lt_prog_compiler_static='-non_shared'
  6059. ;;
  6060. esac
  6061. ;;
  6062. osf3* | osf4* | osf5*)
  6063. lt_prog_compiler_wl='-Wl,'
  6064. # All OSF/1 code is PIC.
  6065. lt_prog_compiler_static='-non_shared'
  6066. ;;
  6067. solaris*)
  6068. lt_prog_compiler_pic='-KPIC'
  6069. lt_prog_compiler_static='-Bstatic'
  6070. case $cc_basename in
  6071. f77* | f90* | f95*)
  6072. lt_prog_compiler_wl='-Qoption ld ';;
  6073. *)
  6074. lt_prog_compiler_wl='-Wl,';;
  6075. esac
  6076. ;;
  6077. sunos4*)
  6078. lt_prog_compiler_wl='-Qoption ld '
  6079. lt_prog_compiler_pic='-PIC'
  6080. lt_prog_compiler_static='-Bstatic'
  6081. ;;
  6082. sysv4 | sysv4.2uw2* | sysv4.3*)
  6083. lt_prog_compiler_wl='-Wl,'
  6084. lt_prog_compiler_pic='-KPIC'
  6085. lt_prog_compiler_static='-Bstatic'
  6086. ;;
  6087. sysv4*MP*)
  6088. if test -d /usr/nec ;then
  6089. lt_prog_compiler_pic='-Kconform_pic'
  6090. lt_prog_compiler_static='-Bstatic'
  6091. fi
  6092. ;;
  6093. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6094. lt_prog_compiler_wl='-Wl,'
  6095. lt_prog_compiler_pic='-KPIC'
  6096. lt_prog_compiler_static='-Bstatic'
  6097. ;;
  6098. unicos*)
  6099. lt_prog_compiler_wl='-Wl,'
  6100. lt_prog_compiler_can_build_shared=no
  6101. ;;
  6102. uts4*)
  6103. lt_prog_compiler_pic='-pic'
  6104. lt_prog_compiler_static='-Bstatic'
  6105. ;;
  6106. *)
  6107. lt_prog_compiler_can_build_shared=no
  6108. ;;
  6109. esac
  6110. fi
  6111. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6112. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6113. #
  6114. # Check to make sure the PIC flag actually works.
  6115. #
  6116. if test -n "$lt_prog_compiler_pic"; then
  6117. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6118. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6119. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6120. echo $ECHO_N "(cached) $ECHO_C" >&6
  6121. else
  6122. lt_prog_compiler_pic_works=no
  6123. ac_outfile=conftest.$ac_objext
  6124. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6125. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6126. # Insert the option either (1) after the last *FLAGS variable, or
  6127. # (2) before a word containing "conftest.", or (3) at the end.
  6128. # Note that $ac_compile itself does not contain backslashes and begins
  6129. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6130. # The option is referenced via a variable to avoid confusing sed.
  6131. lt_compile=`echo "$ac_compile" | $SED \
  6132. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6133. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6134. -e 's:$: $lt_compiler_flag:'`
  6135. (eval echo "\"\$as_me:6800: $lt_compile\"" >&5)
  6136. (eval "$lt_compile" 2>conftest.err)
  6137. ac_status=$?
  6138. cat conftest.err >&5
  6139. echo "$as_me:6804: \$? = $ac_status" >&5
  6140. if (exit $ac_status) && test -s "$ac_outfile"; then
  6141. # The compiler can only warn and ignore the option if not recognized
  6142. # So say no if there are warnings other than the usual output.
  6143. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6144. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6145. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6146. lt_prog_compiler_pic_works=yes
  6147. fi
  6148. fi
  6149. $rm conftest*
  6150. fi
  6151. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6152. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6153. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6154. case $lt_prog_compiler_pic in
  6155. "" | " "*) ;;
  6156. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6157. esac
  6158. else
  6159. lt_prog_compiler_pic=
  6160. lt_prog_compiler_can_build_shared=no
  6161. fi
  6162. fi
  6163. case $host_os in
  6164. # For platforms which do not support PIC, -DPIC is meaningless:
  6165. *djgpp*)
  6166. lt_prog_compiler_pic=
  6167. ;;
  6168. *)
  6169. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6170. ;;
  6171. esac
  6172. #
  6173. # Check to make sure the static flag actually works.
  6174. #
  6175. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6176. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6177. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6178. if test "${lt_prog_compiler_static_works+set}" = set; then
  6179. echo $ECHO_N "(cached) $ECHO_C" >&6
  6180. else
  6181. lt_prog_compiler_static_works=no
  6182. save_LDFLAGS="$LDFLAGS"
  6183. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6184. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6185. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6186. # The linker can only warn and ignore the option if not recognized
  6187. # So say no if there are warnings
  6188. if test -s conftest.err; then
  6189. # Append any errors to the config.log.
  6190. cat conftest.err 1>&5
  6191. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6192. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6193. if diff conftest.exp conftest.er2 >/dev/null; then
  6194. lt_prog_compiler_static_works=yes
  6195. fi
  6196. else
  6197. lt_prog_compiler_static_works=yes
  6198. fi
  6199. fi
  6200. $rm conftest*
  6201. LDFLAGS="$save_LDFLAGS"
  6202. fi
  6203. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6204. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6205. if test x"$lt_prog_compiler_static_works" = xyes; then
  6206. :
  6207. else
  6208. lt_prog_compiler_static=
  6209. fi
  6210. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6211. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6212. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6213. echo $ECHO_N "(cached) $ECHO_C" >&6
  6214. else
  6215. lt_cv_prog_compiler_c_o=no
  6216. $rm -r conftest 2>/dev/null
  6217. mkdir conftest
  6218. cd conftest
  6219. mkdir out
  6220. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6221. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6222. # Insert the option either (1) after the last *FLAGS variable, or
  6223. # (2) before a word containing "conftest.", or (3) at the end.
  6224. # Note that $ac_compile itself does not contain backslashes and begins
  6225. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6226. lt_compile=`echo "$ac_compile" | $SED \
  6227. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6228. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6229. -e 's:$: $lt_compiler_flag:'`
  6230. (eval echo "\"\$as_me:6904: $lt_compile\"" >&5)
  6231. (eval "$lt_compile" 2>out/conftest.err)
  6232. ac_status=$?
  6233. cat out/conftest.err >&5
  6234. echo "$as_me:6908: \$? = $ac_status" >&5
  6235. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6236. then
  6237. # The compiler can only warn and ignore the option if not recognized
  6238. # So say no if there are warnings
  6239. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6240. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6241. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6242. lt_cv_prog_compiler_c_o=yes
  6243. fi
  6244. fi
  6245. chmod u+w . 2>&5
  6246. $rm conftest*
  6247. # SGI C++ compiler will create directory out/ii_files/ for
  6248. # template instantiation
  6249. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6250. $rm out/* && rmdir out
  6251. cd ..
  6252. rmdir conftest
  6253. $rm conftest*
  6254. fi
  6255. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6256. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6257. hard_links="nottested"
  6258. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6259. # do not overwrite the value of need_locks provided by the user
  6260. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6261. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6262. hard_links=yes
  6263. $rm conftest*
  6264. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6265. touch conftest.a
  6266. ln conftest.a conftest.b 2>&5 || hard_links=no
  6267. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6268. echo "$as_me:$LINENO: result: $hard_links" >&5
  6269. echo "${ECHO_T}$hard_links" >&6
  6270. if test "$hard_links" = no; then
  6271. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6272. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6273. need_locks=warn
  6274. fi
  6275. else
  6276. need_locks=no
  6277. fi
  6278. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6279. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6280. runpath_var=
  6281. allow_undefined_flag=
  6282. enable_shared_with_static_runtimes=no
  6283. archive_cmds=
  6284. archive_expsym_cmds=
  6285. old_archive_From_new_cmds=
  6286. old_archive_from_expsyms_cmds=
  6287. export_dynamic_flag_spec=
  6288. whole_archive_flag_spec=
  6289. thread_safe_flag_spec=
  6290. hardcode_libdir_flag_spec=
  6291. hardcode_libdir_flag_spec_ld=
  6292. hardcode_libdir_separator=
  6293. hardcode_direct=no
  6294. hardcode_minus_L=no
  6295. hardcode_shlibpath_var=unsupported
  6296. link_all_deplibs=unknown
  6297. hardcode_automatic=no
  6298. module_cmds=
  6299. module_expsym_cmds=
  6300. always_export_symbols=no
  6301. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6302. # include_expsyms should be a list of space-separated symbols to be *always*
  6303. # included in the symbol list
  6304. include_expsyms=
  6305. # exclude_expsyms can be an extended regexp of symbols to exclude
  6306. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6307. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6308. # as well as any symbol that contains `d'.
  6309. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6310. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6311. # platforms (ab)use it in PIC code, but their linkers get confused if
  6312. # the symbol is explicitly referenced. Since portable code cannot
  6313. # rely on this symbol name, it's probably fine to never include it in
  6314. # preloaded symbol tables.
  6315. extract_expsyms_cmds=
  6316. # Just being paranoid about ensuring that cc_basename is set.
  6317. for cc_temp in $compiler""; do
  6318. case $cc_temp in
  6319. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6320. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6321. \-*) ;;
  6322. *) break;;
  6323. esac
  6324. done
  6325. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6326. case $host_os in
  6327. cygwin* | mingw* | pw32*)
  6328. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6329. # When not using gcc, we currently assume that we are using
  6330. # Microsoft Visual C++.
  6331. if test "$GCC" != yes; then
  6332. with_gnu_ld=no
  6333. fi
  6334. ;;
  6335. interix*)
  6336. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6337. with_gnu_ld=yes
  6338. ;;
  6339. openbsd*)
  6340. with_gnu_ld=no
  6341. ;;
  6342. esac
  6343. ld_shlibs=yes
  6344. if test "$with_gnu_ld" = yes; then
  6345. # If archive_cmds runs LD, not CC, wlarc should be empty
  6346. wlarc='${wl}'
  6347. # Set some defaults for GNU ld with shared library support. These
  6348. # are reset later if shared libraries are not supported. Putting them
  6349. # here allows them to be overridden if necessary.
  6350. runpath_var=LD_RUN_PATH
  6351. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6352. export_dynamic_flag_spec='${wl}--export-dynamic'
  6353. # ancient GNU ld didn't support --whole-archive et. al.
  6354. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6355. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6356. else
  6357. whole_archive_flag_spec=
  6358. fi
  6359. supports_anon_versioning=no
  6360. case `$LD -v 2>/dev/null` in
  6361. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6362. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6363. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6364. *\ 2.11.*) ;; # other 2.11 versions
  6365. *) supports_anon_versioning=yes ;;
  6366. esac
  6367. # See if GNU ld supports shared libraries.
  6368. case $host_os in
  6369. aix3* | aix4* | aix5*)
  6370. # On AIX/PPC, the GNU linker is very broken
  6371. if test "$host_cpu" != ia64; then
  6372. ld_shlibs=no
  6373. cat <<EOF 1>&2
  6374. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6375. *** to be unable to reliably create shared libraries on AIX.
  6376. *** Therefore, libtool is disabling shared libraries support. If you
  6377. *** really care for shared libraries, you may want to modify your PATH
  6378. *** so that a non-GNU linker is found, and then restart.
  6379. EOF
  6380. fi
  6381. ;;
  6382. amigaos*)
  6383. 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)'
  6384. hardcode_libdir_flag_spec='-L$libdir'
  6385. hardcode_minus_L=yes
  6386. # Samuel A. Falvo II <[email protected]> reports
  6387. # that the semantics of dynamic libraries on AmigaOS, at least up
  6388. # to version 4, is to share data among multiple programs linked
  6389. # with the same dynamic library. Since this doesn't match the
  6390. # behavior of shared libraries on other platforms, we can't use
  6391. # them.
  6392. ld_shlibs=no
  6393. ;;
  6394. beos*)
  6395. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6396. allow_undefined_flag=unsupported
  6397. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6398. # support --undefined. This deserves some investigation. FIXME
  6399. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6400. else
  6401. ld_shlibs=no
  6402. fi
  6403. ;;
  6404. cygwin* | mingw* | pw32*)
  6405. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6406. # as there is no search path for DLLs.
  6407. hardcode_libdir_flag_spec='-L$libdir'
  6408. allow_undefined_flag=unsupported
  6409. always_export_symbols=no
  6410. enable_shared_with_static_runtimes=yes
  6411. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6412. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6413. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6414. # If the export-symbols file already is a .def file (1st line
  6415. # is EXPORTS), use it as is; otherwise, prepend...
  6416. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6417. cp $export_symbols $output_objdir/$soname.def;
  6418. else
  6419. echo EXPORTS > $output_objdir/$soname.def;
  6420. cat $export_symbols >> $output_objdir/$soname.def;
  6421. fi~
  6422. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6423. else
  6424. ld_shlibs=no
  6425. fi
  6426. ;;
  6427. interix3*)
  6428. hardcode_direct=no
  6429. hardcode_shlibpath_var=no
  6430. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6431. export_dynamic_flag_spec='${wl}-E'
  6432. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6433. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6434. # default) and relocated if they conflict, which is a slow very memory
  6435. # consuming and fragmenting process. To avoid this, we pick a random,
  6436. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6437. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6438. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6439. 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'
  6440. ;;
  6441. linux*)
  6442. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6443. tmp_addflag=
  6444. case $cc_basename,$host_cpu in
  6445. pgcc*) # Portland Group C compiler
  6446. 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'
  6447. tmp_addflag=' $pic_flag'
  6448. ;;
  6449. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6450. 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'
  6451. tmp_addflag=' $pic_flag -Mnomain' ;;
  6452. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6453. tmp_addflag=' -i_dynamic' ;;
  6454. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6455. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6456. ifc* | ifort*) # Intel Fortran compiler
  6457. tmp_addflag=' -nofor_main' ;;
  6458. esac
  6459. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6460. if test $supports_anon_versioning = yes; then
  6461. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6462. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6463. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6464. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6465. fi
  6466. else
  6467. ld_shlibs=no
  6468. fi
  6469. ;;
  6470. netbsd*)
  6471. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6472. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6473. wlarc=
  6474. else
  6475. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6476. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6477. fi
  6478. ;;
  6479. solaris*)
  6480. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6481. ld_shlibs=no
  6482. cat <<EOF 1>&2
  6483. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6484. *** create shared libraries on Solaris systems. Therefore, libtool
  6485. *** is disabling shared libraries support. We urge you to upgrade GNU
  6486. *** binutils to release 2.9.1 or newer. Another option is to modify
  6487. *** your PATH or compiler configuration so that the native linker is
  6488. *** used, and then restart.
  6489. EOF
  6490. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6491. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6492. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6493. else
  6494. ld_shlibs=no
  6495. fi
  6496. ;;
  6497. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6498. case `$LD -v 2>&1` in
  6499. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6500. ld_shlibs=no
  6501. cat <<_LT_EOF 1>&2
  6502. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6503. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6504. *** is disabling shared libraries support. We urge you to upgrade GNU
  6505. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6506. *** your PATH or compiler configuration so that the native linker is
  6507. *** used, and then restart.
  6508. _LT_EOF
  6509. ;;
  6510. *)
  6511. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6512. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6513. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6514. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6515. else
  6516. ld_shlibs=no
  6517. fi
  6518. ;;
  6519. esac
  6520. ;;
  6521. sunos4*)
  6522. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6523. wlarc=
  6524. hardcode_direct=yes
  6525. hardcode_shlibpath_var=no
  6526. ;;
  6527. *)
  6528. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6529. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6530. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6531. else
  6532. ld_shlibs=no
  6533. fi
  6534. ;;
  6535. esac
  6536. if test "$ld_shlibs" = no; then
  6537. runpath_var=
  6538. hardcode_libdir_flag_spec=
  6539. export_dynamic_flag_spec=
  6540. whole_archive_flag_spec=
  6541. fi
  6542. else
  6543. # PORTME fill in a description of your system's linker (not GNU ld)
  6544. case $host_os in
  6545. aix3*)
  6546. allow_undefined_flag=unsupported
  6547. always_export_symbols=yes
  6548. 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'
  6549. # Note: this linker hardcodes the directories in LIBPATH if there
  6550. # are no directories specified by -L.
  6551. hardcode_minus_L=yes
  6552. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6553. # Neither direct hardcoding nor static linking is supported with a
  6554. # broken collect2.
  6555. hardcode_direct=unsupported
  6556. fi
  6557. ;;
  6558. aix4* | aix5*)
  6559. if test "$host_cpu" = ia64; then
  6560. # On IA64, the linker does run time linking by default, so we don't
  6561. # have to do anything special.
  6562. aix_use_runtimelinking=no
  6563. exp_sym_flag='-Bexport'
  6564. no_entry_flag=""
  6565. else
  6566. # If we're using GNU nm, then we don't want the "-C" option.
  6567. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6568. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6569. 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'
  6570. else
  6571. 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'
  6572. fi
  6573. aix_use_runtimelinking=no
  6574. # Test if we are trying to use run time linking or normal
  6575. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6576. # need to do runtime linking.
  6577. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6578. for ld_flag in $LDFLAGS; do
  6579. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6580. aix_use_runtimelinking=yes
  6581. break
  6582. fi
  6583. done
  6584. ;;
  6585. esac
  6586. exp_sym_flag='-bexport'
  6587. no_entry_flag='-bnoentry'
  6588. fi
  6589. # When large executables or shared objects are built, AIX ld can
  6590. # have problems creating the table of contents. If linking a library
  6591. # or program results in "error TOC overflow" add -mminimal-toc to
  6592. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6593. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6594. archive_cmds=''
  6595. hardcode_direct=yes
  6596. hardcode_libdir_separator=':'
  6597. link_all_deplibs=yes
  6598. if test "$GCC" = yes; then
  6599. case $host_os in aix4.[012]|aix4.[012].*)
  6600. # We only want to do this on AIX 4.2 and lower, the check
  6601. # below for broken collect2 doesn't work under 4.3+
  6602. collect2name=`${CC} -print-prog-name=collect2`
  6603. if test -f "$collect2name" && \
  6604. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6605. then
  6606. # We have reworked collect2
  6607. hardcode_direct=yes
  6608. else
  6609. # We have old collect2
  6610. hardcode_direct=unsupported
  6611. # It fails to find uninstalled libraries when the uninstalled
  6612. # path is not listed in the libpath. Setting hardcode_minus_L
  6613. # to unsupported forces relinking
  6614. hardcode_minus_L=yes
  6615. hardcode_libdir_flag_spec='-L$libdir'
  6616. hardcode_libdir_separator=
  6617. fi
  6618. ;;
  6619. esac
  6620. shared_flag='-shared'
  6621. if test "$aix_use_runtimelinking" = yes; then
  6622. shared_flag="$shared_flag "'${wl}-G'
  6623. fi
  6624. else
  6625. # not using gcc
  6626. if test "$host_cpu" = ia64; then
  6627. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6628. # chokes on -Wl,-G. The following line is correct:
  6629. shared_flag='-G'
  6630. else
  6631. if test "$aix_use_runtimelinking" = yes; then
  6632. shared_flag='${wl}-G'
  6633. else
  6634. shared_flag='${wl}-bM:SRE'
  6635. fi
  6636. fi
  6637. fi
  6638. # It seems that -bexpall does not export symbols beginning with
  6639. # underscore (_), so it is better to generate a list of symbols to export.
  6640. always_export_symbols=yes
  6641. if test "$aix_use_runtimelinking" = yes; then
  6642. # Warning - without using the other runtime loading flags (-brtl),
  6643. # -berok will link without error, but may produce a broken library.
  6644. allow_undefined_flag='-berok'
  6645. # Determine the default libpath from the value encoded in an empty executable.
  6646. cat >conftest.$ac_ext <<_ACEOF
  6647. /* confdefs.h. */
  6648. _ACEOF
  6649. cat confdefs.h >>conftest.$ac_ext
  6650. cat >>conftest.$ac_ext <<_ACEOF
  6651. /* end confdefs.h. */
  6652. int
  6653. main ()
  6654. {
  6655. ;
  6656. return 0;
  6657. }
  6658. _ACEOF
  6659. rm -f conftest.$ac_objext conftest$ac_exeext
  6660. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6661. (eval $ac_link) 2>conftest.er1
  6662. ac_status=$?
  6663. grep -v '^ *+' conftest.er1 >conftest.err
  6664. rm -f conftest.er1
  6665. cat conftest.err >&5
  6666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6667. (exit $ac_status); } &&
  6668. { ac_try='test -z "$ac_c_werror_flag"
  6669. || test ! -s conftest.err'
  6670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6671. (eval $ac_try) 2>&5
  6672. ac_status=$?
  6673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6674. (exit $ac_status); }; } &&
  6675. { ac_try='test -s conftest$ac_exeext'
  6676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6677. (eval $ac_try) 2>&5
  6678. ac_status=$?
  6679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6680. (exit $ac_status); }; }; then
  6681. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6682. }'`
  6683. # Check for a 64-bit object if we didn't find anything.
  6684. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6685. }'`; fi
  6686. else
  6687. echo "$as_me: failed program was:" >&5
  6688. sed 's/^/| /' conftest.$ac_ext >&5
  6689. fi
  6690. rm -f conftest.err conftest.$ac_objext \
  6691. conftest$ac_exeext conftest.$ac_ext
  6692. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6693. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6694. 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"
  6695. else
  6696. if test "$host_cpu" = ia64; then
  6697. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6698. allow_undefined_flag="-z nodefs"
  6699. 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"
  6700. else
  6701. # Determine the default libpath from the value encoded in an empty executable.
  6702. cat >conftest.$ac_ext <<_ACEOF
  6703. /* confdefs.h. */
  6704. _ACEOF
  6705. cat confdefs.h >>conftest.$ac_ext
  6706. cat >>conftest.$ac_ext <<_ACEOF
  6707. /* end confdefs.h. */
  6708. int
  6709. main ()
  6710. {
  6711. ;
  6712. return 0;
  6713. }
  6714. _ACEOF
  6715. rm -f conftest.$ac_objext conftest$ac_exeext
  6716. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6717. (eval $ac_link) 2>conftest.er1
  6718. ac_status=$?
  6719. grep -v '^ *+' conftest.er1 >conftest.err
  6720. rm -f conftest.er1
  6721. cat conftest.err >&5
  6722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6723. (exit $ac_status); } &&
  6724. { ac_try='test -z "$ac_c_werror_flag"
  6725. || test ! -s conftest.err'
  6726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6727. (eval $ac_try) 2>&5
  6728. ac_status=$?
  6729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6730. (exit $ac_status); }; } &&
  6731. { ac_try='test -s conftest$ac_exeext'
  6732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6733. (eval $ac_try) 2>&5
  6734. ac_status=$?
  6735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6736. (exit $ac_status); }; }; then
  6737. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6738. }'`
  6739. # Check for a 64-bit object if we didn't find anything.
  6740. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6741. }'`; fi
  6742. else
  6743. echo "$as_me: failed program was:" >&5
  6744. sed 's/^/| /' conftest.$ac_ext >&5
  6745. fi
  6746. rm -f conftest.err conftest.$ac_objext \
  6747. conftest$ac_exeext conftest.$ac_ext
  6748. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6749. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6750. # Warning - without using the other run time loading flags,
  6751. # -berok will link without error, but may produce a broken library.
  6752. no_undefined_flag=' ${wl}-bernotok'
  6753. allow_undefined_flag=' ${wl}-berok'
  6754. # Exported symbols can be pulled into shared objects from archives
  6755. whole_archive_flag_spec='$convenience'
  6756. archive_cmds_need_lc=yes
  6757. # This is similar to how AIX traditionally builds its shared libraries.
  6758. 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'
  6759. fi
  6760. fi
  6761. ;;
  6762. amigaos*)
  6763. 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)'
  6764. hardcode_libdir_flag_spec='-L$libdir'
  6765. hardcode_minus_L=yes
  6766. # see comment about different semantics on the GNU ld section
  6767. ld_shlibs=no
  6768. ;;
  6769. bsdi[45]*)
  6770. export_dynamic_flag_spec=-rdynamic
  6771. ;;
  6772. cygwin* | mingw* | pw32*)
  6773. # When not using gcc, we currently assume that we are using
  6774. # Microsoft Visual C++.
  6775. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6776. # no search path for DLLs.
  6777. hardcode_libdir_flag_spec=' '
  6778. allow_undefined_flag=unsupported
  6779. # Tell ltmain to make .lib files, not .a files.
  6780. libext=lib
  6781. # Tell ltmain to make .dll files, not .so files.
  6782. shrext_cmds=".dll"
  6783. # FIXME: Setting linknames here is a bad hack.
  6784. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6785. # The linker will automatically build a .lib file if we build a DLL.
  6786. old_archive_From_new_cmds='true'
  6787. # FIXME: Should let the user specify the lib program.
  6788. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6789. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6790. enable_shared_with_static_runtimes=yes
  6791. ;;
  6792. darwin* | rhapsody*)
  6793. case $host_os in
  6794. rhapsody* | darwin1.[012])
  6795. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6796. ;;
  6797. *) # Darwin 1.3 on
  6798. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6799. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6800. else
  6801. case ${MACOSX_DEPLOYMENT_TARGET} in
  6802. 10.[012])
  6803. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6804. ;;
  6805. 10.*)
  6806. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6807. ;;
  6808. esac
  6809. fi
  6810. ;;
  6811. esac
  6812. archive_cmds_need_lc=no
  6813. hardcode_direct=no
  6814. hardcode_automatic=yes
  6815. hardcode_shlibpath_var=unsupported
  6816. whole_archive_flag_spec=''
  6817. link_all_deplibs=yes
  6818. if test "$GCC" = yes ; then
  6819. output_verbose_link_cmd='echo'
  6820. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6821. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6822. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6823. 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}'
  6824. 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}'
  6825. else
  6826. case $cc_basename in
  6827. xlc*)
  6828. output_verbose_link_cmd='echo'
  6829. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6830. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6831. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6832. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6833. 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}'
  6834. ;;
  6835. *)
  6836. ld_shlibs=no
  6837. ;;
  6838. esac
  6839. fi
  6840. ;;
  6841. dgux*)
  6842. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6843. hardcode_libdir_flag_spec='-L$libdir'
  6844. hardcode_shlibpath_var=no
  6845. ;;
  6846. freebsd1*)
  6847. ld_shlibs=no
  6848. ;;
  6849. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6850. # support. Future versions do this automatically, but an explicit c++rt0.o
  6851. # does not break anything, and helps significantly (at the cost of a little
  6852. # extra space).
  6853. freebsd2.2*)
  6854. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6855. hardcode_libdir_flag_spec='-R$libdir'
  6856. hardcode_direct=yes
  6857. hardcode_shlibpath_var=no
  6858. ;;
  6859. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6860. freebsd2*)
  6861. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6862. hardcode_direct=yes
  6863. hardcode_minus_L=yes
  6864. hardcode_shlibpath_var=no
  6865. ;;
  6866. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6867. freebsd* | kfreebsd*-gnu | dragonfly*)
  6868. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6869. hardcode_libdir_flag_spec='-R$libdir'
  6870. hardcode_direct=yes
  6871. hardcode_shlibpath_var=no
  6872. ;;
  6873. hpux9*)
  6874. if test "$GCC" = yes; then
  6875. 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'
  6876. else
  6877. 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'
  6878. fi
  6879. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6880. hardcode_libdir_separator=:
  6881. hardcode_direct=yes
  6882. # hardcode_minus_L: Not really in the search PATH,
  6883. # but as the default location of the library.
  6884. hardcode_minus_L=yes
  6885. export_dynamic_flag_spec='${wl}-E'
  6886. ;;
  6887. hpux10*)
  6888. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6889. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6890. else
  6891. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6892. fi
  6893. if test "$with_gnu_ld" = no; then
  6894. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6895. hardcode_libdir_separator=:
  6896. hardcode_direct=yes
  6897. export_dynamic_flag_spec='${wl}-E'
  6898. # hardcode_minus_L: Not really in the search PATH,
  6899. # but as the default location of the library.
  6900. hardcode_minus_L=yes
  6901. fi
  6902. ;;
  6903. hpux11*)
  6904. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6905. case $host_cpu in
  6906. hppa*64*)
  6907. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6908. ;;
  6909. ia64*)
  6910. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6911. ;;
  6912. *)
  6913. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6914. ;;
  6915. esac
  6916. else
  6917. case $host_cpu in
  6918. hppa*64*)
  6919. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6920. ;;
  6921. ia64*)
  6922. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6923. ;;
  6924. *)
  6925. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6926. ;;
  6927. esac
  6928. fi
  6929. if test "$with_gnu_ld" = no; then
  6930. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6931. hardcode_libdir_separator=:
  6932. case $host_cpu in
  6933. hppa*64*|ia64*)
  6934. hardcode_libdir_flag_spec_ld='+b $libdir'
  6935. hardcode_direct=no
  6936. hardcode_shlibpath_var=no
  6937. ;;
  6938. *)
  6939. hardcode_direct=yes
  6940. export_dynamic_flag_spec='${wl}-E'
  6941. # hardcode_minus_L: Not really in the search PATH,
  6942. # but as the default location of the library.
  6943. hardcode_minus_L=yes
  6944. ;;
  6945. esac
  6946. fi
  6947. ;;
  6948. irix5* | irix6* | nonstopux*)
  6949. if test "$GCC" = yes; then
  6950. 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'
  6951. else
  6952. 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'
  6953. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6954. fi
  6955. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6956. hardcode_libdir_separator=:
  6957. link_all_deplibs=yes
  6958. ;;
  6959. netbsd*)
  6960. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6961. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6962. else
  6963. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6964. fi
  6965. hardcode_libdir_flag_spec='-R$libdir'
  6966. hardcode_direct=yes
  6967. hardcode_shlibpath_var=no
  6968. ;;
  6969. newsos6)
  6970. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6971. hardcode_direct=yes
  6972. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6973. hardcode_libdir_separator=:
  6974. hardcode_shlibpath_var=no
  6975. ;;
  6976. openbsd*)
  6977. hardcode_direct=yes
  6978. hardcode_shlibpath_var=no
  6979. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6980. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6981. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6982. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6983. export_dynamic_flag_spec='${wl}-E'
  6984. else
  6985. case $host_os in
  6986. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6987. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6988. hardcode_libdir_flag_spec='-R$libdir'
  6989. ;;
  6990. *)
  6991. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6992. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6993. ;;
  6994. esac
  6995. fi
  6996. ;;
  6997. os2*)
  6998. hardcode_libdir_flag_spec='-L$libdir'
  6999. hardcode_minus_L=yes
  7000. allow_undefined_flag=unsupported
  7001. 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'
  7002. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7003. ;;
  7004. osf3*)
  7005. if test "$GCC" = yes; then
  7006. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7007. 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'
  7008. else
  7009. allow_undefined_flag=' -expect_unresolved \*'
  7010. 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'
  7011. fi
  7012. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7013. hardcode_libdir_separator=:
  7014. ;;
  7015. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7016. if test "$GCC" = yes; then
  7017. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7018. 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'
  7019. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7020. else
  7021. allow_undefined_flag=' -expect_unresolved \*'
  7022. 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'
  7023. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7024. $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'
  7025. # Both c and cxx compiler support -rpath directly
  7026. hardcode_libdir_flag_spec='-rpath $libdir'
  7027. fi
  7028. hardcode_libdir_separator=:
  7029. ;;
  7030. solaris*)
  7031. no_undefined_flag=' -z text'
  7032. if test "$GCC" = yes; then
  7033. wlarc='${wl}'
  7034. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7035. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7036. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7037. else
  7038. wlarc=''
  7039. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7040. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7041. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7042. fi
  7043. hardcode_libdir_flag_spec='-R$libdir'
  7044. hardcode_shlibpath_var=no
  7045. case $host_os in
  7046. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7047. *)
  7048. # The compiler driver will combine linker options so we
  7049. # cannot just pass the convience library names through
  7050. # without $wl, iff we do not link with $LD.
  7051. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7052. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7053. case $wlarc in
  7054. '')
  7055. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7056. *)
  7057. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  7058. esac ;;
  7059. esac
  7060. link_all_deplibs=yes
  7061. ;;
  7062. sunos4*)
  7063. if test "x$host_vendor" = xsequent; then
  7064. # Use $CC to link under sequent, because it throws in some extra .o
  7065. # files that make .init and .fini sections work.
  7066. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7067. else
  7068. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7069. fi
  7070. hardcode_libdir_flag_spec='-L$libdir'
  7071. hardcode_direct=yes
  7072. hardcode_minus_L=yes
  7073. hardcode_shlibpath_var=no
  7074. ;;
  7075. sysv4)
  7076. case $host_vendor in
  7077. sni)
  7078. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7079. hardcode_direct=yes # is this really true???
  7080. ;;
  7081. siemens)
  7082. ## LD is ld it makes a PLAMLIB
  7083. ## CC just makes a GrossModule.
  7084. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7085. reload_cmds='$CC -r -o $output$reload_objs'
  7086. hardcode_direct=no
  7087. ;;
  7088. motorola)
  7089. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7090. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7091. ;;
  7092. esac
  7093. runpath_var='LD_RUN_PATH'
  7094. hardcode_shlibpath_var=no
  7095. ;;
  7096. sysv4.3*)
  7097. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7098. hardcode_shlibpath_var=no
  7099. export_dynamic_flag_spec='-Bexport'
  7100. ;;
  7101. sysv4*MP*)
  7102. if test -d /usr/nec; then
  7103. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7104. hardcode_shlibpath_var=no
  7105. runpath_var=LD_RUN_PATH
  7106. hardcode_runpath_var=yes
  7107. ld_shlibs=yes
  7108. fi
  7109. ;;
  7110. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7111. no_undefined_flag='${wl}-z,text'
  7112. archive_cmds_need_lc=no
  7113. hardcode_shlibpath_var=no
  7114. runpath_var='LD_RUN_PATH'
  7115. if test "$GCC" = yes; then
  7116. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7117. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7118. else
  7119. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7120. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7121. fi
  7122. ;;
  7123. sysv5* | sco3.2v5* | sco5v6*)
  7124. # Note: We can NOT use -z defs as we might desire, because we do not
  7125. # link with -lc, and that would cause any symbols used from libc to
  7126. # always be unresolved, which means just about no library would
  7127. # ever link correctly. If we're not using GNU ld we use -z text
  7128. # though, which does catch some bad symbols but isn't as heavy-handed
  7129. # as -z defs.
  7130. no_undefined_flag='${wl}-z,text'
  7131. allow_undefined_flag='${wl}-z,nodefs'
  7132. archive_cmds_need_lc=no
  7133. hardcode_shlibpath_var=no
  7134. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7135. hardcode_libdir_separator=':'
  7136. link_all_deplibs=yes
  7137. export_dynamic_flag_spec='${wl}-Bexport'
  7138. runpath_var='LD_RUN_PATH'
  7139. if test "$GCC" = yes; then
  7140. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7141. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7142. else
  7143. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7144. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7145. fi
  7146. ;;
  7147. uts4*)
  7148. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7149. hardcode_libdir_flag_spec='-L$libdir'
  7150. hardcode_shlibpath_var=no
  7151. ;;
  7152. *)
  7153. ld_shlibs=no
  7154. ;;
  7155. esac
  7156. fi
  7157. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7158. echo "${ECHO_T}$ld_shlibs" >&6
  7159. test "$ld_shlibs" = no && can_build_shared=no
  7160. #
  7161. # Do we need to explicitly link libc?
  7162. #
  7163. case "x$archive_cmds_need_lc" in
  7164. x|xyes)
  7165. # Assume -lc should be added
  7166. archive_cmds_need_lc=yes
  7167. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7168. case $archive_cmds in
  7169. *'~'*)
  7170. # FIXME: we may have to deal with multi-command sequences.
  7171. ;;
  7172. '$CC '*)
  7173. # Test whether the compiler implicitly links with -lc since on some
  7174. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7175. # to ld, don't add -lc before -lgcc.
  7176. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7177. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7178. $rm conftest*
  7179. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7180. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7181. (eval $ac_compile) 2>&5
  7182. ac_status=$?
  7183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7184. (exit $ac_status); } 2>conftest.err; then
  7185. soname=conftest
  7186. lib=conftest
  7187. libobjs=conftest.$ac_objext
  7188. deplibs=
  7189. wl=$lt_prog_compiler_wl
  7190. pic_flag=$lt_prog_compiler_pic
  7191. compiler_flags=-v
  7192. linker_flags=-v
  7193. verstring=
  7194. output_objdir=.
  7195. libname=conftest
  7196. lt_save_allow_undefined_flag=$allow_undefined_flag
  7197. allow_undefined_flag=
  7198. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7199. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7200. ac_status=$?
  7201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7202. (exit $ac_status); }
  7203. then
  7204. archive_cmds_need_lc=no
  7205. else
  7206. archive_cmds_need_lc=yes
  7207. fi
  7208. allow_undefined_flag=$lt_save_allow_undefined_flag
  7209. else
  7210. cat conftest.err 1>&5
  7211. fi
  7212. $rm conftest*
  7213. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7214. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7215. ;;
  7216. esac
  7217. fi
  7218. ;;
  7219. esac
  7220. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7221. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7222. library_names_spec=
  7223. libname_spec='lib$name'
  7224. soname_spec=
  7225. shrext_cmds=".so"
  7226. postinstall_cmds=
  7227. postuninstall_cmds=
  7228. finish_cmds=
  7229. finish_eval=
  7230. shlibpath_var=
  7231. shlibpath_overrides_runpath=unknown
  7232. version_type=none
  7233. dynamic_linker="$host_os ld.so"
  7234. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7235. if test "$GCC" = yes; then
  7236. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7237. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7238. # if the path contains ";" then we assume it to be the separator
  7239. # otherwise default to the standard path separator (i.e. ":") - it is
  7240. # assumed that no part of a normal pathname contains ";" but that should
  7241. # okay in the real world where ";" in dirpaths is itself problematic.
  7242. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7243. else
  7244. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7245. fi
  7246. else
  7247. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7248. fi
  7249. need_lib_prefix=unknown
  7250. hardcode_into_libs=no
  7251. # when you set need_version to no, make sure it does not cause -set_version
  7252. # flags to be left without arguments
  7253. need_version=unknown
  7254. case $host_os in
  7255. aix3*)
  7256. version_type=linux
  7257. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7258. shlibpath_var=LIBPATH
  7259. # AIX 3 has no versioning support, so we append a major version to the name.
  7260. soname_spec='${libname}${release}${shared_ext}$major'
  7261. ;;
  7262. aix4* | aix5*)
  7263. version_type=linux
  7264. need_lib_prefix=no
  7265. need_version=no
  7266. hardcode_into_libs=yes
  7267. if test "$host_cpu" = ia64; then
  7268. # AIX 5 supports IA64
  7269. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7270. shlibpath_var=LD_LIBRARY_PATH
  7271. else
  7272. # With GCC up to 2.95.x, collect2 would create an import file
  7273. # for dependence libraries. The import file would start with
  7274. # the line `#! .'. This would cause the generated library to
  7275. # depend on `.', always an invalid library. This was fixed in
  7276. # development snapshots of GCC prior to 3.0.
  7277. case $host_os in
  7278. aix4 | aix4.[01] | aix4.[01].*)
  7279. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7280. echo ' yes '
  7281. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7282. :
  7283. else
  7284. can_build_shared=no
  7285. fi
  7286. ;;
  7287. esac
  7288. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7289. # soname into executable. Probably we can add versioning support to
  7290. # collect2, so additional links can be useful in future.
  7291. if test "$aix_use_runtimelinking" = yes; then
  7292. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7293. # instead of lib<name>.a to let people know that these are not
  7294. # typical AIX shared libraries.
  7295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7296. else
  7297. # We preserve .a as extension for shared libraries through AIX4.2
  7298. # and later when we are not doing run time linking.
  7299. library_names_spec='${libname}${release}.a $libname.a'
  7300. soname_spec='${libname}${release}${shared_ext}$major'
  7301. fi
  7302. shlibpath_var=LIBPATH
  7303. fi
  7304. ;;
  7305. amigaos*)
  7306. library_names_spec='$libname.ixlibrary $libname.a'
  7307. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7308. 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'
  7309. ;;
  7310. beos*)
  7311. library_names_spec='${libname}${shared_ext}'
  7312. dynamic_linker="$host_os ld.so"
  7313. shlibpath_var=LIBRARY_PATH
  7314. ;;
  7315. bsdi[45]*)
  7316. version_type=linux
  7317. need_version=no
  7318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7319. soname_spec='${libname}${release}${shared_ext}$major'
  7320. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7321. shlibpath_var=LD_LIBRARY_PATH
  7322. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7323. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7324. # the default ld.so.conf also contains /usr/contrib/lib and
  7325. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7326. # libtool to hard-code these into programs
  7327. ;;
  7328. cygwin* | mingw* | pw32*)
  7329. version_type=windows
  7330. shrext_cmds=".dll"
  7331. need_version=no
  7332. need_lib_prefix=no
  7333. case $GCC,$host_os in
  7334. yes,cygwin* | yes,mingw* | yes,pw32*)
  7335. library_names_spec='$libname.dll.a'
  7336. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7337. postinstall_cmds='base_file=`basename \${file}`~
  7338. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7339. dldir=$destdir/`dirname \$dlpath`~
  7340. test -d \$dldir || mkdir -p \$dldir~
  7341. $install_prog $dir/$dlname \$dldir/$dlname~
  7342. chmod a+x \$dldir/$dlname'
  7343. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7344. dlpath=$dir/\$dldll~
  7345. $rm \$dlpath'
  7346. shlibpath_overrides_runpath=yes
  7347. case $host_os in
  7348. cygwin*)
  7349. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7350. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7351. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7352. ;;
  7353. mingw*)
  7354. # MinGW DLLs use traditional 'lib' prefix
  7355. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7356. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7357. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7358. # It is most probably a Windows format PATH printed by
  7359. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7360. # path with ; separators, and with drive letters. We can handle the
  7361. # drive letters (cygwin fileutils understands them), so leave them,
  7362. # especially as we might pass files found there to a mingw objdump,
  7363. # which wouldn't understand a cygwinified path. Ahh.
  7364. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7365. else
  7366. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7367. fi
  7368. ;;
  7369. pw32*)
  7370. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7371. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7372. ;;
  7373. esac
  7374. ;;
  7375. *)
  7376. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7377. ;;
  7378. esac
  7379. dynamic_linker='Win32 ld.exe'
  7380. # FIXME: first we should search . and the directory the executable is in
  7381. shlibpath_var=PATH
  7382. ;;
  7383. darwin* | rhapsody*)
  7384. dynamic_linker="$host_os dyld"
  7385. version_type=darwin
  7386. need_lib_prefix=no
  7387. need_version=no
  7388. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7389. soname_spec='${libname}${release}${major}$shared_ext'
  7390. shlibpath_overrides_runpath=yes
  7391. shlibpath_var=DYLD_LIBRARY_PATH
  7392. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7393. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7394. if test "$GCC" = yes; then
  7395. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  7396. else
  7397. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7398. fi
  7399. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7400. ;;
  7401. dgux*)
  7402. version_type=linux
  7403. need_lib_prefix=no
  7404. need_version=no
  7405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7406. soname_spec='${libname}${release}${shared_ext}$major'
  7407. shlibpath_var=LD_LIBRARY_PATH
  7408. ;;
  7409. freebsd1*)
  7410. dynamic_linker=no
  7411. ;;
  7412. kfreebsd*-gnu)
  7413. version_type=linux
  7414. need_lib_prefix=no
  7415. need_version=no
  7416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7417. soname_spec='${libname}${release}${shared_ext}$major'
  7418. shlibpath_var=LD_LIBRARY_PATH
  7419. shlibpath_overrides_runpath=no
  7420. hardcode_into_libs=yes
  7421. dynamic_linker='GNU ld.so'
  7422. ;;
  7423. freebsd* | dragonfly*)
  7424. # DragonFly does not have aout. When/if they implement a new
  7425. # versioning mechanism, adjust this.
  7426. if test -x /usr/bin/objformat; then
  7427. objformat=`/usr/bin/objformat`
  7428. else
  7429. case $host_os in
  7430. freebsd[123]*) objformat=aout ;;
  7431. *) objformat=elf ;;
  7432. esac
  7433. fi
  7434. version_type=freebsd-$objformat
  7435. case $version_type in
  7436. freebsd-elf*)
  7437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7438. need_version=no
  7439. need_lib_prefix=no
  7440. ;;
  7441. freebsd-*)
  7442. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7443. need_version=yes
  7444. ;;
  7445. esac
  7446. shlibpath_var=LD_LIBRARY_PATH
  7447. case $host_os in
  7448. freebsd2*)
  7449. shlibpath_overrides_runpath=yes
  7450. ;;
  7451. freebsd3.[01]* | freebsdelf3.[01]*)
  7452. shlibpath_overrides_runpath=yes
  7453. hardcode_into_libs=yes
  7454. ;;
  7455. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7456. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7457. shlibpath_overrides_runpath=no
  7458. hardcode_into_libs=yes
  7459. ;;
  7460. freebsd*) # from 4.6 on
  7461. shlibpath_overrides_runpath=yes
  7462. hardcode_into_libs=yes
  7463. ;;
  7464. esac
  7465. ;;
  7466. gnu*)
  7467. version_type=linux
  7468. need_lib_prefix=no
  7469. need_version=no
  7470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7471. soname_spec='${libname}${release}${shared_ext}$major'
  7472. shlibpath_var=LD_LIBRARY_PATH
  7473. hardcode_into_libs=yes
  7474. ;;
  7475. hpux9* | hpux10* | hpux11*)
  7476. # Give a soname corresponding to the major version so that dld.sl refuses to
  7477. # link against other versions.
  7478. version_type=sunos
  7479. need_lib_prefix=no
  7480. need_version=no
  7481. case $host_cpu in
  7482. ia64*)
  7483. shrext_cmds='.so'
  7484. hardcode_into_libs=yes
  7485. dynamic_linker="$host_os dld.so"
  7486. shlibpath_var=LD_LIBRARY_PATH
  7487. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7489. soname_spec='${libname}${release}${shared_ext}$major'
  7490. if test "X$HPUX_IA64_MODE" = X32; then
  7491. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7492. else
  7493. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7494. fi
  7495. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7496. ;;
  7497. hppa*64*)
  7498. shrext_cmds='.sl'
  7499. hardcode_into_libs=yes
  7500. dynamic_linker="$host_os dld.sl"
  7501. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7502. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7504. soname_spec='${libname}${release}${shared_ext}$major'
  7505. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7506. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7507. ;;
  7508. *)
  7509. shrext_cmds='.sl'
  7510. dynamic_linker="$host_os dld.sl"
  7511. shlibpath_var=SHLIB_PATH
  7512. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7514. soname_spec='${libname}${release}${shared_ext}$major'
  7515. ;;
  7516. esac
  7517. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7518. postinstall_cmds='chmod 555 $lib'
  7519. ;;
  7520. interix3*)
  7521. version_type=linux
  7522. need_lib_prefix=no
  7523. need_version=no
  7524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7525. soname_spec='${libname}${release}${shared_ext}$major'
  7526. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7527. shlibpath_var=LD_LIBRARY_PATH
  7528. shlibpath_overrides_runpath=no
  7529. hardcode_into_libs=yes
  7530. ;;
  7531. irix5* | irix6* | nonstopux*)
  7532. case $host_os in
  7533. nonstopux*) version_type=nonstopux ;;
  7534. *)
  7535. if test "$lt_cv_prog_gnu_ld" = yes; then
  7536. version_type=linux
  7537. else
  7538. version_type=irix
  7539. fi ;;
  7540. esac
  7541. need_lib_prefix=no
  7542. need_version=no
  7543. soname_spec='${libname}${release}${shared_ext}$major'
  7544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7545. case $host_os in
  7546. irix5* | nonstopux*)
  7547. libsuff= shlibsuff=
  7548. ;;
  7549. *)
  7550. case $LD in # libtool.m4 will add one of these switches to LD
  7551. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7552. libsuff= shlibsuff= libmagic=32-bit;;
  7553. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7554. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7555. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7556. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7557. *) libsuff= shlibsuff= libmagic=never-match;;
  7558. esac
  7559. ;;
  7560. esac
  7561. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7562. shlibpath_overrides_runpath=no
  7563. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7564. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7565. hardcode_into_libs=yes
  7566. ;;
  7567. # No shared lib support for Linux oldld, aout, or coff.
  7568. linux*oldld* | linux*aout* | linux*coff*)
  7569. dynamic_linker=no
  7570. ;;
  7571. # This must be Linux ELF.
  7572. linux*)
  7573. version_type=linux
  7574. need_lib_prefix=no
  7575. need_version=no
  7576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7577. soname_spec='${libname}${release}${shared_ext}$major'
  7578. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7579. shlibpath_var=LD_LIBRARY_PATH
  7580. shlibpath_overrides_runpath=no
  7581. # This implies no fast_install, which is unacceptable.
  7582. # Some rework will be needed to allow for fast_install
  7583. # before this can be enabled.
  7584. hardcode_into_libs=yes
  7585. # find out which ABI we are using
  7586. libsuff=
  7587. case "$host_cpu" in
  7588. x86_64*|s390x*|powerpc64*)
  7589. echo '#line 8373 "configure"' > conftest.$ac_ext
  7590. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7591. (eval $ac_compile) 2>&5
  7592. ac_status=$?
  7593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7594. (exit $ac_status); }; then
  7595. case `/usr/bin/file conftest.$ac_objext` in
  7596. *64-bit*)
  7597. libsuff=64
  7598. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7599. ;;
  7600. esac
  7601. fi
  7602. rm -rf conftest*
  7603. ;;
  7604. esac
  7605. # Append ld.so.conf contents to the search path
  7606. if test -f /etc/ld.so.conf; then
  7607. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7608. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7609. fi
  7610. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7611. # powerpc, because MkLinux only supported shared libraries with the
  7612. # GNU dynamic linker. Since this was broken with cross compilers,
  7613. # most powerpc-linux boxes support dynamic linking these days and
  7614. # people can always --disable-shared, the test was removed, and we
  7615. # assume the GNU/Linux dynamic linker is in use.
  7616. dynamic_linker='GNU/Linux ld.so'
  7617. ;;
  7618. knetbsd*-gnu)
  7619. version_type=linux
  7620. need_lib_prefix=no
  7621. need_version=no
  7622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7623. soname_spec='${libname}${release}${shared_ext}$major'
  7624. shlibpath_var=LD_LIBRARY_PATH
  7625. shlibpath_overrides_runpath=no
  7626. hardcode_into_libs=yes
  7627. dynamic_linker='GNU ld.so'
  7628. ;;
  7629. netbsd*)
  7630. version_type=sunos
  7631. need_lib_prefix=no
  7632. need_version=no
  7633. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7635. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7636. dynamic_linker='NetBSD (a.out) ld.so'
  7637. else
  7638. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7639. soname_spec='${libname}${release}${shared_ext}$major'
  7640. dynamic_linker='NetBSD ld.elf_so'
  7641. fi
  7642. shlibpath_var=LD_LIBRARY_PATH
  7643. shlibpath_overrides_runpath=yes
  7644. hardcode_into_libs=yes
  7645. ;;
  7646. newsos6)
  7647. version_type=linux
  7648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7649. shlibpath_var=LD_LIBRARY_PATH
  7650. shlibpath_overrides_runpath=yes
  7651. ;;
  7652. nto-qnx*)
  7653. version_type=linux
  7654. need_lib_prefix=no
  7655. need_version=no
  7656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7657. soname_spec='${libname}${release}${shared_ext}$major'
  7658. shlibpath_var=LD_LIBRARY_PATH
  7659. shlibpath_overrides_runpath=yes
  7660. ;;
  7661. openbsd*)
  7662. version_type=sunos
  7663. sys_lib_dlsearch_path_spec="/usr/lib"
  7664. need_lib_prefix=no
  7665. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7666. case $host_os in
  7667. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7668. *) need_version=no ;;
  7669. esac
  7670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7671. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7672. shlibpath_var=LD_LIBRARY_PATH
  7673. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7674. case $host_os in
  7675. openbsd2.[89] | openbsd2.[89].*)
  7676. shlibpath_overrides_runpath=no
  7677. ;;
  7678. *)
  7679. shlibpath_overrides_runpath=yes
  7680. ;;
  7681. esac
  7682. else
  7683. shlibpath_overrides_runpath=yes
  7684. fi
  7685. ;;
  7686. os2*)
  7687. libname_spec='$name'
  7688. shrext_cmds=".dll"
  7689. need_lib_prefix=no
  7690. library_names_spec='$libname${shared_ext} $libname.a'
  7691. dynamic_linker='OS/2 ld.exe'
  7692. shlibpath_var=LIBPATH
  7693. ;;
  7694. osf3* | osf4* | osf5*)
  7695. version_type=osf
  7696. need_lib_prefix=no
  7697. need_version=no
  7698. soname_spec='${libname}${release}${shared_ext}$major'
  7699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7700. shlibpath_var=LD_LIBRARY_PATH
  7701. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7702. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7703. ;;
  7704. solaris*)
  7705. version_type=linux
  7706. need_lib_prefix=no
  7707. need_version=no
  7708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7709. soname_spec='${libname}${release}${shared_ext}$major'
  7710. shlibpath_var=LD_LIBRARY_PATH
  7711. shlibpath_overrides_runpath=yes
  7712. hardcode_into_libs=yes
  7713. # ldd complains unless libraries are executable
  7714. postinstall_cmds='chmod +x $lib'
  7715. ;;
  7716. sunos4*)
  7717. version_type=sunos
  7718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7719. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7720. shlibpath_var=LD_LIBRARY_PATH
  7721. shlibpath_overrides_runpath=yes
  7722. if test "$with_gnu_ld" = yes; then
  7723. need_lib_prefix=no
  7724. fi
  7725. need_version=yes
  7726. ;;
  7727. sysv4 | sysv4.3*)
  7728. version_type=linux
  7729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7730. soname_spec='${libname}${release}${shared_ext}$major'
  7731. shlibpath_var=LD_LIBRARY_PATH
  7732. case $host_vendor in
  7733. sni)
  7734. shlibpath_overrides_runpath=no
  7735. need_lib_prefix=no
  7736. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7737. runpath_var=LD_RUN_PATH
  7738. ;;
  7739. siemens)
  7740. need_lib_prefix=no
  7741. ;;
  7742. motorola)
  7743. need_lib_prefix=no
  7744. need_version=no
  7745. shlibpath_overrides_runpath=no
  7746. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7747. ;;
  7748. esac
  7749. ;;
  7750. sysv4*MP*)
  7751. if test -d /usr/nec ;then
  7752. version_type=linux
  7753. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7754. soname_spec='$libname${shared_ext}.$major'
  7755. shlibpath_var=LD_LIBRARY_PATH
  7756. fi
  7757. ;;
  7758. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7759. version_type=freebsd-elf
  7760. need_lib_prefix=no
  7761. need_version=no
  7762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7763. soname_spec='${libname}${release}${shared_ext}$major'
  7764. shlibpath_var=LD_LIBRARY_PATH
  7765. hardcode_into_libs=yes
  7766. if test "$with_gnu_ld" = yes; then
  7767. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7768. shlibpath_overrides_runpath=no
  7769. else
  7770. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7771. shlibpath_overrides_runpath=yes
  7772. case $host_os in
  7773. sco3.2v5*)
  7774. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7775. ;;
  7776. esac
  7777. fi
  7778. sys_lib_dlsearch_path_spec='/usr/lib'
  7779. ;;
  7780. uts4*)
  7781. version_type=linux
  7782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7783. soname_spec='${libname}${release}${shared_ext}$major'
  7784. shlibpath_var=LD_LIBRARY_PATH
  7785. ;;
  7786. *)
  7787. dynamic_linker=no
  7788. ;;
  7789. esac
  7790. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7791. echo "${ECHO_T}$dynamic_linker" >&6
  7792. test "$dynamic_linker" = no && can_build_shared=no
  7793. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7794. if test "$GCC" = yes; then
  7795. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7796. fi
  7797. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7798. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7799. hardcode_action=
  7800. if test -n "$hardcode_libdir_flag_spec" || \
  7801. test -n "$runpath_var" || \
  7802. test "X$hardcode_automatic" = "Xyes" ; then
  7803. # We can hardcode non-existant directories.
  7804. if test "$hardcode_direct" != no &&
  7805. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7806. # have to relink, otherwise we might link with an installed library
  7807. # when we should be linking with a yet-to-be-installed one
  7808. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7809. test "$hardcode_minus_L" != no; then
  7810. # Linking always hardcodes the temporary library directory.
  7811. hardcode_action=relink
  7812. else
  7813. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7814. hardcode_action=immediate
  7815. fi
  7816. else
  7817. # We cannot hardcode anything, or else we can only hardcode existing
  7818. # directories.
  7819. hardcode_action=unsupported
  7820. fi
  7821. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7822. echo "${ECHO_T}$hardcode_action" >&6
  7823. if test "$hardcode_action" = relink; then
  7824. # Fast installation is not supported
  7825. enable_fast_install=no
  7826. elif test "$shlibpath_overrides_runpath" = yes ||
  7827. test "$enable_shared" = no; then
  7828. # Fast installation is not necessary
  7829. enable_fast_install=needless
  7830. fi
  7831. striplib=
  7832. old_striplib=
  7833. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7834. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7835. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7836. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7837. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7838. echo "$as_me:$LINENO: result: yes" >&5
  7839. echo "${ECHO_T}yes" >&6
  7840. else
  7841. # FIXME - insert some real tests, host_os isn't really good enough
  7842. case $host_os in
  7843. darwin*)
  7844. if test -n "$STRIP" ; then
  7845. striplib="$STRIP -x"
  7846. echo "$as_me:$LINENO: result: yes" >&5
  7847. echo "${ECHO_T}yes" >&6
  7848. else
  7849. echo "$as_me:$LINENO: result: no" >&5
  7850. echo "${ECHO_T}no" >&6
  7851. fi
  7852. ;;
  7853. *)
  7854. echo "$as_me:$LINENO: result: no" >&5
  7855. echo "${ECHO_T}no" >&6
  7856. ;;
  7857. esac
  7858. fi
  7859. if test "x$enable_dlopen" != xyes; then
  7860. enable_dlopen=unknown
  7861. enable_dlopen_self=unknown
  7862. enable_dlopen_self_static=unknown
  7863. else
  7864. lt_cv_dlopen=no
  7865. lt_cv_dlopen_libs=
  7866. case $host_os in
  7867. beos*)
  7868. lt_cv_dlopen="load_add_on"
  7869. lt_cv_dlopen_libs=
  7870. lt_cv_dlopen_self=yes
  7871. ;;
  7872. mingw* | pw32*)
  7873. lt_cv_dlopen="LoadLibrary"
  7874. lt_cv_dlopen_libs=
  7875. ;;
  7876. cygwin*)
  7877. lt_cv_dlopen="dlopen"
  7878. lt_cv_dlopen_libs=
  7879. ;;
  7880. darwin*)
  7881. # if libdl is installed we need to link against it
  7882. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7883. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7884. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7885. echo $ECHO_N "(cached) $ECHO_C" >&6
  7886. else
  7887. ac_check_lib_save_LIBS=$LIBS
  7888. LIBS="-ldl $LIBS"
  7889. cat >conftest.$ac_ext <<_ACEOF
  7890. /* confdefs.h. */
  7891. _ACEOF
  7892. cat confdefs.h >>conftest.$ac_ext
  7893. cat >>conftest.$ac_ext <<_ACEOF
  7894. /* end confdefs.h. */
  7895. /* Override any gcc2 internal prototype to avoid an error. */
  7896. #ifdef __cplusplus
  7897. extern "C"
  7898. #endif
  7899. /* We use char because int might match the return type of a gcc2
  7900. builtin and then its argument prototype would still apply. */
  7901. char dlopen ();
  7902. int
  7903. main ()
  7904. {
  7905. dlopen ();
  7906. ;
  7907. return 0;
  7908. }
  7909. _ACEOF
  7910. rm -f conftest.$ac_objext conftest$ac_exeext
  7911. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7912. (eval $ac_link) 2>conftest.er1
  7913. ac_status=$?
  7914. grep -v '^ *+' conftest.er1 >conftest.err
  7915. rm -f conftest.er1
  7916. cat conftest.err >&5
  7917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7918. (exit $ac_status); } &&
  7919. { ac_try='test -z "$ac_c_werror_flag"
  7920. || test ! -s conftest.err'
  7921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7922. (eval $ac_try) 2>&5
  7923. ac_status=$?
  7924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7925. (exit $ac_status); }; } &&
  7926. { ac_try='test -s conftest$ac_exeext'
  7927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7928. (eval $ac_try) 2>&5
  7929. ac_status=$?
  7930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7931. (exit $ac_status); }; }; then
  7932. ac_cv_lib_dl_dlopen=yes
  7933. else
  7934. echo "$as_me: failed program was:" >&5
  7935. sed 's/^/| /' conftest.$ac_ext >&5
  7936. ac_cv_lib_dl_dlopen=no
  7937. fi
  7938. rm -f conftest.err conftest.$ac_objext \
  7939. conftest$ac_exeext conftest.$ac_ext
  7940. LIBS=$ac_check_lib_save_LIBS
  7941. fi
  7942. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7943. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7944. if test $ac_cv_lib_dl_dlopen = yes; then
  7945. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7946. else
  7947. lt_cv_dlopen="dyld"
  7948. lt_cv_dlopen_libs=
  7949. lt_cv_dlopen_self=yes
  7950. fi
  7951. ;;
  7952. *)
  7953. echo "$as_me:$LINENO: checking for shl_load" >&5
  7954. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7955. if test "${ac_cv_func_shl_load+set}" = set; then
  7956. echo $ECHO_N "(cached) $ECHO_C" >&6
  7957. else
  7958. cat >conftest.$ac_ext <<_ACEOF
  7959. /* confdefs.h. */
  7960. _ACEOF
  7961. cat confdefs.h >>conftest.$ac_ext
  7962. cat >>conftest.$ac_ext <<_ACEOF
  7963. /* end confdefs.h. */
  7964. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7965. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7966. #define shl_load innocuous_shl_load
  7967. /* System header to define __stub macros and hopefully few prototypes,
  7968. which can conflict with char shl_load (); below.
  7969. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7970. <limits.h> exists even on freestanding compilers. */
  7971. #ifdef __STDC__
  7972. # include <limits.h>
  7973. #else
  7974. # include <assert.h>
  7975. #endif
  7976. #undef shl_load
  7977. /* Override any gcc2 internal prototype to avoid an error. */
  7978. #ifdef __cplusplus
  7979. extern "C"
  7980. {
  7981. #endif
  7982. /* We use char because int might match the return type of a gcc2
  7983. builtin and then its argument prototype would still apply. */
  7984. char shl_load ();
  7985. /* The GNU C library defines this for functions which it implements
  7986. to always fail with ENOSYS. Some functions are actually named
  7987. something starting with __ and the normal name is an alias. */
  7988. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7989. choke me
  7990. #else
  7991. char (*f) () = shl_load;
  7992. #endif
  7993. #ifdef __cplusplus
  7994. }
  7995. #endif
  7996. int
  7997. main ()
  7998. {
  7999. return f != shl_load;
  8000. ;
  8001. return 0;
  8002. }
  8003. _ACEOF
  8004. rm -f conftest.$ac_objext conftest$ac_exeext
  8005. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8006. (eval $ac_link) 2>conftest.er1
  8007. ac_status=$?
  8008. grep -v '^ *+' conftest.er1 >conftest.err
  8009. rm -f conftest.er1
  8010. cat conftest.err >&5
  8011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8012. (exit $ac_status); } &&
  8013. { ac_try='test -z "$ac_c_werror_flag"
  8014. || test ! -s conftest.err'
  8015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8016. (eval $ac_try) 2>&5
  8017. ac_status=$?
  8018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8019. (exit $ac_status); }; } &&
  8020. { ac_try='test -s conftest$ac_exeext'
  8021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8022. (eval $ac_try) 2>&5
  8023. ac_status=$?
  8024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8025. (exit $ac_status); }; }; then
  8026. ac_cv_func_shl_load=yes
  8027. else
  8028. echo "$as_me: failed program was:" >&5
  8029. sed 's/^/| /' conftest.$ac_ext >&5
  8030. ac_cv_func_shl_load=no
  8031. fi
  8032. rm -f conftest.err conftest.$ac_objext \
  8033. conftest$ac_exeext conftest.$ac_ext
  8034. fi
  8035. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8036. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8037. if test $ac_cv_func_shl_load = yes; then
  8038. lt_cv_dlopen="shl_load"
  8039. else
  8040. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8041. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8042. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8043. echo $ECHO_N "(cached) $ECHO_C" >&6
  8044. else
  8045. ac_check_lib_save_LIBS=$LIBS
  8046. LIBS="-ldld $LIBS"
  8047. cat >conftest.$ac_ext <<_ACEOF
  8048. /* confdefs.h. */
  8049. _ACEOF
  8050. cat confdefs.h >>conftest.$ac_ext
  8051. cat >>conftest.$ac_ext <<_ACEOF
  8052. /* end confdefs.h. */
  8053. /* Override any gcc2 internal prototype to avoid an error. */
  8054. #ifdef __cplusplus
  8055. extern "C"
  8056. #endif
  8057. /* We use char because int might match the return type of a gcc2
  8058. builtin and then its argument prototype would still apply. */
  8059. char shl_load ();
  8060. int
  8061. main ()
  8062. {
  8063. shl_load ();
  8064. ;
  8065. return 0;
  8066. }
  8067. _ACEOF
  8068. rm -f conftest.$ac_objext conftest$ac_exeext
  8069. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8070. (eval $ac_link) 2>conftest.er1
  8071. ac_status=$?
  8072. grep -v '^ *+' conftest.er1 >conftest.err
  8073. rm -f conftest.er1
  8074. cat conftest.err >&5
  8075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8076. (exit $ac_status); } &&
  8077. { ac_try='test -z "$ac_c_werror_flag"
  8078. || test ! -s conftest.err'
  8079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8080. (eval $ac_try) 2>&5
  8081. ac_status=$?
  8082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8083. (exit $ac_status); }; } &&
  8084. { ac_try='test -s conftest$ac_exeext'
  8085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8086. (eval $ac_try) 2>&5
  8087. ac_status=$?
  8088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8089. (exit $ac_status); }; }; then
  8090. ac_cv_lib_dld_shl_load=yes
  8091. else
  8092. echo "$as_me: failed program was:" >&5
  8093. sed 's/^/| /' conftest.$ac_ext >&5
  8094. ac_cv_lib_dld_shl_load=no
  8095. fi
  8096. rm -f conftest.err conftest.$ac_objext \
  8097. conftest$ac_exeext conftest.$ac_ext
  8098. LIBS=$ac_check_lib_save_LIBS
  8099. fi
  8100. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8101. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8102. if test $ac_cv_lib_dld_shl_load = yes; then
  8103. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8104. else
  8105. echo "$as_me:$LINENO: checking for dlopen" >&5
  8106. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8107. if test "${ac_cv_func_dlopen+set}" = set; then
  8108. echo $ECHO_N "(cached) $ECHO_C" >&6
  8109. else
  8110. cat >conftest.$ac_ext <<_ACEOF
  8111. /* confdefs.h. */
  8112. _ACEOF
  8113. cat confdefs.h >>conftest.$ac_ext
  8114. cat >>conftest.$ac_ext <<_ACEOF
  8115. /* end confdefs.h. */
  8116. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8117. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8118. #define dlopen innocuous_dlopen
  8119. /* System header to define __stub macros and hopefully few prototypes,
  8120. which can conflict with char dlopen (); below.
  8121. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8122. <limits.h> exists even on freestanding compilers. */
  8123. #ifdef __STDC__
  8124. # include <limits.h>
  8125. #else
  8126. # include <assert.h>
  8127. #endif
  8128. #undef dlopen
  8129. /* Override any gcc2 internal prototype to avoid an error. */
  8130. #ifdef __cplusplus
  8131. extern "C"
  8132. {
  8133. #endif
  8134. /* We use char because int might match the return type of a gcc2
  8135. builtin and then its argument prototype would still apply. */
  8136. char dlopen ();
  8137. /* The GNU C library defines this for functions which it implements
  8138. to always fail with ENOSYS. Some functions are actually named
  8139. something starting with __ and the normal name is an alias. */
  8140. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8141. choke me
  8142. #else
  8143. char (*f) () = dlopen;
  8144. #endif
  8145. #ifdef __cplusplus
  8146. }
  8147. #endif
  8148. int
  8149. main ()
  8150. {
  8151. return f != dlopen;
  8152. ;
  8153. return 0;
  8154. }
  8155. _ACEOF
  8156. rm -f conftest.$ac_objext conftest$ac_exeext
  8157. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8158. (eval $ac_link) 2>conftest.er1
  8159. ac_status=$?
  8160. grep -v '^ *+' conftest.er1 >conftest.err
  8161. rm -f conftest.er1
  8162. cat conftest.err >&5
  8163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8164. (exit $ac_status); } &&
  8165. { ac_try='test -z "$ac_c_werror_flag"
  8166. || test ! -s conftest.err'
  8167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8168. (eval $ac_try) 2>&5
  8169. ac_status=$?
  8170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8171. (exit $ac_status); }; } &&
  8172. { ac_try='test -s conftest$ac_exeext'
  8173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8174. (eval $ac_try) 2>&5
  8175. ac_status=$?
  8176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8177. (exit $ac_status); }; }; then
  8178. ac_cv_func_dlopen=yes
  8179. else
  8180. echo "$as_me: failed program was:" >&5
  8181. sed 's/^/| /' conftest.$ac_ext >&5
  8182. ac_cv_func_dlopen=no
  8183. fi
  8184. rm -f conftest.err conftest.$ac_objext \
  8185. conftest$ac_exeext conftest.$ac_ext
  8186. fi
  8187. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8188. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8189. if test $ac_cv_func_dlopen = yes; then
  8190. lt_cv_dlopen="dlopen"
  8191. else
  8192. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8193. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8194. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8195. echo $ECHO_N "(cached) $ECHO_C" >&6
  8196. else
  8197. ac_check_lib_save_LIBS=$LIBS
  8198. LIBS="-ldl $LIBS"
  8199. cat >conftest.$ac_ext <<_ACEOF
  8200. /* confdefs.h. */
  8201. _ACEOF
  8202. cat confdefs.h >>conftest.$ac_ext
  8203. cat >>conftest.$ac_ext <<_ACEOF
  8204. /* end confdefs.h. */
  8205. /* Override any gcc2 internal prototype to avoid an error. */
  8206. #ifdef __cplusplus
  8207. extern "C"
  8208. #endif
  8209. /* We use char because int might match the return type of a gcc2
  8210. builtin and then its argument prototype would still apply. */
  8211. char dlopen ();
  8212. int
  8213. main ()
  8214. {
  8215. dlopen ();
  8216. ;
  8217. return 0;
  8218. }
  8219. _ACEOF
  8220. rm -f conftest.$ac_objext conftest$ac_exeext
  8221. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8222. (eval $ac_link) 2>conftest.er1
  8223. ac_status=$?
  8224. grep -v '^ *+' conftest.er1 >conftest.err
  8225. rm -f conftest.er1
  8226. cat conftest.err >&5
  8227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8228. (exit $ac_status); } &&
  8229. { ac_try='test -z "$ac_c_werror_flag"
  8230. || test ! -s conftest.err'
  8231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8232. (eval $ac_try) 2>&5
  8233. ac_status=$?
  8234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8235. (exit $ac_status); }; } &&
  8236. { ac_try='test -s conftest$ac_exeext'
  8237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8238. (eval $ac_try) 2>&5
  8239. ac_status=$?
  8240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8241. (exit $ac_status); }; }; then
  8242. ac_cv_lib_dl_dlopen=yes
  8243. else
  8244. echo "$as_me: failed program was:" >&5
  8245. sed 's/^/| /' conftest.$ac_ext >&5
  8246. ac_cv_lib_dl_dlopen=no
  8247. fi
  8248. rm -f conftest.err conftest.$ac_objext \
  8249. conftest$ac_exeext conftest.$ac_ext
  8250. LIBS=$ac_check_lib_save_LIBS
  8251. fi
  8252. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8253. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8254. if test $ac_cv_lib_dl_dlopen = yes; then
  8255. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8256. else
  8257. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8258. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8259. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8260. echo $ECHO_N "(cached) $ECHO_C" >&6
  8261. else
  8262. ac_check_lib_save_LIBS=$LIBS
  8263. LIBS="-lsvld $LIBS"
  8264. cat >conftest.$ac_ext <<_ACEOF
  8265. /* confdefs.h. */
  8266. _ACEOF
  8267. cat confdefs.h >>conftest.$ac_ext
  8268. cat >>conftest.$ac_ext <<_ACEOF
  8269. /* end confdefs.h. */
  8270. /* Override any gcc2 internal prototype to avoid an error. */
  8271. #ifdef __cplusplus
  8272. extern "C"
  8273. #endif
  8274. /* We use char because int might match the return type of a gcc2
  8275. builtin and then its argument prototype would still apply. */
  8276. char dlopen ();
  8277. int
  8278. main ()
  8279. {
  8280. dlopen ();
  8281. ;
  8282. return 0;
  8283. }
  8284. _ACEOF
  8285. rm -f conftest.$ac_objext conftest$ac_exeext
  8286. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8287. (eval $ac_link) 2>conftest.er1
  8288. ac_status=$?
  8289. grep -v '^ *+' conftest.er1 >conftest.err
  8290. rm -f conftest.er1
  8291. cat conftest.err >&5
  8292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8293. (exit $ac_status); } &&
  8294. { ac_try='test -z "$ac_c_werror_flag"
  8295. || test ! -s conftest.err'
  8296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8297. (eval $ac_try) 2>&5
  8298. ac_status=$?
  8299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8300. (exit $ac_status); }; } &&
  8301. { ac_try='test -s conftest$ac_exeext'
  8302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8303. (eval $ac_try) 2>&5
  8304. ac_status=$?
  8305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8306. (exit $ac_status); }; }; then
  8307. ac_cv_lib_svld_dlopen=yes
  8308. else
  8309. echo "$as_me: failed program was:" >&5
  8310. sed 's/^/| /' conftest.$ac_ext >&5
  8311. ac_cv_lib_svld_dlopen=no
  8312. fi
  8313. rm -f conftest.err conftest.$ac_objext \
  8314. conftest$ac_exeext conftest.$ac_ext
  8315. LIBS=$ac_check_lib_save_LIBS
  8316. fi
  8317. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8318. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8319. if test $ac_cv_lib_svld_dlopen = yes; then
  8320. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8321. else
  8322. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8323. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8324. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8325. echo $ECHO_N "(cached) $ECHO_C" >&6
  8326. else
  8327. ac_check_lib_save_LIBS=$LIBS
  8328. LIBS="-ldld $LIBS"
  8329. cat >conftest.$ac_ext <<_ACEOF
  8330. /* confdefs.h. */
  8331. _ACEOF
  8332. cat confdefs.h >>conftest.$ac_ext
  8333. cat >>conftest.$ac_ext <<_ACEOF
  8334. /* end confdefs.h. */
  8335. /* Override any gcc2 internal prototype to avoid an error. */
  8336. #ifdef __cplusplus
  8337. extern "C"
  8338. #endif
  8339. /* We use char because int might match the return type of a gcc2
  8340. builtin and then its argument prototype would still apply. */
  8341. char dld_link ();
  8342. int
  8343. main ()
  8344. {
  8345. dld_link ();
  8346. ;
  8347. return 0;
  8348. }
  8349. _ACEOF
  8350. rm -f conftest.$ac_objext conftest$ac_exeext
  8351. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8352. (eval $ac_link) 2>conftest.er1
  8353. ac_status=$?
  8354. grep -v '^ *+' conftest.er1 >conftest.err
  8355. rm -f conftest.er1
  8356. cat conftest.err >&5
  8357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8358. (exit $ac_status); } &&
  8359. { ac_try='test -z "$ac_c_werror_flag"
  8360. || test ! -s conftest.err'
  8361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8362. (eval $ac_try) 2>&5
  8363. ac_status=$?
  8364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8365. (exit $ac_status); }; } &&
  8366. { ac_try='test -s conftest$ac_exeext'
  8367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8368. (eval $ac_try) 2>&5
  8369. ac_status=$?
  8370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8371. (exit $ac_status); }; }; then
  8372. ac_cv_lib_dld_dld_link=yes
  8373. else
  8374. echo "$as_me: failed program was:" >&5
  8375. sed 's/^/| /' conftest.$ac_ext >&5
  8376. ac_cv_lib_dld_dld_link=no
  8377. fi
  8378. rm -f conftest.err conftest.$ac_objext \
  8379. conftest$ac_exeext conftest.$ac_ext
  8380. LIBS=$ac_check_lib_save_LIBS
  8381. fi
  8382. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8383. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8384. if test $ac_cv_lib_dld_dld_link = yes; then
  8385. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8386. fi
  8387. fi
  8388. fi
  8389. fi
  8390. fi
  8391. fi
  8392. ;;
  8393. esac
  8394. if test "x$lt_cv_dlopen" != xno; then
  8395. enable_dlopen=yes
  8396. else
  8397. enable_dlopen=no
  8398. fi
  8399. case $lt_cv_dlopen in
  8400. dlopen)
  8401. save_CPPFLAGS="$CPPFLAGS"
  8402. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8403. save_LDFLAGS="$LDFLAGS"
  8404. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8405. save_LIBS="$LIBS"
  8406. LIBS="$lt_cv_dlopen_libs $LIBS"
  8407. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8408. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8409. if test "${lt_cv_dlopen_self+set}" = set; then
  8410. echo $ECHO_N "(cached) $ECHO_C" >&6
  8411. else
  8412. if test "$cross_compiling" = yes; then :
  8413. lt_cv_dlopen_self=cross
  8414. else
  8415. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8416. lt_status=$lt_dlunknown
  8417. cat > conftest.$ac_ext <<EOF
  8418. #line 9270 "configure"
  8419. #include "confdefs.h"
  8420. #if HAVE_DLFCN_H
  8421. #include <dlfcn.h>
  8422. #endif
  8423. #include <stdio.h>
  8424. #ifdef RTLD_GLOBAL
  8425. # define LT_DLGLOBAL RTLD_GLOBAL
  8426. #else
  8427. # ifdef DL_GLOBAL
  8428. # define LT_DLGLOBAL DL_GLOBAL
  8429. # else
  8430. # define LT_DLGLOBAL 0
  8431. # endif
  8432. #endif
  8433. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8434. find out it does not work in some platform. */
  8435. #ifndef LT_DLLAZY_OR_NOW
  8436. # ifdef RTLD_LAZY
  8437. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8438. # else
  8439. # ifdef DL_LAZY
  8440. # define LT_DLLAZY_OR_NOW DL_LAZY
  8441. # else
  8442. # ifdef RTLD_NOW
  8443. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8444. # else
  8445. # ifdef DL_NOW
  8446. # define LT_DLLAZY_OR_NOW DL_NOW
  8447. # else
  8448. # define LT_DLLAZY_OR_NOW 0
  8449. # endif
  8450. # endif
  8451. # endif
  8452. # endif
  8453. #endif
  8454. #ifdef __cplusplus
  8455. extern "C" void exit (int);
  8456. #endif
  8457. void fnord() { int i=42;}
  8458. int main ()
  8459. {
  8460. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8461. int status = $lt_dlunknown;
  8462. if (self)
  8463. {
  8464. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8465. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8466. /* dlclose (self); */
  8467. }
  8468. else
  8469. puts (dlerror ());
  8470. exit (status);
  8471. }
  8472. EOF
  8473. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8474. (eval $ac_link) 2>&5
  8475. ac_status=$?
  8476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8478. (./conftest; exit; ) >&5 2>/dev/null
  8479. lt_status=$?
  8480. case x$lt_status in
  8481. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8482. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8483. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8484. esac
  8485. else :
  8486. # compilation failed
  8487. lt_cv_dlopen_self=no
  8488. fi
  8489. fi
  8490. rm -fr conftest*
  8491. fi
  8492. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8493. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8494. if test "x$lt_cv_dlopen_self" = xyes; then
  8495. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8496. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8497. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8498. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8499. echo $ECHO_N "(cached) $ECHO_C" >&6
  8500. else
  8501. if test "$cross_compiling" = yes; then :
  8502. lt_cv_dlopen_self_static=cross
  8503. else
  8504. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8505. lt_status=$lt_dlunknown
  8506. cat > conftest.$ac_ext <<EOF
  8507. #line 9370 "configure"
  8508. #include "confdefs.h"
  8509. #if HAVE_DLFCN_H
  8510. #include <dlfcn.h>
  8511. #endif
  8512. #include <stdio.h>
  8513. #ifdef RTLD_GLOBAL
  8514. # define LT_DLGLOBAL RTLD_GLOBAL
  8515. #else
  8516. # ifdef DL_GLOBAL
  8517. # define LT_DLGLOBAL DL_GLOBAL
  8518. # else
  8519. # define LT_DLGLOBAL 0
  8520. # endif
  8521. #endif
  8522. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8523. find out it does not work in some platform. */
  8524. #ifndef LT_DLLAZY_OR_NOW
  8525. # ifdef RTLD_LAZY
  8526. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8527. # else
  8528. # ifdef DL_LAZY
  8529. # define LT_DLLAZY_OR_NOW DL_LAZY
  8530. # else
  8531. # ifdef RTLD_NOW
  8532. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8533. # else
  8534. # ifdef DL_NOW
  8535. # define LT_DLLAZY_OR_NOW DL_NOW
  8536. # else
  8537. # define LT_DLLAZY_OR_NOW 0
  8538. # endif
  8539. # endif
  8540. # endif
  8541. # endif
  8542. #endif
  8543. #ifdef __cplusplus
  8544. extern "C" void exit (int);
  8545. #endif
  8546. void fnord() { int i=42;}
  8547. int main ()
  8548. {
  8549. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8550. int status = $lt_dlunknown;
  8551. if (self)
  8552. {
  8553. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8554. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8555. /* dlclose (self); */
  8556. }
  8557. else
  8558. puts (dlerror ());
  8559. exit (status);
  8560. }
  8561. EOF
  8562. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8563. (eval $ac_link) 2>&5
  8564. ac_status=$?
  8565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8566. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8567. (./conftest; exit; ) >&5 2>/dev/null
  8568. lt_status=$?
  8569. case x$lt_status in
  8570. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8571. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8572. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8573. esac
  8574. else :
  8575. # compilation failed
  8576. lt_cv_dlopen_self_static=no
  8577. fi
  8578. fi
  8579. rm -fr conftest*
  8580. fi
  8581. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8582. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8583. fi
  8584. CPPFLAGS="$save_CPPFLAGS"
  8585. LDFLAGS="$save_LDFLAGS"
  8586. LIBS="$save_LIBS"
  8587. ;;
  8588. esac
  8589. case $lt_cv_dlopen_self in
  8590. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8591. *) enable_dlopen_self=unknown ;;
  8592. esac
  8593. case $lt_cv_dlopen_self_static in
  8594. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8595. *) enable_dlopen_self_static=unknown ;;
  8596. esac
  8597. fi
  8598. # Report which library types will actually be built
  8599. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8600. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8601. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8602. echo "${ECHO_T}$can_build_shared" >&6
  8603. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8604. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8605. test "$can_build_shared" = "no" && enable_shared=no
  8606. # On AIX, shared libraries and static libraries use the same namespace, and
  8607. # are all built from PIC.
  8608. case $host_os in
  8609. aix3*)
  8610. test "$enable_shared" = yes && enable_static=no
  8611. if test -n "$RANLIB"; then
  8612. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8613. postinstall_cmds='$RANLIB $lib'
  8614. fi
  8615. ;;
  8616. aix4* | aix5*)
  8617. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8618. test "$enable_shared" = yes && enable_static=no
  8619. fi
  8620. ;;
  8621. esac
  8622. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8623. echo "${ECHO_T}$enable_shared" >&6
  8624. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8625. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8626. # Make sure either enable_shared or enable_static is yes.
  8627. test "$enable_shared" = yes || enable_static=yes
  8628. echo "$as_me:$LINENO: result: $enable_static" >&5
  8629. echo "${ECHO_T}$enable_static" >&6
  8630. # The else clause should only fire when bootstrapping the
  8631. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8632. # with your package, and you will get complaints that there are
  8633. # no rules to generate ltmain.sh.
  8634. if test -f "$ltmain"; then
  8635. # See if we are running on zsh, and set the options which allow our commands through
  8636. # without removal of \ escapes.
  8637. if test -n "${ZSH_VERSION+set}" ; then
  8638. setopt NO_GLOB_SUBST
  8639. fi
  8640. # Now quote all the things that may contain metacharacters while being
  8641. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8642. # variables and quote the copies for generation of the libtool script.
  8643. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8644. SED SHELL STRIP \
  8645. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8646. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8647. deplibs_check_method reload_flag reload_cmds need_locks \
  8648. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8649. lt_cv_sys_global_symbol_to_c_name_address \
  8650. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8651. old_postinstall_cmds old_postuninstall_cmds \
  8652. compiler \
  8653. CC \
  8654. LD \
  8655. lt_prog_compiler_wl \
  8656. lt_prog_compiler_pic \
  8657. lt_prog_compiler_static \
  8658. lt_prog_compiler_no_builtin_flag \
  8659. export_dynamic_flag_spec \
  8660. thread_safe_flag_spec \
  8661. whole_archive_flag_spec \
  8662. enable_shared_with_static_runtimes \
  8663. old_archive_cmds \
  8664. old_archive_from_new_cmds \
  8665. predep_objects \
  8666. postdep_objects \
  8667. predeps \
  8668. postdeps \
  8669. compiler_lib_search_path \
  8670. archive_cmds \
  8671. archive_expsym_cmds \
  8672. postinstall_cmds \
  8673. postuninstall_cmds \
  8674. old_archive_from_expsyms_cmds \
  8675. allow_undefined_flag \
  8676. no_undefined_flag \
  8677. export_symbols_cmds \
  8678. hardcode_libdir_flag_spec \
  8679. hardcode_libdir_flag_spec_ld \
  8680. hardcode_libdir_separator \
  8681. hardcode_automatic \
  8682. module_cmds \
  8683. module_expsym_cmds \
  8684. lt_cv_prog_compiler_c_o \
  8685. exclude_expsyms \
  8686. include_expsyms; do
  8687. case $var in
  8688. old_archive_cmds | \
  8689. old_archive_from_new_cmds | \
  8690. archive_cmds | \
  8691. archive_expsym_cmds | \
  8692. module_cmds | \
  8693. module_expsym_cmds | \
  8694. old_archive_from_expsyms_cmds | \
  8695. export_symbols_cmds | \
  8696. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8697. postinstall_cmds | postuninstall_cmds | \
  8698. old_postinstall_cmds | old_postuninstall_cmds | \
  8699. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8700. # Double-quote double-evaled strings.
  8701. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8702. ;;
  8703. *)
  8704. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8705. ;;
  8706. esac
  8707. done
  8708. case $lt_echo in
  8709. *'\$0 --fallback-echo"')
  8710. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8711. ;;
  8712. esac
  8713. cfgfile="${ofile}T"
  8714. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8715. $rm -f "$cfgfile"
  8716. { echo "$as_me:$LINENO: creating $ofile" >&5
  8717. echo "$as_me: creating $ofile" >&6;}
  8718. cat <<__EOF__ >> "$cfgfile"
  8719. #! $SHELL
  8720. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8721. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8722. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8723. #
  8724. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8725. # Free Software Foundation, Inc.
  8726. #
  8727. # This file is part of GNU Libtool:
  8728. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8729. #
  8730. # This program is free software; you can redistribute it and/or modify
  8731. # it under the terms of the GNU General Public License as published by
  8732. # the Free Software Foundation; either version 2 of the License, or
  8733. # (at your option) any later version.
  8734. #
  8735. # This program is distributed in the hope that it will be useful, but
  8736. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8737. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8738. # General Public License for more details.
  8739. #
  8740. # You should have received a copy of the GNU General Public License
  8741. # along with this program; if not, write to the Free Software
  8742. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8743. #
  8744. # As a special exception to the GNU General Public License, if you
  8745. # distribute this file as part of a program that contains a
  8746. # configuration script generated by Autoconf, you may include it under
  8747. # the same distribution terms that you use for the rest of that program.
  8748. # A sed program that does not truncate output.
  8749. SED=$lt_SED
  8750. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8751. Xsed="$SED -e 1s/^X//"
  8752. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8753. # if CDPATH is set.
  8754. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8755. # The names of the tagged configurations supported by this script.
  8756. available_tags=
  8757. # ### BEGIN LIBTOOL CONFIG
  8758. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8759. # Shell to use when invoking shell scripts.
  8760. SHELL=$lt_SHELL
  8761. # Whether or not to build shared libraries.
  8762. build_libtool_libs=$enable_shared
  8763. # Whether or not to build static libraries.
  8764. build_old_libs=$enable_static
  8765. # Whether or not to add -lc for building shared libraries.
  8766. build_libtool_need_lc=$archive_cmds_need_lc
  8767. # Whether or not to disallow shared libs when runtime libs are static
  8768. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8769. # Whether or not to optimize for fast installation.
  8770. fast_install=$enable_fast_install
  8771. # The host system.
  8772. host_alias=$host_alias
  8773. host=$host
  8774. host_os=$host_os
  8775. # The build system.
  8776. build_alias=$build_alias
  8777. build=$build
  8778. build_os=$build_os
  8779. # An echo program that does not interpret backslashes.
  8780. echo=$lt_echo
  8781. # The archiver.
  8782. AR=$lt_AR
  8783. AR_FLAGS=$lt_AR_FLAGS
  8784. # A C compiler.
  8785. LTCC=$lt_LTCC
  8786. # LTCC compiler flags.
  8787. LTCFLAGS=$lt_LTCFLAGS
  8788. # A language-specific compiler.
  8789. CC=$lt_compiler
  8790. # Is the compiler the GNU C compiler?
  8791. with_gcc=$GCC
  8792. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  8793. gcc_ver=\`gcc -dumpversion\`
  8794. # An ERE matcher.
  8795. EGREP=$lt_EGREP
  8796. # The linker used to build libraries.
  8797. LD=$lt_LD
  8798. # Whether we need hard or soft links.
  8799. LN_S=$lt_LN_S
  8800. # A BSD-compatible nm program.
  8801. NM=$lt_NM
  8802. # A symbol stripping program
  8803. STRIP=$lt_STRIP
  8804. # Used to examine libraries when file_magic_cmd begins "file"
  8805. MAGIC_CMD=$MAGIC_CMD
  8806. # Used on cygwin: DLL creation program.
  8807. DLLTOOL="$DLLTOOL"
  8808. # Used on cygwin: object dumper.
  8809. OBJDUMP="$OBJDUMP"
  8810. # Used on cygwin: assembler.
  8811. AS="$AS"
  8812. # The name of the directory that contains temporary libtool files.
  8813. objdir=$objdir
  8814. # How to create reloadable object files.
  8815. reload_flag=$lt_reload_flag
  8816. reload_cmds=$lt_reload_cmds
  8817. # How to pass a linker flag through the compiler.
  8818. wl=$lt_lt_prog_compiler_wl
  8819. # Object file suffix (normally "o").
  8820. objext="$ac_objext"
  8821. # Old archive suffix (normally "a").
  8822. libext="$libext"
  8823. # Shared library suffix (normally ".so").
  8824. shrext_cmds='$shrext_cmds'
  8825. # Executable file suffix (normally "").
  8826. exeext="$exeext"
  8827. # Additional compiler flags for building library objects.
  8828. pic_flag=$lt_lt_prog_compiler_pic
  8829. pic_mode=$pic_mode
  8830. # What is the maximum length of a command?
  8831. max_cmd_len=$lt_cv_sys_max_cmd_len
  8832. # Does compiler simultaneously support -c and -o options?
  8833. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8834. # Must we lock files when doing compilation?
  8835. need_locks=$lt_need_locks
  8836. # Do we need the lib prefix for modules?
  8837. need_lib_prefix=$need_lib_prefix
  8838. # Do we need a version for libraries?
  8839. need_version=$need_version
  8840. # Whether dlopen is supported.
  8841. dlopen_support=$enable_dlopen
  8842. # Whether dlopen of programs is supported.
  8843. dlopen_self=$enable_dlopen_self
  8844. # Whether dlopen of statically linked programs is supported.
  8845. dlopen_self_static=$enable_dlopen_self_static
  8846. # Compiler flag to prevent dynamic linking.
  8847. link_static_flag=$lt_lt_prog_compiler_static
  8848. # Compiler flag to turn off builtin functions.
  8849. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8850. # Compiler flag to allow reflexive dlopens.
  8851. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8852. # Compiler flag to generate shared objects directly from archives.
  8853. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8854. # Compiler flag to generate thread-safe objects.
  8855. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8856. # Library versioning type.
  8857. version_type=$version_type
  8858. # Format of library name prefix.
  8859. libname_spec=$lt_libname_spec
  8860. # List of archive names. First name is the real one, the rest are links.
  8861. # The last name is the one that the linker finds with -lNAME.
  8862. library_names_spec=$lt_library_names_spec
  8863. # The coded name of the library, if different from the real name.
  8864. soname_spec=$lt_soname_spec
  8865. # Commands used to build and install an old-style archive.
  8866. RANLIB=$lt_RANLIB
  8867. old_archive_cmds=$lt_old_archive_cmds
  8868. old_postinstall_cmds=$lt_old_postinstall_cmds
  8869. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8870. # Create an old-style archive from a shared archive.
  8871. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8872. # Create a temporary old-style archive to link instead of a shared archive.
  8873. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8874. # Commands used to build and install a shared archive.
  8875. archive_cmds=$lt_archive_cmds
  8876. archive_expsym_cmds=$lt_archive_expsym_cmds
  8877. postinstall_cmds=$lt_postinstall_cmds
  8878. postuninstall_cmds=$lt_postuninstall_cmds
  8879. # Commands used to build a loadable module (assumed same as above if empty)
  8880. module_cmds=$lt_module_cmds
  8881. module_expsym_cmds=$lt_module_expsym_cmds
  8882. # Commands to strip libraries.
  8883. old_striplib=$lt_old_striplib
  8884. striplib=$lt_striplib
  8885. # Dependencies to place before the objects being linked to create a
  8886. # shared library.
  8887. predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8888. # Dependencies to place after the objects being linked to create a
  8889. # shared library.
  8890. postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8891. # Dependencies to place before the objects being linked to create a
  8892. # shared library.
  8893. predeps=$lt_predeps
  8894. # Dependencies to place after the objects being linked to create a
  8895. # shared library.
  8896. postdeps=$lt_postdeps
  8897. # The library search path used internally by the compiler when linking
  8898. # a shared library.
  8899. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8900. # Method to check whether dependent libraries are shared objects.
  8901. deplibs_check_method=$lt_deplibs_check_method
  8902. # Command to use when deplibs_check_method == file_magic.
  8903. file_magic_cmd=$lt_file_magic_cmd
  8904. # Flag that allows shared libraries with undefined symbols to be built.
  8905. allow_undefined_flag=$lt_allow_undefined_flag
  8906. # Flag that forces no undefined symbols.
  8907. no_undefined_flag=$lt_no_undefined_flag
  8908. # Commands used to finish a libtool library installation in a directory.
  8909. finish_cmds=$lt_finish_cmds
  8910. # Same as above, but a single script fragment to be evaled but not shown.
  8911. finish_eval=$lt_finish_eval
  8912. # Take the output of nm and produce a listing of raw symbols and C names.
  8913. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8914. # Transform the output of nm in a proper C declaration
  8915. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8916. # Transform the output of nm in a C name address pair
  8917. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8918. # This is the shared library runtime path variable.
  8919. runpath_var=$runpath_var
  8920. # This is the shared library path variable.
  8921. shlibpath_var=$shlibpath_var
  8922. # Is shlibpath searched before the hard-coded library search path?
  8923. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8924. # How to hardcode a shared library path into an executable.
  8925. hardcode_action=$hardcode_action
  8926. # Whether we should hardcode library paths into libraries.
  8927. hardcode_into_libs=$hardcode_into_libs
  8928. # Flag to hardcode \$libdir into a binary during linking.
  8929. # This must work even if \$libdir does not exist.
  8930. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8931. # If ld is used when linking, flag to hardcode \$libdir into
  8932. # a binary during linking. This must work even if \$libdir does
  8933. # not exist.
  8934. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8935. # Whether we need a single -rpath flag with a separated argument.
  8936. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8937. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8938. # resulting binary.
  8939. hardcode_direct=$hardcode_direct
  8940. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8941. # resulting binary.
  8942. hardcode_minus_L=$hardcode_minus_L
  8943. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8944. # the resulting binary.
  8945. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8946. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8947. # and all subsequent libraries and executables linked against it.
  8948. hardcode_automatic=$hardcode_automatic
  8949. # Variables whose values should be saved in libtool wrapper scripts and
  8950. # restored at relink time.
  8951. variables_saved_for_relink="$variables_saved_for_relink"
  8952. # Whether libtool must link a program against all its dependency libraries.
  8953. link_all_deplibs=$link_all_deplibs
  8954. # Compile-time system search path for libraries
  8955. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8956. # Run-time system search path for libraries
  8957. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8958. # Fix the shell variable \$srcfile for the compiler.
  8959. fix_srcfile_path="$fix_srcfile_path"
  8960. # Set to yes if exported symbols are required.
  8961. always_export_symbols=$always_export_symbols
  8962. # The commands to list exported symbols.
  8963. export_symbols_cmds=$lt_export_symbols_cmds
  8964. # The commands to extract the exported symbol list from a shared archive.
  8965. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8966. # Symbols that should not be listed in the preloaded symbols.
  8967. exclude_expsyms=$lt_exclude_expsyms
  8968. # Symbols that must always be exported.
  8969. include_expsyms=$lt_include_expsyms
  8970. # ### END LIBTOOL CONFIG
  8971. __EOF__
  8972. case $host_os in
  8973. aix3*)
  8974. cat <<\EOF >> "$cfgfile"
  8975. # AIX sometimes has problems with the GCC collect2 program. For some
  8976. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8977. # vanish in a puff of smoke.
  8978. if test "X${COLLECT_NAMES+set}" != Xset; then
  8979. COLLECT_NAMES=
  8980. export COLLECT_NAMES
  8981. fi
  8982. EOF
  8983. ;;
  8984. esac
  8985. # We use sed instead of cat because bash on DJGPP gets confused if
  8986. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8987. # text mode, it properly converts lines to CR/LF. This bash problem
  8988. # is reportedly fixed, but why not run on old versions too?
  8989. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8990. mv -f "$cfgfile" "$ofile" || \
  8991. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8992. chmod +x "$ofile"
  8993. else
  8994. # If there is no Makefile yet, we rely on a make rule to execute
  8995. # `config.status --recheck' to rerun these tests and create the
  8996. # libtool script then.
  8997. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8998. if test -f "$ltmain_in"; then
  8999. test -f Makefile && make "$ltmain"
  9000. fi
  9001. fi
  9002. ac_ext=c
  9003. ac_cpp='$CPP $CPPFLAGS'
  9004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9007. CC="$lt_save_CC"
  9008. # Check whether --with-tags or --without-tags was given.
  9009. if test "${with_tags+set}" = set; then
  9010. withval="$with_tags"
  9011. tagnames="$withval"
  9012. fi;
  9013. if test -f "$ltmain" && test -n "$tagnames"; then
  9014. if test ! -f "${ofile}"; then
  9015. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9016. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9017. fi
  9018. if test -z "$LTCC"; then
  9019. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9020. if test -z "$LTCC"; then
  9021. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9022. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9023. else
  9024. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9025. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9026. fi
  9027. fi
  9028. if test -z "$LTCFLAGS"; then
  9029. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9030. fi
  9031. # Extract list of available tagged configurations in $ofile.
  9032. # Note that this assumes the entire list is on one line.
  9033. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9034. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9035. for tagname in $tagnames; do
  9036. IFS="$lt_save_ifs"
  9037. # Check whether tagname contains only valid characters
  9038. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9039. "") ;;
  9040. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9041. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9042. { (exit 1); exit 1; }; }
  9043. ;;
  9044. esac
  9045. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9046. then
  9047. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9048. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9049. { (exit 1); exit 1; }; }
  9050. fi
  9051. # Update the list of available tags.
  9052. if test -n "$tagname"; then
  9053. echo appending configuration tag \"$tagname\" to $ofile
  9054. case $tagname in
  9055. CXX)
  9056. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9057. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9058. (test "X$CXX" != "Xg++"))) ; then
  9059. ac_ext=cc
  9060. ac_cpp='$CXXCPP $CPPFLAGS'
  9061. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9062. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9063. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9064. archive_cmds_need_lc_CXX=no
  9065. allow_undefined_flag_CXX=
  9066. always_export_symbols_CXX=no
  9067. archive_expsym_cmds_CXX=
  9068. export_dynamic_flag_spec_CXX=
  9069. hardcode_direct_CXX=no
  9070. hardcode_libdir_flag_spec_CXX=
  9071. hardcode_libdir_flag_spec_ld_CXX=
  9072. hardcode_libdir_separator_CXX=
  9073. hardcode_minus_L_CXX=no
  9074. hardcode_shlibpath_var_CXX=unsupported
  9075. hardcode_automatic_CXX=no
  9076. module_cmds_CXX=
  9077. module_expsym_cmds_CXX=
  9078. link_all_deplibs_CXX=unknown
  9079. old_archive_cmds_CXX=$old_archive_cmds
  9080. no_undefined_flag_CXX=
  9081. whole_archive_flag_spec_CXX=
  9082. enable_shared_with_static_runtimes_CXX=no
  9083. # Dependencies to place before and after the object being linked:
  9084. predep_objects_CXX=
  9085. postdep_objects_CXX=
  9086. predeps_CXX=
  9087. postdeps_CXX=
  9088. compiler_lib_search_path_CXX=
  9089. # Source file extension for C++ test sources.
  9090. ac_ext=cpp
  9091. # Object file extension for compiled C++ test sources.
  9092. objext=o
  9093. objext_CXX=$objext
  9094. # Code to be used in simple compile tests
  9095. lt_simple_compile_test_code="int some_variable = 0;\n"
  9096. # Code to be used in simple link tests
  9097. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9098. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9099. # If no C compiler was specified, use CC.
  9100. LTCC=${LTCC-"$CC"}
  9101. # If no C compiler flags were specified, use CFLAGS.
  9102. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9103. # Allow CC to be a program name with arguments.
  9104. compiler=$CC
  9105. # save warnings/boilerplate of simple test code
  9106. ac_outfile=conftest.$ac_objext
  9107. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9108. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9109. _lt_compiler_boilerplate=`cat conftest.err`
  9110. $rm conftest*
  9111. ac_outfile=conftest.$ac_objext
  9112. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9113. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9114. _lt_linker_boilerplate=`cat conftest.err`
  9115. $rm conftest*
  9116. # Allow CC to be a program name with arguments.
  9117. lt_save_CC=$CC
  9118. lt_save_LD=$LD
  9119. lt_save_GCC=$GCC
  9120. GCC=$GXX
  9121. lt_save_with_gnu_ld=$with_gnu_ld
  9122. lt_save_path_LD=$lt_cv_path_LD
  9123. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9124. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9125. else
  9126. $as_unset lt_cv_prog_gnu_ld
  9127. fi
  9128. if test -n "${lt_cv_path_LDCXX+set}"; then
  9129. lt_cv_path_LD=$lt_cv_path_LDCXX
  9130. else
  9131. $as_unset lt_cv_path_LD
  9132. fi
  9133. test -z "${LDCXX+set}" || LD=$LDCXX
  9134. CC=${CXX-"c++"}
  9135. compiler=$CC
  9136. compiler_CXX=$CC
  9137. for cc_temp in $compiler""; do
  9138. case $cc_temp in
  9139. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9140. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9141. \-*) ;;
  9142. *) break;;
  9143. esac
  9144. done
  9145. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9146. # We don't want -fno-exception wen compiling C++ code, so set the
  9147. # no_builtin_flag separately
  9148. if test "$GXX" = yes; then
  9149. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9150. else
  9151. lt_prog_compiler_no_builtin_flag_CXX=
  9152. fi
  9153. if test "$GXX" = yes; then
  9154. # Set up default GNU C++ configuration
  9155. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9156. if test "${with_gnu_ld+set}" = set; then
  9157. withval="$with_gnu_ld"
  9158. test "$withval" = no || with_gnu_ld=yes
  9159. else
  9160. with_gnu_ld=no
  9161. fi;
  9162. ac_prog=ld
  9163. if test "$GCC" = yes; then
  9164. # Check if gcc -print-prog-name=ld gives a path.
  9165. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9166. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9167. case $host in
  9168. *-*-mingw*)
  9169. # gcc leaves a trailing carriage return which upsets mingw
  9170. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9171. *)
  9172. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9173. esac
  9174. case $ac_prog in
  9175. # Accept absolute paths.
  9176. [\\/]* | ?:[\\/]*)
  9177. re_direlt='/[^/][^/]*/\.\./'
  9178. # Canonicalize the pathname of ld
  9179. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9180. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9181. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9182. done
  9183. test -z "$LD" && LD="$ac_prog"
  9184. ;;
  9185. "")
  9186. # If it fails, then pretend we aren't using GCC.
  9187. ac_prog=ld
  9188. ;;
  9189. *)
  9190. # If it is relative, then search for the first ld in PATH.
  9191. with_gnu_ld=unknown
  9192. ;;
  9193. esac
  9194. elif test "$with_gnu_ld" = yes; then
  9195. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9196. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9197. else
  9198. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9199. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9200. fi
  9201. if test "${lt_cv_path_LD+set}" = set; then
  9202. echo $ECHO_N "(cached) $ECHO_C" >&6
  9203. else
  9204. if test -z "$LD"; then
  9205. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9206. for ac_dir in $PATH; do
  9207. IFS="$lt_save_ifs"
  9208. test -z "$ac_dir" && ac_dir=.
  9209. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9210. lt_cv_path_LD="$ac_dir/$ac_prog"
  9211. # Check to see if the program is GNU ld. I'd rather use --version,
  9212. # but apparently some variants of GNU ld only accept -v.
  9213. # Break only if it was the GNU/non-GNU ld that we prefer.
  9214. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9215. *GNU* | *'with BFD'*)
  9216. test "$with_gnu_ld" != no && break
  9217. ;;
  9218. *)
  9219. test "$with_gnu_ld" != yes && break
  9220. ;;
  9221. esac
  9222. fi
  9223. done
  9224. IFS="$lt_save_ifs"
  9225. else
  9226. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9227. fi
  9228. fi
  9229. LD="$lt_cv_path_LD"
  9230. if test -n "$LD"; then
  9231. echo "$as_me:$LINENO: result: $LD" >&5
  9232. echo "${ECHO_T}$LD" >&6
  9233. else
  9234. echo "$as_me:$LINENO: result: no" >&5
  9235. echo "${ECHO_T}no" >&6
  9236. fi
  9237. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9238. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9239. { (exit 1); exit 1; }; }
  9240. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9241. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9242. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9243. echo $ECHO_N "(cached) $ECHO_C" >&6
  9244. else
  9245. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9246. case `$LD -v 2>&1 </dev/null` in
  9247. *GNU* | *'with BFD'*)
  9248. lt_cv_prog_gnu_ld=yes
  9249. ;;
  9250. *)
  9251. lt_cv_prog_gnu_ld=no
  9252. ;;
  9253. esac
  9254. fi
  9255. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9256. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9257. with_gnu_ld=$lt_cv_prog_gnu_ld
  9258. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9259. # archiving commands below assume that GNU ld is being used.
  9260. if test "$with_gnu_ld" = yes; then
  9261. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9262. 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'
  9263. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9264. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9265. # If archive_cmds runs LD, not CC, wlarc should be empty
  9266. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9267. # investigate it a little bit more. (MM)
  9268. wlarc='${wl}'
  9269. # ancient GNU ld didn't support --whole-archive et. al.
  9270. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9271. grep 'no-whole-archive' > /dev/null; then
  9272. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9273. else
  9274. whole_archive_flag_spec_CXX=
  9275. fi
  9276. else
  9277. with_gnu_ld=no
  9278. wlarc=
  9279. # A generic and very simple default shared library creation
  9280. # command for GNU C++ for the case where it uses the native
  9281. # linker, instead of GNU ld. If possible, this setting should
  9282. # overridden to take advantage of the native linker features on
  9283. # the platform it is being used on.
  9284. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9285. fi
  9286. # Commands to make compiler produce verbose output that lists
  9287. # what "hidden" libraries, object files and flags are used when
  9288. # linking a shared library.
  9289. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9290. else
  9291. GXX=no
  9292. with_gnu_ld=no
  9293. wlarc=
  9294. fi
  9295. # PORTME: fill in a description of your system's C++ link characteristics
  9296. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9297. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9298. ld_shlibs_CXX=yes
  9299. case $host_os in
  9300. aix3*)
  9301. # FIXME: insert proper C++ library support
  9302. ld_shlibs_CXX=no
  9303. ;;
  9304. aix4* | aix5*)
  9305. if test "$host_cpu" = ia64; then
  9306. # On IA64, the linker does run time linking by default, so we don't
  9307. # have to do anything special.
  9308. aix_use_runtimelinking=no
  9309. exp_sym_flag='-Bexport'
  9310. no_entry_flag=""
  9311. else
  9312. aix_use_runtimelinking=no
  9313. # Test if we are trying to use run time linking or normal
  9314. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9315. # need to do runtime linking.
  9316. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9317. for ld_flag in $LDFLAGS; do
  9318. case $ld_flag in
  9319. *-brtl*)
  9320. aix_use_runtimelinking=yes
  9321. break
  9322. ;;
  9323. esac
  9324. done
  9325. ;;
  9326. esac
  9327. exp_sym_flag='-bexport'
  9328. no_entry_flag='-bnoentry'
  9329. fi
  9330. # When large executables or shared objects are built, AIX ld can
  9331. # have problems creating the table of contents. If linking a library
  9332. # or program results in "error TOC overflow" add -mminimal-toc to
  9333. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9334. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9335. archive_cmds_CXX=''
  9336. hardcode_direct_CXX=yes
  9337. hardcode_libdir_separator_CXX=':'
  9338. link_all_deplibs_CXX=yes
  9339. if test "$GXX" = yes; then
  9340. case $host_os in aix4.[012]|aix4.[012].*)
  9341. # We only want to do this on AIX 4.2 and lower, the check
  9342. # below for broken collect2 doesn't work under 4.3+
  9343. collect2name=`${CC} -print-prog-name=collect2`
  9344. if test -f "$collect2name" && \
  9345. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9346. then
  9347. # We have reworked collect2
  9348. hardcode_direct_CXX=yes
  9349. else
  9350. # We have old collect2
  9351. hardcode_direct_CXX=unsupported
  9352. # It fails to find uninstalled libraries when the uninstalled
  9353. # path is not listed in the libpath. Setting hardcode_minus_L
  9354. # to unsupported forces relinking
  9355. hardcode_minus_L_CXX=yes
  9356. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9357. hardcode_libdir_separator_CXX=
  9358. fi
  9359. ;;
  9360. esac
  9361. shared_flag='-shared'
  9362. if test "$aix_use_runtimelinking" = yes; then
  9363. shared_flag="$shared_flag "'${wl}-G'
  9364. fi
  9365. else
  9366. # not using gcc
  9367. if test "$host_cpu" = ia64; then
  9368. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9369. # chokes on -Wl,-G. The following line is correct:
  9370. shared_flag='-G'
  9371. else
  9372. if test "$aix_use_runtimelinking" = yes; then
  9373. shared_flag='${wl}-G'
  9374. else
  9375. shared_flag='${wl}-bM:SRE'
  9376. fi
  9377. fi
  9378. fi
  9379. # It seems that -bexpall does not export symbols beginning with
  9380. # underscore (_), so it is better to generate a list of symbols to export.
  9381. always_export_symbols_CXX=yes
  9382. if test "$aix_use_runtimelinking" = yes; then
  9383. # Warning - without using the other runtime loading flags (-brtl),
  9384. # -berok will link without error, but may produce a broken library.
  9385. allow_undefined_flag_CXX='-berok'
  9386. # Determine the default libpath from the value encoded in an empty executable.
  9387. cat >conftest.$ac_ext <<_ACEOF
  9388. /* confdefs.h. */
  9389. _ACEOF
  9390. cat confdefs.h >>conftest.$ac_ext
  9391. cat >>conftest.$ac_ext <<_ACEOF
  9392. /* end confdefs.h. */
  9393. int
  9394. main ()
  9395. {
  9396. ;
  9397. return 0;
  9398. }
  9399. _ACEOF
  9400. rm -f conftest.$ac_objext conftest$ac_exeext
  9401. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9402. (eval $ac_link) 2>conftest.er1
  9403. ac_status=$?
  9404. grep -v '^ *+' conftest.er1 >conftest.err
  9405. rm -f conftest.er1
  9406. cat conftest.err >&5
  9407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9408. (exit $ac_status); } &&
  9409. { ac_try='test -z "$ac_cxx_werror_flag"
  9410. || test ! -s conftest.err'
  9411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9412. (eval $ac_try) 2>&5
  9413. ac_status=$?
  9414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9415. (exit $ac_status); }; } &&
  9416. { ac_try='test -s conftest$ac_exeext'
  9417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9418. (eval $ac_try) 2>&5
  9419. ac_status=$?
  9420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9421. (exit $ac_status); }; }; then
  9422. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9423. }'`
  9424. # Check for a 64-bit object if we didn't find anything.
  9425. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9426. }'`; fi
  9427. else
  9428. echo "$as_me: failed program was:" >&5
  9429. sed 's/^/| /' conftest.$ac_ext >&5
  9430. fi
  9431. rm -f conftest.err conftest.$ac_objext \
  9432. conftest$ac_exeext conftest.$ac_ext
  9433. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9434. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9435. 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"
  9436. else
  9437. if test "$host_cpu" = ia64; then
  9438. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9439. allow_undefined_flag_CXX="-z nodefs"
  9440. 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"
  9441. else
  9442. # Determine the default libpath from the value encoded in an empty executable.
  9443. cat >conftest.$ac_ext <<_ACEOF
  9444. /* confdefs.h. */
  9445. _ACEOF
  9446. cat confdefs.h >>conftest.$ac_ext
  9447. cat >>conftest.$ac_ext <<_ACEOF
  9448. /* end confdefs.h. */
  9449. int
  9450. main ()
  9451. {
  9452. ;
  9453. return 0;
  9454. }
  9455. _ACEOF
  9456. rm -f conftest.$ac_objext conftest$ac_exeext
  9457. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9458. (eval $ac_link) 2>conftest.er1
  9459. ac_status=$?
  9460. grep -v '^ *+' conftest.er1 >conftest.err
  9461. rm -f conftest.er1
  9462. cat conftest.err >&5
  9463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9464. (exit $ac_status); } &&
  9465. { ac_try='test -z "$ac_cxx_werror_flag"
  9466. || test ! -s conftest.err'
  9467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9468. (eval $ac_try) 2>&5
  9469. ac_status=$?
  9470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9471. (exit $ac_status); }; } &&
  9472. { ac_try='test -s conftest$ac_exeext'
  9473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9474. (eval $ac_try) 2>&5
  9475. ac_status=$?
  9476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9477. (exit $ac_status); }; }; then
  9478. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9479. }'`
  9480. # Check for a 64-bit object if we didn't find anything.
  9481. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9482. }'`; fi
  9483. else
  9484. echo "$as_me: failed program was:" >&5
  9485. sed 's/^/| /' conftest.$ac_ext >&5
  9486. fi
  9487. rm -f conftest.err conftest.$ac_objext \
  9488. conftest$ac_exeext conftest.$ac_ext
  9489. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9490. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9491. # Warning - without using the other run time loading flags,
  9492. # -berok will link without error, but may produce a broken library.
  9493. no_undefined_flag_CXX=' ${wl}-bernotok'
  9494. allow_undefined_flag_CXX=' ${wl}-berok'
  9495. # Exported symbols can be pulled into shared objects from archives
  9496. whole_archive_flag_spec_CXX='$convenience'
  9497. archive_cmds_need_lc_CXX=yes
  9498. # This is similar to how AIX traditionally builds its shared libraries.
  9499. 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'
  9500. fi
  9501. fi
  9502. ;;
  9503. beos*)
  9504. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9505. allow_undefined_flag_CXX=unsupported
  9506. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9507. # support --undefined. This deserves some investigation. FIXME
  9508. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9509. else
  9510. ld_shlibs_CXX=no
  9511. fi
  9512. ;;
  9513. chorus*)
  9514. case $cc_basename in
  9515. *)
  9516. # FIXME: insert proper C++ library support
  9517. ld_shlibs_CXX=no
  9518. ;;
  9519. esac
  9520. ;;
  9521. cygwin* | mingw* | pw32*)
  9522. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9523. # as there is no search path for DLLs.
  9524. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9525. allow_undefined_flag_CXX=unsupported
  9526. always_export_symbols_CXX=no
  9527. enable_shared_with_static_runtimes_CXX=yes
  9528. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9529. 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'
  9530. # If the export-symbols file already is a .def file (1st line
  9531. # is EXPORTS), use it as is; otherwise, prepend...
  9532. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9533. cp $export_symbols $output_objdir/$soname.def;
  9534. else
  9535. echo EXPORTS > $output_objdir/$soname.def;
  9536. cat $export_symbols >> $output_objdir/$soname.def;
  9537. fi~
  9538. $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'
  9539. else
  9540. ld_shlibs_CXX=no
  9541. fi
  9542. ;;
  9543. darwin* | rhapsody*)
  9544. case $host_os in
  9545. rhapsody* | darwin1.[012])
  9546. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9547. ;;
  9548. *) # Darwin 1.3 on
  9549. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9550. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9551. else
  9552. case ${MACOSX_DEPLOYMENT_TARGET} in
  9553. 10.[012])
  9554. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9555. ;;
  9556. 10.*)
  9557. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9558. ;;
  9559. esac
  9560. fi
  9561. ;;
  9562. esac
  9563. archive_cmds_need_lc_CXX=no
  9564. hardcode_direct_CXX=no
  9565. hardcode_automatic_CXX=yes
  9566. hardcode_shlibpath_var_CXX=unsupported
  9567. whole_archive_flag_spec_CXX=''
  9568. link_all_deplibs_CXX=yes
  9569. if test "$GXX" = yes ; then
  9570. lt_int_apple_cc_single_mod=no
  9571. output_verbose_link_cmd='echo'
  9572. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9573. lt_int_apple_cc_single_mod=yes
  9574. fi
  9575. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9576. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9577. else
  9578. 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'
  9579. fi
  9580. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9581. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9582. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9583. 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}'
  9584. else
  9585. 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}'
  9586. fi
  9587. 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}'
  9588. else
  9589. case $cc_basename in
  9590. xlc*)
  9591. output_verbose_link_cmd='echo'
  9592. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9593. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9594. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9595. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9596. 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}'
  9597. ;;
  9598. *)
  9599. ld_shlibs_CXX=no
  9600. ;;
  9601. esac
  9602. fi
  9603. ;;
  9604. dgux*)
  9605. case $cc_basename in
  9606. ec++*)
  9607. # FIXME: insert proper C++ library support
  9608. ld_shlibs_CXX=no
  9609. ;;
  9610. ghcx*)
  9611. # Green Hills C++ Compiler
  9612. # FIXME: insert proper C++ library support
  9613. ld_shlibs_CXX=no
  9614. ;;
  9615. *)
  9616. # FIXME: insert proper C++ library support
  9617. ld_shlibs_CXX=no
  9618. ;;
  9619. esac
  9620. ;;
  9621. freebsd[12]*)
  9622. # C++ shared libraries reported to be fairly broken before switch to ELF
  9623. ld_shlibs_CXX=no
  9624. ;;
  9625. freebsd-elf*)
  9626. archive_cmds_need_lc_CXX=no
  9627. ;;
  9628. freebsd* | kfreebsd*-gnu | dragonfly*)
  9629. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9630. # conventions
  9631. ld_shlibs_CXX=yes
  9632. ;;
  9633. gnu*)
  9634. ;;
  9635. hpux9*)
  9636. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9637. hardcode_libdir_separator_CXX=:
  9638. export_dynamic_flag_spec_CXX='${wl}-E'
  9639. hardcode_direct_CXX=yes
  9640. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9641. # but as the default
  9642. # location of the library.
  9643. case $cc_basename in
  9644. CC*)
  9645. # FIXME: insert proper C++ library support
  9646. ld_shlibs_CXX=no
  9647. ;;
  9648. aCC*)
  9649. 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'
  9650. # Commands to make compiler produce verbose output that lists
  9651. # what "hidden" libraries, object files and flags are used when
  9652. # linking a shared library.
  9653. #
  9654. # There doesn't appear to be a way to prevent this compiler from
  9655. # explicitly linking system object files so we need to strip them
  9656. # from the output so that they don't get included in the library
  9657. # dependencies.
  9658. 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'
  9659. ;;
  9660. *)
  9661. if test "$GXX" = yes; then
  9662. 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'
  9663. else
  9664. # FIXME: insert proper C++ library support
  9665. ld_shlibs_CXX=no
  9666. fi
  9667. ;;
  9668. esac
  9669. ;;
  9670. hpux10*|hpux11*)
  9671. if test $with_gnu_ld = no; then
  9672. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9673. hardcode_libdir_separator_CXX=:
  9674. case $host_cpu in
  9675. hppa*64*|ia64*)
  9676. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9677. ;;
  9678. *)
  9679. export_dynamic_flag_spec_CXX='${wl}-E'
  9680. ;;
  9681. esac
  9682. fi
  9683. case $host_cpu in
  9684. hppa*64*|ia64*)
  9685. hardcode_direct_CXX=no
  9686. hardcode_shlibpath_var_CXX=no
  9687. ;;
  9688. *)
  9689. hardcode_direct_CXX=yes
  9690. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9691. # but as the default
  9692. # location of the library.
  9693. ;;
  9694. esac
  9695. case $cc_basename in
  9696. CC*)
  9697. # FIXME: insert proper C++ library support
  9698. ld_shlibs_CXX=no
  9699. ;;
  9700. aCC*)
  9701. case $host_cpu in
  9702. hppa*64*)
  9703. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9704. ;;
  9705. ia64*)
  9706. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9707. ;;
  9708. *)
  9709. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9710. ;;
  9711. esac
  9712. # Commands to make compiler produce verbose output that lists
  9713. # what "hidden" libraries, object files and flags are used when
  9714. # linking a shared library.
  9715. #
  9716. # There doesn't appear to be a way to prevent this compiler from
  9717. # explicitly linking system object files so we need to strip them
  9718. # from the output so that they don't get included in the library
  9719. # dependencies.
  9720. 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'
  9721. ;;
  9722. *)
  9723. if test "$GXX" = yes; then
  9724. if test $with_gnu_ld = no; then
  9725. case $host_cpu in
  9726. hppa*64*)
  9727. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9728. ;;
  9729. ia64*)
  9730. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9731. ;;
  9732. *)
  9733. 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'
  9734. ;;
  9735. esac
  9736. fi
  9737. else
  9738. # FIXME: insert proper C++ library support
  9739. ld_shlibs_CXX=no
  9740. fi
  9741. ;;
  9742. esac
  9743. ;;
  9744. interix3*)
  9745. hardcode_direct_CXX=no
  9746. hardcode_shlibpath_var_CXX=no
  9747. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9748. export_dynamic_flag_spec_CXX='${wl}-E'
  9749. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9750. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9751. # default) and relocated if they conflict, which is a slow very memory
  9752. # consuming and fragmenting process. To avoid this, we pick a random,
  9753. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9754. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9755. 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'
  9756. 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'
  9757. ;;
  9758. irix5* | irix6*)
  9759. case $cc_basename in
  9760. CC*)
  9761. # SGI C++
  9762. 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'
  9763. # Archives containing C++ object files must be created using
  9764. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9765. # necessary to make sure instantiated templates are included
  9766. # in the archive.
  9767. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9768. ;;
  9769. *)
  9770. if test "$GXX" = yes; then
  9771. if test "$with_gnu_ld" = no; then
  9772. 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'
  9773. else
  9774. 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'
  9775. fi
  9776. fi
  9777. link_all_deplibs_CXX=yes
  9778. ;;
  9779. esac
  9780. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9781. hardcode_libdir_separator_CXX=:
  9782. ;;
  9783. linux*)
  9784. case $cc_basename in
  9785. KCC*)
  9786. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9787. # KCC will only create a shared library if the output file
  9788. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9789. # to its proper name (with version) after linking.
  9790. 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'
  9791. 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'
  9792. # Commands to make compiler produce verbose output that lists
  9793. # what "hidden" libraries, object files and flags are used when
  9794. # linking a shared library.
  9795. #
  9796. # There doesn't appear to be a way to prevent this compiler from
  9797. # explicitly linking system object files so we need to strip them
  9798. # from the output so that they don't get included in the library
  9799. # dependencies.
  9800. 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'
  9801. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9802. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9803. # Archives containing C++ object files must be created using
  9804. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9805. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9806. ;;
  9807. icpc*)
  9808. # Intel C++
  9809. with_gnu_ld=yes
  9810. # version 8.0 and above of icpc choke on multiply defined symbols
  9811. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9812. # earlier do not add the objects themselves.
  9813. case `$CC -V 2>&1` in
  9814. *"Version 7."*)
  9815. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9816. 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'
  9817. ;;
  9818. *) # Version 8.0 or newer
  9819. tmp_idyn=
  9820. case $host_cpu in
  9821. ia64*) tmp_idyn=' -i_dynamic';;
  9822. esac
  9823. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9824. 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'
  9825. ;;
  9826. esac
  9827. archive_cmds_need_lc_CXX=no
  9828. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9829. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9830. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9831. ;;
  9832. pgCC*)
  9833. # Portland Group C++ compiler
  9834. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9835. 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'
  9836. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9837. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9838. 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'
  9839. ;;
  9840. cxx*)
  9841. # Compaq C++
  9842. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9843. 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'
  9844. runpath_var=LD_RUN_PATH
  9845. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9846. hardcode_libdir_separator_CXX=:
  9847. # Commands to make compiler produce verbose output that lists
  9848. # what "hidden" libraries, object files and flags are used when
  9849. # linking a shared library.
  9850. #
  9851. # There doesn't appear to be a way to prevent this compiler from
  9852. # explicitly linking system object files so we need to strip them
  9853. # from the output so that they don't get included in the library
  9854. # dependencies.
  9855. 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'
  9856. ;;
  9857. esac
  9858. ;;
  9859. lynxos*)
  9860. # FIXME: insert proper C++ library support
  9861. ld_shlibs_CXX=no
  9862. ;;
  9863. m88k*)
  9864. # FIXME: insert proper C++ library support
  9865. ld_shlibs_CXX=no
  9866. ;;
  9867. mvs*)
  9868. case $cc_basename in
  9869. cxx*)
  9870. # FIXME: insert proper C++ library support
  9871. ld_shlibs_CXX=no
  9872. ;;
  9873. *)
  9874. # FIXME: insert proper C++ library support
  9875. ld_shlibs_CXX=no
  9876. ;;
  9877. esac
  9878. ;;
  9879. netbsd*)
  9880. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9881. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9882. wlarc=
  9883. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9884. hardcode_direct_CXX=yes
  9885. hardcode_shlibpath_var_CXX=no
  9886. fi
  9887. # Workaround some broken pre-1.5 toolchains
  9888. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9889. ;;
  9890. openbsd2*)
  9891. # C++ shared libraries are fairly broken
  9892. ld_shlibs_CXX=no
  9893. ;;
  9894. openbsd*)
  9895. hardcode_direct_CXX=yes
  9896. hardcode_shlibpath_var_CXX=no
  9897. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9898. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9899. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9900. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9901. export_dynamic_flag_spec_CXX='${wl}-E'
  9902. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9903. fi
  9904. output_verbose_link_cmd='echo'
  9905. ;;
  9906. osf3*)
  9907. case $cc_basename in
  9908. KCC*)
  9909. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9910. # KCC will only create a shared library if the output file
  9911. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9912. # to its proper name (with version) after linking.
  9913. 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'
  9914. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9915. hardcode_libdir_separator_CXX=:
  9916. # Archives containing C++ object files must be created using
  9917. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9918. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9919. ;;
  9920. RCC*)
  9921. # Rational C++ 2.4.1
  9922. # FIXME: insert proper C++ library support
  9923. ld_shlibs_CXX=no
  9924. ;;
  9925. cxx*)
  9926. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9927. 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'
  9928. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9929. hardcode_libdir_separator_CXX=:
  9930. # Commands to make compiler produce verbose output that lists
  9931. # what "hidden" libraries, object files and flags are used when
  9932. # linking a shared library.
  9933. #
  9934. # There doesn't appear to be a way to prevent this compiler from
  9935. # explicitly linking system object files so we need to strip them
  9936. # from the output so that they don't get included in the library
  9937. # dependencies.
  9938. 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'
  9939. ;;
  9940. *)
  9941. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9942. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9943. 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'
  9944. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9945. hardcode_libdir_separator_CXX=:
  9946. # Commands to make compiler produce verbose output that lists
  9947. # what "hidden" libraries, object files and flags are used when
  9948. # linking a shared library.
  9949. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9950. else
  9951. # FIXME: insert proper C++ library support
  9952. ld_shlibs_CXX=no
  9953. fi
  9954. ;;
  9955. esac
  9956. ;;
  9957. osf4* | osf5*)
  9958. case $cc_basename in
  9959. KCC*)
  9960. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9961. # KCC will only create a shared library if the output file
  9962. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9963. # to its proper name (with version) after linking.
  9964. 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'
  9965. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9966. hardcode_libdir_separator_CXX=:
  9967. # Archives containing C++ object files must be created using
  9968. # the KAI C++ compiler.
  9969. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9970. ;;
  9971. RCC*)
  9972. # Rational C++ 2.4.1
  9973. # FIXME: insert proper C++ library support
  9974. ld_shlibs_CXX=no
  9975. ;;
  9976. cxx*)
  9977. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9978. 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'
  9979. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9980. echo "-hidden">> $lib.exp~
  9981. $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~
  9982. $rm $lib.exp'
  9983. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9984. hardcode_libdir_separator_CXX=:
  9985. # Commands to make compiler produce verbose output that lists
  9986. # what "hidden" libraries, object files and flags are used when
  9987. # linking a shared library.
  9988. #
  9989. # There doesn't appear to be a way to prevent this compiler from
  9990. # explicitly linking system object files so we need to strip them
  9991. # from the output so that they don't get included in the library
  9992. # dependencies.
  9993. 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'
  9994. ;;
  9995. *)
  9996. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9997. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9998. 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'
  9999. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10000. hardcode_libdir_separator_CXX=:
  10001. # Commands to make compiler produce verbose output that lists
  10002. # what "hidden" libraries, object files and flags are used when
  10003. # linking a shared library.
  10004. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10005. else
  10006. # FIXME: insert proper C++ library support
  10007. ld_shlibs_CXX=no
  10008. fi
  10009. ;;
  10010. esac
  10011. ;;
  10012. psos*)
  10013. # FIXME: insert proper C++ library support
  10014. ld_shlibs_CXX=no
  10015. ;;
  10016. sunos4*)
  10017. case $cc_basename in
  10018. CC*)
  10019. # Sun C++ 4.x
  10020. # FIXME: insert proper C++ library support
  10021. ld_shlibs_CXX=no
  10022. ;;
  10023. lcc*)
  10024. # Lucid
  10025. # FIXME: insert proper C++ library support
  10026. ld_shlibs_CXX=no
  10027. ;;
  10028. *)
  10029. # FIXME: insert proper C++ library support
  10030. ld_shlibs_CXX=no
  10031. ;;
  10032. esac
  10033. ;;
  10034. solaris*)
  10035. case $cc_basename in
  10036. CC*)
  10037. # Sun C++ 4.2, 5.x and Centerline C++
  10038. archive_cmds_need_lc_CXX=yes
  10039. no_undefined_flag_CXX=' -zdefs'
  10040. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10041. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10042. $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'
  10043. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10044. hardcode_shlibpath_var_CXX=no
  10045. case $host_os in
  10046. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10047. *)
  10048. # The C++ compiler is used as linker so we must use $wl
  10049. # flag to pass the commands to the underlying system
  10050. # linker. We must also pass each convience library through
  10051. # to the system linker between allextract/defaultextract.
  10052. # The C++ compiler will combine linker options so we
  10053. # cannot just pass the convience library names through
  10054. # without $wl.
  10055. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10056. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  10057. ;;
  10058. esac
  10059. link_all_deplibs_CXX=yes
  10060. output_verbose_link_cmd='echo'
  10061. # Archives containing C++ object files must be created using
  10062. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10063. # necessary to make sure instantiated templates are included
  10064. # in the archive.
  10065. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10066. ;;
  10067. gcx*)
  10068. # Green Hills C++ Compiler
  10069. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10070. # The C++ compiler must be used to create the archive.
  10071. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10072. ;;
  10073. *)
  10074. # GNU C++ compiler with Solaris linker
  10075. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10076. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10077. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10078. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10079. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10080. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10081. # Commands to make compiler produce verbose output that lists
  10082. # what "hidden" libraries, object files and flags are used when
  10083. # linking a shared library.
  10084. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10085. else
  10086. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10087. # platform.
  10088. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10089. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10090. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10091. # Commands to make compiler produce verbose output that lists
  10092. # what "hidden" libraries, object files and flags are used when
  10093. # linking a shared library.
  10094. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10095. fi
  10096. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10097. fi
  10098. ;;
  10099. esac
  10100. ;;
  10101. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10102. no_undefined_flag_CXX='${wl}-z,text'
  10103. archive_cmds_need_lc_CXX=no
  10104. hardcode_shlibpath_var_CXX=no
  10105. runpath_var='LD_RUN_PATH'
  10106. case $cc_basename in
  10107. CC*)
  10108. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10109. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10110. ;;
  10111. *)
  10112. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10113. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10114. ;;
  10115. esac
  10116. ;;
  10117. sysv5* | sco3.2v5* | sco5v6*)
  10118. # Note: We can NOT use -z defs as we might desire, because we do not
  10119. # link with -lc, and that would cause any symbols used from libc to
  10120. # always be unresolved, which means just about no library would
  10121. # ever link correctly. If we're not using GNU ld we use -z text
  10122. # though, which does catch some bad symbols but isn't as heavy-handed
  10123. # as -z defs.
  10124. # For security reasons, it is highly recommended that you always
  10125. # use absolute paths for naming shared libraries, and exclude the
  10126. # DT_RUNPATH tag from executables and libraries. But doing so
  10127. # requires that you compile everything twice, which is a pain.
  10128. # So that behaviour is only enabled if SCOABSPATH is set to a
  10129. # non-empty value in the environment. Most likely only useful for
  10130. # creating official distributions of packages.
  10131. # This is a hack until libtool officially supports absolute path
  10132. # names for shared libraries.
  10133. no_undefined_flag_CXX='${wl}-z,text'
  10134. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10135. archive_cmds_need_lc_CXX=no
  10136. hardcode_shlibpath_var_CXX=no
  10137. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10138. hardcode_libdir_separator_CXX=':'
  10139. link_all_deplibs_CXX=yes
  10140. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10141. runpath_var='LD_RUN_PATH'
  10142. case $cc_basename in
  10143. CC*)
  10144. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10145. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10146. ;;
  10147. *)
  10148. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10149. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10150. ;;
  10151. esac
  10152. ;;
  10153. tandem*)
  10154. case $cc_basename in
  10155. NCC*)
  10156. # NonStop-UX NCC 3.20
  10157. # FIXME: insert proper C++ library support
  10158. ld_shlibs_CXX=no
  10159. ;;
  10160. *)
  10161. # FIXME: insert proper C++ library support
  10162. ld_shlibs_CXX=no
  10163. ;;
  10164. esac
  10165. ;;
  10166. vxworks*)
  10167. # FIXME: insert proper C++ library support
  10168. ld_shlibs_CXX=no
  10169. ;;
  10170. *)
  10171. # FIXME: insert proper C++ library support
  10172. ld_shlibs_CXX=no
  10173. ;;
  10174. esac
  10175. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10176. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10177. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10178. GCC_CXX="$GXX"
  10179. LD_CXX="$LD"
  10180. cat > conftest.$ac_ext <<EOF
  10181. class Foo
  10182. {
  10183. public:
  10184. Foo (void) { a = 0; }
  10185. private:
  10186. int a;
  10187. };
  10188. EOF
  10189. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10190. (eval $ac_compile) 2>&5
  10191. ac_status=$?
  10192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10193. (exit $ac_status); }; then
  10194. # Parse the compiler output and extract the necessary
  10195. # objects, libraries and library flags.
  10196. # Sentinel used to keep track of whether or not we are before
  10197. # the conftest object file.
  10198. pre_test_object_deps_done=no
  10199. # The `*' in the case matches for architectures that use `case' in
  10200. # $output_verbose_cmd can trigger glob expansion during the loop
  10201. # eval without this substitution.
  10202. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10203. for p in `eval $output_verbose_link_cmd`; do
  10204. case $p in
  10205. -L* | -R* | -l*)
  10206. # Some compilers place space between "-{L,R}" and the path.
  10207. # Remove the space.
  10208. if test $p = "-L" \
  10209. || test $p = "-R"; then
  10210. prev=$p
  10211. continue
  10212. else
  10213. prev=
  10214. fi
  10215. if test "$pre_test_object_deps_done" = no; then
  10216. case $p in
  10217. -L* | -R*)
  10218. # Internal compiler library paths should come after those
  10219. # provided the user. The postdeps already come after the
  10220. # user supplied libs so there is no need to process them.
  10221. if test -z "$compiler_lib_search_path_CXX"; then
  10222. compiler_lib_search_path_CXX="${prev}${p}"
  10223. else
  10224. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10225. fi
  10226. ;;
  10227. # The "-l" case would never come before the object being
  10228. # linked, so don't bother handling this case.
  10229. esac
  10230. else
  10231. if test -z "$postdeps_CXX"; then
  10232. postdeps_CXX="${prev}${p}"
  10233. else
  10234. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10235. fi
  10236. fi
  10237. ;;
  10238. *.$objext)
  10239. # This assumes that the test object file only shows up
  10240. # once in the compiler output.
  10241. if test "$p" = "conftest.$objext"; then
  10242. pre_test_object_deps_done=yes
  10243. continue
  10244. fi
  10245. if test "$pre_test_object_deps_done" = no; then
  10246. if test -z "$predep_objects_CXX"; then
  10247. predep_objects_CXX="$p"
  10248. else
  10249. predep_objects_CXX="$predep_objects_CXX $p"
  10250. fi
  10251. else
  10252. if test -z "$postdep_objects_CXX"; then
  10253. postdep_objects_CXX="$p"
  10254. else
  10255. postdep_objects_CXX="$postdep_objects_CXX $p"
  10256. fi
  10257. fi
  10258. ;;
  10259. *) ;; # Ignore the rest.
  10260. esac
  10261. done
  10262. # Clean up.
  10263. rm -f a.out a.exe
  10264. else
  10265. echo "libtool.m4: error: problem compiling CXX test program"
  10266. fi
  10267. $rm -f confest.$objext
  10268. # PORTME: override above test on systems where it is broken
  10269. case $host_os in
  10270. interix3*)
  10271. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10272. # hack all around it, let's just trust "g++" to DTRT.
  10273. predep_objects_CXX=
  10274. postdep_objects_CXX=
  10275. postdeps_CXX=
  10276. ;;
  10277. solaris*)
  10278. case $cc_basename in
  10279. CC*)
  10280. # Adding this requires a known-good setup of shared libraries for
  10281. # Sun compiler versions before 5.6, else PIC objects from an old
  10282. # archive will be linked into the output, leading to subtle bugs.
  10283. postdeps_CXX='-lCstd -lCrun'
  10284. ;;
  10285. esac
  10286. ;;
  10287. esac
  10288. case " $postdeps_CXX " in
  10289. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10290. esac
  10291. lt_prog_compiler_wl_CXX=
  10292. lt_prog_compiler_pic_CXX=
  10293. lt_prog_compiler_static_CXX=
  10294. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10295. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10296. # C++ specific cases for pic, static, wl, etc.
  10297. if test "$GXX" = yes; then
  10298. lt_prog_compiler_wl_CXX='-Wl,'
  10299. lt_prog_compiler_static_CXX='-static'
  10300. case $host_os in
  10301. aix*)
  10302. # All AIX code is PIC.
  10303. if test "$host_cpu" = ia64; then
  10304. # AIX 5 now supports IA64 processor
  10305. lt_prog_compiler_static_CXX='-Bstatic'
  10306. fi
  10307. ;;
  10308. amigaos*)
  10309. # FIXME: we need at least 68020 code to build shared libraries, but
  10310. # adding the `-m68020' flag to GCC prevents building anything better,
  10311. # like `-m68040'.
  10312. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10313. ;;
  10314. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10315. # PIC is the default for these OSes.
  10316. ;;
  10317. mingw* | os2* | pw32*)
  10318. # This hack is so that the source file can tell whether it is being
  10319. # built for inclusion in a dll (and should export symbols for example).
  10320. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10321. ;;
  10322. darwin* | rhapsody*)
  10323. # PIC is the default on this platform
  10324. # Common symbols not allowed in MH_DYLIB files
  10325. lt_prog_compiler_pic_CXX='-fno-common'
  10326. ;;
  10327. *djgpp*)
  10328. # DJGPP does not support shared libraries at all
  10329. lt_prog_compiler_pic_CXX=
  10330. ;;
  10331. interix3*)
  10332. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10333. # Instead, we relocate shared libraries at runtime.
  10334. ;;
  10335. sysv4*MP*)
  10336. if test -d /usr/nec; then
  10337. lt_prog_compiler_pic_CXX=-Kconform_pic
  10338. fi
  10339. ;;
  10340. hpux*)
  10341. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10342. # not for PA HP-UX.
  10343. case $host_cpu in
  10344. hppa*64*|ia64*)
  10345. ;;
  10346. *)
  10347. lt_prog_compiler_pic_CXX='-fPIC'
  10348. ;;
  10349. esac
  10350. ;;
  10351. *)
  10352. lt_prog_compiler_pic_CXX='-fPIC'
  10353. ;;
  10354. esac
  10355. else
  10356. case $host_os in
  10357. aix4* | aix5*)
  10358. # All AIX code is PIC.
  10359. if test "$host_cpu" = ia64; then
  10360. # AIX 5 now supports IA64 processor
  10361. lt_prog_compiler_static_CXX='-Bstatic'
  10362. else
  10363. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10364. fi
  10365. ;;
  10366. chorus*)
  10367. case $cc_basename in
  10368. cxch68*)
  10369. # Green Hills C++ Compiler
  10370. # _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"
  10371. ;;
  10372. esac
  10373. ;;
  10374. darwin*)
  10375. # PIC is the default on this platform
  10376. # Common symbols not allowed in MH_DYLIB files
  10377. case $cc_basename in
  10378. xlc*)
  10379. lt_prog_compiler_pic_CXX='-qnocommon'
  10380. lt_prog_compiler_wl_CXX='-Wl,'
  10381. ;;
  10382. esac
  10383. ;;
  10384. dgux*)
  10385. case $cc_basename in
  10386. ec++*)
  10387. lt_prog_compiler_pic_CXX='-KPIC'
  10388. ;;
  10389. ghcx*)
  10390. # Green Hills C++ Compiler
  10391. lt_prog_compiler_pic_CXX='-pic'
  10392. ;;
  10393. *)
  10394. ;;
  10395. esac
  10396. ;;
  10397. freebsd* | kfreebsd*-gnu | dragonfly*)
  10398. # FreeBSD uses GNU C++
  10399. ;;
  10400. hpux9* | hpux10* | hpux11*)
  10401. case $cc_basename in
  10402. CC*)
  10403. lt_prog_compiler_wl_CXX='-Wl,'
  10404. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10405. if test "$host_cpu" != ia64; then
  10406. lt_prog_compiler_pic_CXX='+Z'
  10407. fi
  10408. ;;
  10409. aCC*)
  10410. lt_prog_compiler_wl_CXX='-Wl,'
  10411. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10412. case $host_cpu in
  10413. hppa*64*|ia64*)
  10414. # +Z the default
  10415. ;;
  10416. *)
  10417. lt_prog_compiler_pic_CXX='+Z'
  10418. ;;
  10419. esac
  10420. ;;
  10421. *)
  10422. ;;
  10423. esac
  10424. ;;
  10425. interix*)
  10426. # This is c89, which is MS Visual C++ (no shared libs)
  10427. # Anyone wants to do a port?
  10428. ;;
  10429. irix5* | irix6* | nonstopux*)
  10430. case $cc_basename in
  10431. CC*)
  10432. lt_prog_compiler_wl_CXX='-Wl,'
  10433. lt_prog_compiler_static_CXX='-non_shared'
  10434. # CC pic flag -KPIC is the default.
  10435. ;;
  10436. *)
  10437. ;;
  10438. esac
  10439. ;;
  10440. linux*)
  10441. case $cc_basename in
  10442. KCC*)
  10443. # KAI C++ Compiler
  10444. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10445. lt_prog_compiler_pic_CXX='-fPIC'
  10446. ;;
  10447. icpc* | ecpc*)
  10448. # Intel C++
  10449. lt_prog_compiler_wl_CXX='-Wl,'
  10450. lt_prog_compiler_pic_CXX='-KPIC'
  10451. lt_prog_compiler_static_CXX='-static'
  10452. ;;
  10453. pgCC*)
  10454. # Portland Group C++ compiler.
  10455. lt_prog_compiler_wl_CXX='-Wl,'
  10456. lt_prog_compiler_pic_CXX='-fpic'
  10457. lt_prog_compiler_static_CXX='-Bstatic'
  10458. ;;
  10459. cxx*)
  10460. # Compaq C++
  10461. # Make sure the PIC flag is empty. It appears that all Alpha
  10462. # Linux and Compaq Tru64 Unix objects are PIC.
  10463. lt_prog_compiler_pic_CXX=
  10464. lt_prog_compiler_static_CXX='-non_shared'
  10465. ;;
  10466. *)
  10467. ;;
  10468. esac
  10469. ;;
  10470. lynxos*)
  10471. ;;
  10472. m88k*)
  10473. ;;
  10474. mvs*)
  10475. case $cc_basename in
  10476. cxx*)
  10477. lt_prog_compiler_pic_CXX='-W c,exportall'
  10478. ;;
  10479. *)
  10480. ;;
  10481. esac
  10482. ;;
  10483. netbsd*)
  10484. ;;
  10485. osf3* | osf4* | osf5*)
  10486. case $cc_basename in
  10487. KCC*)
  10488. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10489. ;;
  10490. RCC*)
  10491. # Rational C++ 2.4.1
  10492. lt_prog_compiler_pic_CXX='-pic'
  10493. ;;
  10494. cxx*)
  10495. # Digital/Compaq C++
  10496. lt_prog_compiler_wl_CXX='-Wl,'
  10497. # Make sure the PIC flag is empty. It appears that all Alpha
  10498. # Linux and Compaq Tru64 Unix objects are PIC.
  10499. lt_prog_compiler_pic_CXX=
  10500. lt_prog_compiler_static_CXX='-non_shared'
  10501. ;;
  10502. *)
  10503. ;;
  10504. esac
  10505. ;;
  10506. psos*)
  10507. ;;
  10508. solaris*)
  10509. case $cc_basename in
  10510. CC*)
  10511. # Sun C++ 4.2, 5.x and Centerline C++
  10512. lt_prog_compiler_pic_CXX='-KPIC'
  10513. lt_prog_compiler_static_CXX='-Bstatic'
  10514. lt_prog_compiler_wl_CXX='-Qoption ld '
  10515. ;;
  10516. gcx*)
  10517. # Green Hills C++ Compiler
  10518. lt_prog_compiler_pic_CXX='-PIC'
  10519. ;;
  10520. *)
  10521. ;;
  10522. esac
  10523. ;;
  10524. sunos4*)
  10525. case $cc_basename in
  10526. CC*)
  10527. # Sun C++ 4.x
  10528. lt_prog_compiler_pic_CXX='-pic'
  10529. lt_prog_compiler_static_CXX='-Bstatic'
  10530. ;;
  10531. lcc*)
  10532. # Lucid
  10533. lt_prog_compiler_pic_CXX='-pic'
  10534. ;;
  10535. *)
  10536. ;;
  10537. esac
  10538. ;;
  10539. tandem*)
  10540. case $cc_basename in
  10541. NCC*)
  10542. # NonStop-UX NCC 3.20
  10543. lt_prog_compiler_pic_CXX='-KPIC'
  10544. ;;
  10545. *)
  10546. ;;
  10547. esac
  10548. ;;
  10549. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10550. case $cc_basename in
  10551. CC*)
  10552. lt_prog_compiler_wl_CXX='-Wl,'
  10553. lt_prog_compiler_pic_CXX='-KPIC'
  10554. lt_prog_compiler_static_CXX='-Bstatic'
  10555. ;;
  10556. esac
  10557. ;;
  10558. vxworks*)
  10559. ;;
  10560. *)
  10561. lt_prog_compiler_can_build_shared_CXX=no
  10562. ;;
  10563. esac
  10564. fi
  10565. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10566. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10567. #
  10568. # Check to make sure the PIC flag actually works.
  10569. #
  10570. if test -n "$lt_prog_compiler_pic_CXX"; then
  10571. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10572. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10573. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10574. echo $ECHO_N "(cached) $ECHO_C" >&6
  10575. else
  10576. lt_prog_compiler_pic_works_CXX=no
  10577. ac_outfile=conftest.$ac_objext
  10578. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10579. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10580. # Insert the option either (1) after the last *FLAGS variable, or
  10581. # (2) before a word containing "conftest.", or (3) at the end.
  10582. # Note that $ac_compile itself does not contain backslashes and begins
  10583. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10584. # The option is referenced via a variable to avoid confusing sed.
  10585. lt_compile=`echo "$ac_compile" | $SED \
  10586. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10587. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10588. -e 's:$: $lt_compiler_flag:'`
  10589. (eval echo "\"\$as_me:11713: $lt_compile\"" >&5)
  10590. (eval "$lt_compile" 2>conftest.err)
  10591. ac_status=$?
  10592. cat conftest.err >&5
  10593. echo "$as_me:11717: \$? = $ac_status" >&5
  10594. if (exit $ac_status) && test -s "$ac_outfile"; then
  10595. # The compiler can only warn and ignore the option if not recognized
  10596. # So say no if there are warnings other than the usual output.
  10597. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10598. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10599. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10600. lt_prog_compiler_pic_works_CXX=yes
  10601. fi
  10602. fi
  10603. $rm conftest*
  10604. fi
  10605. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10606. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10607. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10608. case $lt_prog_compiler_pic_CXX in
  10609. "" | " "*) ;;
  10610. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10611. esac
  10612. else
  10613. lt_prog_compiler_pic_CXX=
  10614. lt_prog_compiler_can_build_shared_CXX=no
  10615. fi
  10616. fi
  10617. case $host_os in
  10618. # For platforms which do not support PIC, -DPIC is meaningless:
  10619. *djgpp*)
  10620. lt_prog_compiler_pic_CXX=
  10621. ;;
  10622. *)
  10623. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10624. ;;
  10625. esac
  10626. #
  10627. # Check to make sure the static flag actually works.
  10628. #
  10629. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10630. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10631. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10632. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10633. echo $ECHO_N "(cached) $ECHO_C" >&6
  10634. else
  10635. lt_prog_compiler_static_works_CXX=no
  10636. save_LDFLAGS="$LDFLAGS"
  10637. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10638. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10639. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10640. # The linker can only warn and ignore the option if not recognized
  10641. # So say no if there are warnings
  10642. if test -s conftest.err; then
  10643. # Append any errors to the config.log.
  10644. cat conftest.err 1>&5
  10645. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10646. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10647. if diff conftest.exp conftest.er2 >/dev/null; then
  10648. lt_prog_compiler_static_works_CXX=yes
  10649. fi
  10650. else
  10651. lt_prog_compiler_static_works_CXX=yes
  10652. fi
  10653. fi
  10654. $rm conftest*
  10655. LDFLAGS="$save_LDFLAGS"
  10656. fi
  10657. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10658. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10659. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10660. :
  10661. else
  10662. lt_prog_compiler_static_CXX=
  10663. fi
  10664. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10665. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10666. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10667. echo $ECHO_N "(cached) $ECHO_C" >&6
  10668. else
  10669. lt_cv_prog_compiler_c_o_CXX=no
  10670. $rm -r conftest 2>/dev/null
  10671. mkdir conftest
  10672. cd conftest
  10673. mkdir out
  10674. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10675. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10676. # Insert the option either (1) after the last *FLAGS variable, or
  10677. # (2) before a word containing "conftest.", or (3) at the end.
  10678. # Note that $ac_compile itself does not contain backslashes and begins
  10679. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10680. lt_compile=`echo "$ac_compile" | $SED \
  10681. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10682. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10683. -e 's:$: $lt_compiler_flag:'`
  10684. (eval echo "\"\$as_me:11817: $lt_compile\"" >&5)
  10685. (eval "$lt_compile" 2>out/conftest.err)
  10686. ac_status=$?
  10687. cat out/conftest.err >&5
  10688. echo "$as_me:11821: \$? = $ac_status" >&5
  10689. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10690. then
  10691. # The compiler can only warn and ignore the option if not recognized
  10692. # So say no if there are warnings
  10693. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10694. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10695. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10696. lt_cv_prog_compiler_c_o_CXX=yes
  10697. fi
  10698. fi
  10699. chmod u+w . 2>&5
  10700. $rm conftest*
  10701. # SGI C++ compiler will create directory out/ii_files/ for
  10702. # template instantiation
  10703. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10704. $rm out/* && rmdir out
  10705. cd ..
  10706. rmdir conftest
  10707. $rm conftest*
  10708. fi
  10709. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10710. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10711. hard_links="nottested"
  10712. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10713. # do not overwrite the value of need_locks provided by the user
  10714. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10715. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10716. hard_links=yes
  10717. $rm conftest*
  10718. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10719. touch conftest.a
  10720. ln conftest.a conftest.b 2>&5 || hard_links=no
  10721. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10722. echo "$as_me:$LINENO: result: $hard_links" >&5
  10723. echo "${ECHO_T}$hard_links" >&6
  10724. if test "$hard_links" = no; then
  10725. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10726. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10727. need_locks=warn
  10728. fi
  10729. else
  10730. need_locks=no
  10731. fi
  10732. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10733. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10734. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10735. case $host_os in
  10736. aix4* | aix5*)
  10737. # If we're using GNU nm, then we don't want the "-C" option.
  10738. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10739. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10740. 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'
  10741. else
  10742. 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'
  10743. fi
  10744. ;;
  10745. pw32*)
  10746. export_symbols_cmds_CXX="$ltdll_cmds"
  10747. ;;
  10748. cygwin* | mingw*)
  10749. 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'
  10750. ;;
  10751. *)
  10752. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10753. ;;
  10754. esac
  10755. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10756. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10757. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10758. #
  10759. # Do we need to explicitly link libc?
  10760. #
  10761. case "x$archive_cmds_need_lc_CXX" in
  10762. x|xyes)
  10763. # Assume -lc should be added
  10764. archive_cmds_need_lc_CXX=yes
  10765. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10766. case $archive_cmds_CXX in
  10767. *'~'*)
  10768. # FIXME: we may have to deal with multi-command sequences.
  10769. ;;
  10770. '$CC '*)
  10771. # Test whether the compiler implicitly links with -lc since on some
  10772. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10773. # to ld, don't add -lc before -lgcc.
  10774. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10775. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10776. $rm conftest*
  10777. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10778. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10779. (eval $ac_compile) 2>&5
  10780. ac_status=$?
  10781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10782. (exit $ac_status); } 2>conftest.err; then
  10783. soname=conftest
  10784. lib=conftest
  10785. libobjs=conftest.$ac_objext
  10786. deplibs=
  10787. wl=$lt_prog_compiler_wl_CXX
  10788. pic_flag=$lt_prog_compiler_pic_CXX
  10789. compiler_flags=-v
  10790. linker_flags=-v
  10791. verstring=
  10792. output_objdir=.
  10793. libname=conftest
  10794. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10795. allow_undefined_flag_CXX=
  10796. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10797. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10798. ac_status=$?
  10799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10800. (exit $ac_status); }
  10801. then
  10802. archive_cmds_need_lc_CXX=no
  10803. else
  10804. archive_cmds_need_lc_CXX=yes
  10805. fi
  10806. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10807. else
  10808. cat conftest.err 1>&5
  10809. fi
  10810. $rm conftest*
  10811. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10812. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10813. ;;
  10814. esac
  10815. fi
  10816. ;;
  10817. esac
  10818. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10819. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10820. library_names_spec=
  10821. libname_spec='lib$name'
  10822. soname_spec=
  10823. shrext_cmds=".so"
  10824. postinstall_cmds=
  10825. postuninstall_cmds=
  10826. finish_cmds=
  10827. finish_eval=
  10828. shlibpath_var=
  10829. shlibpath_overrides_runpath=unknown
  10830. version_type=none
  10831. dynamic_linker="$host_os ld.so"
  10832. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10833. if test "$GCC" = yes; then
  10834. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10835. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10836. # if the path contains ";" then we assume it to be the separator
  10837. # otherwise default to the standard path separator (i.e. ":") - it is
  10838. # assumed that no part of a normal pathname contains ";" but that should
  10839. # okay in the real world where ";" in dirpaths is itself problematic.
  10840. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10841. else
  10842. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10843. fi
  10844. else
  10845. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10846. fi
  10847. need_lib_prefix=unknown
  10848. hardcode_into_libs=no
  10849. # when you set need_version to no, make sure it does not cause -set_version
  10850. # flags to be left without arguments
  10851. need_version=unknown
  10852. case $host_os in
  10853. aix3*)
  10854. version_type=linux
  10855. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10856. shlibpath_var=LIBPATH
  10857. # AIX 3 has no versioning support, so we append a major version to the name.
  10858. soname_spec='${libname}${release}${shared_ext}$major'
  10859. ;;
  10860. aix4* | aix5*)
  10861. version_type=linux
  10862. need_lib_prefix=no
  10863. need_version=no
  10864. hardcode_into_libs=yes
  10865. if test "$host_cpu" = ia64; then
  10866. # AIX 5 supports IA64
  10867. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10868. shlibpath_var=LD_LIBRARY_PATH
  10869. else
  10870. # With GCC up to 2.95.x, collect2 would create an import file
  10871. # for dependence libraries. The import file would start with
  10872. # the line `#! .'. This would cause the generated library to
  10873. # depend on `.', always an invalid library. This was fixed in
  10874. # development snapshots of GCC prior to 3.0.
  10875. case $host_os in
  10876. aix4 | aix4.[01] | aix4.[01].*)
  10877. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10878. echo ' yes '
  10879. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10880. :
  10881. else
  10882. can_build_shared=no
  10883. fi
  10884. ;;
  10885. esac
  10886. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10887. # soname into executable. Probably we can add versioning support to
  10888. # collect2, so additional links can be useful in future.
  10889. if test "$aix_use_runtimelinking" = yes; then
  10890. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10891. # instead of lib<name>.a to let people know that these are not
  10892. # typical AIX shared libraries.
  10893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10894. else
  10895. # We preserve .a as extension for shared libraries through AIX4.2
  10896. # and later when we are not doing run time linking.
  10897. library_names_spec='${libname}${release}.a $libname.a'
  10898. soname_spec='${libname}${release}${shared_ext}$major'
  10899. fi
  10900. shlibpath_var=LIBPATH
  10901. fi
  10902. ;;
  10903. amigaos*)
  10904. library_names_spec='$libname.ixlibrary $libname.a'
  10905. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10906. 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'
  10907. ;;
  10908. beos*)
  10909. library_names_spec='${libname}${shared_ext}'
  10910. dynamic_linker="$host_os ld.so"
  10911. shlibpath_var=LIBRARY_PATH
  10912. ;;
  10913. bsdi[45]*)
  10914. version_type=linux
  10915. need_version=no
  10916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10917. soname_spec='${libname}${release}${shared_ext}$major'
  10918. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10919. shlibpath_var=LD_LIBRARY_PATH
  10920. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10921. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10922. # the default ld.so.conf also contains /usr/contrib/lib and
  10923. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10924. # libtool to hard-code these into programs
  10925. ;;
  10926. cygwin* | mingw* | pw32*)
  10927. version_type=windows
  10928. shrext_cmds=".dll"
  10929. need_version=no
  10930. need_lib_prefix=no
  10931. case $GCC,$host_os in
  10932. yes,cygwin* | yes,mingw* | yes,pw32*)
  10933. library_names_spec='$libname.dll.a'
  10934. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10935. postinstall_cmds='base_file=`basename \${file}`~
  10936. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10937. dldir=$destdir/`dirname \$dlpath`~
  10938. test -d \$dldir || mkdir -p \$dldir~
  10939. $install_prog $dir/$dlname \$dldir/$dlname~
  10940. chmod a+x \$dldir/$dlname'
  10941. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10942. dlpath=$dir/\$dldll~
  10943. $rm \$dlpath'
  10944. shlibpath_overrides_runpath=yes
  10945. case $host_os in
  10946. cygwin*)
  10947. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10948. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10949. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10950. ;;
  10951. mingw*)
  10952. # MinGW DLLs use traditional 'lib' prefix
  10953. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10954. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10955. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10956. # It is most probably a Windows format PATH printed by
  10957. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10958. # path with ; separators, and with drive letters. We can handle the
  10959. # drive letters (cygwin fileutils understands them), so leave them,
  10960. # especially as we might pass files found there to a mingw objdump,
  10961. # which wouldn't understand a cygwinified path. Ahh.
  10962. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10963. else
  10964. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10965. fi
  10966. ;;
  10967. pw32*)
  10968. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10969. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10970. ;;
  10971. esac
  10972. ;;
  10973. *)
  10974. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10975. ;;
  10976. esac
  10977. dynamic_linker='Win32 ld.exe'
  10978. # FIXME: first we should search . and the directory the executable is in
  10979. shlibpath_var=PATH
  10980. ;;
  10981. darwin* | rhapsody*)
  10982. dynamic_linker="$host_os dyld"
  10983. version_type=darwin
  10984. need_lib_prefix=no
  10985. need_version=no
  10986. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10987. soname_spec='${libname}${release}${major}$shared_ext'
  10988. shlibpath_overrides_runpath=yes
  10989. shlibpath_var=DYLD_LIBRARY_PATH
  10990. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10991. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10992. if test "$GCC" = yes; then
  10993. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  10994. else
  10995. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10996. fi
  10997. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10998. ;;
  10999. dgux*)
  11000. version_type=linux
  11001. need_lib_prefix=no
  11002. need_version=no
  11003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11004. soname_spec='${libname}${release}${shared_ext}$major'
  11005. shlibpath_var=LD_LIBRARY_PATH
  11006. ;;
  11007. freebsd1*)
  11008. dynamic_linker=no
  11009. ;;
  11010. kfreebsd*-gnu)
  11011. version_type=linux
  11012. need_lib_prefix=no
  11013. need_version=no
  11014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11015. soname_spec='${libname}${release}${shared_ext}$major'
  11016. shlibpath_var=LD_LIBRARY_PATH
  11017. shlibpath_overrides_runpath=no
  11018. hardcode_into_libs=yes
  11019. dynamic_linker='GNU ld.so'
  11020. ;;
  11021. freebsd* | dragonfly*)
  11022. # DragonFly does not have aout. When/if they implement a new
  11023. # versioning mechanism, adjust this.
  11024. if test -x /usr/bin/objformat; then
  11025. objformat=`/usr/bin/objformat`
  11026. else
  11027. case $host_os in
  11028. freebsd[123]*) objformat=aout ;;
  11029. *) objformat=elf ;;
  11030. esac
  11031. fi
  11032. version_type=freebsd-$objformat
  11033. case $version_type in
  11034. freebsd-elf*)
  11035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11036. need_version=no
  11037. need_lib_prefix=no
  11038. ;;
  11039. freebsd-*)
  11040. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11041. need_version=yes
  11042. ;;
  11043. esac
  11044. shlibpath_var=LD_LIBRARY_PATH
  11045. case $host_os in
  11046. freebsd2*)
  11047. shlibpath_overrides_runpath=yes
  11048. ;;
  11049. freebsd3.[01]* | freebsdelf3.[01]*)
  11050. shlibpath_overrides_runpath=yes
  11051. hardcode_into_libs=yes
  11052. ;;
  11053. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11054. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11055. shlibpath_overrides_runpath=no
  11056. hardcode_into_libs=yes
  11057. ;;
  11058. freebsd*) # from 4.6 on
  11059. shlibpath_overrides_runpath=yes
  11060. hardcode_into_libs=yes
  11061. ;;
  11062. esac
  11063. ;;
  11064. gnu*)
  11065. version_type=linux
  11066. need_lib_prefix=no
  11067. need_version=no
  11068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11069. soname_spec='${libname}${release}${shared_ext}$major'
  11070. shlibpath_var=LD_LIBRARY_PATH
  11071. hardcode_into_libs=yes
  11072. ;;
  11073. hpux9* | hpux10* | hpux11*)
  11074. # Give a soname corresponding to the major version so that dld.sl refuses to
  11075. # link against other versions.
  11076. version_type=sunos
  11077. need_lib_prefix=no
  11078. need_version=no
  11079. case $host_cpu in
  11080. ia64*)
  11081. shrext_cmds='.so'
  11082. hardcode_into_libs=yes
  11083. dynamic_linker="$host_os dld.so"
  11084. shlibpath_var=LD_LIBRARY_PATH
  11085. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11087. soname_spec='${libname}${release}${shared_ext}$major'
  11088. if test "X$HPUX_IA64_MODE" = X32; then
  11089. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11090. else
  11091. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11092. fi
  11093. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11094. ;;
  11095. hppa*64*)
  11096. shrext_cmds='.sl'
  11097. hardcode_into_libs=yes
  11098. dynamic_linker="$host_os dld.sl"
  11099. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11100. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11102. soname_spec='${libname}${release}${shared_ext}$major'
  11103. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11104. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11105. ;;
  11106. *)
  11107. shrext_cmds='.sl'
  11108. dynamic_linker="$host_os dld.sl"
  11109. shlibpath_var=SHLIB_PATH
  11110. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11112. soname_spec='${libname}${release}${shared_ext}$major'
  11113. ;;
  11114. esac
  11115. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11116. postinstall_cmds='chmod 555 $lib'
  11117. ;;
  11118. interix3*)
  11119. version_type=linux
  11120. need_lib_prefix=no
  11121. need_version=no
  11122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11123. soname_spec='${libname}${release}${shared_ext}$major'
  11124. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11125. shlibpath_var=LD_LIBRARY_PATH
  11126. shlibpath_overrides_runpath=no
  11127. hardcode_into_libs=yes
  11128. ;;
  11129. irix5* | irix6* | nonstopux*)
  11130. case $host_os in
  11131. nonstopux*) version_type=nonstopux ;;
  11132. *)
  11133. if test "$lt_cv_prog_gnu_ld" = yes; then
  11134. version_type=linux
  11135. else
  11136. version_type=irix
  11137. fi ;;
  11138. esac
  11139. need_lib_prefix=no
  11140. need_version=no
  11141. soname_spec='${libname}${release}${shared_ext}$major'
  11142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11143. case $host_os in
  11144. irix5* | nonstopux*)
  11145. libsuff= shlibsuff=
  11146. ;;
  11147. *)
  11148. case $LD in # libtool.m4 will add one of these switches to LD
  11149. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11150. libsuff= shlibsuff= libmagic=32-bit;;
  11151. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11152. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11153. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11154. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11155. *) libsuff= shlibsuff= libmagic=never-match;;
  11156. esac
  11157. ;;
  11158. esac
  11159. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11160. shlibpath_overrides_runpath=no
  11161. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11162. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11163. hardcode_into_libs=yes
  11164. ;;
  11165. # No shared lib support for Linux oldld, aout, or coff.
  11166. linux*oldld* | linux*aout* | linux*coff*)
  11167. dynamic_linker=no
  11168. ;;
  11169. # This must be Linux ELF.
  11170. linux*)
  11171. version_type=linux
  11172. need_lib_prefix=no
  11173. need_version=no
  11174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11175. soname_spec='${libname}${release}${shared_ext}$major'
  11176. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11177. shlibpath_var=LD_LIBRARY_PATH
  11178. shlibpath_overrides_runpath=no
  11179. # This implies no fast_install, which is unacceptable.
  11180. # Some rework will be needed to allow for fast_install
  11181. # before this can be enabled.
  11182. hardcode_into_libs=yes
  11183. # find out which ABI we are using
  11184. libsuff=
  11185. case "$host_cpu" in
  11186. x86_64*|s390x*|powerpc64*)
  11187. echo '#line 12353 "configure"' > conftest.$ac_ext
  11188. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11189. (eval $ac_compile) 2>&5
  11190. ac_status=$?
  11191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11192. (exit $ac_status); }; then
  11193. case `/usr/bin/file conftest.$ac_objext` in
  11194. *64-bit*)
  11195. libsuff=64
  11196. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  11197. ;;
  11198. esac
  11199. fi
  11200. rm -rf conftest*
  11201. ;;
  11202. esac
  11203. # Append ld.so.conf contents to the search path
  11204. if test -f /etc/ld.so.conf; then
  11205. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11206. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  11207. fi
  11208. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11209. # powerpc, because MkLinux only supported shared libraries with the
  11210. # GNU dynamic linker. Since this was broken with cross compilers,
  11211. # most powerpc-linux boxes support dynamic linking these days and
  11212. # people can always --disable-shared, the test was removed, and we
  11213. # assume the GNU/Linux dynamic linker is in use.
  11214. dynamic_linker='GNU/Linux ld.so'
  11215. ;;
  11216. knetbsd*-gnu)
  11217. version_type=linux
  11218. need_lib_prefix=no
  11219. need_version=no
  11220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11221. soname_spec='${libname}${release}${shared_ext}$major'
  11222. shlibpath_var=LD_LIBRARY_PATH
  11223. shlibpath_overrides_runpath=no
  11224. hardcode_into_libs=yes
  11225. dynamic_linker='GNU ld.so'
  11226. ;;
  11227. netbsd*)
  11228. version_type=sunos
  11229. need_lib_prefix=no
  11230. need_version=no
  11231. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11233. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11234. dynamic_linker='NetBSD (a.out) ld.so'
  11235. else
  11236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11237. soname_spec='${libname}${release}${shared_ext}$major'
  11238. dynamic_linker='NetBSD ld.elf_so'
  11239. fi
  11240. shlibpath_var=LD_LIBRARY_PATH
  11241. shlibpath_overrides_runpath=yes
  11242. hardcode_into_libs=yes
  11243. ;;
  11244. newsos6)
  11245. version_type=linux
  11246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11247. shlibpath_var=LD_LIBRARY_PATH
  11248. shlibpath_overrides_runpath=yes
  11249. ;;
  11250. nto-qnx*)
  11251. version_type=linux
  11252. need_lib_prefix=no
  11253. need_version=no
  11254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11255. soname_spec='${libname}${release}${shared_ext}$major'
  11256. shlibpath_var=LD_LIBRARY_PATH
  11257. shlibpath_overrides_runpath=yes
  11258. ;;
  11259. openbsd*)
  11260. version_type=sunos
  11261. sys_lib_dlsearch_path_spec="/usr/lib"
  11262. need_lib_prefix=no
  11263. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11264. case $host_os in
  11265. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11266. *) need_version=no ;;
  11267. esac
  11268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11269. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11270. shlibpath_var=LD_LIBRARY_PATH
  11271. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11272. case $host_os in
  11273. openbsd2.[89] | openbsd2.[89].*)
  11274. shlibpath_overrides_runpath=no
  11275. ;;
  11276. *)
  11277. shlibpath_overrides_runpath=yes
  11278. ;;
  11279. esac
  11280. else
  11281. shlibpath_overrides_runpath=yes
  11282. fi
  11283. ;;
  11284. os2*)
  11285. libname_spec='$name'
  11286. shrext_cmds=".dll"
  11287. need_lib_prefix=no
  11288. library_names_spec='$libname${shared_ext} $libname.a'
  11289. dynamic_linker='OS/2 ld.exe'
  11290. shlibpath_var=LIBPATH
  11291. ;;
  11292. osf3* | osf4* | osf5*)
  11293. version_type=osf
  11294. need_lib_prefix=no
  11295. need_version=no
  11296. soname_spec='${libname}${release}${shared_ext}$major'
  11297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11298. shlibpath_var=LD_LIBRARY_PATH
  11299. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11300. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11301. ;;
  11302. solaris*)
  11303. version_type=linux
  11304. need_lib_prefix=no
  11305. need_version=no
  11306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11307. soname_spec='${libname}${release}${shared_ext}$major'
  11308. shlibpath_var=LD_LIBRARY_PATH
  11309. shlibpath_overrides_runpath=yes
  11310. hardcode_into_libs=yes
  11311. # ldd complains unless libraries are executable
  11312. postinstall_cmds='chmod +x $lib'
  11313. ;;
  11314. sunos4*)
  11315. version_type=sunos
  11316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11317. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11318. shlibpath_var=LD_LIBRARY_PATH
  11319. shlibpath_overrides_runpath=yes
  11320. if test "$with_gnu_ld" = yes; then
  11321. need_lib_prefix=no
  11322. fi
  11323. need_version=yes
  11324. ;;
  11325. sysv4 | sysv4.3*)
  11326. version_type=linux
  11327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11328. soname_spec='${libname}${release}${shared_ext}$major'
  11329. shlibpath_var=LD_LIBRARY_PATH
  11330. case $host_vendor in
  11331. sni)
  11332. shlibpath_overrides_runpath=no
  11333. need_lib_prefix=no
  11334. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11335. runpath_var=LD_RUN_PATH
  11336. ;;
  11337. siemens)
  11338. need_lib_prefix=no
  11339. ;;
  11340. motorola)
  11341. need_lib_prefix=no
  11342. need_version=no
  11343. shlibpath_overrides_runpath=no
  11344. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11345. ;;
  11346. esac
  11347. ;;
  11348. sysv4*MP*)
  11349. if test -d /usr/nec ;then
  11350. version_type=linux
  11351. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11352. soname_spec='$libname${shared_ext}.$major'
  11353. shlibpath_var=LD_LIBRARY_PATH
  11354. fi
  11355. ;;
  11356. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11357. version_type=freebsd-elf
  11358. need_lib_prefix=no
  11359. need_version=no
  11360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11361. soname_spec='${libname}${release}${shared_ext}$major'
  11362. shlibpath_var=LD_LIBRARY_PATH
  11363. hardcode_into_libs=yes
  11364. if test "$with_gnu_ld" = yes; then
  11365. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11366. shlibpath_overrides_runpath=no
  11367. else
  11368. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11369. shlibpath_overrides_runpath=yes
  11370. case $host_os in
  11371. sco3.2v5*)
  11372. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11373. ;;
  11374. esac
  11375. fi
  11376. sys_lib_dlsearch_path_spec='/usr/lib'
  11377. ;;
  11378. uts4*)
  11379. version_type=linux
  11380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11381. soname_spec='${libname}${release}${shared_ext}$major'
  11382. shlibpath_var=LD_LIBRARY_PATH
  11383. ;;
  11384. *)
  11385. dynamic_linker=no
  11386. ;;
  11387. esac
  11388. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11389. echo "${ECHO_T}$dynamic_linker" >&6
  11390. test "$dynamic_linker" = no && can_build_shared=no
  11391. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11392. if test "$GCC" = yes; then
  11393. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11394. fi
  11395. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11396. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11397. hardcode_action_CXX=
  11398. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11399. test -n "$runpath_var_CXX" || \
  11400. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11401. # We can hardcode non-existant directories.
  11402. if test "$hardcode_direct_CXX" != no &&
  11403. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11404. # have to relink, otherwise we might link with an installed library
  11405. # when we should be linking with a yet-to-be-installed one
  11406. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11407. test "$hardcode_minus_L_CXX" != no; then
  11408. # Linking always hardcodes the temporary library directory.
  11409. hardcode_action_CXX=relink
  11410. else
  11411. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11412. hardcode_action_CXX=immediate
  11413. fi
  11414. else
  11415. # We cannot hardcode anything, or else we can only hardcode existing
  11416. # directories.
  11417. hardcode_action_CXX=unsupported
  11418. fi
  11419. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11420. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11421. if test "$hardcode_action_CXX" = relink; then
  11422. # Fast installation is not supported
  11423. enable_fast_install=no
  11424. elif test "$shlibpath_overrides_runpath" = yes ||
  11425. test "$enable_shared" = no; then
  11426. # Fast installation is not necessary
  11427. enable_fast_install=needless
  11428. fi
  11429. # The else clause should only fire when bootstrapping the
  11430. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11431. # with your package, and you will get complaints that there are
  11432. # no rules to generate ltmain.sh.
  11433. if test -f "$ltmain"; then
  11434. # See if we are running on zsh, and set the options which allow our commands through
  11435. # without removal of \ escapes.
  11436. if test -n "${ZSH_VERSION+set}" ; then
  11437. setopt NO_GLOB_SUBST
  11438. fi
  11439. # Now quote all the things that may contain metacharacters while being
  11440. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11441. # variables and quote the copies for generation of the libtool script.
  11442. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11443. SED SHELL STRIP \
  11444. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11445. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11446. deplibs_check_method reload_flag reload_cmds need_locks \
  11447. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11448. lt_cv_sys_global_symbol_to_c_name_address \
  11449. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11450. old_postinstall_cmds old_postuninstall_cmds \
  11451. compiler_CXX \
  11452. CC_CXX \
  11453. LD_CXX \
  11454. lt_prog_compiler_wl_CXX \
  11455. lt_prog_compiler_pic_CXX \
  11456. lt_prog_compiler_static_CXX \
  11457. lt_prog_compiler_no_builtin_flag_CXX \
  11458. export_dynamic_flag_spec_CXX \
  11459. thread_safe_flag_spec_CXX \
  11460. whole_archive_flag_spec_CXX \
  11461. enable_shared_with_static_runtimes_CXX \
  11462. old_archive_cmds_CXX \
  11463. old_archive_from_new_cmds_CXX \
  11464. predep_objects_CXX \
  11465. postdep_objects_CXX \
  11466. predeps_CXX \
  11467. postdeps_CXX \
  11468. compiler_lib_search_path_CXX \
  11469. archive_cmds_CXX \
  11470. archive_expsym_cmds_CXX \
  11471. postinstall_cmds_CXX \
  11472. postuninstall_cmds_CXX \
  11473. old_archive_from_expsyms_cmds_CXX \
  11474. allow_undefined_flag_CXX \
  11475. no_undefined_flag_CXX \
  11476. export_symbols_cmds_CXX \
  11477. hardcode_libdir_flag_spec_CXX \
  11478. hardcode_libdir_flag_spec_ld_CXX \
  11479. hardcode_libdir_separator_CXX \
  11480. hardcode_automatic_CXX \
  11481. module_cmds_CXX \
  11482. module_expsym_cmds_CXX \
  11483. lt_cv_prog_compiler_c_o_CXX \
  11484. exclude_expsyms_CXX \
  11485. include_expsyms_CXX; do
  11486. case $var in
  11487. old_archive_cmds_CXX | \
  11488. old_archive_from_new_cmds_CXX | \
  11489. archive_cmds_CXX | \
  11490. archive_expsym_cmds_CXX | \
  11491. module_cmds_CXX | \
  11492. module_expsym_cmds_CXX | \
  11493. old_archive_from_expsyms_cmds_CXX | \
  11494. export_symbols_cmds_CXX | \
  11495. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11496. postinstall_cmds | postuninstall_cmds | \
  11497. old_postinstall_cmds | old_postuninstall_cmds | \
  11498. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11499. # Double-quote double-evaled strings.
  11500. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11501. ;;
  11502. *)
  11503. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11504. ;;
  11505. esac
  11506. done
  11507. case $lt_echo in
  11508. *'\$0 --fallback-echo"')
  11509. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11510. ;;
  11511. esac
  11512. cfgfile="$ofile"
  11513. cat <<__EOF__ >> "$cfgfile"
  11514. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11515. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11516. # Shell to use when invoking shell scripts.
  11517. SHELL=$lt_SHELL
  11518. # Whether or not to build shared libraries.
  11519. build_libtool_libs=$enable_shared
  11520. # Whether or not to build static libraries.
  11521. build_old_libs=$enable_static
  11522. # Whether or not to add -lc for building shared libraries.
  11523. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11524. # Whether or not to disallow shared libs when runtime libs are static
  11525. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11526. # Whether or not to optimize for fast installation.
  11527. fast_install=$enable_fast_install
  11528. # The host system.
  11529. host_alias=$host_alias
  11530. host=$host
  11531. host_os=$host_os
  11532. # The build system.
  11533. build_alias=$build_alias
  11534. build=$build
  11535. build_os=$build_os
  11536. # An echo program that does not interpret backslashes.
  11537. echo=$lt_echo
  11538. # The archiver.
  11539. AR=$lt_AR
  11540. AR_FLAGS=$lt_AR_FLAGS
  11541. # A C compiler.
  11542. LTCC=$lt_LTCC
  11543. # LTCC compiler flags.
  11544. LTCFLAGS=$lt_LTCFLAGS
  11545. # A language-specific compiler.
  11546. CC=$lt_compiler_CXX
  11547. # Is the compiler the GNU C compiler?
  11548. with_gcc=$GCC_CXX
  11549. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  11550. gcc_ver=\`gcc -dumpversion\`
  11551. # An ERE matcher.
  11552. EGREP=$lt_EGREP
  11553. # The linker used to build libraries.
  11554. LD=$lt_LD_CXX
  11555. # Whether we need hard or soft links.
  11556. LN_S=$lt_LN_S
  11557. # A BSD-compatible nm program.
  11558. NM=$lt_NM
  11559. # A symbol stripping program
  11560. STRIP=$lt_STRIP
  11561. # Used to examine libraries when file_magic_cmd begins "file"
  11562. MAGIC_CMD=$MAGIC_CMD
  11563. # Used on cygwin: DLL creation program.
  11564. DLLTOOL="$DLLTOOL"
  11565. # Used on cygwin: object dumper.
  11566. OBJDUMP="$OBJDUMP"
  11567. # Used on cygwin: assembler.
  11568. AS="$AS"
  11569. # The name of the directory that contains temporary libtool files.
  11570. objdir=$objdir
  11571. # How to create reloadable object files.
  11572. reload_flag=$lt_reload_flag
  11573. reload_cmds=$lt_reload_cmds
  11574. # How to pass a linker flag through the compiler.
  11575. wl=$lt_lt_prog_compiler_wl_CXX
  11576. # Object file suffix (normally "o").
  11577. objext="$ac_objext"
  11578. # Old archive suffix (normally "a").
  11579. libext="$libext"
  11580. # Shared library suffix (normally ".so").
  11581. shrext_cmds='$shrext_cmds'
  11582. # Executable file suffix (normally "").
  11583. exeext="$exeext"
  11584. # Additional compiler flags for building library objects.
  11585. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11586. pic_mode=$pic_mode
  11587. # What is the maximum length of a command?
  11588. max_cmd_len=$lt_cv_sys_max_cmd_len
  11589. # Does compiler simultaneously support -c and -o options?
  11590. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11591. # Must we lock files when doing compilation?
  11592. need_locks=$lt_need_locks
  11593. # Do we need the lib prefix for modules?
  11594. need_lib_prefix=$need_lib_prefix
  11595. # Do we need a version for libraries?
  11596. need_version=$need_version
  11597. # Whether dlopen is supported.
  11598. dlopen_support=$enable_dlopen
  11599. # Whether dlopen of programs is supported.
  11600. dlopen_self=$enable_dlopen_self
  11601. # Whether dlopen of statically linked programs is supported.
  11602. dlopen_self_static=$enable_dlopen_self_static
  11603. # Compiler flag to prevent dynamic linking.
  11604. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11605. # Compiler flag to turn off builtin functions.
  11606. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11607. # Compiler flag to allow reflexive dlopens.
  11608. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11609. # Compiler flag to generate shared objects directly from archives.
  11610. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11611. # Compiler flag to generate thread-safe objects.
  11612. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11613. # Library versioning type.
  11614. version_type=$version_type
  11615. # Format of library name prefix.
  11616. libname_spec=$lt_libname_spec
  11617. # List of archive names. First name is the real one, the rest are links.
  11618. # The last name is the one that the linker finds with -lNAME.
  11619. library_names_spec=$lt_library_names_spec
  11620. # The coded name of the library, if different from the real name.
  11621. soname_spec=$lt_soname_spec
  11622. # Commands used to build and install an old-style archive.
  11623. RANLIB=$lt_RANLIB
  11624. old_archive_cmds=$lt_old_archive_cmds_CXX
  11625. old_postinstall_cmds=$lt_old_postinstall_cmds
  11626. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11627. # Create an old-style archive from a shared archive.
  11628. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11629. # Create a temporary old-style archive to link instead of a shared archive.
  11630. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11631. # Commands used to build and install a shared archive.
  11632. archive_cmds=$lt_archive_cmds_CXX
  11633. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11634. postinstall_cmds=$lt_postinstall_cmds
  11635. postuninstall_cmds=$lt_postuninstall_cmds
  11636. # Commands used to build a loadable module (assumed same as above if empty)
  11637. module_cmds=$lt_module_cmds_CXX
  11638. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11639. # Commands to strip libraries.
  11640. old_striplib=$lt_old_striplib
  11641. striplib=$lt_striplib
  11642. # Dependencies to place before the objects being linked to create a
  11643. # shared library.
  11644. predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11645. # Dependencies to place after the objects being linked to create a
  11646. # shared library.
  11647. postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11648. # Dependencies to place before the objects being linked to create a
  11649. # shared library.
  11650. predeps=$lt_predeps_CXX
  11651. # Dependencies to place after the objects being linked to create a
  11652. # shared library.
  11653. postdeps=$lt_postdeps_CXX
  11654. # The library search path used internally by the compiler when linking
  11655. # a shared library.
  11656. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11657. # Method to check whether dependent libraries are shared objects.
  11658. deplibs_check_method=$lt_deplibs_check_method
  11659. # Command to use when deplibs_check_method == file_magic.
  11660. file_magic_cmd=$lt_file_magic_cmd
  11661. # Flag that allows shared libraries with undefined symbols to be built.
  11662. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11663. # Flag that forces no undefined symbols.
  11664. no_undefined_flag=$lt_no_undefined_flag_CXX
  11665. # Commands used to finish a libtool library installation in a directory.
  11666. finish_cmds=$lt_finish_cmds
  11667. # Same as above, but a single script fragment to be evaled but not shown.
  11668. finish_eval=$lt_finish_eval
  11669. # Take the output of nm and produce a listing of raw symbols and C names.
  11670. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11671. # Transform the output of nm in a proper C declaration
  11672. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11673. # Transform the output of nm in a C name address pair
  11674. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11675. # This is the shared library runtime path variable.
  11676. runpath_var=$runpath_var
  11677. # This is the shared library path variable.
  11678. shlibpath_var=$shlibpath_var
  11679. # Is shlibpath searched before the hard-coded library search path?
  11680. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11681. # How to hardcode a shared library path into an executable.
  11682. hardcode_action=$hardcode_action_CXX
  11683. # Whether we should hardcode library paths into libraries.
  11684. hardcode_into_libs=$hardcode_into_libs
  11685. # Flag to hardcode \$libdir into a binary during linking.
  11686. # This must work even if \$libdir does not exist.
  11687. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11688. # If ld is used when linking, flag to hardcode \$libdir into
  11689. # a binary during linking. This must work even if \$libdir does
  11690. # not exist.
  11691. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11692. # Whether we need a single -rpath flag with a separated argument.
  11693. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11694. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11695. # resulting binary.
  11696. hardcode_direct=$hardcode_direct_CXX
  11697. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11698. # resulting binary.
  11699. hardcode_minus_L=$hardcode_minus_L_CXX
  11700. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11701. # the resulting binary.
  11702. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11703. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11704. # and all subsequent libraries and executables linked against it.
  11705. hardcode_automatic=$hardcode_automatic_CXX
  11706. # Variables whose values should be saved in libtool wrapper scripts and
  11707. # restored at relink time.
  11708. variables_saved_for_relink="$variables_saved_for_relink"
  11709. # Whether libtool must link a program against all its dependency libraries.
  11710. link_all_deplibs=$link_all_deplibs_CXX
  11711. # Compile-time system search path for libraries
  11712. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11713. # Run-time system search path for libraries
  11714. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11715. # Fix the shell variable \$srcfile for the compiler.
  11716. fix_srcfile_path="$fix_srcfile_path_CXX"
  11717. # Set to yes if exported symbols are required.
  11718. always_export_symbols=$always_export_symbols_CXX
  11719. # The commands to list exported symbols.
  11720. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11721. # The commands to extract the exported symbol list from a shared archive.
  11722. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11723. # Symbols that should not be listed in the preloaded symbols.
  11724. exclude_expsyms=$lt_exclude_expsyms_CXX
  11725. # Symbols that must always be exported.
  11726. include_expsyms=$lt_include_expsyms_CXX
  11727. # ### END LIBTOOL TAG CONFIG: $tagname
  11728. __EOF__
  11729. else
  11730. # If there is no Makefile yet, we rely on a make rule to execute
  11731. # `config.status --recheck' to rerun these tests and create the
  11732. # libtool script then.
  11733. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11734. if test -f "$ltmain_in"; then
  11735. test -f Makefile && make "$ltmain"
  11736. fi
  11737. fi
  11738. ac_ext=c
  11739. ac_cpp='$CPP $CPPFLAGS'
  11740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11743. CC=$lt_save_CC
  11744. LDCXX=$LD
  11745. LD=$lt_save_LD
  11746. GCC=$lt_save_GCC
  11747. with_gnu_ldcxx=$with_gnu_ld
  11748. with_gnu_ld=$lt_save_with_gnu_ld
  11749. lt_cv_path_LDCXX=$lt_cv_path_LD
  11750. lt_cv_path_LD=$lt_save_path_LD
  11751. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11752. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11753. else
  11754. tagname=""
  11755. fi
  11756. ;;
  11757. F77)
  11758. if test -n "$F77" && test "X$F77" != "Xno"; then
  11759. ac_ext=f
  11760. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11761. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11762. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11763. archive_cmds_need_lc_F77=no
  11764. allow_undefined_flag_F77=
  11765. always_export_symbols_F77=no
  11766. archive_expsym_cmds_F77=
  11767. export_dynamic_flag_spec_F77=
  11768. hardcode_direct_F77=no
  11769. hardcode_libdir_flag_spec_F77=
  11770. hardcode_libdir_flag_spec_ld_F77=
  11771. hardcode_libdir_separator_F77=
  11772. hardcode_minus_L_F77=no
  11773. hardcode_automatic_F77=no
  11774. module_cmds_F77=
  11775. module_expsym_cmds_F77=
  11776. link_all_deplibs_F77=unknown
  11777. old_archive_cmds_F77=$old_archive_cmds
  11778. no_undefined_flag_F77=
  11779. whole_archive_flag_spec_F77=
  11780. enable_shared_with_static_runtimes_F77=no
  11781. # Source file extension for f77 test sources.
  11782. ac_ext=f
  11783. # Object file extension for compiled f77 test sources.
  11784. objext=o
  11785. objext_F77=$objext
  11786. # Code to be used in simple compile tests
  11787. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11788. # Code to be used in simple link tests
  11789. lt_simple_link_test_code=" program t\n end\n"
  11790. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11791. # If no C compiler was specified, use CC.
  11792. LTCC=${LTCC-"$CC"}
  11793. # If no C compiler flags were specified, use CFLAGS.
  11794. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11795. # Allow CC to be a program name with arguments.
  11796. compiler=$CC
  11797. # save warnings/boilerplate of simple test code
  11798. ac_outfile=conftest.$ac_objext
  11799. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11800. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11801. _lt_compiler_boilerplate=`cat conftest.err`
  11802. $rm conftest*
  11803. ac_outfile=conftest.$ac_objext
  11804. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11805. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11806. _lt_linker_boilerplate=`cat conftest.err`
  11807. $rm conftest*
  11808. # Allow CC to be a program name with arguments.
  11809. lt_save_CC="$CC"
  11810. CC=${F77-"f77"}
  11811. compiler=$CC
  11812. compiler_F77=$CC
  11813. for cc_temp in $compiler""; do
  11814. case $cc_temp in
  11815. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11816. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11817. \-*) ;;
  11818. *) break;;
  11819. esac
  11820. done
  11821. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11822. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11823. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11824. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11825. echo "${ECHO_T}$can_build_shared" >&6
  11826. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11827. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11828. test "$can_build_shared" = "no" && enable_shared=no
  11829. # On AIX, shared libraries and static libraries use the same namespace, and
  11830. # are all built from PIC.
  11831. case $host_os in
  11832. aix3*)
  11833. test "$enable_shared" = yes && enable_static=no
  11834. if test -n "$RANLIB"; then
  11835. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11836. postinstall_cmds='$RANLIB $lib'
  11837. fi
  11838. ;;
  11839. aix4* | aix5*)
  11840. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11841. test "$enable_shared" = yes && enable_static=no
  11842. fi
  11843. ;;
  11844. esac
  11845. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11846. echo "${ECHO_T}$enable_shared" >&6
  11847. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11848. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11849. # Make sure either enable_shared or enable_static is yes.
  11850. test "$enable_shared" = yes || enable_static=yes
  11851. echo "$as_me:$LINENO: result: $enable_static" >&5
  11852. echo "${ECHO_T}$enable_static" >&6
  11853. GCC_F77="$G77"
  11854. LD_F77="$LD"
  11855. lt_prog_compiler_wl_F77=
  11856. lt_prog_compiler_pic_F77=
  11857. lt_prog_compiler_static_F77=
  11858. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11859. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11860. if test "$GCC" = yes; then
  11861. lt_prog_compiler_wl_F77='-Wl,'
  11862. lt_prog_compiler_static_F77='-static'
  11863. case $host_os in
  11864. aix*)
  11865. # All AIX code is PIC.
  11866. if test "$host_cpu" = ia64; then
  11867. # AIX 5 now supports IA64 processor
  11868. lt_prog_compiler_static_F77='-Bstatic'
  11869. fi
  11870. ;;
  11871. amigaos*)
  11872. # FIXME: we need at least 68020 code to build shared libraries, but
  11873. # adding the `-m68020' flag to GCC prevents building anything better,
  11874. # like `-m68040'.
  11875. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11876. ;;
  11877. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11878. # PIC is the default for these OSes.
  11879. ;;
  11880. mingw* | pw32* | os2*)
  11881. # This hack is so that the source file can tell whether it is being
  11882. # built for inclusion in a dll (and should export symbols for example).
  11883. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11884. ;;
  11885. darwin* | rhapsody*)
  11886. # PIC is the default on this platform
  11887. # Common symbols not allowed in MH_DYLIB files
  11888. lt_prog_compiler_pic_F77='-fno-common'
  11889. ;;
  11890. interix3*)
  11891. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11892. # Instead, we relocate shared libraries at runtime.
  11893. ;;
  11894. msdosdjgpp*)
  11895. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11896. # on systems that don't support them.
  11897. lt_prog_compiler_can_build_shared_F77=no
  11898. enable_shared=no
  11899. ;;
  11900. sysv4*MP*)
  11901. if test -d /usr/nec; then
  11902. lt_prog_compiler_pic_F77=-Kconform_pic
  11903. fi
  11904. ;;
  11905. hpux*)
  11906. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11907. # not for PA HP-UX.
  11908. case $host_cpu in
  11909. hppa*64*|ia64*)
  11910. # +Z the default
  11911. ;;
  11912. *)
  11913. lt_prog_compiler_pic_F77='-fPIC'
  11914. ;;
  11915. esac
  11916. ;;
  11917. *)
  11918. lt_prog_compiler_pic_F77='-fPIC'
  11919. ;;
  11920. esac
  11921. else
  11922. # PORTME Check for flag to pass linker flags through the system compiler.
  11923. case $host_os in
  11924. aix*)
  11925. lt_prog_compiler_wl_F77='-Wl,'
  11926. if test "$host_cpu" = ia64; then
  11927. # AIX 5 now supports IA64 processor
  11928. lt_prog_compiler_static_F77='-Bstatic'
  11929. else
  11930. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11931. fi
  11932. ;;
  11933. darwin*)
  11934. # PIC is the default on this platform
  11935. # Common symbols not allowed in MH_DYLIB files
  11936. case $cc_basename in
  11937. xlc*)
  11938. lt_prog_compiler_pic_F77='-qnocommon'
  11939. lt_prog_compiler_wl_F77='-Wl,'
  11940. ;;
  11941. esac
  11942. ;;
  11943. mingw* | pw32* | os2*)
  11944. # This hack is so that the source file can tell whether it is being
  11945. # built for inclusion in a dll (and should export symbols for example).
  11946. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11947. ;;
  11948. hpux9* | hpux10* | hpux11*)
  11949. lt_prog_compiler_wl_F77='-Wl,'
  11950. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11951. # not for PA HP-UX.
  11952. case $host_cpu in
  11953. hppa*64*|ia64*)
  11954. # +Z the default
  11955. ;;
  11956. *)
  11957. lt_prog_compiler_pic_F77='+Z'
  11958. ;;
  11959. esac
  11960. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11961. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11962. ;;
  11963. irix5* | irix6* | nonstopux*)
  11964. lt_prog_compiler_wl_F77='-Wl,'
  11965. # PIC (with -KPIC) is the default.
  11966. lt_prog_compiler_static_F77='-non_shared'
  11967. ;;
  11968. newsos6)
  11969. lt_prog_compiler_pic_F77='-KPIC'
  11970. lt_prog_compiler_static_F77='-Bstatic'
  11971. ;;
  11972. linux*)
  11973. case $cc_basename in
  11974. icc* | ecc*)
  11975. lt_prog_compiler_wl_F77='-Wl,'
  11976. lt_prog_compiler_pic_F77='-KPIC'
  11977. lt_prog_compiler_static_F77='-static'
  11978. ;;
  11979. pgcc* | pgf77* | pgf90* | pgf95*)
  11980. # Portland Group compilers (*not* the Pentium gcc compiler,
  11981. # which looks to be a dead project)
  11982. lt_prog_compiler_wl_F77='-Wl,'
  11983. lt_prog_compiler_pic_F77='-fpic'
  11984. lt_prog_compiler_static_F77='-Bstatic'
  11985. ;;
  11986. ccc*)
  11987. lt_prog_compiler_wl_F77='-Wl,'
  11988. # All Alpha code is PIC.
  11989. lt_prog_compiler_static_F77='-non_shared'
  11990. ;;
  11991. esac
  11992. ;;
  11993. osf3* | osf4* | osf5*)
  11994. lt_prog_compiler_wl_F77='-Wl,'
  11995. # All OSF/1 code is PIC.
  11996. lt_prog_compiler_static_F77='-non_shared'
  11997. ;;
  11998. solaris*)
  11999. lt_prog_compiler_pic_F77='-KPIC'
  12000. lt_prog_compiler_static_F77='-Bstatic'
  12001. case $cc_basename in
  12002. f77* | f90* | f95*)
  12003. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12004. *)
  12005. lt_prog_compiler_wl_F77='-Wl,';;
  12006. esac
  12007. ;;
  12008. sunos4*)
  12009. lt_prog_compiler_wl_F77='-Qoption ld '
  12010. lt_prog_compiler_pic_F77='-PIC'
  12011. lt_prog_compiler_static_F77='-Bstatic'
  12012. ;;
  12013. sysv4 | sysv4.2uw2* | sysv4.3*)
  12014. lt_prog_compiler_wl_F77='-Wl,'
  12015. lt_prog_compiler_pic_F77='-KPIC'
  12016. lt_prog_compiler_static_F77='-Bstatic'
  12017. ;;
  12018. sysv4*MP*)
  12019. if test -d /usr/nec ;then
  12020. lt_prog_compiler_pic_F77='-Kconform_pic'
  12021. lt_prog_compiler_static_F77='-Bstatic'
  12022. fi
  12023. ;;
  12024. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12025. lt_prog_compiler_wl_F77='-Wl,'
  12026. lt_prog_compiler_pic_F77='-KPIC'
  12027. lt_prog_compiler_static_F77='-Bstatic'
  12028. ;;
  12029. unicos*)
  12030. lt_prog_compiler_wl_F77='-Wl,'
  12031. lt_prog_compiler_can_build_shared_F77=no
  12032. ;;
  12033. uts4*)
  12034. lt_prog_compiler_pic_F77='-pic'
  12035. lt_prog_compiler_static_F77='-Bstatic'
  12036. ;;
  12037. *)
  12038. lt_prog_compiler_can_build_shared_F77=no
  12039. ;;
  12040. esac
  12041. fi
  12042. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12043. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12044. #
  12045. # Check to make sure the PIC flag actually works.
  12046. #
  12047. if test -n "$lt_prog_compiler_pic_F77"; then
  12048. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12049. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12050. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12051. echo $ECHO_N "(cached) $ECHO_C" >&6
  12052. else
  12053. lt_prog_compiler_pic_works_F77=no
  12054. ac_outfile=conftest.$ac_objext
  12055. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12056. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12057. # Insert the option either (1) after the last *FLAGS variable, or
  12058. # (2) before a word containing "conftest.", or (3) at the end.
  12059. # Note that $ac_compile itself does not contain backslashes and begins
  12060. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12061. # The option is referenced via a variable to avoid confusing sed.
  12062. lt_compile=`echo "$ac_compile" | $SED \
  12063. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12064. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12065. -e 's:$: $lt_compiler_flag:'`
  12066. (eval echo "\"\$as_me:13411: $lt_compile\"" >&5)
  12067. (eval "$lt_compile" 2>conftest.err)
  12068. ac_status=$?
  12069. cat conftest.err >&5
  12070. echo "$as_me:13415: \$? = $ac_status" >&5
  12071. if (exit $ac_status) && test -s "$ac_outfile"; then
  12072. # The compiler can only warn and ignore the option if not recognized
  12073. # So say no if there are warnings other than the usual output.
  12074. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12075. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12076. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12077. lt_prog_compiler_pic_works_F77=yes
  12078. fi
  12079. fi
  12080. $rm conftest*
  12081. fi
  12082. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12083. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12084. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12085. case $lt_prog_compiler_pic_F77 in
  12086. "" | " "*) ;;
  12087. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12088. esac
  12089. else
  12090. lt_prog_compiler_pic_F77=
  12091. lt_prog_compiler_can_build_shared_F77=no
  12092. fi
  12093. fi
  12094. case $host_os in
  12095. # For platforms which do not support PIC, -DPIC is meaningless:
  12096. *djgpp*)
  12097. lt_prog_compiler_pic_F77=
  12098. ;;
  12099. *)
  12100. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12101. ;;
  12102. esac
  12103. #
  12104. # Check to make sure the static flag actually works.
  12105. #
  12106. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12107. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12108. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12109. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12110. echo $ECHO_N "(cached) $ECHO_C" >&6
  12111. else
  12112. lt_prog_compiler_static_works_F77=no
  12113. save_LDFLAGS="$LDFLAGS"
  12114. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12115. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12116. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12117. # The linker can only warn and ignore the option if not recognized
  12118. # So say no if there are warnings
  12119. if test -s conftest.err; then
  12120. # Append any errors to the config.log.
  12121. cat conftest.err 1>&5
  12122. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12123. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12124. if diff conftest.exp conftest.er2 >/dev/null; then
  12125. lt_prog_compiler_static_works_F77=yes
  12126. fi
  12127. else
  12128. lt_prog_compiler_static_works_F77=yes
  12129. fi
  12130. fi
  12131. $rm conftest*
  12132. LDFLAGS="$save_LDFLAGS"
  12133. fi
  12134. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12135. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12136. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12137. :
  12138. else
  12139. lt_prog_compiler_static_F77=
  12140. fi
  12141. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12142. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12143. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12144. echo $ECHO_N "(cached) $ECHO_C" >&6
  12145. else
  12146. lt_cv_prog_compiler_c_o_F77=no
  12147. $rm -r conftest 2>/dev/null
  12148. mkdir conftest
  12149. cd conftest
  12150. mkdir out
  12151. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12152. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12153. # Insert the option either (1) after the last *FLAGS variable, or
  12154. # (2) before a word containing "conftest.", or (3) at the end.
  12155. # Note that $ac_compile itself does not contain backslashes and begins
  12156. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12157. lt_compile=`echo "$ac_compile" | $SED \
  12158. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12159. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12160. -e 's:$: $lt_compiler_flag:'`
  12161. (eval echo "\"\$as_me:13515: $lt_compile\"" >&5)
  12162. (eval "$lt_compile" 2>out/conftest.err)
  12163. ac_status=$?
  12164. cat out/conftest.err >&5
  12165. echo "$as_me:13519: \$? = $ac_status" >&5
  12166. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12167. then
  12168. # The compiler can only warn and ignore the option if not recognized
  12169. # So say no if there are warnings
  12170. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12171. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12172. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12173. lt_cv_prog_compiler_c_o_F77=yes
  12174. fi
  12175. fi
  12176. chmod u+w . 2>&5
  12177. $rm conftest*
  12178. # SGI C++ compiler will create directory out/ii_files/ for
  12179. # template instantiation
  12180. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12181. $rm out/* && rmdir out
  12182. cd ..
  12183. rmdir conftest
  12184. $rm conftest*
  12185. fi
  12186. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12187. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12188. hard_links="nottested"
  12189. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12190. # do not overwrite the value of need_locks provided by the user
  12191. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12192. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12193. hard_links=yes
  12194. $rm conftest*
  12195. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12196. touch conftest.a
  12197. ln conftest.a conftest.b 2>&5 || hard_links=no
  12198. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12199. echo "$as_me:$LINENO: result: $hard_links" >&5
  12200. echo "${ECHO_T}$hard_links" >&6
  12201. if test "$hard_links" = no; then
  12202. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12203. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12204. need_locks=warn
  12205. fi
  12206. else
  12207. need_locks=no
  12208. fi
  12209. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12210. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12211. runpath_var=
  12212. allow_undefined_flag_F77=
  12213. enable_shared_with_static_runtimes_F77=no
  12214. archive_cmds_F77=
  12215. archive_expsym_cmds_F77=
  12216. old_archive_From_new_cmds_F77=
  12217. old_archive_from_expsyms_cmds_F77=
  12218. export_dynamic_flag_spec_F77=
  12219. whole_archive_flag_spec_F77=
  12220. thread_safe_flag_spec_F77=
  12221. hardcode_libdir_flag_spec_F77=
  12222. hardcode_libdir_flag_spec_ld_F77=
  12223. hardcode_libdir_separator_F77=
  12224. hardcode_direct_F77=no
  12225. hardcode_minus_L_F77=no
  12226. hardcode_shlibpath_var_F77=unsupported
  12227. link_all_deplibs_F77=unknown
  12228. hardcode_automatic_F77=no
  12229. module_cmds_F77=
  12230. module_expsym_cmds_F77=
  12231. always_export_symbols_F77=no
  12232. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12233. # include_expsyms should be a list of space-separated symbols to be *always*
  12234. # included in the symbol list
  12235. include_expsyms_F77=
  12236. # exclude_expsyms can be an extended regexp of symbols to exclude
  12237. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12238. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12239. # as well as any symbol that contains `d'.
  12240. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12241. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12242. # platforms (ab)use it in PIC code, but their linkers get confused if
  12243. # the symbol is explicitly referenced. Since portable code cannot
  12244. # rely on this symbol name, it's probably fine to never include it in
  12245. # preloaded symbol tables.
  12246. extract_expsyms_cmds=
  12247. # Just being paranoid about ensuring that cc_basename is set.
  12248. for cc_temp in $compiler""; do
  12249. case $cc_temp in
  12250. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12251. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12252. \-*) ;;
  12253. *) break;;
  12254. esac
  12255. done
  12256. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12257. case $host_os in
  12258. cygwin* | mingw* | pw32*)
  12259. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12260. # When not using gcc, we currently assume that we are using
  12261. # Microsoft Visual C++.
  12262. if test "$GCC" != yes; then
  12263. with_gnu_ld=no
  12264. fi
  12265. ;;
  12266. interix*)
  12267. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12268. with_gnu_ld=yes
  12269. ;;
  12270. openbsd*)
  12271. with_gnu_ld=no
  12272. ;;
  12273. esac
  12274. ld_shlibs_F77=yes
  12275. if test "$with_gnu_ld" = yes; then
  12276. # If archive_cmds runs LD, not CC, wlarc should be empty
  12277. wlarc='${wl}'
  12278. # Set some defaults for GNU ld with shared library support. These
  12279. # are reset later if shared libraries are not supported. Putting them
  12280. # here allows them to be overridden if necessary.
  12281. runpath_var=LD_RUN_PATH
  12282. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12283. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12284. # ancient GNU ld didn't support --whole-archive et. al.
  12285. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12286. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12287. else
  12288. whole_archive_flag_spec_F77=
  12289. fi
  12290. supports_anon_versioning=no
  12291. case `$LD -v 2>/dev/null` in
  12292. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12293. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12294. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12295. *\ 2.11.*) ;; # other 2.11 versions
  12296. *) supports_anon_versioning=yes ;;
  12297. esac
  12298. # See if GNU ld supports shared libraries.
  12299. case $host_os in
  12300. aix3* | aix4* | aix5*)
  12301. # On AIX/PPC, the GNU linker is very broken
  12302. if test "$host_cpu" != ia64; then
  12303. ld_shlibs_F77=no
  12304. cat <<EOF 1>&2
  12305. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12306. *** to be unable to reliably create shared libraries on AIX.
  12307. *** Therefore, libtool is disabling shared libraries support. If you
  12308. *** really care for shared libraries, you may want to modify your PATH
  12309. *** so that a non-GNU linker is found, and then restart.
  12310. EOF
  12311. fi
  12312. ;;
  12313. amigaos*)
  12314. 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)'
  12315. hardcode_libdir_flag_spec_F77='-L$libdir'
  12316. hardcode_minus_L_F77=yes
  12317. # Samuel A. Falvo II <[email protected]> reports
  12318. # that the semantics of dynamic libraries on AmigaOS, at least up
  12319. # to version 4, is to share data among multiple programs linked
  12320. # with the same dynamic library. Since this doesn't match the
  12321. # behavior of shared libraries on other platforms, we can't use
  12322. # them.
  12323. ld_shlibs_F77=no
  12324. ;;
  12325. beos*)
  12326. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12327. allow_undefined_flag_F77=unsupported
  12328. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12329. # support --undefined. This deserves some investigation. FIXME
  12330. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12331. else
  12332. ld_shlibs_F77=no
  12333. fi
  12334. ;;
  12335. cygwin* | mingw* | pw32*)
  12336. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12337. # as there is no search path for DLLs.
  12338. hardcode_libdir_flag_spec_F77='-L$libdir'
  12339. allow_undefined_flag_F77=unsupported
  12340. always_export_symbols_F77=no
  12341. enable_shared_with_static_runtimes_F77=yes
  12342. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12343. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12344. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12345. # If the export-symbols file already is a .def file (1st line
  12346. # is EXPORTS), use it as is; otherwise, prepend...
  12347. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12348. cp $export_symbols $output_objdir/$soname.def;
  12349. else
  12350. echo EXPORTS > $output_objdir/$soname.def;
  12351. cat $export_symbols >> $output_objdir/$soname.def;
  12352. fi~
  12353. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12354. else
  12355. ld_shlibs_F77=no
  12356. fi
  12357. ;;
  12358. interix3*)
  12359. hardcode_direct_F77=no
  12360. hardcode_shlibpath_var_F77=no
  12361. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12362. export_dynamic_flag_spec_F77='${wl}-E'
  12363. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12364. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12365. # default) and relocated if they conflict, which is a slow very memory
  12366. # consuming and fragmenting process. To avoid this, we pick a random,
  12367. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12368. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12369. 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'
  12370. 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'
  12371. ;;
  12372. linux*)
  12373. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12374. tmp_addflag=
  12375. case $cc_basename,$host_cpu in
  12376. pgcc*) # Portland Group C compiler
  12377. 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'
  12378. tmp_addflag=' $pic_flag'
  12379. ;;
  12380. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12381. 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'
  12382. tmp_addflag=' $pic_flag -Mnomain' ;;
  12383. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12384. tmp_addflag=' -i_dynamic' ;;
  12385. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12386. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12387. ifc* | ifort*) # Intel Fortran compiler
  12388. tmp_addflag=' -nofor_main' ;;
  12389. esac
  12390. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12391. if test $supports_anon_versioning = yes; then
  12392. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12393. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12394. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12395. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12396. fi
  12397. else
  12398. ld_shlibs_F77=no
  12399. fi
  12400. ;;
  12401. netbsd*)
  12402. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12403. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12404. wlarc=
  12405. else
  12406. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12407. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12408. fi
  12409. ;;
  12410. solaris*)
  12411. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12412. ld_shlibs_F77=no
  12413. cat <<EOF 1>&2
  12414. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12415. *** create shared libraries on Solaris systems. Therefore, libtool
  12416. *** is disabling shared libraries support. We urge you to upgrade GNU
  12417. *** binutils to release 2.9.1 or newer. Another option is to modify
  12418. *** your PATH or compiler configuration so that the native linker is
  12419. *** used, and then restart.
  12420. EOF
  12421. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12422. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12423. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12424. else
  12425. ld_shlibs_F77=no
  12426. fi
  12427. ;;
  12428. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12429. case `$LD -v 2>&1` in
  12430. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12431. ld_shlibs_F77=no
  12432. cat <<_LT_EOF 1>&2
  12433. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12434. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12435. *** is disabling shared libraries support. We urge you to upgrade GNU
  12436. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12437. *** your PATH or compiler configuration so that the native linker is
  12438. *** used, and then restart.
  12439. _LT_EOF
  12440. ;;
  12441. *)
  12442. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12443. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12444. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12445. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12446. else
  12447. ld_shlibs_F77=no
  12448. fi
  12449. ;;
  12450. esac
  12451. ;;
  12452. sunos4*)
  12453. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12454. wlarc=
  12455. hardcode_direct_F77=yes
  12456. hardcode_shlibpath_var_F77=no
  12457. ;;
  12458. *)
  12459. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12460. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12461. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12462. else
  12463. ld_shlibs_F77=no
  12464. fi
  12465. ;;
  12466. esac
  12467. if test "$ld_shlibs_F77" = no; then
  12468. runpath_var=
  12469. hardcode_libdir_flag_spec_F77=
  12470. export_dynamic_flag_spec_F77=
  12471. whole_archive_flag_spec_F77=
  12472. fi
  12473. else
  12474. # PORTME fill in a description of your system's linker (not GNU ld)
  12475. case $host_os in
  12476. aix3*)
  12477. allow_undefined_flag_F77=unsupported
  12478. always_export_symbols_F77=yes
  12479. 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'
  12480. # Note: this linker hardcodes the directories in LIBPATH if there
  12481. # are no directories specified by -L.
  12482. hardcode_minus_L_F77=yes
  12483. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12484. # Neither direct hardcoding nor static linking is supported with a
  12485. # broken collect2.
  12486. hardcode_direct_F77=unsupported
  12487. fi
  12488. ;;
  12489. aix4* | aix5*)
  12490. if test "$host_cpu" = ia64; then
  12491. # On IA64, the linker does run time linking by default, so we don't
  12492. # have to do anything special.
  12493. aix_use_runtimelinking=no
  12494. exp_sym_flag='-Bexport'
  12495. no_entry_flag=""
  12496. else
  12497. # If we're using GNU nm, then we don't want the "-C" option.
  12498. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12499. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12500. 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'
  12501. else
  12502. 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'
  12503. fi
  12504. aix_use_runtimelinking=no
  12505. # Test if we are trying to use run time linking or normal
  12506. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12507. # need to do runtime linking.
  12508. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12509. for ld_flag in $LDFLAGS; do
  12510. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12511. aix_use_runtimelinking=yes
  12512. break
  12513. fi
  12514. done
  12515. ;;
  12516. esac
  12517. exp_sym_flag='-bexport'
  12518. no_entry_flag='-bnoentry'
  12519. fi
  12520. # When large executables or shared objects are built, AIX ld can
  12521. # have problems creating the table of contents. If linking a library
  12522. # or program results in "error TOC overflow" add -mminimal-toc to
  12523. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12524. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12525. archive_cmds_F77=''
  12526. hardcode_direct_F77=yes
  12527. hardcode_libdir_separator_F77=':'
  12528. link_all_deplibs_F77=yes
  12529. if test "$GCC" = yes; then
  12530. case $host_os in aix4.[012]|aix4.[012].*)
  12531. # We only want to do this on AIX 4.2 and lower, the check
  12532. # below for broken collect2 doesn't work under 4.3+
  12533. collect2name=`${CC} -print-prog-name=collect2`
  12534. if test -f "$collect2name" && \
  12535. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12536. then
  12537. # We have reworked collect2
  12538. hardcode_direct_F77=yes
  12539. else
  12540. # We have old collect2
  12541. hardcode_direct_F77=unsupported
  12542. # It fails to find uninstalled libraries when the uninstalled
  12543. # path is not listed in the libpath. Setting hardcode_minus_L
  12544. # to unsupported forces relinking
  12545. hardcode_minus_L_F77=yes
  12546. hardcode_libdir_flag_spec_F77='-L$libdir'
  12547. hardcode_libdir_separator_F77=
  12548. fi
  12549. ;;
  12550. esac
  12551. shared_flag='-shared'
  12552. if test "$aix_use_runtimelinking" = yes; then
  12553. shared_flag="$shared_flag "'${wl}-G'
  12554. fi
  12555. else
  12556. # not using gcc
  12557. if test "$host_cpu" = ia64; then
  12558. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12559. # chokes on -Wl,-G. The following line is correct:
  12560. shared_flag='-G'
  12561. else
  12562. if test "$aix_use_runtimelinking" = yes; then
  12563. shared_flag='${wl}-G'
  12564. else
  12565. shared_flag='${wl}-bM:SRE'
  12566. fi
  12567. fi
  12568. fi
  12569. # It seems that -bexpall does not export symbols beginning with
  12570. # underscore (_), so it is better to generate a list of symbols to export.
  12571. always_export_symbols_F77=yes
  12572. if test "$aix_use_runtimelinking" = yes; then
  12573. # Warning - without using the other runtime loading flags (-brtl),
  12574. # -berok will link without error, but may produce a broken library.
  12575. allow_undefined_flag_F77='-berok'
  12576. # Determine the default libpath from the value encoded in an empty executable.
  12577. cat >conftest.$ac_ext <<_ACEOF
  12578. program main
  12579. end
  12580. _ACEOF
  12581. rm -f conftest.$ac_objext conftest$ac_exeext
  12582. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12583. (eval $ac_link) 2>conftest.er1
  12584. ac_status=$?
  12585. grep -v '^ *+' conftest.er1 >conftest.err
  12586. rm -f conftest.er1
  12587. cat conftest.err >&5
  12588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12589. (exit $ac_status); } &&
  12590. { ac_try='test -z "$ac_f77_werror_flag"
  12591. || test ! -s conftest.err'
  12592. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12593. (eval $ac_try) 2>&5
  12594. ac_status=$?
  12595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12596. (exit $ac_status); }; } &&
  12597. { ac_try='test -s conftest$ac_exeext'
  12598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12599. (eval $ac_try) 2>&5
  12600. ac_status=$?
  12601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12602. (exit $ac_status); }; }; then
  12603. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12604. }'`
  12605. # Check for a 64-bit object if we didn't find anything.
  12606. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12607. }'`; fi
  12608. else
  12609. echo "$as_me: failed program was:" >&5
  12610. sed 's/^/| /' conftest.$ac_ext >&5
  12611. fi
  12612. rm -f conftest.err conftest.$ac_objext \
  12613. conftest$ac_exeext conftest.$ac_ext
  12614. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12615. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12616. 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"
  12617. else
  12618. if test "$host_cpu" = ia64; then
  12619. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12620. allow_undefined_flag_F77="-z nodefs"
  12621. 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"
  12622. else
  12623. # Determine the default libpath from the value encoded in an empty executable.
  12624. cat >conftest.$ac_ext <<_ACEOF
  12625. program main
  12626. end
  12627. _ACEOF
  12628. rm -f conftest.$ac_objext conftest$ac_exeext
  12629. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12630. (eval $ac_link) 2>conftest.er1
  12631. ac_status=$?
  12632. grep -v '^ *+' conftest.er1 >conftest.err
  12633. rm -f conftest.er1
  12634. cat conftest.err >&5
  12635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12636. (exit $ac_status); } &&
  12637. { ac_try='test -z "$ac_f77_werror_flag"
  12638. || test ! -s conftest.err'
  12639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12640. (eval $ac_try) 2>&5
  12641. ac_status=$?
  12642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12643. (exit $ac_status); }; } &&
  12644. { ac_try='test -s conftest$ac_exeext'
  12645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12646. (eval $ac_try) 2>&5
  12647. ac_status=$?
  12648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12649. (exit $ac_status); }; }; then
  12650. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12651. }'`
  12652. # Check for a 64-bit object if we didn't find anything.
  12653. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12654. }'`; fi
  12655. else
  12656. echo "$as_me: failed program was:" >&5
  12657. sed 's/^/| /' conftest.$ac_ext >&5
  12658. fi
  12659. rm -f conftest.err conftest.$ac_objext \
  12660. conftest$ac_exeext conftest.$ac_ext
  12661. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12662. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12663. # Warning - without using the other run time loading flags,
  12664. # -berok will link without error, but may produce a broken library.
  12665. no_undefined_flag_F77=' ${wl}-bernotok'
  12666. allow_undefined_flag_F77=' ${wl}-berok'
  12667. # Exported symbols can be pulled into shared objects from archives
  12668. whole_archive_flag_spec_F77='$convenience'
  12669. archive_cmds_need_lc_F77=yes
  12670. # This is similar to how AIX traditionally builds its shared libraries.
  12671. 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'
  12672. fi
  12673. fi
  12674. ;;
  12675. amigaos*)
  12676. 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)'
  12677. hardcode_libdir_flag_spec_F77='-L$libdir'
  12678. hardcode_minus_L_F77=yes
  12679. # see comment about different semantics on the GNU ld section
  12680. ld_shlibs_F77=no
  12681. ;;
  12682. bsdi[45]*)
  12683. export_dynamic_flag_spec_F77=-rdynamic
  12684. ;;
  12685. cygwin* | mingw* | pw32*)
  12686. # When not using gcc, we currently assume that we are using
  12687. # Microsoft Visual C++.
  12688. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12689. # no search path for DLLs.
  12690. hardcode_libdir_flag_spec_F77=' '
  12691. allow_undefined_flag_F77=unsupported
  12692. # Tell ltmain to make .lib files, not .a files.
  12693. libext=lib
  12694. # Tell ltmain to make .dll files, not .so files.
  12695. shrext_cmds=".dll"
  12696. # FIXME: Setting linknames here is a bad hack.
  12697. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12698. # The linker will automatically build a .lib file if we build a DLL.
  12699. old_archive_From_new_cmds_F77='true'
  12700. # FIXME: Should let the user specify the lib program.
  12701. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12702. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12703. enable_shared_with_static_runtimes_F77=yes
  12704. ;;
  12705. darwin* | rhapsody*)
  12706. case $host_os in
  12707. rhapsody* | darwin1.[012])
  12708. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12709. ;;
  12710. *) # Darwin 1.3 on
  12711. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12712. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12713. else
  12714. case ${MACOSX_DEPLOYMENT_TARGET} in
  12715. 10.[012])
  12716. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12717. ;;
  12718. 10.*)
  12719. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12720. ;;
  12721. esac
  12722. fi
  12723. ;;
  12724. esac
  12725. archive_cmds_need_lc_F77=no
  12726. hardcode_direct_F77=no
  12727. hardcode_automatic_F77=yes
  12728. hardcode_shlibpath_var_F77=unsupported
  12729. whole_archive_flag_spec_F77=''
  12730. link_all_deplibs_F77=yes
  12731. if test "$GCC" = yes ; then
  12732. output_verbose_link_cmd='echo'
  12733. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12734. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12735. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12736. 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}'
  12737. 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}'
  12738. else
  12739. case $cc_basename in
  12740. xlc*)
  12741. output_verbose_link_cmd='echo'
  12742. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12743. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12744. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12745. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12746. 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}'
  12747. ;;
  12748. *)
  12749. ld_shlibs_F77=no
  12750. ;;
  12751. esac
  12752. fi
  12753. ;;
  12754. dgux*)
  12755. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12756. hardcode_libdir_flag_spec_F77='-L$libdir'
  12757. hardcode_shlibpath_var_F77=no
  12758. ;;
  12759. freebsd1*)
  12760. ld_shlibs_F77=no
  12761. ;;
  12762. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12763. # support. Future versions do this automatically, but an explicit c++rt0.o
  12764. # does not break anything, and helps significantly (at the cost of a little
  12765. # extra space).
  12766. freebsd2.2*)
  12767. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12768. hardcode_libdir_flag_spec_F77='-R$libdir'
  12769. hardcode_direct_F77=yes
  12770. hardcode_shlibpath_var_F77=no
  12771. ;;
  12772. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12773. freebsd2*)
  12774. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12775. hardcode_direct_F77=yes
  12776. hardcode_minus_L_F77=yes
  12777. hardcode_shlibpath_var_F77=no
  12778. ;;
  12779. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12780. freebsd* | kfreebsd*-gnu | dragonfly*)
  12781. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12782. hardcode_libdir_flag_spec_F77='-R$libdir'
  12783. hardcode_direct_F77=yes
  12784. hardcode_shlibpath_var_F77=no
  12785. ;;
  12786. hpux9*)
  12787. if test "$GCC" = yes; then
  12788. 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'
  12789. else
  12790. 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'
  12791. fi
  12792. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12793. hardcode_libdir_separator_F77=:
  12794. hardcode_direct_F77=yes
  12795. # hardcode_minus_L: Not really in the search PATH,
  12796. # but as the default location of the library.
  12797. hardcode_minus_L_F77=yes
  12798. export_dynamic_flag_spec_F77='${wl}-E'
  12799. ;;
  12800. hpux10*)
  12801. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12802. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12803. else
  12804. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12805. fi
  12806. if test "$with_gnu_ld" = no; then
  12807. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12808. hardcode_libdir_separator_F77=:
  12809. hardcode_direct_F77=yes
  12810. export_dynamic_flag_spec_F77='${wl}-E'
  12811. # hardcode_minus_L: Not really in the search PATH,
  12812. # but as the default location of the library.
  12813. hardcode_minus_L_F77=yes
  12814. fi
  12815. ;;
  12816. hpux11*)
  12817. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12818. case $host_cpu in
  12819. hppa*64*)
  12820. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12821. ;;
  12822. ia64*)
  12823. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12824. ;;
  12825. *)
  12826. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12827. ;;
  12828. esac
  12829. else
  12830. case $host_cpu in
  12831. hppa*64*)
  12832. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12833. ;;
  12834. ia64*)
  12835. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12836. ;;
  12837. *)
  12838. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12839. ;;
  12840. esac
  12841. fi
  12842. if test "$with_gnu_ld" = no; then
  12843. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12844. hardcode_libdir_separator_F77=:
  12845. case $host_cpu in
  12846. hppa*64*|ia64*)
  12847. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12848. hardcode_direct_F77=no
  12849. hardcode_shlibpath_var_F77=no
  12850. ;;
  12851. *)
  12852. hardcode_direct_F77=yes
  12853. export_dynamic_flag_spec_F77='${wl}-E'
  12854. # hardcode_minus_L: Not really in the search PATH,
  12855. # but as the default location of the library.
  12856. hardcode_minus_L_F77=yes
  12857. ;;
  12858. esac
  12859. fi
  12860. ;;
  12861. irix5* | irix6* | nonstopux*)
  12862. if test "$GCC" = yes; then
  12863. 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'
  12864. else
  12865. 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'
  12866. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12867. fi
  12868. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12869. hardcode_libdir_separator_F77=:
  12870. link_all_deplibs_F77=yes
  12871. ;;
  12872. netbsd*)
  12873. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12874. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12875. else
  12876. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12877. fi
  12878. hardcode_libdir_flag_spec_F77='-R$libdir'
  12879. hardcode_direct_F77=yes
  12880. hardcode_shlibpath_var_F77=no
  12881. ;;
  12882. newsos6)
  12883. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12884. hardcode_direct_F77=yes
  12885. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12886. hardcode_libdir_separator_F77=:
  12887. hardcode_shlibpath_var_F77=no
  12888. ;;
  12889. openbsd*)
  12890. hardcode_direct_F77=yes
  12891. hardcode_shlibpath_var_F77=no
  12892. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12893. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12894. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12895. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12896. export_dynamic_flag_spec_F77='${wl}-E'
  12897. else
  12898. case $host_os in
  12899. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12900. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12901. hardcode_libdir_flag_spec_F77='-R$libdir'
  12902. ;;
  12903. *)
  12904. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12905. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12906. ;;
  12907. esac
  12908. fi
  12909. ;;
  12910. os2*)
  12911. hardcode_libdir_flag_spec_F77='-L$libdir'
  12912. hardcode_minus_L_F77=yes
  12913. allow_undefined_flag_F77=unsupported
  12914. 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'
  12915. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12916. ;;
  12917. osf3*)
  12918. if test "$GCC" = yes; then
  12919. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12920. 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'
  12921. else
  12922. allow_undefined_flag_F77=' -expect_unresolved \*'
  12923. 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'
  12924. fi
  12925. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12926. hardcode_libdir_separator_F77=:
  12927. ;;
  12928. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12929. if test "$GCC" = yes; then
  12930. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12931. 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'
  12932. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12933. else
  12934. allow_undefined_flag_F77=' -expect_unresolved \*'
  12935. 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'
  12936. 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~
  12937. $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'
  12938. # Both c and cxx compiler support -rpath directly
  12939. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12940. fi
  12941. hardcode_libdir_separator_F77=:
  12942. ;;
  12943. solaris*)
  12944. no_undefined_flag_F77=' -z text'
  12945. if test "$GCC" = yes; then
  12946. wlarc='${wl}'
  12947. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12948. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12949. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12950. else
  12951. wlarc=''
  12952. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12953. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12954. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12955. fi
  12956. hardcode_libdir_flag_spec_F77='-R$libdir'
  12957. hardcode_shlibpath_var_F77=no
  12958. case $host_os in
  12959. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12960. *)
  12961. # The compiler driver will combine linker options so we
  12962. # cannot just pass the convience library names through
  12963. # without $wl, iff we do not link with $LD.
  12964. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12965. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12966. case $wlarc in
  12967. '')
  12968. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12969. *)
  12970. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12971. esac ;;
  12972. esac
  12973. link_all_deplibs_F77=yes
  12974. ;;
  12975. sunos4*)
  12976. if test "x$host_vendor" = xsequent; then
  12977. # Use $CC to link under sequent, because it throws in some extra .o
  12978. # files that make .init and .fini sections work.
  12979. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12980. else
  12981. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12982. fi
  12983. hardcode_libdir_flag_spec_F77='-L$libdir'
  12984. hardcode_direct_F77=yes
  12985. hardcode_minus_L_F77=yes
  12986. hardcode_shlibpath_var_F77=no
  12987. ;;
  12988. sysv4)
  12989. case $host_vendor in
  12990. sni)
  12991. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12992. hardcode_direct_F77=yes # is this really true???
  12993. ;;
  12994. siemens)
  12995. ## LD is ld it makes a PLAMLIB
  12996. ## CC just makes a GrossModule.
  12997. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12998. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12999. hardcode_direct_F77=no
  13000. ;;
  13001. motorola)
  13002. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13003. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13004. ;;
  13005. esac
  13006. runpath_var='LD_RUN_PATH'
  13007. hardcode_shlibpath_var_F77=no
  13008. ;;
  13009. sysv4.3*)
  13010. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13011. hardcode_shlibpath_var_F77=no
  13012. export_dynamic_flag_spec_F77='-Bexport'
  13013. ;;
  13014. sysv4*MP*)
  13015. if test -d /usr/nec; then
  13016. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13017. hardcode_shlibpath_var_F77=no
  13018. runpath_var=LD_RUN_PATH
  13019. hardcode_runpath_var=yes
  13020. ld_shlibs_F77=yes
  13021. fi
  13022. ;;
  13023. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13024. no_undefined_flag_F77='${wl}-z,text'
  13025. archive_cmds_need_lc_F77=no
  13026. hardcode_shlibpath_var_F77=no
  13027. runpath_var='LD_RUN_PATH'
  13028. if test "$GCC" = yes; then
  13029. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13030. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13031. else
  13032. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13033. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13034. fi
  13035. ;;
  13036. sysv5* | sco3.2v5* | sco5v6*)
  13037. # Note: We can NOT use -z defs as we might desire, because we do not
  13038. # link with -lc, and that would cause any symbols used from libc to
  13039. # always be unresolved, which means just about no library would
  13040. # ever link correctly. If we're not using GNU ld we use -z text
  13041. # though, which does catch some bad symbols but isn't as heavy-handed
  13042. # as -z defs.
  13043. no_undefined_flag_F77='${wl}-z,text'
  13044. allow_undefined_flag_F77='${wl}-z,nodefs'
  13045. archive_cmds_need_lc_F77=no
  13046. hardcode_shlibpath_var_F77=no
  13047. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13048. hardcode_libdir_separator_F77=':'
  13049. link_all_deplibs_F77=yes
  13050. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13051. runpath_var='LD_RUN_PATH'
  13052. if test "$GCC" = yes; then
  13053. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13054. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13055. else
  13056. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13057. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13058. fi
  13059. ;;
  13060. uts4*)
  13061. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13062. hardcode_libdir_flag_spec_F77='-L$libdir'
  13063. hardcode_shlibpath_var_F77=no
  13064. ;;
  13065. *)
  13066. ld_shlibs_F77=no
  13067. ;;
  13068. esac
  13069. fi
  13070. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13071. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13072. test "$ld_shlibs_F77" = no && can_build_shared=no
  13073. #
  13074. # Do we need to explicitly link libc?
  13075. #
  13076. case "x$archive_cmds_need_lc_F77" in
  13077. x|xyes)
  13078. # Assume -lc should be added
  13079. archive_cmds_need_lc_F77=yes
  13080. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13081. case $archive_cmds_F77 in
  13082. *'~'*)
  13083. # FIXME: we may have to deal with multi-command sequences.
  13084. ;;
  13085. '$CC '*)
  13086. # Test whether the compiler implicitly links with -lc since on some
  13087. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13088. # to ld, don't add -lc before -lgcc.
  13089. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13090. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13091. $rm conftest*
  13092. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13093. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13094. (eval $ac_compile) 2>&5
  13095. ac_status=$?
  13096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13097. (exit $ac_status); } 2>conftest.err; then
  13098. soname=conftest
  13099. lib=conftest
  13100. libobjs=conftest.$ac_objext
  13101. deplibs=
  13102. wl=$lt_prog_compiler_wl_F77
  13103. pic_flag=$lt_prog_compiler_pic_F77
  13104. compiler_flags=-v
  13105. linker_flags=-v
  13106. verstring=
  13107. output_objdir=.
  13108. libname=conftest
  13109. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13110. allow_undefined_flag_F77=
  13111. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13112. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13113. ac_status=$?
  13114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13115. (exit $ac_status); }
  13116. then
  13117. archive_cmds_need_lc_F77=no
  13118. else
  13119. archive_cmds_need_lc_F77=yes
  13120. fi
  13121. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13122. else
  13123. cat conftest.err 1>&5
  13124. fi
  13125. $rm conftest*
  13126. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13127. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13128. ;;
  13129. esac
  13130. fi
  13131. ;;
  13132. esac
  13133. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13134. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13135. library_names_spec=
  13136. libname_spec='lib$name'
  13137. soname_spec=
  13138. shrext_cmds=".so"
  13139. postinstall_cmds=
  13140. postuninstall_cmds=
  13141. finish_cmds=
  13142. finish_eval=
  13143. shlibpath_var=
  13144. shlibpath_overrides_runpath=unknown
  13145. version_type=none
  13146. dynamic_linker="$host_os ld.so"
  13147. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13148. if test "$GCC" = yes; then
  13149. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13150. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13151. # if the path contains ";" then we assume it to be the separator
  13152. # otherwise default to the standard path separator (i.e. ":") - it is
  13153. # assumed that no part of a normal pathname contains ";" but that should
  13154. # okay in the real world where ";" in dirpaths is itself problematic.
  13155. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13156. else
  13157. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13158. fi
  13159. else
  13160. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13161. fi
  13162. need_lib_prefix=unknown
  13163. hardcode_into_libs=no
  13164. # when you set need_version to no, make sure it does not cause -set_version
  13165. # flags to be left without arguments
  13166. need_version=unknown
  13167. case $host_os in
  13168. aix3*)
  13169. version_type=linux
  13170. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13171. shlibpath_var=LIBPATH
  13172. # AIX 3 has no versioning support, so we append a major version to the name.
  13173. soname_spec='${libname}${release}${shared_ext}$major'
  13174. ;;
  13175. aix4* | aix5*)
  13176. version_type=linux
  13177. need_lib_prefix=no
  13178. need_version=no
  13179. hardcode_into_libs=yes
  13180. if test "$host_cpu" = ia64; then
  13181. # AIX 5 supports IA64
  13182. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13183. shlibpath_var=LD_LIBRARY_PATH
  13184. else
  13185. # With GCC up to 2.95.x, collect2 would create an import file
  13186. # for dependence libraries. The import file would start with
  13187. # the line `#! .'. This would cause the generated library to
  13188. # depend on `.', always an invalid library. This was fixed in
  13189. # development snapshots of GCC prior to 3.0.
  13190. case $host_os in
  13191. aix4 | aix4.[01] | aix4.[01].*)
  13192. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13193. echo ' yes '
  13194. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13195. :
  13196. else
  13197. can_build_shared=no
  13198. fi
  13199. ;;
  13200. esac
  13201. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13202. # soname into executable. Probably we can add versioning support to
  13203. # collect2, so additional links can be useful in future.
  13204. if test "$aix_use_runtimelinking" = yes; then
  13205. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13206. # instead of lib<name>.a to let people know that these are not
  13207. # typical AIX shared libraries.
  13208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13209. else
  13210. # We preserve .a as extension for shared libraries through AIX4.2
  13211. # and later when we are not doing run time linking.
  13212. library_names_spec='${libname}${release}.a $libname.a'
  13213. soname_spec='${libname}${release}${shared_ext}$major'
  13214. fi
  13215. shlibpath_var=LIBPATH
  13216. fi
  13217. ;;
  13218. amigaos*)
  13219. library_names_spec='$libname.ixlibrary $libname.a'
  13220. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13221. 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'
  13222. ;;
  13223. beos*)
  13224. library_names_spec='${libname}${shared_ext}'
  13225. dynamic_linker="$host_os ld.so"
  13226. shlibpath_var=LIBRARY_PATH
  13227. ;;
  13228. bsdi[45]*)
  13229. version_type=linux
  13230. need_version=no
  13231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13232. soname_spec='${libname}${release}${shared_ext}$major'
  13233. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13234. shlibpath_var=LD_LIBRARY_PATH
  13235. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13236. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13237. # the default ld.so.conf also contains /usr/contrib/lib and
  13238. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13239. # libtool to hard-code these into programs
  13240. ;;
  13241. cygwin* | mingw* | pw32*)
  13242. version_type=windows
  13243. shrext_cmds=".dll"
  13244. need_version=no
  13245. need_lib_prefix=no
  13246. case $GCC,$host_os in
  13247. yes,cygwin* | yes,mingw* | yes,pw32*)
  13248. library_names_spec='$libname.dll.a'
  13249. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13250. postinstall_cmds='base_file=`basename \${file}`~
  13251. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13252. dldir=$destdir/`dirname \$dlpath`~
  13253. test -d \$dldir || mkdir -p \$dldir~
  13254. $install_prog $dir/$dlname \$dldir/$dlname~
  13255. chmod a+x \$dldir/$dlname'
  13256. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13257. dlpath=$dir/\$dldll~
  13258. $rm \$dlpath'
  13259. shlibpath_overrides_runpath=yes
  13260. case $host_os in
  13261. cygwin*)
  13262. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13263. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13264. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13265. ;;
  13266. mingw*)
  13267. # MinGW DLLs use traditional 'lib' prefix
  13268. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13269. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13270. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13271. # It is most probably a Windows format PATH printed by
  13272. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13273. # path with ; separators, and with drive letters. We can handle the
  13274. # drive letters (cygwin fileutils understands them), so leave them,
  13275. # especially as we might pass files found there to a mingw objdump,
  13276. # which wouldn't understand a cygwinified path. Ahh.
  13277. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13278. else
  13279. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13280. fi
  13281. ;;
  13282. pw32*)
  13283. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13284. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13285. ;;
  13286. esac
  13287. ;;
  13288. *)
  13289. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13290. ;;
  13291. esac
  13292. dynamic_linker='Win32 ld.exe'
  13293. # FIXME: first we should search . and the directory the executable is in
  13294. shlibpath_var=PATH
  13295. ;;
  13296. darwin* | rhapsody*)
  13297. dynamic_linker="$host_os dyld"
  13298. version_type=darwin
  13299. need_lib_prefix=no
  13300. need_version=no
  13301. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13302. soname_spec='${libname}${release}${major}$shared_ext'
  13303. shlibpath_overrides_runpath=yes
  13304. shlibpath_var=DYLD_LIBRARY_PATH
  13305. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13306. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13307. if test "$GCC" = yes; then
  13308. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13309. else
  13310. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13311. fi
  13312. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13313. ;;
  13314. dgux*)
  13315. version_type=linux
  13316. need_lib_prefix=no
  13317. need_version=no
  13318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13319. soname_spec='${libname}${release}${shared_ext}$major'
  13320. shlibpath_var=LD_LIBRARY_PATH
  13321. ;;
  13322. freebsd1*)
  13323. dynamic_linker=no
  13324. ;;
  13325. kfreebsd*-gnu)
  13326. version_type=linux
  13327. need_lib_prefix=no
  13328. need_version=no
  13329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13330. soname_spec='${libname}${release}${shared_ext}$major'
  13331. shlibpath_var=LD_LIBRARY_PATH
  13332. shlibpath_overrides_runpath=no
  13333. hardcode_into_libs=yes
  13334. dynamic_linker='GNU ld.so'
  13335. ;;
  13336. freebsd* | dragonfly*)
  13337. # DragonFly does not have aout. When/if they implement a new
  13338. # versioning mechanism, adjust this.
  13339. if test -x /usr/bin/objformat; then
  13340. objformat=`/usr/bin/objformat`
  13341. else
  13342. case $host_os in
  13343. freebsd[123]*) objformat=aout ;;
  13344. *) objformat=elf ;;
  13345. esac
  13346. fi
  13347. version_type=freebsd-$objformat
  13348. case $version_type in
  13349. freebsd-elf*)
  13350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13351. need_version=no
  13352. need_lib_prefix=no
  13353. ;;
  13354. freebsd-*)
  13355. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13356. need_version=yes
  13357. ;;
  13358. esac
  13359. shlibpath_var=LD_LIBRARY_PATH
  13360. case $host_os in
  13361. freebsd2*)
  13362. shlibpath_overrides_runpath=yes
  13363. ;;
  13364. freebsd3.[01]* | freebsdelf3.[01]*)
  13365. shlibpath_overrides_runpath=yes
  13366. hardcode_into_libs=yes
  13367. ;;
  13368. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13369. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13370. shlibpath_overrides_runpath=no
  13371. hardcode_into_libs=yes
  13372. ;;
  13373. freebsd*) # from 4.6 on
  13374. shlibpath_overrides_runpath=yes
  13375. hardcode_into_libs=yes
  13376. ;;
  13377. esac
  13378. ;;
  13379. gnu*)
  13380. version_type=linux
  13381. need_lib_prefix=no
  13382. need_version=no
  13383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13384. soname_spec='${libname}${release}${shared_ext}$major'
  13385. shlibpath_var=LD_LIBRARY_PATH
  13386. hardcode_into_libs=yes
  13387. ;;
  13388. hpux9* | hpux10* | hpux11*)
  13389. # Give a soname corresponding to the major version so that dld.sl refuses to
  13390. # link against other versions.
  13391. version_type=sunos
  13392. need_lib_prefix=no
  13393. need_version=no
  13394. case $host_cpu in
  13395. ia64*)
  13396. shrext_cmds='.so'
  13397. hardcode_into_libs=yes
  13398. dynamic_linker="$host_os dld.so"
  13399. shlibpath_var=LD_LIBRARY_PATH
  13400. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13402. soname_spec='${libname}${release}${shared_ext}$major'
  13403. if test "X$HPUX_IA64_MODE" = X32; then
  13404. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13405. else
  13406. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13407. fi
  13408. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13409. ;;
  13410. hppa*64*)
  13411. shrext_cmds='.sl'
  13412. hardcode_into_libs=yes
  13413. dynamic_linker="$host_os dld.sl"
  13414. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13415. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13417. soname_spec='${libname}${release}${shared_ext}$major'
  13418. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13419. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13420. ;;
  13421. *)
  13422. shrext_cmds='.sl'
  13423. dynamic_linker="$host_os dld.sl"
  13424. shlibpath_var=SHLIB_PATH
  13425. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13427. soname_spec='${libname}${release}${shared_ext}$major'
  13428. ;;
  13429. esac
  13430. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13431. postinstall_cmds='chmod 555 $lib'
  13432. ;;
  13433. interix3*)
  13434. version_type=linux
  13435. need_lib_prefix=no
  13436. need_version=no
  13437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13438. soname_spec='${libname}${release}${shared_ext}$major'
  13439. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13440. shlibpath_var=LD_LIBRARY_PATH
  13441. shlibpath_overrides_runpath=no
  13442. hardcode_into_libs=yes
  13443. ;;
  13444. irix5* | irix6* | nonstopux*)
  13445. case $host_os in
  13446. nonstopux*) version_type=nonstopux ;;
  13447. *)
  13448. if test "$lt_cv_prog_gnu_ld" = yes; then
  13449. version_type=linux
  13450. else
  13451. version_type=irix
  13452. fi ;;
  13453. esac
  13454. need_lib_prefix=no
  13455. need_version=no
  13456. soname_spec='${libname}${release}${shared_ext}$major'
  13457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13458. case $host_os in
  13459. irix5* | nonstopux*)
  13460. libsuff= shlibsuff=
  13461. ;;
  13462. *)
  13463. case $LD in # libtool.m4 will add one of these switches to LD
  13464. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13465. libsuff= shlibsuff= libmagic=32-bit;;
  13466. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13467. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13468. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13469. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13470. *) libsuff= shlibsuff= libmagic=never-match;;
  13471. esac
  13472. ;;
  13473. esac
  13474. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13475. shlibpath_overrides_runpath=no
  13476. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13477. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13478. hardcode_into_libs=yes
  13479. ;;
  13480. # No shared lib support for Linux oldld, aout, or coff.
  13481. linux*oldld* | linux*aout* | linux*coff*)
  13482. dynamic_linker=no
  13483. ;;
  13484. # This must be Linux ELF.
  13485. linux*)
  13486. version_type=linux
  13487. need_lib_prefix=no
  13488. need_version=no
  13489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13490. soname_spec='${libname}${release}${shared_ext}$major'
  13491. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13492. shlibpath_var=LD_LIBRARY_PATH
  13493. shlibpath_overrides_runpath=no
  13494. # This implies no fast_install, which is unacceptable.
  13495. # Some rework will be needed to allow for fast_install
  13496. # before this can be enabled.
  13497. hardcode_into_libs=yes
  13498. # find out which ABI we are using
  13499. libsuff=
  13500. case "$host_cpu" in
  13501. x86_64*|s390x*|powerpc64*)
  13502. echo '#line 14964 "configure"' > conftest.$ac_ext
  13503. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13504. (eval $ac_compile) 2>&5
  13505. ac_status=$?
  13506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13507. (exit $ac_status); }; then
  13508. case `/usr/bin/file conftest.$ac_objext` in
  13509. *64-bit*)
  13510. libsuff=64
  13511. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13512. ;;
  13513. esac
  13514. fi
  13515. rm -rf conftest*
  13516. ;;
  13517. esac
  13518. # Append ld.so.conf contents to the search path
  13519. if test -f /etc/ld.so.conf; then
  13520. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13521. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13522. fi
  13523. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13524. # powerpc, because MkLinux only supported shared libraries with the
  13525. # GNU dynamic linker. Since this was broken with cross compilers,
  13526. # most powerpc-linux boxes support dynamic linking these days and
  13527. # people can always --disable-shared, the test was removed, and we
  13528. # assume the GNU/Linux dynamic linker is in use.
  13529. dynamic_linker='GNU/Linux ld.so'
  13530. ;;
  13531. knetbsd*-gnu)
  13532. version_type=linux
  13533. need_lib_prefix=no
  13534. need_version=no
  13535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13536. soname_spec='${libname}${release}${shared_ext}$major'
  13537. shlibpath_var=LD_LIBRARY_PATH
  13538. shlibpath_overrides_runpath=no
  13539. hardcode_into_libs=yes
  13540. dynamic_linker='GNU ld.so'
  13541. ;;
  13542. netbsd*)
  13543. version_type=sunos
  13544. need_lib_prefix=no
  13545. need_version=no
  13546. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13547. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13548. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13549. dynamic_linker='NetBSD (a.out) ld.so'
  13550. else
  13551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13552. soname_spec='${libname}${release}${shared_ext}$major'
  13553. dynamic_linker='NetBSD ld.elf_so'
  13554. fi
  13555. shlibpath_var=LD_LIBRARY_PATH
  13556. shlibpath_overrides_runpath=yes
  13557. hardcode_into_libs=yes
  13558. ;;
  13559. newsos6)
  13560. version_type=linux
  13561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13562. shlibpath_var=LD_LIBRARY_PATH
  13563. shlibpath_overrides_runpath=yes
  13564. ;;
  13565. nto-qnx*)
  13566. version_type=linux
  13567. need_lib_prefix=no
  13568. need_version=no
  13569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13570. soname_spec='${libname}${release}${shared_ext}$major'
  13571. shlibpath_var=LD_LIBRARY_PATH
  13572. shlibpath_overrides_runpath=yes
  13573. ;;
  13574. openbsd*)
  13575. version_type=sunos
  13576. sys_lib_dlsearch_path_spec="/usr/lib"
  13577. need_lib_prefix=no
  13578. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13579. case $host_os in
  13580. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13581. *) need_version=no ;;
  13582. esac
  13583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13584. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13585. shlibpath_var=LD_LIBRARY_PATH
  13586. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13587. case $host_os in
  13588. openbsd2.[89] | openbsd2.[89].*)
  13589. shlibpath_overrides_runpath=no
  13590. ;;
  13591. *)
  13592. shlibpath_overrides_runpath=yes
  13593. ;;
  13594. esac
  13595. else
  13596. shlibpath_overrides_runpath=yes
  13597. fi
  13598. ;;
  13599. os2*)
  13600. libname_spec='$name'
  13601. shrext_cmds=".dll"
  13602. need_lib_prefix=no
  13603. library_names_spec='$libname${shared_ext} $libname.a'
  13604. dynamic_linker='OS/2 ld.exe'
  13605. shlibpath_var=LIBPATH
  13606. ;;
  13607. osf3* | osf4* | osf5*)
  13608. version_type=osf
  13609. need_lib_prefix=no
  13610. need_version=no
  13611. soname_spec='${libname}${release}${shared_ext}$major'
  13612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13613. shlibpath_var=LD_LIBRARY_PATH
  13614. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13615. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13616. ;;
  13617. solaris*)
  13618. version_type=linux
  13619. need_lib_prefix=no
  13620. need_version=no
  13621. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13622. soname_spec='${libname}${release}${shared_ext}$major'
  13623. shlibpath_var=LD_LIBRARY_PATH
  13624. shlibpath_overrides_runpath=yes
  13625. hardcode_into_libs=yes
  13626. # ldd complains unless libraries are executable
  13627. postinstall_cmds='chmod +x $lib'
  13628. ;;
  13629. sunos4*)
  13630. version_type=sunos
  13631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13632. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13633. shlibpath_var=LD_LIBRARY_PATH
  13634. shlibpath_overrides_runpath=yes
  13635. if test "$with_gnu_ld" = yes; then
  13636. need_lib_prefix=no
  13637. fi
  13638. need_version=yes
  13639. ;;
  13640. sysv4 | sysv4.3*)
  13641. version_type=linux
  13642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13643. soname_spec='${libname}${release}${shared_ext}$major'
  13644. shlibpath_var=LD_LIBRARY_PATH
  13645. case $host_vendor in
  13646. sni)
  13647. shlibpath_overrides_runpath=no
  13648. need_lib_prefix=no
  13649. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13650. runpath_var=LD_RUN_PATH
  13651. ;;
  13652. siemens)
  13653. need_lib_prefix=no
  13654. ;;
  13655. motorola)
  13656. need_lib_prefix=no
  13657. need_version=no
  13658. shlibpath_overrides_runpath=no
  13659. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13660. ;;
  13661. esac
  13662. ;;
  13663. sysv4*MP*)
  13664. if test -d /usr/nec ;then
  13665. version_type=linux
  13666. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13667. soname_spec='$libname${shared_ext}.$major'
  13668. shlibpath_var=LD_LIBRARY_PATH
  13669. fi
  13670. ;;
  13671. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13672. version_type=freebsd-elf
  13673. need_lib_prefix=no
  13674. need_version=no
  13675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13676. soname_spec='${libname}${release}${shared_ext}$major'
  13677. shlibpath_var=LD_LIBRARY_PATH
  13678. hardcode_into_libs=yes
  13679. if test "$with_gnu_ld" = yes; then
  13680. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13681. shlibpath_overrides_runpath=no
  13682. else
  13683. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13684. shlibpath_overrides_runpath=yes
  13685. case $host_os in
  13686. sco3.2v5*)
  13687. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13688. ;;
  13689. esac
  13690. fi
  13691. sys_lib_dlsearch_path_spec='/usr/lib'
  13692. ;;
  13693. uts4*)
  13694. version_type=linux
  13695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13696. soname_spec='${libname}${release}${shared_ext}$major'
  13697. shlibpath_var=LD_LIBRARY_PATH
  13698. ;;
  13699. *)
  13700. dynamic_linker=no
  13701. ;;
  13702. esac
  13703. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13704. echo "${ECHO_T}$dynamic_linker" >&6
  13705. test "$dynamic_linker" = no && can_build_shared=no
  13706. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13707. if test "$GCC" = yes; then
  13708. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13709. fi
  13710. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13711. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13712. hardcode_action_F77=
  13713. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13714. test -n "$runpath_var_F77" || \
  13715. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13716. # We can hardcode non-existant directories.
  13717. if test "$hardcode_direct_F77" != no &&
  13718. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13719. # have to relink, otherwise we might link with an installed library
  13720. # when we should be linking with a yet-to-be-installed one
  13721. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13722. test "$hardcode_minus_L_F77" != no; then
  13723. # Linking always hardcodes the temporary library directory.
  13724. hardcode_action_F77=relink
  13725. else
  13726. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13727. hardcode_action_F77=immediate
  13728. fi
  13729. else
  13730. # We cannot hardcode anything, or else we can only hardcode existing
  13731. # directories.
  13732. hardcode_action_F77=unsupported
  13733. fi
  13734. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13735. echo "${ECHO_T}$hardcode_action_F77" >&6
  13736. if test "$hardcode_action_F77" = relink; then
  13737. # Fast installation is not supported
  13738. enable_fast_install=no
  13739. elif test "$shlibpath_overrides_runpath" = yes ||
  13740. test "$enable_shared" = no; then
  13741. # Fast installation is not necessary
  13742. enable_fast_install=needless
  13743. fi
  13744. # The else clause should only fire when bootstrapping the
  13745. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13746. # with your package, and you will get complaints that there are
  13747. # no rules to generate ltmain.sh.
  13748. if test -f "$ltmain"; then
  13749. # See if we are running on zsh, and set the options which allow our commands through
  13750. # without removal of \ escapes.
  13751. if test -n "${ZSH_VERSION+set}" ; then
  13752. setopt NO_GLOB_SUBST
  13753. fi
  13754. # Now quote all the things that may contain metacharacters while being
  13755. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13756. # variables and quote the copies for generation of the libtool script.
  13757. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13758. SED SHELL STRIP \
  13759. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13760. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13761. deplibs_check_method reload_flag reload_cmds need_locks \
  13762. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13763. lt_cv_sys_global_symbol_to_c_name_address \
  13764. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13765. old_postinstall_cmds old_postuninstall_cmds \
  13766. compiler_F77 \
  13767. CC_F77 \
  13768. LD_F77 \
  13769. lt_prog_compiler_wl_F77 \
  13770. lt_prog_compiler_pic_F77 \
  13771. lt_prog_compiler_static_F77 \
  13772. lt_prog_compiler_no_builtin_flag_F77 \
  13773. export_dynamic_flag_spec_F77 \
  13774. thread_safe_flag_spec_F77 \
  13775. whole_archive_flag_spec_F77 \
  13776. enable_shared_with_static_runtimes_F77 \
  13777. old_archive_cmds_F77 \
  13778. old_archive_from_new_cmds_F77 \
  13779. predep_objects_F77 \
  13780. postdep_objects_F77 \
  13781. predeps_F77 \
  13782. postdeps_F77 \
  13783. compiler_lib_search_path_F77 \
  13784. archive_cmds_F77 \
  13785. archive_expsym_cmds_F77 \
  13786. postinstall_cmds_F77 \
  13787. postuninstall_cmds_F77 \
  13788. old_archive_from_expsyms_cmds_F77 \
  13789. allow_undefined_flag_F77 \
  13790. no_undefined_flag_F77 \
  13791. export_symbols_cmds_F77 \
  13792. hardcode_libdir_flag_spec_F77 \
  13793. hardcode_libdir_flag_spec_ld_F77 \
  13794. hardcode_libdir_separator_F77 \
  13795. hardcode_automatic_F77 \
  13796. module_cmds_F77 \
  13797. module_expsym_cmds_F77 \
  13798. lt_cv_prog_compiler_c_o_F77 \
  13799. exclude_expsyms_F77 \
  13800. include_expsyms_F77; do
  13801. case $var in
  13802. old_archive_cmds_F77 | \
  13803. old_archive_from_new_cmds_F77 | \
  13804. archive_cmds_F77 | \
  13805. archive_expsym_cmds_F77 | \
  13806. module_cmds_F77 | \
  13807. module_expsym_cmds_F77 | \
  13808. old_archive_from_expsyms_cmds_F77 | \
  13809. export_symbols_cmds_F77 | \
  13810. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13811. postinstall_cmds | postuninstall_cmds | \
  13812. old_postinstall_cmds | old_postuninstall_cmds | \
  13813. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13814. # Double-quote double-evaled strings.
  13815. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13816. ;;
  13817. *)
  13818. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13819. ;;
  13820. esac
  13821. done
  13822. case $lt_echo in
  13823. *'\$0 --fallback-echo"')
  13824. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13825. ;;
  13826. esac
  13827. cfgfile="$ofile"
  13828. cat <<__EOF__ >> "$cfgfile"
  13829. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13830. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13831. # Shell to use when invoking shell scripts.
  13832. SHELL=$lt_SHELL
  13833. # Whether or not to build shared libraries.
  13834. build_libtool_libs=$enable_shared
  13835. # Whether or not to build static libraries.
  13836. build_old_libs=$enable_static
  13837. # Whether or not to add -lc for building shared libraries.
  13838. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13839. # Whether or not to disallow shared libs when runtime libs are static
  13840. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13841. # Whether or not to optimize for fast installation.
  13842. fast_install=$enable_fast_install
  13843. # The host system.
  13844. host_alias=$host_alias
  13845. host=$host
  13846. host_os=$host_os
  13847. # The build system.
  13848. build_alias=$build_alias
  13849. build=$build
  13850. build_os=$build_os
  13851. # An echo program that does not interpret backslashes.
  13852. echo=$lt_echo
  13853. # The archiver.
  13854. AR=$lt_AR
  13855. AR_FLAGS=$lt_AR_FLAGS
  13856. # A C compiler.
  13857. LTCC=$lt_LTCC
  13858. # LTCC compiler flags.
  13859. LTCFLAGS=$lt_LTCFLAGS
  13860. # A language-specific compiler.
  13861. CC=$lt_compiler_F77
  13862. # Is the compiler the GNU C compiler?
  13863. with_gcc=$GCC_F77
  13864. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  13865. gcc_ver=\`gcc -dumpversion\`
  13866. # An ERE matcher.
  13867. EGREP=$lt_EGREP
  13868. # The linker used to build libraries.
  13869. LD=$lt_LD_F77
  13870. # Whether we need hard or soft links.
  13871. LN_S=$lt_LN_S
  13872. # A BSD-compatible nm program.
  13873. NM=$lt_NM
  13874. # A symbol stripping program
  13875. STRIP=$lt_STRIP
  13876. # Used to examine libraries when file_magic_cmd begins "file"
  13877. MAGIC_CMD=$MAGIC_CMD
  13878. # Used on cygwin: DLL creation program.
  13879. DLLTOOL="$DLLTOOL"
  13880. # Used on cygwin: object dumper.
  13881. OBJDUMP="$OBJDUMP"
  13882. # Used on cygwin: assembler.
  13883. AS="$AS"
  13884. # The name of the directory that contains temporary libtool files.
  13885. objdir=$objdir
  13886. # How to create reloadable object files.
  13887. reload_flag=$lt_reload_flag
  13888. reload_cmds=$lt_reload_cmds
  13889. # How to pass a linker flag through the compiler.
  13890. wl=$lt_lt_prog_compiler_wl_F77
  13891. # Object file suffix (normally "o").
  13892. objext="$ac_objext"
  13893. # Old archive suffix (normally "a").
  13894. libext="$libext"
  13895. # Shared library suffix (normally ".so").
  13896. shrext_cmds='$shrext_cmds'
  13897. # Executable file suffix (normally "").
  13898. exeext="$exeext"
  13899. # Additional compiler flags for building library objects.
  13900. pic_flag=$lt_lt_prog_compiler_pic_F77
  13901. pic_mode=$pic_mode
  13902. # What is the maximum length of a command?
  13903. max_cmd_len=$lt_cv_sys_max_cmd_len
  13904. # Does compiler simultaneously support -c and -o options?
  13905. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13906. # Must we lock files when doing compilation?
  13907. need_locks=$lt_need_locks
  13908. # Do we need the lib prefix for modules?
  13909. need_lib_prefix=$need_lib_prefix
  13910. # Do we need a version for libraries?
  13911. need_version=$need_version
  13912. # Whether dlopen is supported.
  13913. dlopen_support=$enable_dlopen
  13914. # Whether dlopen of programs is supported.
  13915. dlopen_self=$enable_dlopen_self
  13916. # Whether dlopen of statically linked programs is supported.
  13917. dlopen_self_static=$enable_dlopen_self_static
  13918. # Compiler flag to prevent dynamic linking.
  13919. link_static_flag=$lt_lt_prog_compiler_static_F77
  13920. # Compiler flag to turn off builtin functions.
  13921. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13922. # Compiler flag to allow reflexive dlopens.
  13923. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13924. # Compiler flag to generate shared objects directly from archives.
  13925. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13926. # Compiler flag to generate thread-safe objects.
  13927. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13928. # Library versioning type.
  13929. version_type=$version_type
  13930. # Format of library name prefix.
  13931. libname_spec=$lt_libname_spec
  13932. # List of archive names. First name is the real one, the rest are links.
  13933. # The last name is the one that the linker finds with -lNAME.
  13934. library_names_spec=$lt_library_names_spec
  13935. # The coded name of the library, if different from the real name.
  13936. soname_spec=$lt_soname_spec
  13937. # Commands used to build and install an old-style archive.
  13938. RANLIB=$lt_RANLIB
  13939. old_archive_cmds=$lt_old_archive_cmds_F77
  13940. old_postinstall_cmds=$lt_old_postinstall_cmds
  13941. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13942. # Create an old-style archive from a shared archive.
  13943. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13944. # Create a temporary old-style archive to link instead of a shared archive.
  13945. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13946. # Commands used to build and install a shared archive.
  13947. archive_cmds=$lt_archive_cmds_F77
  13948. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13949. postinstall_cmds=$lt_postinstall_cmds
  13950. postuninstall_cmds=$lt_postuninstall_cmds
  13951. # Commands used to build a loadable module (assumed same as above if empty)
  13952. module_cmds=$lt_module_cmds_F77
  13953. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13954. # Commands to strip libraries.
  13955. old_striplib=$lt_old_striplib
  13956. striplib=$lt_striplib
  13957. # Dependencies to place before the objects being linked to create a
  13958. # shared library.
  13959. predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13960. # Dependencies to place after the objects being linked to create a
  13961. # shared library.
  13962. postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13963. # Dependencies to place before the objects being linked to create a
  13964. # shared library.
  13965. predeps=$lt_predeps_F77
  13966. # Dependencies to place after the objects being linked to create a
  13967. # shared library.
  13968. postdeps=$lt_postdeps_F77
  13969. # The library search path used internally by the compiler when linking
  13970. # a shared library.
  13971. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13972. # Method to check whether dependent libraries are shared objects.
  13973. deplibs_check_method=$lt_deplibs_check_method
  13974. # Command to use when deplibs_check_method == file_magic.
  13975. file_magic_cmd=$lt_file_magic_cmd
  13976. # Flag that allows shared libraries with undefined symbols to be built.
  13977. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13978. # Flag that forces no undefined symbols.
  13979. no_undefined_flag=$lt_no_undefined_flag_F77
  13980. # Commands used to finish a libtool library installation in a directory.
  13981. finish_cmds=$lt_finish_cmds
  13982. # Same as above, but a single script fragment to be evaled but not shown.
  13983. finish_eval=$lt_finish_eval
  13984. # Take the output of nm and produce a listing of raw symbols and C names.
  13985. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13986. # Transform the output of nm in a proper C declaration
  13987. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13988. # Transform the output of nm in a C name address pair
  13989. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13990. # This is the shared library runtime path variable.
  13991. runpath_var=$runpath_var
  13992. # This is the shared library path variable.
  13993. shlibpath_var=$shlibpath_var
  13994. # Is shlibpath searched before the hard-coded library search path?
  13995. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13996. # How to hardcode a shared library path into an executable.
  13997. hardcode_action=$hardcode_action_F77
  13998. # Whether we should hardcode library paths into libraries.
  13999. hardcode_into_libs=$hardcode_into_libs
  14000. # Flag to hardcode \$libdir into a binary during linking.
  14001. # This must work even if \$libdir does not exist.
  14002. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14003. # If ld is used when linking, flag to hardcode \$libdir into
  14004. # a binary during linking. This must work even if \$libdir does
  14005. # not exist.
  14006. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14007. # Whether we need a single -rpath flag with a separated argument.
  14008. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14009. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14010. # resulting binary.
  14011. hardcode_direct=$hardcode_direct_F77
  14012. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14013. # resulting binary.
  14014. hardcode_minus_L=$hardcode_minus_L_F77
  14015. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14016. # the resulting binary.
  14017. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14018. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14019. # and all subsequent libraries and executables linked against it.
  14020. hardcode_automatic=$hardcode_automatic_F77
  14021. # Variables whose values should be saved in libtool wrapper scripts and
  14022. # restored at relink time.
  14023. variables_saved_for_relink="$variables_saved_for_relink"
  14024. # Whether libtool must link a program against all its dependency libraries.
  14025. link_all_deplibs=$link_all_deplibs_F77
  14026. # Compile-time system search path for libraries
  14027. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14028. # Run-time system search path for libraries
  14029. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14030. # Fix the shell variable \$srcfile for the compiler.
  14031. fix_srcfile_path="$fix_srcfile_path_F77"
  14032. # Set to yes if exported symbols are required.
  14033. always_export_symbols=$always_export_symbols_F77
  14034. # The commands to list exported symbols.
  14035. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14036. # The commands to extract the exported symbol list from a shared archive.
  14037. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14038. # Symbols that should not be listed in the preloaded symbols.
  14039. exclude_expsyms=$lt_exclude_expsyms_F77
  14040. # Symbols that must always be exported.
  14041. include_expsyms=$lt_include_expsyms_F77
  14042. # ### END LIBTOOL TAG CONFIG: $tagname
  14043. __EOF__
  14044. else
  14045. # If there is no Makefile yet, we rely on a make rule to execute
  14046. # `config.status --recheck' to rerun these tests and create the
  14047. # libtool script then.
  14048. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14049. if test -f "$ltmain_in"; then
  14050. test -f Makefile && make "$ltmain"
  14051. fi
  14052. fi
  14053. ac_ext=c
  14054. ac_cpp='$CPP $CPPFLAGS'
  14055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14058. CC="$lt_save_CC"
  14059. else
  14060. tagname=""
  14061. fi
  14062. ;;
  14063. GCJ)
  14064. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14065. # Source file extension for Java test sources.
  14066. ac_ext=java
  14067. # Object file extension for compiled Java test sources.
  14068. objext=o
  14069. objext_GCJ=$objext
  14070. # Code to be used in simple compile tests
  14071. lt_simple_compile_test_code="class foo {}\n"
  14072. # Code to be used in simple link tests
  14073. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14074. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14075. # If no C compiler was specified, use CC.
  14076. LTCC=${LTCC-"$CC"}
  14077. # If no C compiler flags were specified, use CFLAGS.
  14078. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14079. # Allow CC to be a program name with arguments.
  14080. compiler=$CC
  14081. # save warnings/boilerplate of simple test code
  14082. ac_outfile=conftest.$ac_objext
  14083. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14084. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14085. _lt_compiler_boilerplate=`cat conftest.err`
  14086. $rm conftest*
  14087. ac_outfile=conftest.$ac_objext
  14088. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14089. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14090. _lt_linker_boilerplate=`cat conftest.err`
  14091. $rm conftest*
  14092. # Allow CC to be a program name with arguments.
  14093. lt_save_CC="$CC"
  14094. CC=${GCJ-"gcj"}
  14095. compiler=$CC
  14096. compiler_GCJ=$CC
  14097. for cc_temp in $compiler""; do
  14098. case $cc_temp in
  14099. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14100. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14101. \-*) ;;
  14102. *) break;;
  14103. esac
  14104. done
  14105. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14106. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14107. archive_cmds_need_lc_GCJ=no
  14108. old_archive_cmds_GCJ=$old_archive_cmds
  14109. lt_prog_compiler_no_builtin_flag_GCJ=
  14110. if test "$GCC" = yes; then
  14111. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14112. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14113. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14114. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14115. echo $ECHO_N "(cached) $ECHO_C" >&6
  14116. else
  14117. lt_cv_prog_compiler_rtti_exceptions=no
  14118. ac_outfile=conftest.$ac_objext
  14119. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14120. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14121. # Insert the option either (1) after the last *FLAGS variable, or
  14122. # (2) before a word containing "conftest.", or (3) at the end.
  14123. # Note that $ac_compile itself does not contain backslashes and begins
  14124. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14125. # The option is referenced via a variable to avoid confusing sed.
  14126. lt_compile=`echo "$ac_compile" | $SED \
  14127. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14128. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14129. -e 's:$: $lt_compiler_flag:'`
  14130. (eval echo "\"\$as_me:15742: $lt_compile\"" >&5)
  14131. (eval "$lt_compile" 2>conftest.err)
  14132. ac_status=$?
  14133. cat conftest.err >&5
  14134. echo "$as_me:15746: \$? = $ac_status" >&5
  14135. if (exit $ac_status) && test -s "$ac_outfile"; then
  14136. # The compiler can only warn and ignore the option if not recognized
  14137. # So say no if there are warnings other than the usual output.
  14138. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14139. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14140. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14141. lt_cv_prog_compiler_rtti_exceptions=yes
  14142. fi
  14143. fi
  14144. $rm conftest*
  14145. fi
  14146. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14147. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14148. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14149. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14150. else
  14151. :
  14152. fi
  14153. fi
  14154. lt_prog_compiler_wl_GCJ=
  14155. lt_prog_compiler_pic_GCJ=
  14156. lt_prog_compiler_static_GCJ=
  14157. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14158. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14159. if test "$GCC" = yes; then
  14160. lt_prog_compiler_wl_GCJ='-Wl,'
  14161. lt_prog_compiler_static_GCJ='-static'
  14162. case $host_os in
  14163. aix*)
  14164. # All AIX code is PIC.
  14165. if test "$host_cpu" = ia64; then
  14166. # AIX 5 now supports IA64 processor
  14167. lt_prog_compiler_static_GCJ='-Bstatic'
  14168. fi
  14169. ;;
  14170. amigaos*)
  14171. # FIXME: we need at least 68020 code to build shared libraries, but
  14172. # adding the `-m68020' flag to GCC prevents building anything better,
  14173. # like `-m68040'.
  14174. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14175. ;;
  14176. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14177. # PIC is the default for these OSes.
  14178. ;;
  14179. mingw* | pw32* | os2*)
  14180. # This hack is so that the source file can tell whether it is being
  14181. # built for inclusion in a dll (and should export symbols for example).
  14182. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14183. ;;
  14184. darwin* | rhapsody*)
  14185. # PIC is the default on this platform
  14186. # Common symbols not allowed in MH_DYLIB files
  14187. lt_prog_compiler_pic_GCJ='-fno-common'
  14188. ;;
  14189. interix3*)
  14190. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14191. # Instead, we relocate shared libraries at runtime.
  14192. ;;
  14193. msdosdjgpp*)
  14194. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14195. # on systems that don't support them.
  14196. lt_prog_compiler_can_build_shared_GCJ=no
  14197. enable_shared=no
  14198. ;;
  14199. sysv4*MP*)
  14200. if test -d /usr/nec; then
  14201. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14202. fi
  14203. ;;
  14204. hpux*)
  14205. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14206. # not for PA HP-UX.
  14207. case $host_cpu in
  14208. hppa*64*|ia64*)
  14209. # +Z the default
  14210. ;;
  14211. *)
  14212. lt_prog_compiler_pic_GCJ='-fPIC'
  14213. ;;
  14214. esac
  14215. ;;
  14216. *)
  14217. lt_prog_compiler_pic_GCJ='-fPIC'
  14218. ;;
  14219. esac
  14220. else
  14221. # PORTME Check for flag to pass linker flags through the system compiler.
  14222. case $host_os in
  14223. aix*)
  14224. lt_prog_compiler_wl_GCJ='-Wl,'
  14225. if test "$host_cpu" = ia64; then
  14226. # AIX 5 now supports IA64 processor
  14227. lt_prog_compiler_static_GCJ='-Bstatic'
  14228. else
  14229. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14230. fi
  14231. ;;
  14232. darwin*)
  14233. # PIC is the default on this platform
  14234. # Common symbols not allowed in MH_DYLIB files
  14235. case $cc_basename in
  14236. xlc*)
  14237. lt_prog_compiler_pic_GCJ='-qnocommon'
  14238. lt_prog_compiler_wl_GCJ='-Wl,'
  14239. ;;
  14240. esac
  14241. ;;
  14242. mingw* | pw32* | os2*)
  14243. # This hack is so that the source file can tell whether it is being
  14244. # built for inclusion in a dll (and should export symbols for example).
  14245. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14246. ;;
  14247. hpux9* | hpux10* | hpux11*)
  14248. lt_prog_compiler_wl_GCJ='-Wl,'
  14249. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14250. # not for PA HP-UX.
  14251. case $host_cpu in
  14252. hppa*64*|ia64*)
  14253. # +Z the default
  14254. ;;
  14255. *)
  14256. lt_prog_compiler_pic_GCJ='+Z'
  14257. ;;
  14258. esac
  14259. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14260. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14261. ;;
  14262. irix5* | irix6* | nonstopux*)
  14263. lt_prog_compiler_wl_GCJ='-Wl,'
  14264. # PIC (with -KPIC) is the default.
  14265. lt_prog_compiler_static_GCJ='-non_shared'
  14266. ;;
  14267. newsos6)
  14268. lt_prog_compiler_pic_GCJ='-KPIC'
  14269. lt_prog_compiler_static_GCJ='-Bstatic'
  14270. ;;
  14271. linux*)
  14272. case $cc_basename in
  14273. icc* | ecc*)
  14274. lt_prog_compiler_wl_GCJ='-Wl,'
  14275. lt_prog_compiler_pic_GCJ='-KPIC'
  14276. lt_prog_compiler_static_GCJ='-static'
  14277. ;;
  14278. pgcc* | pgf77* | pgf90* | pgf95*)
  14279. # Portland Group compilers (*not* the Pentium gcc compiler,
  14280. # which looks to be a dead project)
  14281. lt_prog_compiler_wl_GCJ='-Wl,'
  14282. lt_prog_compiler_pic_GCJ='-fpic'
  14283. lt_prog_compiler_static_GCJ='-Bstatic'
  14284. ;;
  14285. ccc*)
  14286. lt_prog_compiler_wl_GCJ='-Wl,'
  14287. # All Alpha code is PIC.
  14288. lt_prog_compiler_static_GCJ='-non_shared'
  14289. ;;
  14290. esac
  14291. ;;
  14292. osf3* | osf4* | osf5*)
  14293. lt_prog_compiler_wl_GCJ='-Wl,'
  14294. # All OSF/1 code is PIC.
  14295. lt_prog_compiler_static_GCJ='-non_shared'
  14296. ;;
  14297. solaris*)
  14298. lt_prog_compiler_pic_GCJ='-KPIC'
  14299. lt_prog_compiler_static_GCJ='-Bstatic'
  14300. case $cc_basename in
  14301. f77* | f90* | f95*)
  14302. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14303. *)
  14304. lt_prog_compiler_wl_GCJ='-Wl,';;
  14305. esac
  14306. ;;
  14307. sunos4*)
  14308. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14309. lt_prog_compiler_pic_GCJ='-PIC'
  14310. lt_prog_compiler_static_GCJ='-Bstatic'
  14311. ;;
  14312. sysv4 | sysv4.2uw2* | sysv4.3*)
  14313. lt_prog_compiler_wl_GCJ='-Wl,'
  14314. lt_prog_compiler_pic_GCJ='-KPIC'
  14315. lt_prog_compiler_static_GCJ='-Bstatic'
  14316. ;;
  14317. sysv4*MP*)
  14318. if test -d /usr/nec ;then
  14319. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14320. lt_prog_compiler_static_GCJ='-Bstatic'
  14321. fi
  14322. ;;
  14323. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14324. lt_prog_compiler_wl_GCJ='-Wl,'
  14325. lt_prog_compiler_pic_GCJ='-KPIC'
  14326. lt_prog_compiler_static_GCJ='-Bstatic'
  14327. ;;
  14328. unicos*)
  14329. lt_prog_compiler_wl_GCJ='-Wl,'
  14330. lt_prog_compiler_can_build_shared_GCJ=no
  14331. ;;
  14332. uts4*)
  14333. lt_prog_compiler_pic_GCJ='-pic'
  14334. lt_prog_compiler_static_GCJ='-Bstatic'
  14335. ;;
  14336. *)
  14337. lt_prog_compiler_can_build_shared_GCJ=no
  14338. ;;
  14339. esac
  14340. fi
  14341. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14342. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14343. #
  14344. # Check to make sure the PIC flag actually works.
  14345. #
  14346. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14347. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14348. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14349. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14350. echo $ECHO_N "(cached) $ECHO_C" >&6
  14351. else
  14352. lt_prog_compiler_pic_works_GCJ=no
  14353. ac_outfile=conftest.$ac_objext
  14354. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14355. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14356. # Insert the option either (1) after the last *FLAGS variable, or
  14357. # (2) before a word containing "conftest.", or (3) at the end.
  14358. # Note that $ac_compile itself does not contain backslashes and begins
  14359. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14360. # The option is referenced via a variable to avoid confusing sed.
  14361. lt_compile=`echo "$ac_compile" | $SED \
  14362. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14363. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14364. -e 's:$: $lt_compiler_flag:'`
  14365. (eval echo "\"\$as_me:16010: $lt_compile\"" >&5)
  14366. (eval "$lt_compile" 2>conftest.err)
  14367. ac_status=$?
  14368. cat conftest.err >&5
  14369. echo "$as_me:16014: \$? = $ac_status" >&5
  14370. if (exit $ac_status) && test -s "$ac_outfile"; then
  14371. # The compiler can only warn and ignore the option if not recognized
  14372. # So say no if there are warnings other than the usual output.
  14373. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14375. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14376. lt_prog_compiler_pic_works_GCJ=yes
  14377. fi
  14378. fi
  14379. $rm conftest*
  14380. fi
  14381. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14382. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14383. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14384. case $lt_prog_compiler_pic_GCJ in
  14385. "" | " "*) ;;
  14386. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14387. esac
  14388. else
  14389. lt_prog_compiler_pic_GCJ=
  14390. lt_prog_compiler_can_build_shared_GCJ=no
  14391. fi
  14392. fi
  14393. case $host_os in
  14394. # For platforms which do not support PIC, -DPIC is meaningless:
  14395. *djgpp*)
  14396. lt_prog_compiler_pic_GCJ=
  14397. ;;
  14398. *)
  14399. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14400. ;;
  14401. esac
  14402. #
  14403. # Check to make sure the static flag actually works.
  14404. #
  14405. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14406. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14407. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14408. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14409. echo $ECHO_N "(cached) $ECHO_C" >&6
  14410. else
  14411. lt_prog_compiler_static_works_GCJ=no
  14412. save_LDFLAGS="$LDFLAGS"
  14413. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14414. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14415. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14416. # The linker can only warn and ignore the option if not recognized
  14417. # So say no if there are warnings
  14418. if test -s conftest.err; then
  14419. # Append any errors to the config.log.
  14420. cat conftest.err 1>&5
  14421. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14422. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14423. if diff conftest.exp conftest.er2 >/dev/null; then
  14424. lt_prog_compiler_static_works_GCJ=yes
  14425. fi
  14426. else
  14427. lt_prog_compiler_static_works_GCJ=yes
  14428. fi
  14429. fi
  14430. $rm conftest*
  14431. LDFLAGS="$save_LDFLAGS"
  14432. fi
  14433. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14434. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14435. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14436. :
  14437. else
  14438. lt_prog_compiler_static_GCJ=
  14439. fi
  14440. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14441. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14442. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14443. echo $ECHO_N "(cached) $ECHO_C" >&6
  14444. else
  14445. lt_cv_prog_compiler_c_o_GCJ=no
  14446. $rm -r conftest 2>/dev/null
  14447. mkdir conftest
  14448. cd conftest
  14449. mkdir out
  14450. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14451. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14452. # Insert the option either (1) after the last *FLAGS variable, or
  14453. # (2) before a word containing "conftest.", or (3) at the end.
  14454. # Note that $ac_compile itself does not contain backslashes and begins
  14455. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14456. lt_compile=`echo "$ac_compile" | $SED \
  14457. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14458. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14459. -e 's:$: $lt_compiler_flag:'`
  14460. (eval echo "\"\$as_me:16114: $lt_compile\"" >&5)
  14461. (eval "$lt_compile" 2>out/conftest.err)
  14462. ac_status=$?
  14463. cat out/conftest.err >&5
  14464. echo "$as_me:16118: \$? = $ac_status" >&5
  14465. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14466. then
  14467. # The compiler can only warn and ignore the option if not recognized
  14468. # So say no if there are warnings
  14469. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14470. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14471. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14472. lt_cv_prog_compiler_c_o_GCJ=yes
  14473. fi
  14474. fi
  14475. chmod u+w . 2>&5
  14476. $rm conftest*
  14477. # SGI C++ compiler will create directory out/ii_files/ for
  14478. # template instantiation
  14479. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14480. $rm out/* && rmdir out
  14481. cd ..
  14482. rmdir conftest
  14483. $rm conftest*
  14484. fi
  14485. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14486. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14487. hard_links="nottested"
  14488. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14489. # do not overwrite the value of need_locks provided by the user
  14490. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14491. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14492. hard_links=yes
  14493. $rm conftest*
  14494. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14495. touch conftest.a
  14496. ln conftest.a conftest.b 2>&5 || hard_links=no
  14497. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14498. echo "$as_me:$LINENO: result: $hard_links" >&5
  14499. echo "${ECHO_T}$hard_links" >&6
  14500. if test "$hard_links" = no; then
  14501. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14502. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14503. need_locks=warn
  14504. fi
  14505. else
  14506. need_locks=no
  14507. fi
  14508. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14509. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14510. runpath_var=
  14511. allow_undefined_flag_GCJ=
  14512. enable_shared_with_static_runtimes_GCJ=no
  14513. archive_cmds_GCJ=
  14514. archive_expsym_cmds_GCJ=
  14515. old_archive_From_new_cmds_GCJ=
  14516. old_archive_from_expsyms_cmds_GCJ=
  14517. export_dynamic_flag_spec_GCJ=
  14518. whole_archive_flag_spec_GCJ=
  14519. thread_safe_flag_spec_GCJ=
  14520. hardcode_libdir_flag_spec_GCJ=
  14521. hardcode_libdir_flag_spec_ld_GCJ=
  14522. hardcode_libdir_separator_GCJ=
  14523. hardcode_direct_GCJ=no
  14524. hardcode_minus_L_GCJ=no
  14525. hardcode_shlibpath_var_GCJ=unsupported
  14526. link_all_deplibs_GCJ=unknown
  14527. hardcode_automatic_GCJ=no
  14528. module_cmds_GCJ=
  14529. module_expsym_cmds_GCJ=
  14530. always_export_symbols_GCJ=no
  14531. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14532. # include_expsyms should be a list of space-separated symbols to be *always*
  14533. # included in the symbol list
  14534. include_expsyms_GCJ=
  14535. # exclude_expsyms can be an extended regexp of symbols to exclude
  14536. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14537. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14538. # as well as any symbol that contains `d'.
  14539. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14540. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14541. # platforms (ab)use it in PIC code, but their linkers get confused if
  14542. # the symbol is explicitly referenced. Since portable code cannot
  14543. # rely on this symbol name, it's probably fine to never include it in
  14544. # preloaded symbol tables.
  14545. extract_expsyms_cmds=
  14546. # Just being paranoid about ensuring that cc_basename is set.
  14547. for cc_temp in $compiler""; do
  14548. case $cc_temp in
  14549. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14550. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14551. \-*) ;;
  14552. *) break;;
  14553. esac
  14554. done
  14555. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14556. case $host_os in
  14557. cygwin* | mingw* | pw32*)
  14558. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14559. # When not using gcc, we currently assume that we are using
  14560. # Microsoft Visual C++.
  14561. if test "$GCC" != yes; then
  14562. with_gnu_ld=no
  14563. fi
  14564. ;;
  14565. interix*)
  14566. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14567. with_gnu_ld=yes
  14568. ;;
  14569. openbsd*)
  14570. with_gnu_ld=no
  14571. ;;
  14572. esac
  14573. ld_shlibs_GCJ=yes
  14574. if test "$with_gnu_ld" = yes; then
  14575. # If archive_cmds runs LD, not CC, wlarc should be empty
  14576. wlarc='${wl}'
  14577. # Set some defaults for GNU ld with shared library support. These
  14578. # are reset later if shared libraries are not supported. Putting them
  14579. # here allows them to be overridden if necessary.
  14580. runpath_var=LD_RUN_PATH
  14581. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14582. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14583. # ancient GNU ld didn't support --whole-archive et. al.
  14584. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14585. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14586. else
  14587. whole_archive_flag_spec_GCJ=
  14588. fi
  14589. supports_anon_versioning=no
  14590. case `$LD -v 2>/dev/null` in
  14591. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14592. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14593. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14594. *\ 2.11.*) ;; # other 2.11 versions
  14595. *) supports_anon_versioning=yes ;;
  14596. esac
  14597. # See if GNU ld supports shared libraries.
  14598. case $host_os in
  14599. aix3* | aix4* | aix5*)
  14600. # On AIX/PPC, the GNU linker is very broken
  14601. if test "$host_cpu" != ia64; then
  14602. ld_shlibs_GCJ=no
  14603. cat <<EOF 1>&2
  14604. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14605. *** to be unable to reliably create shared libraries on AIX.
  14606. *** Therefore, libtool is disabling shared libraries support. If you
  14607. *** really care for shared libraries, you may want to modify your PATH
  14608. *** so that a non-GNU linker is found, and then restart.
  14609. EOF
  14610. fi
  14611. ;;
  14612. amigaos*)
  14613. 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)'
  14614. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14615. hardcode_minus_L_GCJ=yes
  14616. # Samuel A. Falvo II <[email protected]> reports
  14617. # that the semantics of dynamic libraries on AmigaOS, at least up
  14618. # to version 4, is to share data among multiple programs linked
  14619. # with the same dynamic library. Since this doesn't match the
  14620. # behavior of shared libraries on other platforms, we can't use
  14621. # them.
  14622. ld_shlibs_GCJ=no
  14623. ;;
  14624. beos*)
  14625. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14626. allow_undefined_flag_GCJ=unsupported
  14627. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14628. # support --undefined. This deserves some investigation. FIXME
  14629. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14630. else
  14631. ld_shlibs_GCJ=no
  14632. fi
  14633. ;;
  14634. cygwin* | mingw* | pw32*)
  14635. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14636. # as there is no search path for DLLs.
  14637. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14638. allow_undefined_flag_GCJ=unsupported
  14639. always_export_symbols_GCJ=no
  14640. enable_shared_with_static_runtimes_GCJ=yes
  14641. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14642. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14643. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14644. # If the export-symbols file already is a .def file (1st line
  14645. # is EXPORTS), use it as is; otherwise, prepend...
  14646. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14647. cp $export_symbols $output_objdir/$soname.def;
  14648. else
  14649. echo EXPORTS > $output_objdir/$soname.def;
  14650. cat $export_symbols >> $output_objdir/$soname.def;
  14651. fi~
  14652. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14653. else
  14654. ld_shlibs_GCJ=no
  14655. fi
  14656. ;;
  14657. interix3*)
  14658. hardcode_direct_GCJ=no
  14659. hardcode_shlibpath_var_GCJ=no
  14660. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14661. export_dynamic_flag_spec_GCJ='${wl}-E'
  14662. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14663. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14664. # default) and relocated if they conflict, which is a slow very memory
  14665. # consuming and fragmenting process. To avoid this, we pick a random,
  14666. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14667. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14668. 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'
  14669. 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'
  14670. ;;
  14671. linux*)
  14672. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14673. tmp_addflag=
  14674. case $cc_basename,$host_cpu in
  14675. pgcc*) # Portland Group C compiler
  14676. 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'
  14677. tmp_addflag=' $pic_flag'
  14678. ;;
  14679. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14680. 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'
  14681. tmp_addflag=' $pic_flag -Mnomain' ;;
  14682. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14683. tmp_addflag=' -i_dynamic' ;;
  14684. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14685. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14686. ifc* | ifort*) # Intel Fortran compiler
  14687. tmp_addflag=' -nofor_main' ;;
  14688. esac
  14689. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14690. if test $supports_anon_versioning = yes; then
  14691. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14692. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14693. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14694. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14695. fi
  14696. else
  14697. ld_shlibs_GCJ=no
  14698. fi
  14699. ;;
  14700. netbsd*)
  14701. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14702. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14703. wlarc=
  14704. else
  14705. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14706. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14707. fi
  14708. ;;
  14709. solaris*)
  14710. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14711. ld_shlibs_GCJ=no
  14712. cat <<EOF 1>&2
  14713. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14714. *** create shared libraries on Solaris systems. Therefore, libtool
  14715. *** is disabling shared libraries support. We urge you to upgrade GNU
  14716. *** binutils to release 2.9.1 or newer. Another option is to modify
  14717. *** your PATH or compiler configuration so that the native linker is
  14718. *** used, and then restart.
  14719. EOF
  14720. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14721. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14722. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14723. else
  14724. ld_shlibs_GCJ=no
  14725. fi
  14726. ;;
  14727. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14728. case `$LD -v 2>&1` in
  14729. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14730. ld_shlibs_GCJ=no
  14731. cat <<_LT_EOF 1>&2
  14732. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14733. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14734. *** is disabling shared libraries support. We urge you to upgrade GNU
  14735. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14736. *** your PATH or compiler configuration so that the native linker is
  14737. *** used, and then restart.
  14738. _LT_EOF
  14739. ;;
  14740. *)
  14741. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14742. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14743. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14744. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14745. else
  14746. ld_shlibs_GCJ=no
  14747. fi
  14748. ;;
  14749. esac
  14750. ;;
  14751. sunos4*)
  14752. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14753. wlarc=
  14754. hardcode_direct_GCJ=yes
  14755. hardcode_shlibpath_var_GCJ=no
  14756. ;;
  14757. *)
  14758. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14759. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14760. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14761. else
  14762. ld_shlibs_GCJ=no
  14763. fi
  14764. ;;
  14765. esac
  14766. if test "$ld_shlibs_GCJ" = no; then
  14767. runpath_var=
  14768. hardcode_libdir_flag_spec_GCJ=
  14769. export_dynamic_flag_spec_GCJ=
  14770. whole_archive_flag_spec_GCJ=
  14771. fi
  14772. else
  14773. # PORTME fill in a description of your system's linker (not GNU ld)
  14774. case $host_os in
  14775. aix3*)
  14776. allow_undefined_flag_GCJ=unsupported
  14777. always_export_symbols_GCJ=yes
  14778. 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'
  14779. # Note: this linker hardcodes the directories in LIBPATH if there
  14780. # are no directories specified by -L.
  14781. hardcode_minus_L_GCJ=yes
  14782. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14783. # Neither direct hardcoding nor static linking is supported with a
  14784. # broken collect2.
  14785. hardcode_direct_GCJ=unsupported
  14786. fi
  14787. ;;
  14788. aix4* | aix5*)
  14789. if test "$host_cpu" = ia64; then
  14790. # On IA64, the linker does run time linking by default, so we don't
  14791. # have to do anything special.
  14792. aix_use_runtimelinking=no
  14793. exp_sym_flag='-Bexport'
  14794. no_entry_flag=""
  14795. else
  14796. # If we're using GNU nm, then we don't want the "-C" option.
  14797. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14798. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14799. 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'
  14800. else
  14801. 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'
  14802. fi
  14803. aix_use_runtimelinking=no
  14804. # Test if we are trying to use run time linking or normal
  14805. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14806. # need to do runtime linking.
  14807. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14808. for ld_flag in $LDFLAGS; do
  14809. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14810. aix_use_runtimelinking=yes
  14811. break
  14812. fi
  14813. done
  14814. ;;
  14815. esac
  14816. exp_sym_flag='-bexport'
  14817. no_entry_flag='-bnoentry'
  14818. fi
  14819. # When large executables or shared objects are built, AIX ld can
  14820. # have problems creating the table of contents. If linking a library
  14821. # or program results in "error TOC overflow" add -mminimal-toc to
  14822. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14823. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14824. archive_cmds_GCJ=''
  14825. hardcode_direct_GCJ=yes
  14826. hardcode_libdir_separator_GCJ=':'
  14827. link_all_deplibs_GCJ=yes
  14828. if test "$GCC" = yes; then
  14829. case $host_os in aix4.[012]|aix4.[012].*)
  14830. # We only want to do this on AIX 4.2 and lower, the check
  14831. # below for broken collect2 doesn't work under 4.3+
  14832. collect2name=`${CC} -print-prog-name=collect2`
  14833. if test -f "$collect2name" && \
  14834. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14835. then
  14836. # We have reworked collect2
  14837. hardcode_direct_GCJ=yes
  14838. else
  14839. # We have old collect2
  14840. hardcode_direct_GCJ=unsupported
  14841. # It fails to find uninstalled libraries when the uninstalled
  14842. # path is not listed in the libpath. Setting hardcode_minus_L
  14843. # to unsupported forces relinking
  14844. hardcode_minus_L_GCJ=yes
  14845. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14846. hardcode_libdir_separator_GCJ=
  14847. fi
  14848. ;;
  14849. esac
  14850. shared_flag='-shared'
  14851. if test "$aix_use_runtimelinking" = yes; then
  14852. shared_flag="$shared_flag "'${wl}-G'
  14853. fi
  14854. else
  14855. # not using gcc
  14856. if test "$host_cpu" = ia64; then
  14857. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14858. # chokes on -Wl,-G. The following line is correct:
  14859. shared_flag='-G'
  14860. else
  14861. if test "$aix_use_runtimelinking" = yes; then
  14862. shared_flag='${wl}-G'
  14863. else
  14864. shared_flag='${wl}-bM:SRE'
  14865. fi
  14866. fi
  14867. fi
  14868. # It seems that -bexpall does not export symbols beginning with
  14869. # underscore (_), so it is better to generate a list of symbols to export.
  14870. always_export_symbols_GCJ=yes
  14871. if test "$aix_use_runtimelinking" = yes; then
  14872. # Warning - without using the other runtime loading flags (-brtl),
  14873. # -berok will link without error, but may produce a broken library.
  14874. allow_undefined_flag_GCJ='-berok'
  14875. # Determine the default libpath from the value encoded in an empty executable.
  14876. cat >conftest.$ac_ext <<_ACEOF
  14877. /* confdefs.h. */
  14878. _ACEOF
  14879. cat confdefs.h >>conftest.$ac_ext
  14880. cat >>conftest.$ac_ext <<_ACEOF
  14881. /* end confdefs.h. */
  14882. int
  14883. main ()
  14884. {
  14885. ;
  14886. return 0;
  14887. }
  14888. _ACEOF
  14889. rm -f conftest.$ac_objext conftest$ac_exeext
  14890. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14891. (eval $ac_link) 2>conftest.er1
  14892. ac_status=$?
  14893. grep -v '^ *+' conftest.er1 >conftest.err
  14894. rm -f conftest.er1
  14895. cat conftest.err >&5
  14896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14897. (exit $ac_status); } &&
  14898. { ac_try='test -z "$ac_c_werror_flag"
  14899. || test ! -s conftest.err'
  14900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14901. (eval $ac_try) 2>&5
  14902. ac_status=$?
  14903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14904. (exit $ac_status); }; } &&
  14905. { ac_try='test -s conftest$ac_exeext'
  14906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14907. (eval $ac_try) 2>&5
  14908. ac_status=$?
  14909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14910. (exit $ac_status); }; }; then
  14911. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14912. }'`
  14913. # Check for a 64-bit object if we didn't find anything.
  14914. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14915. }'`; fi
  14916. else
  14917. echo "$as_me: failed program was:" >&5
  14918. sed 's/^/| /' conftest.$ac_ext >&5
  14919. fi
  14920. rm -f conftest.err conftest.$ac_objext \
  14921. conftest$ac_exeext conftest.$ac_ext
  14922. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14923. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14924. 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"
  14925. else
  14926. if test "$host_cpu" = ia64; then
  14927. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14928. allow_undefined_flag_GCJ="-z nodefs"
  14929. 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"
  14930. else
  14931. # Determine the default libpath from the value encoded in an empty executable.
  14932. cat >conftest.$ac_ext <<_ACEOF
  14933. /* confdefs.h. */
  14934. _ACEOF
  14935. cat confdefs.h >>conftest.$ac_ext
  14936. cat >>conftest.$ac_ext <<_ACEOF
  14937. /* end confdefs.h. */
  14938. int
  14939. main ()
  14940. {
  14941. ;
  14942. return 0;
  14943. }
  14944. _ACEOF
  14945. rm -f conftest.$ac_objext conftest$ac_exeext
  14946. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14947. (eval $ac_link) 2>conftest.er1
  14948. ac_status=$?
  14949. grep -v '^ *+' conftest.er1 >conftest.err
  14950. rm -f conftest.er1
  14951. cat conftest.err >&5
  14952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14953. (exit $ac_status); } &&
  14954. { ac_try='test -z "$ac_c_werror_flag"
  14955. || test ! -s conftest.err'
  14956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14957. (eval $ac_try) 2>&5
  14958. ac_status=$?
  14959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14960. (exit $ac_status); }; } &&
  14961. { ac_try='test -s conftest$ac_exeext'
  14962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14963. (eval $ac_try) 2>&5
  14964. ac_status=$?
  14965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14966. (exit $ac_status); }; }; then
  14967. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14968. }'`
  14969. # Check for a 64-bit object if we didn't find anything.
  14970. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14971. }'`; fi
  14972. else
  14973. echo "$as_me: failed program was:" >&5
  14974. sed 's/^/| /' conftest.$ac_ext >&5
  14975. fi
  14976. rm -f conftest.err conftest.$ac_objext \
  14977. conftest$ac_exeext conftest.$ac_ext
  14978. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14979. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14980. # Warning - without using the other run time loading flags,
  14981. # -berok will link without error, but may produce a broken library.
  14982. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14983. allow_undefined_flag_GCJ=' ${wl}-berok'
  14984. # Exported symbols can be pulled into shared objects from archives
  14985. whole_archive_flag_spec_GCJ='$convenience'
  14986. archive_cmds_need_lc_GCJ=yes
  14987. # This is similar to how AIX traditionally builds its shared libraries.
  14988. 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'
  14989. fi
  14990. fi
  14991. ;;
  14992. amigaos*)
  14993. 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)'
  14994. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14995. hardcode_minus_L_GCJ=yes
  14996. # see comment about different semantics on the GNU ld section
  14997. ld_shlibs_GCJ=no
  14998. ;;
  14999. bsdi[45]*)
  15000. export_dynamic_flag_spec_GCJ=-rdynamic
  15001. ;;
  15002. cygwin* | mingw* | pw32*)
  15003. # When not using gcc, we currently assume that we are using
  15004. # Microsoft Visual C++.
  15005. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15006. # no search path for DLLs.
  15007. hardcode_libdir_flag_spec_GCJ=' '
  15008. allow_undefined_flag_GCJ=unsupported
  15009. # Tell ltmain to make .lib files, not .a files.
  15010. libext=lib
  15011. # Tell ltmain to make .dll files, not .so files.
  15012. shrext_cmds=".dll"
  15013. # FIXME: Setting linknames here is a bad hack.
  15014. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15015. # The linker will automatically build a .lib file if we build a DLL.
  15016. old_archive_From_new_cmds_GCJ='true'
  15017. # FIXME: Should let the user specify the lib program.
  15018. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15019. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15020. enable_shared_with_static_runtimes_GCJ=yes
  15021. ;;
  15022. darwin* | rhapsody*)
  15023. case $host_os in
  15024. rhapsody* | darwin1.[012])
  15025. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15026. ;;
  15027. *) # Darwin 1.3 on
  15028. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15029. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15030. else
  15031. case ${MACOSX_DEPLOYMENT_TARGET} in
  15032. 10.[012])
  15033. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15034. ;;
  15035. 10.*)
  15036. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15037. ;;
  15038. esac
  15039. fi
  15040. ;;
  15041. esac
  15042. archive_cmds_need_lc_GCJ=no
  15043. hardcode_direct_GCJ=no
  15044. hardcode_automatic_GCJ=yes
  15045. hardcode_shlibpath_var_GCJ=unsupported
  15046. whole_archive_flag_spec_GCJ=''
  15047. link_all_deplibs_GCJ=yes
  15048. if test "$GCC" = yes ; then
  15049. output_verbose_link_cmd='echo'
  15050. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15051. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15052. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15053. 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}'
  15054. 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}'
  15055. else
  15056. case $cc_basename in
  15057. xlc*)
  15058. output_verbose_link_cmd='echo'
  15059. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15060. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15061. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15062. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15063. 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}'
  15064. ;;
  15065. *)
  15066. ld_shlibs_GCJ=no
  15067. ;;
  15068. esac
  15069. fi
  15070. ;;
  15071. dgux*)
  15072. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15073. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15074. hardcode_shlibpath_var_GCJ=no
  15075. ;;
  15076. freebsd1*)
  15077. ld_shlibs_GCJ=no
  15078. ;;
  15079. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15080. # support. Future versions do this automatically, but an explicit c++rt0.o
  15081. # does not break anything, and helps significantly (at the cost of a little
  15082. # extra space).
  15083. freebsd2.2*)
  15084. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15085. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15086. hardcode_direct_GCJ=yes
  15087. hardcode_shlibpath_var_GCJ=no
  15088. ;;
  15089. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15090. freebsd2*)
  15091. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15092. hardcode_direct_GCJ=yes
  15093. hardcode_minus_L_GCJ=yes
  15094. hardcode_shlibpath_var_GCJ=no
  15095. ;;
  15096. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15097. freebsd* | kfreebsd*-gnu | dragonfly*)
  15098. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15099. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15100. hardcode_direct_GCJ=yes
  15101. hardcode_shlibpath_var_GCJ=no
  15102. ;;
  15103. hpux9*)
  15104. if test "$GCC" = yes; then
  15105. 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'
  15106. else
  15107. 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'
  15108. fi
  15109. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15110. hardcode_libdir_separator_GCJ=:
  15111. hardcode_direct_GCJ=yes
  15112. # hardcode_minus_L: Not really in the search PATH,
  15113. # but as the default location of the library.
  15114. hardcode_minus_L_GCJ=yes
  15115. export_dynamic_flag_spec_GCJ='${wl}-E'
  15116. ;;
  15117. hpux10*)
  15118. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15119. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15120. else
  15121. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15122. fi
  15123. if test "$with_gnu_ld" = no; then
  15124. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15125. hardcode_libdir_separator_GCJ=:
  15126. hardcode_direct_GCJ=yes
  15127. export_dynamic_flag_spec_GCJ='${wl}-E'
  15128. # hardcode_minus_L: Not really in the search PATH,
  15129. # but as the default location of the library.
  15130. hardcode_minus_L_GCJ=yes
  15131. fi
  15132. ;;
  15133. hpux11*)
  15134. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15135. case $host_cpu in
  15136. hppa*64*)
  15137. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15138. ;;
  15139. ia64*)
  15140. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15141. ;;
  15142. *)
  15143. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15144. ;;
  15145. esac
  15146. else
  15147. case $host_cpu in
  15148. hppa*64*)
  15149. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15150. ;;
  15151. ia64*)
  15152. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15153. ;;
  15154. *)
  15155. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15156. ;;
  15157. esac
  15158. fi
  15159. if test "$with_gnu_ld" = no; then
  15160. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15161. hardcode_libdir_separator_GCJ=:
  15162. case $host_cpu in
  15163. hppa*64*|ia64*)
  15164. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15165. hardcode_direct_GCJ=no
  15166. hardcode_shlibpath_var_GCJ=no
  15167. ;;
  15168. *)
  15169. hardcode_direct_GCJ=yes
  15170. export_dynamic_flag_spec_GCJ='${wl}-E'
  15171. # hardcode_minus_L: Not really in the search PATH,
  15172. # but as the default location of the library.
  15173. hardcode_minus_L_GCJ=yes
  15174. ;;
  15175. esac
  15176. fi
  15177. ;;
  15178. irix5* | irix6* | nonstopux*)
  15179. if test "$GCC" = yes; then
  15180. 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'
  15181. else
  15182. 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'
  15183. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15184. fi
  15185. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15186. hardcode_libdir_separator_GCJ=:
  15187. link_all_deplibs_GCJ=yes
  15188. ;;
  15189. netbsd*)
  15190. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15191. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15192. else
  15193. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15194. fi
  15195. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15196. hardcode_direct_GCJ=yes
  15197. hardcode_shlibpath_var_GCJ=no
  15198. ;;
  15199. newsos6)
  15200. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15201. hardcode_direct_GCJ=yes
  15202. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15203. hardcode_libdir_separator_GCJ=:
  15204. hardcode_shlibpath_var_GCJ=no
  15205. ;;
  15206. openbsd*)
  15207. hardcode_direct_GCJ=yes
  15208. hardcode_shlibpath_var_GCJ=no
  15209. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15210. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15211. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15212. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15213. export_dynamic_flag_spec_GCJ='${wl}-E'
  15214. else
  15215. case $host_os in
  15216. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15217. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15218. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15219. ;;
  15220. *)
  15221. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15222. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15223. ;;
  15224. esac
  15225. fi
  15226. ;;
  15227. os2*)
  15228. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15229. hardcode_minus_L_GCJ=yes
  15230. allow_undefined_flag_GCJ=unsupported
  15231. 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'
  15232. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15233. ;;
  15234. osf3*)
  15235. if test "$GCC" = yes; then
  15236. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15237. 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'
  15238. else
  15239. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15240. 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'
  15241. fi
  15242. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15243. hardcode_libdir_separator_GCJ=:
  15244. ;;
  15245. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15246. if test "$GCC" = yes; then
  15247. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15248. 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'
  15249. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15250. else
  15251. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15252. 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'
  15253. 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~
  15254. $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'
  15255. # Both c and cxx compiler support -rpath directly
  15256. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15257. fi
  15258. hardcode_libdir_separator_GCJ=:
  15259. ;;
  15260. solaris*)
  15261. no_undefined_flag_GCJ=' -z text'
  15262. if test "$GCC" = yes; then
  15263. wlarc='${wl}'
  15264. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15265. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15266. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15267. else
  15268. wlarc=''
  15269. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15270. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15271. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15272. fi
  15273. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15274. hardcode_shlibpath_var_GCJ=no
  15275. case $host_os in
  15276. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15277. *)
  15278. # The compiler driver will combine linker options so we
  15279. # cannot just pass the convience library names through
  15280. # without $wl, iff we do not link with $LD.
  15281. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15282. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15283. case $wlarc in
  15284. '')
  15285. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15286. *)
  15287. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  15288. esac ;;
  15289. esac
  15290. link_all_deplibs_GCJ=yes
  15291. ;;
  15292. sunos4*)
  15293. if test "x$host_vendor" = xsequent; then
  15294. # Use $CC to link under sequent, because it throws in some extra .o
  15295. # files that make .init and .fini sections work.
  15296. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15297. else
  15298. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15299. fi
  15300. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15301. hardcode_direct_GCJ=yes
  15302. hardcode_minus_L_GCJ=yes
  15303. hardcode_shlibpath_var_GCJ=no
  15304. ;;
  15305. sysv4)
  15306. case $host_vendor in
  15307. sni)
  15308. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15309. hardcode_direct_GCJ=yes # is this really true???
  15310. ;;
  15311. siemens)
  15312. ## LD is ld it makes a PLAMLIB
  15313. ## CC just makes a GrossModule.
  15314. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15315. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15316. hardcode_direct_GCJ=no
  15317. ;;
  15318. motorola)
  15319. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15320. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15321. ;;
  15322. esac
  15323. runpath_var='LD_RUN_PATH'
  15324. hardcode_shlibpath_var_GCJ=no
  15325. ;;
  15326. sysv4.3*)
  15327. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15328. hardcode_shlibpath_var_GCJ=no
  15329. export_dynamic_flag_spec_GCJ='-Bexport'
  15330. ;;
  15331. sysv4*MP*)
  15332. if test -d /usr/nec; then
  15333. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15334. hardcode_shlibpath_var_GCJ=no
  15335. runpath_var=LD_RUN_PATH
  15336. hardcode_runpath_var=yes
  15337. ld_shlibs_GCJ=yes
  15338. fi
  15339. ;;
  15340. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15341. no_undefined_flag_GCJ='${wl}-z,text'
  15342. archive_cmds_need_lc_GCJ=no
  15343. hardcode_shlibpath_var_GCJ=no
  15344. runpath_var='LD_RUN_PATH'
  15345. if test "$GCC" = yes; then
  15346. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15347. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15348. else
  15349. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15350. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15351. fi
  15352. ;;
  15353. sysv5* | sco3.2v5* | sco5v6*)
  15354. # Note: We can NOT use -z defs as we might desire, because we do not
  15355. # link with -lc, and that would cause any symbols used from libc to
  15356. # always be unresolved, which means just about no library would
  15357. # ever link correctly. If we're not using GNU ld we use -z text
  15358. # though, which does catch some bad symbols but isn't as heavy-handed
  15359. # as -z defs.
  15360. no_undefined_flag_GCJ='${wl}-z,text'
  15361. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15362. archive_cmds_need_lc_GCJ=no
  15363. hardcode_shlibpath_var_GCJ=no
  15364. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15365. hardcode_libdir_separator_GCJ=':'
  15366. link_all_deplibs_GCJ=yes
  15367. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15368. runpath_var='LD_RUN_PATH'
  15369. if test "$GCC" = yes; then
  15370. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15371. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15372. else
  15373. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15374. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15375. fi
  15376. ;;
  15377. uts4*)
  15378. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15379. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15380. hardcode_shlibpath_var_GCJ=no
  15381. ;;
  15382. *)
  15383. ld_shlibs_GCJ=no
  15384. ;;
  15385. esac
  15386. fi
  15387. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15388. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15389. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15390. #
  15391. # Do we need to explicitly link libc?
  15392. #
  15393. case "x$archive_cmds_need_lc_GCJ" in
  15394. x|xyes)
  15395. # Assume -lc should be added
  15396. archive_cmds_need_lc_GCJ=yes
  15397. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15398. case $archive_cmds_GCJ in
  15399. *'~'*)
  15400. # FIXME: we may have to deal with multi-command sequences.
  15401. ;;
  15402. '$CC '*)
  15403. # Test whether the compiler implicitly links with -lc since on some
  15404. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15405. # to ld, don't add -lc before -lgcc.
  15406. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15407. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15408. $rm conftest*
  15409. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15410. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15411. (eval $ac_compile) 2>&5
  15412. ac_status=$?
  15413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15414. (exit $ac_status); } 2>conftest.err; then
  15415. soname=conftest
  15416. lib=conftest
  15417. libobjs=conftest.$ac_objext
  15418. deplibs=
  15419. wl=$lt_prog_compiler_wl_GCJ
  15420. pic_flag=$lt_prog_compiler_pic_GCJ
  15421. compiler_flags=-v
  15422. linker_flags=-v
  15423. verstring=
  15424. output_objdir=.
  15425. libname=conftest
  15426. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15427. allow_undefined_flag_GCJ=
  15428. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15429. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15430. ac_status=$?
  15431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15432. (exit $ac_status); }
  15433. then
  15434. archive_cmds_need_lc_GCJ=no
  15435. else
  15436. archive_cmds_need_lc_GCJ=yes
  15437. fi
  15438. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15439. else
  15440. cat conftest.err 1>&5
  15441. fi
  15442. $rm conftest*
  15443. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15444. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15445. ;;
  15446. esac
  15447. fi
  15448. ;;
  15449. esac
  15450. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15451. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15452. library_names_spec=
  15453. libname_spec='lib$name'
  15454. soname_spec=
  15455. shrext_cmds=".so"
  15456. postinstall_cmds=
  15457. postuninstall_cmds=
  15458. finish_cmds=
  15459. finish_eval=
  15460. shlibpath_var=
  15461. shlibpath_overrides_runpath=unknown
  15462. version_type=none
  15463. dynamic_linker="$host_os ld.so"
  15464. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15465. if test "$GCC" = yes; then
  15466. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15467. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15468. # if the path contains ";" then we assume it to be the separator
  15469. # otherwise default to the standard path separator (i.e. ":") - it is
  15470. # assumed that no part of a normal pathname contains ";" but that should
  15471. # okay in the real world where ";" in dirpaths is itself problematic.
  15472. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15473. else
  15474. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15475. fi
  15476. else
  15477. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15478. fi
  15479. need_lib_prefix=unknown
  15480. hardcode_into_libs=no
  15481. # when you set need_version to no, make sure it does not cause -set_version
  15482. # flags to be left without arguments
  15483. need_version=unknown
  15484. case $host_os in
  15485. aix3*)
  15486. version_type=linux
  15487. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15488. shlibpath_var=LIBPATH
  15489. # AIX 3 has no versioning support, so we append a major version to the name.
  15490. soname_spec='${libname}${release}${shared_ext}$major'
  15491. ;;
  15492. aix4* | aix5*)
  15493. version_type=linux
  15494. need_lib_prefix=no
  15495. need_version=no
  15496. hardcode_into_libs=yes
  15497. if test "$host_cpu" = ia64; then
  15498. # AIX 5 supports IA64
  15499. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15500. shlibpath_var=LD_LIBRARY_PATH
  15501. else
  15502. # With GCC up to 2.95.x, collect2 would create an import file
  15503. # for dependence libraries. The import file would start with
  15504. # the line `#! .'. This would cause the generated library to
  15505. # depend on `.', always an invalid library. This was fixed in
  15506. # development snapshots of GCC prior to 3.0.
  15507. case $host_os in
  15508. aix4 | aix4.[01] | aix4.[01].*)
  15509. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15510. echo ' yes '
  15511. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15512. :
  15513. else
  15514. can_build_shared=no
  15515. fi
  15516. ;;
  15517. esac
  15518. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15519. # soname into executable. Probably we can add versioning support to
  15520. # collect2, so additional links can be useful in future.
  15521. if test "$aix_use_runtimelinking" = yes; then
  15522. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15523. # instead of lib<name>.a to let people know that these are not
  15524. # typical AIX shared libraries.
  15525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15526. else
  15527. # We preserve .a as extension for shared libraries through AIX4.2
  15528. # and later when we are not doing run time linking.
  15529. library_names_spec='${libname}${release}.a $libname.a'
  15530. soname_spec='${libname}${release}${shared_ext}$major'
  15531. fi
  15532. shlibpath_var=LIBPATH
  15533. fi
  15534. ;;
  15535. amigaos*)
  15536. library_names_spec='$libname.ixlibrary $libname.a'
  15537. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15538. 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'
  15539. ;;
  15540. beos*)
  15541. library_names_spec='${libname}${shared_ext}'
  15542. dynamic_linker="$host_os ld.so"
  15543. shlibpath_var=LIBRARY_PATH
  15544. ;;
  15545. bsdi[45]*)
  15546. version_type=linux
  15547. need_version=no
  15548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15549. soname_spec='${libname}${release}${shared_ext}$major'
  15550. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15551. shlibpath_var=LD_LIBRARY_PATH
  15552. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15553. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15554. # the default ld.so.conf also contains /usr/contrib/lib and
  15555. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15556. # libtool to hard-code these into programs
  15557. ;;
  15558. cygwin* | mingw* | pw32*)
  15559. version_type=windows
  15560. shrext_cmds=".dll"
  15561. need_version=no
  15562. need_lib_prefix=no
  15563. case $GCC,$host_os in
  15564. yes,cygwin* | yes,mingw* | yes,pw32*)
  15565. library_names_spec='$libname.dll.a'
  15566. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15567. postinstall_cmds='base_file=`basename \${file}`~
  15568. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15569. dldir=$destdir/`dirname \$dlpath`~
  15570. test -d \$dldir || mkdir -p \$dldir~
  15571. $install_prog $dir/$dlname \$dldir/$dlname~
  15572. chmod a+x \$dldir/$dlname'
  15573. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15574. dlpath=$dir/\$dldll~
  15575. $rm \$dlpath'
  15576. shlibpath_overrides_runpath=yes
  15577. case $host_os in
  15578. cygwin*)
  15579. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15580. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15581. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15582. ;;
  15583. mingw*)
  15584. # MinGW DLLs use traditional 'lib' prefix
  15585. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15586. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15587. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15588. # It is most probably a Windows format PATH printed by
  15589. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15590. # path with ; separators, and with drive letters. We can handle the
  15591. # drive letters (cygwin fileutils understands them), so leave them,
  15592. # especially as we might pass files found there to a mingw objdump,
  15593. # which wouldn't understand a cygwinified path. Ahh.
  15594. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15595. else
  15596. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15597. fi
  15598. ;;
  15599. pw32*)
  15600. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15601. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15602. ;;
  15603. esac
  15604. ;;
  15605. *)
  15606. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15607. ;;
  15608. esac
  15609. dynamic_linker='Win32 ld.exe'
  15610. # FIXME: first we should search . and the directory the executable is in
  15611. shlibpath_var=PATH
  15612. ;;
  15613. darwin* | rhapsody*)
  15614. dynamic_linker="$host_os dyld"
  15615. version_type=darwin
  15616. need_lib_prefix=no
  15617. need_version=no
  15618. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15619. soname_spec='${libname}${release}${major}$shared_ext'
  15620. shlibpath_overrides_runpath=yes
  15621. shlibpath_var=DYLD_LIBRARY_PATH
  15622. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15623. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15624. if test "$GCC" = yes; then
  15625. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  15626. else
  15627. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15628. fi
  15629. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15630. ;;
  15631. dgux*)
  15632. version_type=linux
  15633. need_lib_prefix=no
  15634. need_version=no
  15635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15636. soname_spec='${libname}${release}${shared_ext}$major'
  15637. shlibpath_var=LD_LIBRARY_PATH
  15638. ;;
  15639. freebsd1*)
  15640. dynamic_linker=no
  15641. ;;
  15642. kfreebsd*-gnu)
  15643. version_type=linux
  15644. need_lib_prefix=no
  15645. need_version=no
  15646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15647. soname_spec='${libname}${release}${shared_ext}$major'
  15648. shlibpath_var=LD_LIBRARY_PATH
  15649. shlibpath_overrides_runpath=no
  15650. hardcode_into_libs=yes
  15651. dynamic_linker='GNU ld.so'
  15652. ;;
  15653. freebsd* | dragonfly*)
  15654. # DragonFly does not have aout. When/if they implement a new
  15655. # versioning mechanism, adjust this.
  15656. if test -x /usr/bin/objformat; then
  15657. objformat=`/usr/bin/objformat`
  15658. else
  15659. case $host_os in
  15660. freebsd[123]*) objformat=aout ;;
  15661. *) objformat=elf ;;
  15662. esac
  15663. fi
  15664. version_type=freebsd-$objformat
  15665. case $version_type in
  15666. freebsd-elf*)
  15667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15668. need_version=no
  15669. need_lib_prefix=no
  15670. ;;
  15671. freebsd-*)
  15672. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15673. need_version=yes
  15674. ;;
  15675. esac
  15676. shlibpath_var=LD_LIBRARY_PATH
  15677. case $host_os in
  15678. freebsd2*)
  15679. shlibpath_overrides_runpath=yes
  15680. ;;
  15681. freebsd3.[01]* | freebsdelf3.[01]*)
  15682. shlibpath_overrides_runpath=yes
  15683. hardcode_into_libs=yes
  15684. ;;
  15685. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15686. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15687. shlibpath_overrides_runpath=no
  15688. hardcode_into_libs=yes
  15689. ;;
  15690. freebsd*) # from 4.6 on
  15691. shlibpath_overrides_runpath=yes
  15692. hardcode_into_libs=yes
  15693. ;;
  15694. esac
  15695. ;;
  15696. gnu*)
  15697. version_type=linux
  15698. need_lib_prefix=no
  15699. need_version=no
  15700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15701. soname_spec='${libname}${release}${shared_ext}$major'
  15702. shlibpath_var=LD_LIBRARY_PATH
  15703. hardcode_into_libs=yes
  15704. ;;
  15705. hpux9* | hpux10* | hpux11*)
  15706. # Give a soname corresponding to the major version so that dld.sl refuses to
  15707. # link against other versions.
  15708. version_type=sunos
  15709. need_lib_prefix=no
  15710. need_version=no
  15711. case $host_cpu in
  15712. ia64*)
  15713. shrext_cmds='.so'
  15714. hardcode_into_libs=yes
  15715. dynamic_linker="$host_os dld.so"
  15716. shlibpath_var=LD_LIBRARY_PATH
  15717. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15719. soname_spec='${libname}${release}${shared_ext}$major'
  15720. if test "X$HPUX_IA64_MODE" = X32; then
  15721. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15722. else
  15723. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15724. fi
  15725. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15726. ;;
  15727. hppa*64*)
  15728. shrext_cmds='.sl'
  15729. hardcode_into_libs=yes
  15730. dynamic_linker="$host_os dld.sl"
  15731. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15732. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15734. soname_spec='${libname}${release}${shared_ext}$major'
  15735. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15736. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15737. ;;
  15738. *)
  15739. shrext_cmds='.sl'
  15740. dynamic_linker="$host_os dld.sl"
  15741. shlibpath_var=SHLIB_PATH
  15742. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15744. soname_spec='${libname}${release}${shared_ext}$major'
  15745. ;;
  15746. esac
  15747. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15748. postinstall_cmds='chmod 555 $lib'
  15749. ;;
  15750. interix3*)
  15751. version_type=linux
  15752. need_lib_prefix=no
  15753. need_version=no
  15754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15755. soname_spec='${libname}${release}${shared_ext}$major'
  15756. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15757. shlibpath_var=LD_LIBRARY_PATH
  15758. shlibpath_overrides_runpath=no
  15759. hardcode_into_libs=yes
  15760. ;;
  15761. irix5* | irix6* | nonstopux*)
  15762. case $host_os in
  15763. nonstopux*) version_type=nonstopux ;;
  15764. *)
  15765. if test "$lt_cv_prog_gnu_ld" = yes; then
  15766. version_type=linux
  15767. else
  15768. version_type=irix
  15769. fi ;;
  15770. esac
  15771. need_lib_prefix=no
  15772. need_version=no
  15773. soname_spec='${libname}${release}${shared_ext}$major'
  15774. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15775. case $host_os in
  15776. irix5* | nonstopux*)
  15777. libsuff= shlibsuff=
  15778. ;;
  15779. *)
  15780. case $LD in # libtool.m4 will add one of these switches to LD
  15781. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15782. libsuff= shlibsuff= libmagic=32-bit;;
  15783. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15784. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15785. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15786. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15787. *) libsuff= shlibsuff= libmagic=never-match;;
  15788. esac
  15789. ;;
  15790. esac
  15791. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15792. shlibpath_overrides_runpath=no
  15793. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15794. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15795. hardcode_into_libs=yes
  15796. ;;
  15797. # No shared lib support for Linux oldld, aout, or coff.
  15798. linux*oldld* | linux*aout* | linux*coff*)
  15799. dynamic_linker=no
  15800. ;;
  15801. # This must be Linux ELF.
  15802. linux*)
  15803. version_type=linux
  15804. need_lib_prefix=no
  15805. need_version=no
  15806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15807. soname_spec='${libname}${release}${shared_ext}$major'
  15808. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15809. shlibpath_var=LD_LIBRARY_PATH
  15810. shlibpath_overrides_runpath=no
  15811. # This implies no fast_install, which is unacceptable.
  15812. # Some rework will be needed to allow for fast_install
  15813. # before this can be enabled.
  15814. hardcode_into_libs=yes
  15815. # find out which ABI we are using
  15816. libsuff=
  15817. case "$host_cpu" in
  15818. x86_64*|s390x*|powerpc64*)
  15819. echo '#line 17583 "configure"' > conftest.$ac_ext
  15820. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15821. (eval $ac_compile) 2>&5
  15822. ac_status=$?
  15823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15824. (exit $ac_status); }; then
  15825. case `/usr/bin/file conftest.$ac_objext` in
  15826. *64-bit*)
  15827. libsuff=64
  15828. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15829. ;;
  15830. esac
  15831. fi
  15832. rm -rf conftest*
  15833. ;;
  15834. esac
  15835. # Append ld.so.conf contents to the search path
  15836. if test -f /etc/ld.so.conf; then
  15837. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15838. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15839. fi
  15840. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15841. # powerpc, because MkLinux only supported shared libraries with the
  15842. # GNU dynamic linker. Since this was broken with cross compilers,
  15843. # most powerpc-linux boxes support dynamic linking these days and
  15844. # people can always --disable-shared, the test was removed, and we
  15845. # assume the GNU/Linux dynamic linker is in use.
  15846. dynamic_linker='GNU/Linux ld.so'
  15847. ;;
  15848. knetbsd*-gnu)
  15849. version_type=linux
  15850. need_lib_prefix=no
  15851. need_version=no
  15852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15853. soname_spec='${libname}${release}${shared_ext}$major'
  15854. shlibpath_var=LD_LIBRARY_PATH
  15855. shlibpath_overrides_runpath=no
  15856. hardcode_into_libs=yes
  15857. dynamic_linker='GNU ld.so'
  15858. ;;
  15859. netbsd*)
  15860. version_type=sunos
  15861. need_lib_prefix=no
  15862. need_version=no
  15863. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15865. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15866. dynamic_linker='NetBSD (a.out) ld.so'
  15867. else
  15868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15869. soname_spec='${libname}${release}${shared_ext}$major'
  15870. dynamic_linker='NetBSD ld.elf_so'
  15871. fi
  15872. shlibpath_var=LD_LIBRARY_PATH
  15873. shlibpath_overrides_runpath=yes
  15874. hardcode_into_libs=yes
  15875. ;;
  15876. newsos6)
  15877. version_type=linux
  15878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15879. shlibpath_var=LD_LIBRARY_PATH
  15880. shlibpath_overrides_runpath=yes
  15881. ;;
  15882. nto-qnx*)
  15883. version_type=linux
  15884. need_lib_prefix=no
  15885. need_version=no
  15886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15887. soname_spec='${libname}${release}${shared_ext}$major'
  15888. shlibpath_var=LD_LIBRARY_PATH
  15889. shlibpath_overrides_runpath=yes
  15890. ;;
  15891. openbsd*)
  15892. version_type=sunos
  15893. sys_lib_dlsearch_path_spec="/usr/lib"
  15894. need_lib_prefix=no
  15895. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15896. case $host_os in
  15897. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15898. *) need_version=no ;;
  15899. esac
  15900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15901. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15902. shlibpath_var=LD_LIBRARY_PATH
  15903. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15904. case $host_os in
  15905. openbsd2.[89] | openbsd2.[89].*)
  15906. shlibpath_overrides_runpath=no
  15907. ;;
  15908. *)
  15909. shlibpath_overrides_runpath=yes
  15910. ;;
  15911. esac
  15912. else
  15913. shlibpath_overrides_runpath=yes
  15914. fi
  15915. ;;
  15916. os2*)
  15917. libname_spec='$name'
  15918. shrext_cmds=".dll"
  15919. need_lib_prefix=no
  15920. library_names_spec='$libname${shared_ext} $libname.a'
  15921. dynamic_linker='OS/2 ld.exe'
  15922. shlibpath_var=LIBPATH
  15923. ;;
  15924. osf3* | osf4* | osf5*)
  15925. version_type=osf
  15926. need_lib_prefix=no
  15927. need_version=no
  15928. soname_spec='${libname}${release}${shared_ext}$major'
  15929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15930. shlibpath_var=LD_LIBRARY_PATH
  15931. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15932. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15933. ;;
  15934. solaris*)
  15935. version_type=linux
  15936. need_lib_prefix=no
  15937. need_version=no
  15938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15939. soname_spec='${libname}${release}${shared_ext}$major'
  15940. shlibpath_var=LD_LIBRARY_PATH
  15941. shlibpath_overrides_runpath=yes
  15942. hardcode_into_libs=yes
  15943. # ldd complains unless libraries are executable
  15944. postinstall_cmds='chmod +x $lib'
  15945. ;;
  15946. sunos4*)
  15947. version_type=sunos
  15948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15949. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15950. shlibpath_var=LD_LIBRARY_PATH
  15951. shlibpath_overrides_runpath=yes
  15952. if test "$with_gnu_ld" = yes; then
  15953. need_lib_prefix=no
  15954. fi
  15955. need_version=yes
  15956. ;;
  15957. sysv4 | sysv4.3*)
  15958. version_type=linux
  15959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15960. soname_spec='${libname}${release}${shared_ext}$major'
  15961. shlibpath_var=LD_LIBRARY_PATH
  15962. case $host_vendor in
  15963. sni)
  15964. shlibpath_overrides_runpath=no
  15965. need_lib_prefix=no
  15966. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15967. runpath_var=LD_RUN_PATH
  15968. ;;
  15969. siemens)
  15970. need_lib_prefix=no
  15971. ;;
  15972. motorola)
  15973. need_lib_prefix=no
  15974. need_version=no
  15975. shlibpath_overrides_runpath=no
  15976. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15977. ;;
  15978. esac
  15979. ;;
  15980. sysv4*MP*)
  15981. if test -d /usr/nec ;then
  15982. version_type=linux
  15983. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15984. soname_spec='$libname${shared_ext}.$major'
  15985. shlibpath_var=LD_LIBRARY_PATH
  15986. fi
  15987. ;;
  15988. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15989. version_type=freebsd-elf
  15990. need_lib_prefix=no
  15991. need_version=no
  15992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15993. soname_spec='${libname}${release}${shared_ext}$major'
  15994. shlibpath_var=LD_LIBRARY_PATH
  15995. hardcode_into_libs=yes
  15996. if test "$with_gnu_ld" = yes; then
  15997. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15998. shlibpath_overrides_runpath=no
  15999. else
  16000. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16001. shlibpath_overrides_runpath=yes
  16002. case $host_os in
  16003. sco3.2v5*)
  16004. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16005. ;;
  16006. esac
  16007. fi
  16008. sys_lib_dlsearch_path_spec='/usr/lib'
  16009. ;;
  16010. uts4*)
  16011. version_type=linux
  16012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16013. soname_spec='${libname}${release}${shared_ext}$major'
  16014. shlibpath_var=LD_LIBRARY_PATH
  16015. ;;
  16016. *)
  16017. dynamic_linker=no
  16018. ;;
  16019. esac
  16020. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16021. echo "${ECHO_T}$dynamic_linker" >&6
  16022. test "$dynamic_linker" = no && can_build_shared=no
  16023. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16024. if test "$GCC" = yes; then
  16025. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16026. fi
  16027. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16028. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16029. hardcode_action_GCJ=
  16030. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16031. test -n "$runpath_var_GCJ" || \
  16032. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16033. # We can hardcode non-existant directories.
  16034. if test "$hardcode_direct_GCJ" != no &&
  16035. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16036. # have to relink, otherwise we might link with an installed library
  16037. # when we should be linking with a yet-to-be-installed one
  16038. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16039. test "$hardcode_minus_L_GCJ" != no; then
  16040. # Linking always hardcodes the temporary library directory.
  16041. hardcode_action_GCJ=relink
  16042. else
  16043. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16044. hardcode_action_GCJ=immediate
  16045. fi
  16046. else
  16047. # We cannot hardcode anything, or else we can only hardcode existing
  16048. # directories.
  16049. hardcode_action_GCJ=unsupported
  16050. fi
  16051. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16052. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16053. if test "$hardcode_action_GCJ" = relink; then
  16054. # Fast installation is not supported
  16055. enable_fast_install=no
  16056. elif test "$shlibpath_overrides_runpath" = yes ||
  16057. test "$enable_shared" = no; then
  16058. # Fast installation is not necessary
  16059. enable_fast_install=needless
  16060. fi
  16061. # The else clause should only fire when bootstrapping the
  16062. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16063. # with your package, and you will get complaints that there are
  16064. # no rules to generate ltmain.sh.
  16065. if test -f "$ltmain"; then
  16066. # See if we are running on zsh, and set the options which allow our commands through
  16067. # without removal of \ escapes.
  16068. if test -n "${ZSH_VERSION+set}" ; then
  16069. setopt NO_GLOB_SUBST
  16070. fi
  16071. # Now quote all the things that may contain metacharacters while being
  16072. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16073. # variables and quote the copies for generation of the libtool script.
  16074. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16075. SED SHELL STRIP \
  16076. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16077. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16078. deplibs_check_method reload_flag reload_cmds need_locks \
  16079. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16080. lt_cv_sys_global_symbol_to_c_name_address \
  16081. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16082. old_postinstall_cmds old_postuninstall_cmds \
  16083. compiler_GCJ \
  16084. CC_GCJ \
  16085. LD_GCJ \
  16086. lt_prog_compiler_wl_GCJ \
  16087. lt_prog_compiler_pic_GCJ \
  16088. lt_prog_compiler_static_GCJ \
  16089. lt_prog_compiler_no_builtin_flag_GCJ \
  16090. export_dynamic_flag_spec_GCJ \
  16091. thread_safe_flag_spec_GCJ \
  16092. whole_archive_flag_spec_GCJ \
  16093. enable_shared_with_static_runtimes_GCJ \
  16094. old_archive_cmds_GCJ \
  16095. old_archive_from_new_cmds_GCJ \
  16096. predep_objects_GCJ \
  16097. postdep_objects_GCJ \
  16098. predeps_GCJ \
  16099. postdeps_GCJ \
  16100. compiler_lib_search_path_GCJ \
  16101. archive_cmds_GCJ \
  16102. archive_expsym_cmds_GCJ \
  16103. postinstall_cmds_GCJ \
  16104. postuninstall_cmds_GCJ \
  16105. old_archive_from_expsyms_cmds_GCJ \
  16106. allow_undefined_flag_GCJ \
  16107. no_undefined_flag_GCJ \
  16108. export_symbols_cmds_GCJ \
  16109. hardcode_libdir_flag_spec_GCJ \
  16110. hardcode_libdir_flag_spec_ld_GCJ \
  16111. hardcode_libdir_separator_GCJ \
  16112. hardcode_automatic_GCJ \
  16113. module_cmds_GCJ \
  16114. module_expsym_cmds_GCJ \
  16115. lt_cv_prog_compiler_c_o_GCJ \
  16116. exclude_expsyms_GCJ \
  16117. include_expsyms_GCJ; do
  16118. case $var in
  16119. old_archive_cmds_GCJ | \
  16120. old_archive_from_new_cmds_GCJ | \
  16121. archive_cmds_GCJ | \
  16122. archive_expsym_cmds_GCJ | \
  16123. module_cmds_GCJ | \
  16124. module_expsym_cmds_GCJ | \
  16125. old_archive_from_expsyms_cmds_GCJ | \
  16126. export_symbols_cmds_GCJ | \
  16127. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16128. postinstall_cmds | postuninstall_cmds | \
  16129. old_postinstall_cmds | old_postuninstall_cmds | \
  16130. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16131. # Double-quote double-evaled strings.
  16132. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16133. ;;
  16134. *)
  16135. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16136. ;;
  16137. esac
  16138. done
  16139. case $lt_echo in
  16140. *'\$0 --fallback-echo"')
  16141. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16142. ;;
  16143. esac
  16144. cfgfile="$ofile"
  16145. cat <<__EOF__ >> "$cfgfile"
  16146. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16147. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16148. # Shell to use when invoking shell scripts.
  16149. SHELL=$lt_SHELL
  16150. # Whether or not to build shared libraries.
  16151. build_libtool_libs=$enable_shared
  16152. # Whether or not to build static libraries.
  16153. build_old_libs=$enable_static
  16154. # Whether or not to add -lc for building shared libraries.
  16155. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16156. # Whether or not to disallow shared libs when runtime libs are static
  16157. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16158. # Whether or not to optimize for fast installation.
  16159. fast_install=$enable_fast_install
  16160. # The host system.
  16161. host_alias=$host_alias
  16162. host=$host
  16163. host_os=$host_os
  16164. # The build system.
  16165. build_alias=$build_alias
  16166. build=$build
  16167. build_os=$build_os
  16168. # An echo program that does not interpret backslashes.
  16169. echo=$lt_echo
  16170. # The archiver.
  16171. AR=$lt_AR
  16172. AR_FLAGS=$lt_AR_FLAGS
  16173. # A C compiler.
  16174. LTCC=$lt_LTCC
  16175. # LTCC compiler flags.
  16176. LTCFLAGS=$lt_LTCFLAGS
  16177. # A language-specific compiler.
  16178. CC=$lt_compiler_GCJ
  16179. # Is the compiler the GNU C compiler?
  16180. with_gcc=$GCC_GCJ
  16181. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16182. gcc_ver=\`gcc -dumpversion\`
  16183. # An ERE matcher.
  16184. EGREP=$lt_EGREP
  16185. # The linker used to build libraries.
  16186. LD=$lt_LD_GCJ
  16187. # Whether we need hard or soft links.
  16188. LN_S=$lt_LN_S
  16189. # A BSD-compatible nm program.
  16190. NM=$lt_NM
  16191. # A symbol stripping program
  16192. STRIP=$lt_STRIP
  16193. # Used to examine libraries when file_magic_cmd begins "file"
  16194. MAGIC_CMD=$MAGIC_CMD
  16195. # Used on cygwin: DLL creation program.
  16196. DLLTOOL="$DLLTOOL"
  16197. # Used on cygwin: object dumper.
  16198. OBJDUMP="$OBJDUMP"
  16199. # Used on cygwin: assembler.
  16200. AS="$AS"
  16201. # The name of the directory that contains temporary libtool files.
  16202. objdir=$objdir
  16203. # How to create reloadable object files.
  16204. reload_flag=$lt_reload_flag
  16205. reload_cmds=$lt_reload_cmds
  16206. # How to pass a linker flag through the compiler.
  16207. wl=$lt_lt_prog_compiler_wl_GCJ
  16208. # Object file suffix (normally "o").
  16209. objext="$ac_objext"
  16210. # Old archive suffix (normally "a").
  16211. libext="$libext"
  16212. # Shared library suffix (normally ".so").
  16213. shrext_cmds='$shrext_cmds'
  16214. # Executable file suffix (normally "").
  16215. exeext="$exeext"
  16216. # Additional compiler flags for building library objects.
  16217. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16218. pic_mode=$pic_mode
  16219. # What is the maximum length of a command?
  16220. max_cmd_len=$lt_cv_sys_max_cmd_len
  16221. # Does compiler simultaneously support -c and -o options?
  16222. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16223. # Must we lock files when doing compilation?
  16224. need_locks=$lt_need_locks
  16225. # Do we need the lib prefix for modules?
  16226. need_lib_prefix=$need_lib_prefix
  16227. # Do we need a version for libraries?
  16228. need_version=$need_version
  16229. # Whether dlopen is supported.
  16230. dlopen_support=$enable_dlopen
  16231. # Whether dlopen of programs is supported.
  16232. dlopen_self=$enable_dlopen_self
  16233. # Whether dlopen of statically linked programs is supported.
  16234. dlopen_self_static=$enable_dlopen_self_static
  16235. # Compiler flag to prevent dynamic linking.
  16236. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16237. # Compiler flag to turn off builtin functions.
  16238. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16239. # Compiler flag to allow reflexive dlopens.
  16240. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16241. # Compiler flag to generate shared objects directly from archives.
  16242. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16243. # Compiler flag to generate thread-safe objects.
  16244. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16245. # Library versioning type.
  16246. version_type=$version_type
  16247. # Format of library name prefix.
  16248. libname_spec=$lt_libname_spec
  16249. # List of archive names. First name is the real one, the rest are links.
  16250. # The last name is the one that the linker finds with -lNAME.
  16251. library_names_spec=$lt_library_names_spec
  16252. # The coded name of the library, if different from the real name.
  16253. soname_spec=$lt_soname_spec
  16254. # Commands used to build and install an old-style archive.
  16255. RANLIB=$lt_RANLIB
  16256. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16257. old_postinstall_cmds=$lt_old_postinstall_cmds
  16258. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16259. # Create an old-style archive from a shared archive.
  16260. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16261. # Create a temporary old-style archive to link instead of a shared archive.
  16262. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16263. # Commands used to build and install a shared archive.
  16264. archive_cmds=$lt_archive_cmds_GCJ
  16265. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16266. postinstall_cmds=$lt_postinstall_cmds
  16267. postuninstall_cmds=$lt_postuninstall_cmds
  16268. # Commands used to build a loadable module (assumed same as above if empty)
  16269. module_cmds=$lt_module_cmds_GCJ
  16270. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16271. # Commands to strip libraries.
  16272. old_striplib=$lt_old_striplib
  16273. striplib=$lt_striplib
  16274. # Dependencies to place before the objects being linked to create a
  16275. # shared library.
  16276. predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16277. # Dependencies to place after the objects being linked to create a
  16278. # shared library.
  16279. postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16280. # Dependencies to place before the objects being linked to create a
  16281. # shared library.
  16282. predeps=$lt_predeps_GCJ
  16283. # Dependencies to place after the objects being linked to create a
  16284. # shared library.
  16285. postdeps=$lt_postdeps_GCJ
  16286. # The library search path used internally by the compiler when linking
  16287. # a shared library.
  16288. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16289. # Method to check whether dependent libraries are shared objects.
  16290. deplibs_check_method=$lt_deplibs_check_method
  16291. # Command to use when deplibs_check_method == file_magic.
  16292. file_magic_cmd=$lt_file_magic_cmd
  16293. # Flag that allows shared libraries with undefined symbols to be built.
  16294. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16295. # Flag that forces no undefined symbols.
  16296. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16297. # Commands used to finish a libtool library installation in a directory.
  16298. finish_cmds=$lt_finish_cmds
  16299. # Same as above, but a single script fragment to be evaled but not shown.
  16300. finish_eval=$lt_finish_eval
  16301. # Take the output of nm and produce a listing of raw symbols and C names.
  16302. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16303. # Transform the output of nm in a proper C declaration
  16304. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16305. # Transform the output of nm in a C name address pair
  16306. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16307. # This is the shared library runtime path variable.
  16308. runpath_var=$runpath_var
  16309. # This is the shared library path variable.
  16310. shlibpath_var=$shlibpath_var
  16311. # Is shlibpath searched before the hard-coded library search path?
  16312. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16313. # How to hardcode a shared library path into an executable.
  16314. hardcode_action=$hardcode_action_GCJ
  16315. # Whether we should hardcode library paths into libraries.
  16316. hardcode_into_libs=$hardcode_into_libs
  16317. # Flag to hardcode \$libdir into a binary during linking.
  16318. # This must work even if \$libdir does not exist.
  16319. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16320. # If ld is used when linking, flag to hardcode \$libdir into
  16321. # a binary during linking. This must work even if \$libdir does
  16322. # not exist.
  16323. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16324. # Whether we need a single -rpath flag with a separated argument.
  16325. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16326. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16327. # resulting binary.
  16328. hardcode_direct=$hardcode_direct_GCJ
  16329. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16330. # resulting binary.
  16331. hardcode_minus_L=$hardcode_minus_L_GCJ
  16332. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16333. # the resulting binary.
  16334. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16335. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16336. # and all subsequent libraries and executables linked against it.
  16337. hardcode_automatic=$hardcode_automatic_GCJ
  16338. # Variables whose values should be saved in libtool wrapper scripts and
  16339. # restored at relink time.
  16340. variables_saved_for_relink="$variables_saved_for_relink"
  16341. # Whether libtool must link a program against all its dependency libraries.
  16342. link_all_deplibs=$link_all_deplibs_GCJ
  16343. # Compile-time system search path for libraries
  16344. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16345. # Run-time system search path for libraries
  16346. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16347. # Fix the shell variable \$srcfile for the compiler.
  16348. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16349. # Set to yes if exported symbols are required.
  16350. always_export_symbols=$always_export_symbols_GCJ
  16351. # The commands to list exported symbols.
  16352. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16353. # The commands to extract the exported symbol list from a shared archive.
  16354. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16355. # Symbols that should not be listed in the preloaded symbols.
  16356. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16357. # Symbols that must always be exported.
  16358. include_expsyms=$lt_include_expsyms_GCJ
  16359. # ### END LIBTOOL TAG CONFIG: $tagname
  16360. __EOF__
  16361. else
  16362. # If there is no Makefile yet, we rely on a make rule to execute
  16363. # `config.status --recheck' to rerun these tests and create the
  16364. # libtool script then.
  16365. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16366. if test -f "$ltmain_in"; then
  16367. test -f Makefile && make "$ltmain"
  16368. fi
  16369. fi
  16370. ac_ext=c
  16371. ac_cpp='$CPP $CPPFLAGS'
  16372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16375. CC="$lt_save_CC"
  16376. else
  16377. tagname=""
  16378. fi
  16379. ;;
  16380. RC)
  16381. # Source file extension for RC test sources.
  16382. ac_ext=rc
  16383. # Object file extension for compiled RC test sources.
  16384. objext=o
  16385. objext_RC=$objext
  16386. # Code to be used in simple compile tests
  16387. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16388. # Code to be used in simple link tests
  16389. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16390. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16391. # If no C compiler was specified, use CC.
  16392. LTCC=${LTCC-"$CC"}
  16393. # If no C compiler flags were specified, use CFLAGS.
  16394. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16395. # Allow CC to be a program name with arguments.
  16396. compiler=$CC
  16397. # save warnings/boilerplate of simple test code
  16398. ac_outfile=conftest.$ac_objext
  16399. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16400. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16401. _lt_compiler_boilerplate=`cat conftest.err`
  16402. $rm conftest*
  16403. ac_outfile=conftest.$ac_objext
  16404. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16405. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16406. _lt_linker_boilerplate=`cat conftest.err`
  16407. $rm conftest*
  16408. # Allow CC to be a program name with arguments.
  16409. lt_save_CC="$CC"
  16410. CC=${RC-"windres"}
  16411. compiler=$CC
  16412. compiler_RC=$CC
  16413. for cc_temp in $compiler""; do
  16414. case $cc_temp in
  16415. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16416. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16417. \-*) ;;
  16418. *) break;;
  16419. esac
  16420. done
  16421. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16422. lt_cv_prog_compiler_c_o_RC=yes
  16423. # The else clause should only fire when bootstrapping the
  16424. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16425. # with your package, and you will get complaints that there are
  16426. # no rules to generate ltmain.sh.
  16427. if test -f "$ltmain"; then
  16428. # See if we are running on zsh, and set the options which allow our commands through
  16429. # without removal of \ escapes.
  16430. if test -n "${ZSH_VERSION+set}" ; then
  16431. setopt NO_GLOB_SUBST
  16432. fi
  16433. # Now quote all the things that may contain metacharacters while being
  16434. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16435. # variables and quote the copies for generation of the libtool script.
  16436. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16437. SED SHELL STRIP \
  16438. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16439. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16440. deplibs_check_method reload_flag reload_cmds need_locks \
  16441. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16442. lt_cv_sys_global_symbol_to_c_name_address \
  16443. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16444. old_postinstall_cmds old_postuninstall_cmds \
  16445. compiler_RC \
  16446. CC_RC \
  16447. LD_RC \
  16448. lt_prog_compiler_wl_RC \
  16449. lt_prog_compiler_pic_RC \
  16450. lt_prog_compiler_static_RC \
  16451. lt_prog_compiler_no_builtin_flag_RC \
  16452. export_dynamic_flag_spec_RC \
  16453. thread_safe_flag_spec_RC \
  16454. whole_archive_flag_spec_RC \
  16455. enable_shared_with_static_runtimes_RC \
  16456. old_archive_cmds_RC \
  16457. old_archive_from_new_cmds_RC \
  16458. predep_objects_RC \
  16459. postdep_objects_RC \
  16460. predeps_RC \
  16461. postdeps_RC \
  16462. compiler_lib_search_path_RC \
  16463. archive_cmds_RC \
  16464. archive_expsym_cmds_RC \
  16465. postinstall_cmds_RC \
  16466. postuninstall_cmds_RC \
  16467. old_archive_from_expsyms_cmds_RC \
  16468. allow_undefined_flag_RC \
  16469. no_undefined_flag_RC \
  16470. export_symbols_cmds_RC \
  16471. hardcode_libdir_flag_spec_RC \
  16472. hardcode_libdir_flag_spec_ld_RC \
  16473. hardcode_libdir_separator_RC \
  16474. hardcode_automatic_RC \
  16475. module_cmds_RC \
  16476. module_expsym_cmds_RC \
  16477. lt_cv_prog_compiler_c_o_RC \
  16478. exclude_expsyms_RC \
  16479. include_expsyms_RC; do
  16480. case $var in
  16481. old_archive_cmds_RC | \
  16482. old_archive_from_new_cmds_RC | \
  16483. archive_cmds_RC | \
  16484. archive_expsym_cmds_RC | \
  16485. module_cmds_RC | \
  16486. module_expsym_cmds_RC | \
  16487. old_archive_from_expsyms_cmds_RC | \
  16488. export_symbols_cmds_RC | \
  16489. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16490. postinstall_cmds | postuninstall_cmds | \
  16491. old_postinstall_cmds | old_postuninstall_cmds | \
  16492. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16493. # Double-quote double-evaled strings.
  16494. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16495. ;;
  16496. *)
  16497. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16498. ;;
  16499. esac
  16500. done
  16501. case $lt_echo in
  16502. *'\$0 --fallback-echo"')
  16503. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16504. ;;
  16505. esac
  16506. cfgfile="$ofile"
  16507. cat <<__EOF__ >> "$cfgfile"
  16508. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16509. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16510. # Shell to use when invoking shell scripts.
  16511. SHELL=$lt_SHELL
  16512. # Whether or not to build shared libraries.
  16513. build_libtool_libs=$enable_shared
  16514. # Whether or not to build static libraries.
  16515. build_old_libs=$enable_static
  16516. # Whether or not to add -lc for building shared libraries.
  16517. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16518. # Whether or not to disallow shared libs when runtime libs are static
  16519. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16520. # Whether or not to optimize for fast installation.
  16521. fast_install=$enable_fast_install
  16522. # The host system.
  16523. host_alias=$host_alias
  16524. host=$host
  16525. host_os=$host_os
  16526. # The build system.
  16527. build_alias=$build_alias
  16528. build=$build
  16529. build_os=$build_os
  16530. # An echo program that does not interpret backslashes.
  16531. echo=$lt_echo
  16532. # The archiver.
  16533. AR=$lt_AR
  16534. AR_FLAGS=$lt_AR_FLAGS
  16535. # A C compiler.
  16536. LTCC=$lt_LTCC
  16537. # LTCC compiler flags.
  16538. LTCFLAGS=$lt_LTCFLAGS
  16539. # A language-specific compiler.
  16540. CC=$lt_compiler_RC
  16541. # Is the compiler the GNU C compiler?
  16542. with_gcc=$GCC_RC
  16543. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16544. gcc_ver=\`gcc -dumpversion\`
  16545. # An ERE matcher.
  16546. EGREP=$lt_EGREP
  16547. # The linker used to build libraries.
  16548. LD=$lt_LD_RC
  16549. # Whether we need hard or soft links.
  16550. LN_S=$lt_LN_S
  16551. # A BSD-compatible nm program.
  16552. NM=$lt_NM
  16553. # A symbol stripping program
  16554. STRIP=$lt_STRIP
  16555. # Used to examine libraries when file_magic_cmd begins "file"
  16556. MAGIC_CMD=$MAGIC_CMD
  16557. # Used on cygwin: DLL creation program.
  16558. DLLTOOL="$DLLTOOL"
  16559. # Used on cygwin: object dumper.
  16560. OBJDUMP="$OBJDUMP"
  16561. # Used on cygwin: assembler.
  16562. AS="$AS"
  16563. # The name of the directory that contains temporary libtool files.
  16564. objdir=$objdir
  16565. # How to create reloadable object files.
  16566. reload_flag=$lt_reload_flag
  16567. reload_cmds=$lt_reload_cmds
  16568. # How to pass a linker flag through the compiler.
  16569. wl=$lt_lt_prog_compiler_wl_RC
  16570. # Object file suffix (normally "o").
  16571. objext="$ac_objext"
  16572. # Old archive suffix (normally "a").
  16573. libext="$libext"
  16574. # Shared library suffix (normally ".so").
  16575. shrext_cmds='$shrext_cmds'
  16576. # Executable file suffix (normally "").
  16577. exeext="$exeext"
  16578. # Additional compiler flags for building library objects.
  16579. pic_flag=$lt_lt_prog_compiler_pic_RC
  16580. pic_mode=$pic_mode
  16581. # What is the maximum length of a command?
  16582. max_cmd_len=$lt_cv_sys_max_cmd_len
  16583. # Does compiler simultaneously support -c and -o options?
  16584. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16585. # Must we lock files when doing compilation?
  16586. need_locks=$lt_need_locks
  16587. # Do we need the lib prefix for modules?
  16588. need_lib_prefix=$need_lib_prefix
  16589. # Do we need a version for libraries?
  16590. need_version=$need_version
  16591. # Whether dlopen is supported.
  16592. dlopen_support=$enable_dlopen
  16593. # Whether dlopen of programs is supported.
  16594. dlopen_self=$enable_dlopen_self
  16595. # Whether dlopen of statically linked programs is supported.
  16596. dlopen_self_static=$enable_dlopen_self_static
  16597. # Compiler flag to prevent dynamic linking.
  16598. link_static_flag=$lt_lt_prog_compiler_static_RC
  16599. # Compiler flag to turn off builtin functions.
  16600. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16601. # Compiler flag to allow reflexive dlopens.
  16602. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16603. # Compiler flag to generate shared objects directly from archives.
  16604. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16605. # Compiler flag to generate thread-safe objects.
  16606. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16607. # Library versioning type.
  16608. version_type=$version_type
  16609. # Format of library name prefix.
  16610. libname_spec=$lt_libname_spec
  16611. # List of archive names. First name is the real one, the rest are links.
  16612. # The last name is the one that the linker finds with -lNAME.
  16613. library_names_spec=$lt_library_names_spec
  16614. # The coded name of the library, if different from the real name.
  16615. soname_spec=$lt_soname_spec
  16616. # Commands used to build and install an old-style archive.
  16617. RANLIB=$lt_RANLIB
  16618. old_archive_cmds=$lt_old_archive_cmds_RC
  16619. old_postinstall_cmds=$lt_old_postinstall_cmds
  16620. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16621. # Create an old-style archive from a shared archive.
  16622. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16623. # Create a temporary old-style archive to link instead of a shared archive.
  16624. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16625. # Commands used to build and install a shared archive.
  16626. archive_cmds=$lt_archive_cmds_RC
  16627. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16628. postinstall_cmds=$lt_postinstall_cmds
  16629. postuninstall_cmds=$lt_postuninstall_cmds
  16630. # Commands used to build a loadable module (assumed same as above if empty)
  16631. module_cmds=$lt_module_cmds_RC
  16632. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16633. # Commands to strip libraries.
  16634. old_striplib=$lt_old_striplib
  16635. striplib=$lt_striplib
  16636. # Dependencies to place before the objects being linked to create a
  16637. # shared library.
  16638. predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16639. # Dependencies to place after the objects being linked to create a
  16640. # shared library.
  16641. postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16642. # Dependencies to place before the objects being linked to create a
  16643. # shared library.
  16644. predeps=$lt_predeps_RC
  16645. # Dependencies to place after the objects being linked to create a
  16646. # shared library.
  16647. postdeps=$lt_postdeps_RC
  16648. # The library search path used internally by the compiler when linking
  16649. # a shared library.
  16650. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16651. # Method to check whether dependent libraries are shared objects.
  16652. deplibs_check_method=$lt_deplibs_check_method
  16653. # Command to use when deplibs_check_method == file_magic.
  16654. file_magic_cmd=$lt_file_magic_cmd
  16655. # Flag that allows shared libraries with undefined symbols to be built.
  16656. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16657. # Flag that forces no undefined symbols.
  16658. no_undefined_flag=$lt_no_undefined_flag_RC
  16659. # Commands used to finish a libtool library installation in a directory.
  16660. finish_cmds=$lt_finish_cmds
  16661. # Same as above, but a single script fragment to be evaled but not shown.
  16662. finish_eval=$lt_finish_eval
  16663. # Take the output of nm and produce a listing of raw symbols and C names.
  16664. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16665. # Transform the output of nm in a proper C declaration
  16666. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16667. # Transform the output of nm in a C name address pair
  16668. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16669. # This is the shared library runtime path variable.
  16670. runpath_var=$runpath_var
  16671. # This is the shared library path variable.
  16672. shlibpath_var=$shlibpath_var
  16673. # Is shlibpath searched before the hard-coded library search path?
  16674. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16675. # How to hardcode a shared library path into an executable.
  16676. hardcode_action=$hardcode_action_RC
  16677. # Whether we should hardcode library paths into libraries.
  16678. hardcode_into_libs=$hardcode_into_libs
  16679. # Flag to hardcode \$libdir into a binary during linking.
  16680. # This must work even if \$libdir does not exist.
  16681. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16682. # If ld is used when linking, flag to hardcode \$libdir into
  16683. # a binary during linking. This must work even if \$libdir does
  16684. # not exist.
  16685. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16686. # Whether we need a single -rpath flag with a separated argument.
  16687. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16688. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16689. # resulting binary.
  16690. hardcode_direct=$hardcode_direct_RC
  16691. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16692. # resulting binary.
  16693. hardcode_minus_L=$hardcode_minus_L_RC
  16694. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16695. # the resulting binary.
  16696. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16697. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16698. # and all subsequent libraries and executables linked against it.
  16699. hardcode_automatic=$hardcode_automatic_RC
  16700. # Variables whose values should be saved in libtool wrapper scripts and
  16701. # restored at relink time.
  16702. variables_saved_for_relink="$variables_saved_for_relink"
  16703. # Whether libtool must link a program against all its dependency libraries.
  16704. link_all_deplibs=$link_all_deplibs_RC
  16705. # Compile-time system search path for libraries
  16706. sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16707. # Run-time system search path for libraries
  16708. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16709. # Fix the shell variable \$srcfile for the compiler.
  16710. fix_srcfile_path="$fix_srcfile_path_RC"
  16711. # Set to yes if exported symbols are required.
  16712. always_export_symbols=$always_export_symbols_RC
  16713. # The commands to list exported symbols.
  16714. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16715. # The commands to extract the exported symbol list from a shared archive.
  16716. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16717. # Symbols that should not be listed in the preloaded symbols.
  16718. exclude_expsyms=$lt_exclude_expsyms_RC
  16719. # Symbols that must always be exported.
  16720. include_expsyms=$lt_include_expsyms_RC
  16721. # ### END LIBTOOL TAG CONFIG: $tagname
  16722. __EOF__
  16723. else
  16724. # If there is no Makefile yet, we rely on a make rule to execute
  16725. # `config.status --recheck' to rerun these tests and create the
  16726. # libtool script then.
  16727. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16728. if test -f "$ltmain_in"; then
  16729. test -f Makefile && make "$ltmain"
  16730. fi
  16731. fi
  16732. ac_ext=c
  16733. ac_cpp='$CPP $CPPFLAGS'
  16734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16737. CC="$lt_save_CC"
  16738. ;;
  16739. *)
  16740. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16741. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16742. { (exit 1); exit 1; }; }
  16743. ;;
  16744. esac
  16745. # Append the new tag name to the list of available tags.
  16746. if test -n "$tagname" ; then
  16747. available_tags="$available_tags $tagname"
  16748. fi
  16749. fi
  16750. done
  16751. IFS="$lt_save_ifs"
  16752. # Now substitute the updated list of available tags.
  16753. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16754. mv "${ofile}T" "$ofile"
  16755. chmod +x "$ofile"
  16756. else
  16757. rm -f "${ofile}T"
  16758. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16759. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16760. { (exit 1); exit 1; }; }
  16761. fi
  16762. fi
  16763. # This can be used to rebuild libtool when needed
  16764. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16765. # Always use our own libtool.
  16766. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16767. # Prevent multiple expansion
  16768. # Checks for header files.
  16769. ac_header_dirent=no
  16770. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16771. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16772. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16773. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16774. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16775. echo $ECHO_N "(cached) $ECHO_C" >&6
  16776. else
  16777. cat >conftest.$ac_ext <<_ACEOF
  16778. /* confdefs.h. */
  16779. _ACEOF
  16780. cat confdefs.h >>conftest.$ac_ext
  16781. cat >>conftest.$ac_ext <<_ACEOF
  16782. /* end confdefs.h. */
  16783. #include <sys/types.h>
  16784. #include <$ac_hdr>
  16785. int
  16786. main ()
  16787. {
  16788. if ((DIR *) 0)
  16789. return 0;
  16790. ;
  16791. return 0;
  16792. }
  16793. _ACEOF
  16794. rm -f conftest.$ac_objext
  16795. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16796. (eval $ac_compile) 2>conftest.er1
  16797. ac_status=$?
  16798. grep -v '^ *+' conftest.er1 >conftest.err
  16799. rm -f conftest.er1
  16800. cat conftest.err >&5
  16801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16802. (exit $ac_status); } &&
  16803. { ac_try='test -z "$ac_c_werror_flag"
  16804. || test ! -s conftest.err'
  16805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16806. (eval $ac_try) 2>&5
  16807. ac_status=$?
  16808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16809. (exit $ac_status); }; } &&
  16810. { ac_try='test -s conftest.$ac_objext'
  16811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16812. (eval $ac_try) 2>&5
  16813. ac_status=$?
  16814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16815. (exit $ac_status); }; }; then
  16816. eval "$as_ac_Header=yes"
  16817. else
  16818. echo "$as_me: failed program was:" >&5
  16819. sed 's/^/| /' conftest.$ac_ext >&5
  16820. eval "$as_ac_Header=no"
  16821. fi
  16822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16823. fi
  16824. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16825. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16826. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16827. cat >>confdefs.h <<_ACEOF
  16828. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16829. _ACEOF
  16830. ac_header_dirent=$ac_hdr; break
  16831. fi
  16832. done
  16833. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16834. if test $ac_header_dirent = dirent.h; then
  16835. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16836. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16837. if test "${ac_cv_search_opendir+set}" = set; then
  16838. echo $ECHO_N "(cached) $ECHO_C" >&6
  16839. else
  16840. ac_func_search_save_LIBS=$LIBS
  16841. ac_cv_search_opendir=no
  16842. cat >conftest.$ac_ext <<_ACEOF
  16843. /* confdefs.h. */
  16844. _ACEOF
  16845. cat confdefs.h >>conftest.$ac_ext
  16846. cat >>conftest.$ac_ext <<_ACEOF
  16847. /* end confdefs.h. */
  16848. /* Override any gcc2 internal prototype to avoid an error. */
  16849. #ifdef __cplusplus
  16850. extern "C"
  16851. #endif
  16852. /* We use char because int might match the return type of a gcc2
  16853. builtin and then its argument prototype would still apply. */
  16854. char opendir ();
  16855. int
  16856. main ()
  16857. {
  16858. opendir ();
  16859. ;
  16860. return 0;
  16861. }
  16862. _ACEOF
  16863. rm -f conftest.$ac_objext conftest$ac_exeext
  16864. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16865. (eval $ac_link) 2>conftest.er1
  16866. ac_status=$?
  16867. grep -v '^ *+' conftest.er1 >conftest.err
  16868. rm -f conftest.er1
  16869. cat conftest.err >&5
  16870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16871. (exit $ac_status); } &&
  16872. { ac_try='test -z "$ac_c_werror_flag"
  16873. || test ! -s conftest.err'
  16874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16875. (eval $ac_try) 2>&5
  16876. ac_status=$?
  16877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16878. (exit $ac_status); }; } &&
  16879. { ac_try='test -s conftest$ac_exeext'
  16880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16881. (eval $ac_try) 2>&5
  16882. ac_status=$?
  16883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16884. (exit $ac_status); }; }; then
  16885. ac_cv_search_opendir="none required"
  16886. else
  16887. echo "$as_me: failed program was:" >&5
  16888. sed 's/^/| /' conftest.$ac_ext >&5
  16889. fi
  16890. rm -f conftest.err conftest.$ac_objext \
  16891. conftest$ac_exeext conftest.$ac_ext
  16892. if test "$ac_cv_search_opendir" = no; then
  16893. for ac_lib in dir; do
  16894. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16895. cat >conftest.$ac_ext <<_ACEOF
  16896. /* confdefs.h. */
  16897. _ACEOF
  16898. cat confdefs.h >>conftest.$ac_ext
  16899. cat >>conftest.$ac_ext <<_ACEOF
  16900. /* end confdefs.h. */
  16901. /* Override any gcc2 internal prototype to avoid an error. */
  16902. #ifdef __cplusplus
  16903. extern "C"
  16904. #endif
  16905. /* We use char because int might match the return type of a gcc2
  16906. builtin and then its argument prototype would still apply. */
  16907. char opendir ();
  16908. int
  16909. main ()
  16910. {
  16911. opendir ();
  16912. ;
  16913. return 0;
  16914. }
  16915. _ACEOF
  16916. rm -f conftest.$ac_objext conftest$ac_exeext
  16917. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16918. (eval $ac_link) 2>conftest.er1
  16919. ac_status=$?
  16920. grep -v '^ *+' conftest.er1 >conftest.err
  16921. rm -f conftest.er1
  16922. cat conftest.err >&5
  16923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16924. (exit $ac_status); } &&
  16925. { ac_try='test -z "$ac_c_werror_flag"
  16926. || test ! -s conftest.err'
  16927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16928. (eval $ac_try) 2>&5
  16929. ac_status=$?
  16930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16931. (exit $ac_status); }; } &&
  16932. { ac_try='test -s conftest$ac_exeext'
  16933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16934. (eval $ac_try) 2>&5
  16935. ac_status=$?
  16936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16937. (exit $ac_status); }; }; then
  16938. ac_cv_search_opendir="-l$ac_lib"
  16939. break
  16940. else
  16941. echo "$as_me: failed program was:" >&5
  16942. sed 's/^/| /' conftest.$ac_ext >&5
  16943. fi
  16944. rm -f conftest.err conftest.$ac_objext \
  16945. conftest$ac_exeext conftest.$ac_ext
  16946. done
  16947. fi
  16948. LIBS=$ac_func_search_save_LIBS
  16949. fi
  16950. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16951. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16952. if test "$ac_cv_search_opendir" != no; then
  16953. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16954. fi
  16955. else
  16956. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16957. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16958. if test "${ac_cv_search_opendir+set}" = set; then
  16959. echo $ECHO_N "(cached) $ECHO_C" >&6
  16960. else
  16961. ac_func_search_save_LIBS=$LIBS
  16962. ac_cv_search_opendir=no
  16963. cat >conftest.$ac_ext <<_ACEOF
  16964. /* confdefs.h. */
  16965. _ACEOF
  16966. cat confdefs.h >>conftest.$ac_ext
  16967. cat >>conftest.$ac_ext <<_ACEOF
  16968. /* end confdefs.h. */
  16969. /* Override any gcc2 internal prototype to avoid an error. */
  16970. #ifdef __cplusplus
  16971. extern "C"
  16972. #endif
  16973. /* We use char because int might match the return type of a gcc2
  16974. builtin and then its argument prototype would still apply. */
  16975. char opendir ();
  16976. int
  16977. main ()
  16978. {
  16979. opendir ();
  16980. ;
  16981. return 0;
  16982. }
  16983. _ACEOF
  16984. rm -f conftest.$ac_objext conftest$ac_exeext
  16985. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16986. (eval $ac_link) 2>conftest.er1
  16987. ac_status=$?
  16988. grep -v '^ *+' conftest.er1 >conftest.err
  16989. rm -f conftest.er1
  16990. cat conftest.err >&5
  16991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16992. (exit $ac_status); } &&
  16993. { ac_try='test -z "$ac_c_werror_flag"
  16994. || test ! -s conftest.err'
  16995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16996. (eval $ac_try) 2>&5
  16997. ac_status=$?
  16998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16999. (exit $ac_status); }; } &&
  17000. { ac_try='test -s conftest$ac_exeext'
  17001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17002. (eval $ac_try) 2>&5
  17003. ac_status=$?
  17004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17005. (exit $ac_status); }; }; then
  17006. ac_cv_search_opendir="none required"
  17007. else
  17008. echo "$as_me: failed program was:" >&5
  17009. sed 's/^/| /' conftest.$ac_ext >&5
  17010. fi
  17011. rm -f conftest.err conftest.$ac_objext \
  17012. conftest$ac_exeext conftest.$ac_ext
  17013. if test "$ac_cv_search_opendir" = no; then
  17014. for ac_lib in x; do
  17015. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17016. cat >conftest.$ac_ext <<_ACEOF
  17017. /* confdefs.h. */
  17018. _ACEOF
  17019. cat confdefs.h >>conftest.$ac_ext
  17020. cat >>conftest.$ac_ext <<_ACEOF
  17021. /* end confdefs.h. */
  17022. /* Override any gcc2 internal prototype to avoid an error. */
  17023. #ifdef __cplusplus
  17024. extern "C"
  17025. #endif
  17026. /* We use char because int might match the return type of a gcc2
  17027. builtin and then its argument prototype would still apply. */
  17028. char opendir ();
  17029. int
  17030. main ()
  17031. {
  17032. opendir ();
  17033. ;
  17034. return 0;
  17035. }
  17036. _ACEOF
  17037. rm -f conftest.$ac_objext conftest$ac_exeext
  17038. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17039. (eval $ac_link) 2>conftest.er1
  17040. ac_status=$?
  17041. grep -v '^ *+' conftest.er1 >conftest.err
  17042. rm -f conftest.er1
  17043. cat conftest.err >&5
  17044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17045. (exit $ac_status); } &&
  17046. { ac_try='test -z "$ac_c_werror_flag"
  17047. || test ! -s conftest.err'
  17048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17049. (eval $ac_try) 2>&5
  17050. ac_status=$?
  17051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17052. (exit $ac_status); }; } &&
  17053. { ac_try='test -s conftest$ac_exeext'
  17054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17055. (eval $ac_try) 2>&5
  17056. ac_status=$?
  17057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17058. (exit $ac_status); }; }; then
  17059. ac_cv_search_opendir="-l$ac_lib"
  17060. break
  17061. else
  17062. echo "$as_me: failed program was:" >&5
  17063. sed 's/^/| /' conftest.$ac_ext >&5
  17064. fi
  17065. rm -f conftest.err conftest.$ac_objext \
  17066. conftest$ac_exeext conftest.$ac_ext
  17067. done
  17068. fi
  17069. LIBS=$ac_func_search_save_LIBS
  17070. fi
  17071. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17072. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17073. if test "$ac_cv_search_opendir" != no; then
  17074. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17075. fi
  17076. fi
  17077. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17078. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17079. if test "${ac_cv_header_stdc+set}" = set; then
  17080. echo $ECHO_N "(cached) $ECHO_C" >&6
  17081. else
  17082. cat >conftest.$ac_ext <<_ACEOF
  17083. /* confdefs.h. */
  17084. _ACEOF
  17085. cat confdefs.h >>conftest.$ac_ext
  17086. cat >>conftest.$ac_ext <<_ACEOF
  17087. /* end confdefs.h. */
  17088. #include <stdlib.h>
  17089. #include <stdarg.h>
  17090. #include <string.h>
  17091. #include <float.h>
  17092. int
  17093. main ()
  17094. {
  17095. ;
  17096. return 0;
  17097. }
  17098. _ACEOF
  17099. rm -f conftest.$ac_objext
  17100. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17101. (eval $ac_compile) 2>conftest.er1
  17102. ac_status=$?
  17103. grep -v '^ *+' conftest.er1 >conftest.err
  17104. rm -f conftest.er1
  17105. cat conftest.err >&5
  17106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17107. (exit $ac_status); } &&
  17108. { ac_try='test -z "$ac_c_werror_flag"
  17109. || test ! -s conftest.err'
  17110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17111. (eval $ac_try) 2>&5
  17112. ac_status=$?
  17113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17114. (exit $ac_status); }; } &&
  17115. { ac_try='test -s conftest.$ac_objext'
  17116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17117. (eval $ac_try) 2>&5
  17118. ac_status=$?
  17119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17120. (exit $ac_status); }; }; then
  17121. ac_cv_header_stdc=yes
  17122. else
  17123. echo "$as_me: failed program was:" >&5
  17124. sed 's/^/| /' conftest.$ac_ext >&5
  17125. ac_cv_header_stdc=no
  17126. fi
  17127. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17128. if test $ac_cv_header_stdc = yes; then
  17129. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17130. cat >conftest.$ac_ext <<_ACEOF
  17131. /* confdefs.h. */
  17132. _ACEOF
  17133. cat confdefs.h >>conftest.$ac_ext
  17134. cat >>conftest.$ac_ext <<_ACEOF
  17135. /* end confdefs.h. */
  17136. #include <string.h>
  17137. _ACEOF
  17138. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17139. $EGREP "memchr" >/dev/null 2>&1; then
  17140. :
  17141. else
  17142. ac_cv_header_stdc=no
  17143. fi
  17144. rm -f conftest*
  17145. fi
  17146. if test $ac_cv_header_stdc = yes; then
  17147. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17148. cat >conftest.$ac_ext <<_ACEOF
  17149. /* confdefs.h. */
  17150. _ACEOF
  17151. cat confdefs.h >>conftest.$ac_ext
  17152. cat >>conftest.$ac_ext <<_ACEOF
  17153. /* end confdefs.h. */
  17154. #include <stdlib.h>
  17155. _ACEOF
  17156. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17157. $EGREP "free" >/dev/null 2>&1; then
  17158. :
  17159. else
  17160. ac_cv_header_stdc=no
  17161. fi
  17162. rm -f conftest*
  17163. fi
  17164. if test $ac_cv_header_stdc = yes; then
  17165. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17166. if test "$cross_compiling" = yes; then
  17167. :
  17168. else
  17169. cat >conftest.$ac_ext <<_ACEOF
  17170. /* confdefs.h. */
  17171. _ACEOF
  17172. cat confdefs.h >>conftest.$ac_ext
  17173. cat >>conftest.$ac_ext <<_ACEOF
  17174. /* end confdefs.h. */
  17175. #include <ctype.h>
  17176. #if ((' ' & 0x0FF) == 0x020)
  17177. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17178. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17179. #else
  17180. # define ISLOWER(c) \
  17181. (('a' <= (c) && (c) <= 'i') \
  17182. || ('j' <= (c) && (c) <= 'r') \
  17183. || ('s' <= (c) && (c) <= 'z'))
  17184. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17185. #endif
  17186. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17187. int
  17188. main ()
  17189. {
  17190. int i;
  17191. for (i = 0; i < 256; i++)
  17192. if (XOR (islower (i), ISLOWER (i))
  17193. || toupper (i) != TOUPPER (i))
  17194. exit(2);
  17195. exit (0);
  17196. }
  17197. _ACEOF
  17198. rm -f conftest$ac_exeext
  17199. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17200. (eval $ac_link) 2>&5
  17201. ac_status=$?
  17202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17203. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17205. (eval $ac_try) 2>&5
  17206. ac_status=$?
  17207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17208. (exit $ac_status); }; }; then
  17209. :
  17210. else
  17211. echo "$as_me: program exited with status $ac_status" >&5
  17212. echo "$as_me: failed program was:" >&5
  17213. sed 's/^/| /' conftest.$ac_ext >&5
  17214. ( exit $ac_status )
  17215. ac_cv_header_stdc=no
  17216. fi
  17217. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17218. fi
  17219. fi
  17220. fi
  17221. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17222. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17223. if test $ac_cv_header_stdc = yes; then
  17224. cat >>confdefs.h <<\_ACEOF
  17225. #define STDC_HEADERS 1
  17226. _ACEOF
  17227. fi
  17228. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17229. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17230. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17231. echo $ECHO_N "(cached) $ECHO_C" >&6
  17232. else
  17233. cat >conftest.$ac_ext <<_ACEOF
  17234. /* confdefs.h. */
  17235. _ACEOF
  17236. cat confdefs.h >>conftest.$ac_ext
  17237. cat >>conftest.$ac_ext <<_ACEOF
  17238. /* end confdefs.h. */
  17239. #include <sys/types.h>
  17240. #include <sys/wait.h>
  17241. #ifndef WEXITSTATUS
  17242. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17243. #endif
  17244. #ifndef WIFEXITED
  17245. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17246. #endif
  17247. int
  17248. main ()
  17249. {
  17250. int s;
  17251. wait (&s);
  17252. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17253. ;
  17254. return 0;
  17255. }
  17256. _ACEOF
  17257. rm -f conftest.$ac_objext
  17258. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17259. (eval $ac_compile) 2>conftest.er1
  17260. ac_status=$?
  17261. grep -v '^ *+' conftest.er1 >conftest.err
  17262. rm -f conftest.er1
  17263. cat conftest.err >&5
  17264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17265. (exit $ac_status); } &&
  17266. { ac_try='test -z "$ac_c_werror_flag"
  17267. || test ! -s conftest.err'
  17268. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17269. (eval $ac_try) 2>&5
  17270. ac_status=$?
  17271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17272. (exit $ac_status); }; } &&
  17273. { ac_try='test -s conftest.$ac_objext'
  17274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17275. (eval $ac_try) 2>&5
  17276. ac_status=$?
  17277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17278. (exit $ac_status); }; }; then
  17279. ac_cv_header_sys_wait_h=yes
  17280. else
  17281. echo "$as_me: failed program was:" >&5
  17282. sed 's/^/| /' conftest.$ac_ext >&5
  17283. ac_cv_header_sys_wait_h=no
  17284. fi
  17285. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17286. fi
  17287. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17288. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17289. if test $ac_cv_header_sys_wait_h = yes; then
  17290. cat >>confdefs.h <<\_ACEOF
  17291. #define HAVE_SYS_WAIT_H 1
  17292. _ACEOF
  17293. fi
  17294. 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
  17295. do
  17296. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17297. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17298. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17300. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17301. echo $ECHO_N "(cached) $ECHO_C" >&6
  17302. fi
  17303. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17304. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17305. else
  17306. # Is the header compilable?
  17307. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17308. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17309. cat >conftest.$ac_ext <<_ACEOF
  17310. /* confdefs.h. */
  17311. _ACEOF
  17312. cat confdefs.h >>conftest.$ac_ext
  17313. cat >>conftest.$ac_ext <<_ACEOF
  17314. /* end confdefs.h. */
  17315. $ac_includes_default
  17316. #include <$ac_header>
  17317. _ACEOF
  17318. rm -f conftest.$ac_objext
  17319. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17320. (eval $ac_compile) 2>conftest.er1
  17321. ac_status=$?
  17322. grep -v '^ *+' conftest.er1 >conftest.err
  17323. rm -f conftest.er1
  17324. cat conftest.err >&5
  17325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17326. (exit $ac_status); } &&
  17327. { ac_try='test -z "$ac_c_werror_flag"
  17328. || test ! -s conftest.err'
  17329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17330. (eval $ac_try) 2>&5
  17331. ac_status=$?
  17332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17333. (exit $ac_status); }; } &&
  17334. { ac_try='test -s conftest.$ac_objext'
  17335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17336. (eval $ac_try) 2>&5
  17337. ac_status=$?
  17338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17339. (exit $ac_status); }; }; then
  17340. ac_header_compiler=yes
  17341. else
  17342. echo "$as_me: failed program was:" >&5
  17343. sed 's/^/| /' conftest.$ac_ext >&5
  17344. ac_header_compiler=no
  17345. fi
  17346. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17347. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17348. echo "${ECHO_T}$ac_header_compiler" >&6
  17349. # Is the header present?
  17350. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17351. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17352. cat >conftest.$ac_ext <<_ACEOF
  17353. /* confdefs.h. */
  17354. _ACEOF
  17355. cat confdefs.h >>conftest.$ac_ext
  17356. cat >>conftest.$ac_ext <<_ACEOF
  17357. /* end confdefs.h. */
  17358. #include <$ac_header>
  17359. _ACEOF
  17360. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17361. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17362. ac_status=$?
  17363. grep -v '^ *+' conftest.er1 >conftest.err
  17364. rm -f conftest.er1
  17365. cat conftest.err >&5
  17366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17367. (exit $ac_status); } >/dev/null; then
  17368. if test -s conftest.err; then
  17369. ac_cpp_err=$ac_c_preproc_warn_flag
  17370. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17371. else
  17372. ac_cpp_err=
  17373. fi
  17374. else
  17375. ac_cpp_err=yes
  17376. fi
  17377. if test -z "$ac_cpp_err"; then
  17378. ac_header_preproc=yes
  17379. else
  17380. echo "$as_me: failed program was:" >&5
  17381. sed 's/^/| /' conftest.$ac_ext >&5
  17382. ac_header_preproc=no
  17383. fi
  17384. rm -f conftest.err conftest.$ac_ext
  17385. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17386. echo "${ECHO_T}$ac_header_preproc" >&6
  17387. # So? What about this header?
  17388. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17389. yes:no: )
  17390. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17391. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17392. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17393. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17394. ac_header_preproc=yes
  17395. ;;
  17396. no:yes:* )
  17397. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17398. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17399. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17400. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17401. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17402. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17403. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17404. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17405. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17406. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17407. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17408. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17409. (
  17410. cat <<\_ASBOX
  17411. ## ------------------------------------------ ##
  17412. ## Report this to http://bugzilla.redhat.com/ ##
  17413. ## ------------------------------------------ ##
  17414. _ASBOX
  17415. ) |
  17416. sed "s/^/$as_me: WARNING: /" >&2
  17417. ;;
  17418. esac
  17419. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17420. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17421. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17422. echo $ECHO_N "(cached) $ECHO_C" >&6
  17423. else
  17424. eval "$as_ac_Header=\$ac_header_preproc"
  17425. fi
  17426. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17427. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17428. fi
  17429. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17430. cat >>confdefs.h <<_ACEOF
  17431. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17432. _ACEOF
  17433. fi
  17434. done
  17435. # Checks for typedefs, structures, and compiler characteristics.
  17436. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17437. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17438. if test "${ac_cv_header_stat_broken+set}" = set; then
  17439. echo $ECHO_N "(cached) $ECHO_C" >&6
  17440. else
  17441. cat >conftest.$ac_ext <<_ACEOF
  17442. /* confdefs.h. */
  17443. _ACEOF
  17444. cat confdefs.h >>conftest.$ac_ext
  17445. cat >>conftest.$ac_ext <<_ACEOF
  17446. /* end confdefs.h. */
  17447. #include <sys/types.h>
  17448. #include <sys/stat.h>
  17449. #if defined(S_ISBLK) && defined(S_IFDIR)
  17450. # if S_ISBLK (S_IFDIR)
  17451. You lose.
  17452. # endif
  17453. #endif
  17454. #if defined(S_ISBLK) && defined(S_IFCHR)
  17455. # if S_ISBLK (S_IFCHR)
  17456. You lose.
  17457. # endif
  17458. #endif
  17459. #if defined(S_ISLNK) && defined(S_IFREG)
  17460. # if S_ISLNK (S_IFREG)
  17461. You lose.
  17462. # endif
  17463. #endif
  17464. #if defined(S_ISSOCK) && defined(S_IFREG)
  17465. # if S_ISSOCK (S_IFREG)
  17466. You lose.
  17467. # endif
  17468. #endif
  17469. _ACEOF
  17470. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17471. $EGREP "You lose" >/dev/null 2>&1; then
  17472. ac_cv_header_stat_broken=yes
  17473. else
  17474. ac_cv_header_stat_broken=no
  17475. fi
  17476. rm -f conftest*
  17477. fi
  17478. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17479. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17480. if test $ac_cv_header_stat_broken = yes; then
  17481. cat >>confdefs.h <<\_ACEOF
  17482. #define STAT_MACROS_BROKEN 1
  17483. _ACEOF
  17484. fi
  17485. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17486. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17487. if test "${ac_cv_c_const+set}" = set; then
  17488. echo $ECHO_N "(cached) $ECHO_C" >&6
  17489. else
  17490. cat >conftest.$ac_ext <<_ACEOF
  17491. /* confdefs.h. */
  17492. _ACEOF
  17493. cat confdefs.h >>conftest.$ac_ext
  17494. cat >>conftest.$ac_ext <<_ACEOF
  17495. /* end confdefs.h. */
  17496. int
  17497. main ()
  17498. {
  17499. /* FIXME: Include the comments suggested by Paul. */
  17500. #ifndef __cplusplus
  17501. /* Ultrix mips cc rejects this. */
  17502. typedef int charset[2];
  17503. const charset x;
  17504. /* SunOS 4.1.1 cc rejects this. */
  17505. char const *const *ccp;
  17506. char **p;
  17507. /* NEC SVR4.0.2 mips cc rejects this. */
  17508. struct point {int x, y;};
  17509. static struct point const zero = {0,0};
  17510. /* AIX XL C 1.02.0.0 rejects this.
  17511. It does not let you subtract one const X* pointer from another in
  17512. an arm of an if-expression whose if-part is not a constant
  17513. expression */
  17514. const char *g = "string";
  17515. ccp = &g + (g ? g-g : 0);
  17516. /* HPUX 7.0 cc rejects these. */
  17517. ++ccp;
  17518. p = (char**) ccp;
  17519. ccp = (char const *const *) p;
  17520. { /* SCO 3.2v4 cc rejects this. */
  17521. char *t;
  17522. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17523. *t++ = 0;
  17524. }
  17525. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17526. int x[] = {25, 17};
  17527. const int *foo = &x[0];
  17528. ++foo;
  17529. }
  17530. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17531. typedef const int *iptr;
  17532. iptr p = 0;
  17533. ++p;
  17534. }
  17535. { /* AIX XL C 1.02.0.0 rejects this saying
  17536. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17537. struct s { int j; const int *ap[3]; };
  17538. struct s *b; b->j = 5;
  17539. }
  17540. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17541. const int foo = 10;
  17542. }
  17543. #endif
  17544. ;
  17545. return 0;
  17546. }
  17547. _ACEOF
  17548. rm -f conftest.$ac_objext
  17549. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17550. (eval $ac_compile) 2>conftest.er1
  17551. ac_status=$?
  17552. grep -v '^ *+' conftest.er1 >conftest.err
  17553. rm -f conftest.er1
  17554. cat conftest.err >&5
  17555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17556. (exit $ac_status); } &&
  17557. { ac_try='test -z "$ac_c_werror_flag"
  17558. || test ! -s conftest.err'
  17559. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17560. (eval $ac_try) 2>&5
  17561. ac_status=$?
  17562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17563. (exit $ac_status); }; } &&
  17564. { ac_try='test -s conftest.$ac_objext'
  17565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17566. (eval $ac_try) 2>&5
  17567. ac_status=$?
  17568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17569. (exit $ac_status); }; }; then
  17570. ac_cv_c_const=yes
  17571. else
  17572. echo "$as_me: failed program was:" >&5
  17573. sed 's/^/| /' conftest.$ac_ext >&5
  17574. ac_cv_c_const=no
  17575. fi
  17576. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17577. fi
  17578. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17579. echo "${ECHO_T}$ac_cv_c_const" >&6
  17580. if test $ac_cv_c_const = no; then
  17581. cat >>confdefs.h <<\_ACEOF
  17582. #define const
  17583. _ACEOF
  17584. fi
  17585. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17586. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17587. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17588. echo $ECHO_N "(cached) $ECHO_C" >&6
  17589. else
  17590. cat >conftest.$ac_ext <<_ACEOF
  17591. /* confdefs.h. */
  17592. _ACEOF
  17593. cat confdefs.h >>conftest.$ac_ext
  17594. cat >>conftest.$ac_ext <<_ACEOF
  17595. /* end confdefs.h. */
  17596. #include <stdbool.h>
  17597. #ifndef bool
  17598. # error bool is not defined
  17599. #endif
  17600. #ifndef false
  17601. # error false is not defined
  17602. #endif
  17603. #if false
  17604. # error false is not 0
  17605. #endif
  17606. #ifndef true
  17607. # error true is not defined
  17608. #endif
  17609. #if true != 1
  17610. # error true is not 1
  17611. #endif
  17612. #ifndef __bool_true_false_are_defined
  17613. # error __bool_true_false_are_defined is not defined
  17614. #endif
  17615. struct s { _Bool s: 1; _Bool t; } s;
  17616. char a[true == 1 ? 1 : -1];
  17617. char b[false == 0 ? 1 : -1];
  17618. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17619. char d[(bool) -0.5 == true ? 1 : -1];
  17620. bool e = &s;
  17621. char f[(_Bool) -0.0 == false ? 1 : -1];
  17622. char g[true];
  17623. char h[sizeof (_Bool)];
  17624. char i[sizeof s.t];
  17625. int
  17626. main ()
  17627. {
  17628. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17629. ;
  17630. return 0;
  17631. }
  17632. _ACEOF
  17633. rm -f conftest.$ac_objext
  17634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17635. (eval $ac_compile) 2>conftest.er1
  17636. ac_status=$?
  17637. grep -v '^ *+' conftest.er1 >conftest.err
  17638. rm -f conftest.er1
  17639. cat conftest.err >&5
  17640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17641. (exit $ac_status); } &&
  17642. { ac_try='test -z "$ac_c_werror_flag"
  17643. || test ! -s conftest.err'
  17644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17645. (eval $ac_try) 2>&5
  17646. ac_status=$?
  17647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17648. (exit $ac_status); }; } &&
  17649. { ac_try='test -s conftest.$ac_objext'
  17650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17651. (eval $ac_try) 2>&5
  17652. ac_status=$?
  17653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17654. (exit $ac_status); }; }; then
  17655. ac_cv_header_stdbool_h=yes
  17656. else
  17657. echo "$as_me: failed program was:" >&5
  17658. sed 's/^/| /' conftest.$ac_ext >&5
  17659. ac_cv_header_stdbool_h=no
  17660. fi
  17661. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17662. fi
  17663. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17664. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17665. echo "$as_me:$LINENO: checking for _Bool" >&5
  17666. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17667. if test "${ac_cv_type__Bool+set}" = set; then
  17668. echo $ECHO_N "(cached) $ECHO_C" >&6
  17669. else
  17670. cat >conftest.$ac_ext <<_ACEOF
  17671. /* confdefs.h. */
  17672. _ACEOF
  17673. cat confdefs.h >>conftest.$ac_ext
  17674. cat >>conftest.$ac_ext <<_ACEOF
  17675. /* end confdefs.h. */
  17676. $ac_includes_default
  17677. int
  17678. main ()
  17679. {
  17680. if ((_Bool *) 0)
  17681. return 0;
  17682. if (sizeof (_Bool))
  17683. return 0;
  17684. ;
  17685. return 0;
  17686. }
  17687. _ACEOF
  17688. rm -f conftest.$ac_objext
  17689. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17690. (eval $ac_compile) 2>conftest.er1
  17691. ac_status=$?
  17692. grep -v '^ *+' conftest.er1 >conftest.err
  17693. rm -f conftest.er1
  17694. cat conftest.err >&5
  17695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17696. (exit $ac_status); } &&
  17697. { ac_try='test -z "$ac_c_werror_flag"
  17698. || test ! -s conftest.err'
  17699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17700. (eval $ac_try) 2>&5
  17701. ac_status=$?
  17702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17703. (exit $ac_status); }; } &&
  17704. { ac_try='test -s conftest.$ac_objext'
  17705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17706. (eval $ac_try) 2>&5
  17707. ac_status=$?
  17708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17709. (exit $ac_status); }; }; then
  17710. ac_cv_type__Bool=yes
  17711. else
  17712. echo "$as_me: failed program was:" >&5
  17713. sed 's/^/| /' conftest.$ac_ext >&5
  17714. ac_cv_type__Bool=no
  17715. fi
  17716. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17717. fi
  17718. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17719. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17720. if test $ac_cv_type__Bool = yes; then
  17721. cat >>confdefs.h <<_ACEOF
  17722. #define HAVE__BOOL 1
  17723. _ACEOF
  17724. fi
  17725. if test $ac_cv_header_stdbool_h = yes; then
  17726. cat >>confdefs.h <<\_ACEOF
  17727. #define HAVE_STDBOOL_H 1
  17728. _ACEOF
  17729. fi
  17730. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17731. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17732. if test "${ac_cv_type_uid_t+set}" = set; then
  17733. echo $ECHO_N "(cached) $ECHO_C" >&6
  17734. else
  17735. cat >conftest.$ac_ext <<_ACEOF
  17736. /* confdefs.h. */
  17737. _ACEOF
  17738. cat confdefs.h >>conftest.$ac_ext
  17739. cat >>conftest.$ac_ext <<_ACEOF
  17740. /* end confdefs.h. */
  17741. #include <sys/types.h>
  17742. _ACEOF
  17743. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17744. $EGREP "uid_t" >/dev/null 2>&1; then
  17745. ac_cv_type_uid_t=yes
  17746. else
  17747. ac_cv_type_uid_t=no
  17748. fi
  17749. rm -f conftest*
  17750. fi
  17751. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17752. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17753. if test $ac_cv_type_uid_t = no; then
  17754. cat >>confdefs.h <<\_ACEOF
  17755. #define uid_t int
  17756. _ACEOF
  17757. cat >>confdefs.h <<\_ACEOF
  17758. #define gid_t int
  17759. _ACEOF
  17760. fi
  17761. echo "$as_me:$LINENO: checking for pid_t" >&5
  17762. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17763. if test "${ac_cv_type_pid_t+set}" = set; then
  17764. echo $ECHO_N "(cached) $ECHO_C" >&6
  17765. else
  17766. cat >conftest.$ac_ext <<_ACEOF
  17767. /* confdefs.h. */
  17768. _ACEOF
  17769. cat confdefs.h >>conftest.$ac_ext
  17770. cat >>conftest.$ac_ext <<_ACEOF
  17771. /* end confdefs.h. */
  17772. $ac_includes_default
  17773. int
  17774. main ()
  17775. {
  17776. if ((pid_t *) 0)
  17777. return 0;
  17778. if (sizeof (pid_t))
  17779. return 0;
  17780. ;
  17781. return 0;
  17782. }
  17783. _ACEOF
  17784. rm -f conftest.$ac_objext
  17785. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17786. (eval $ac_compile) 2>conftest.er1
  17787. ac_status=$?
  17788. grep -v '^ *+' conftest.er1 >conftest.err
  17789. rm -f conftest.er1
  17790. cat conftest.err >&5
  17791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17792. (exit $ac_status); } &&
  17793. { ac_try='test -z "$ac_c_werror_flag"
  17794. || test ! -s conftest.err'
  17795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17796. (eval $ac_try) 2>&5
  17797. ac_status=$?
  17798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17799. (exit $ac_status); }; } &&
  17800. { ac_try='test -s conftest.$ac_objext'
  17801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17802. (eval $ac_try) 2>&5
  17803. ac_status=$?
  17804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17805. (exit $ac_status); }; }; then
  17806. ac_cv_type_pid_t=yes
  17807. else
  17808. echo "$as_me: failed program was:" >&5
  17809. sed 's/^/| /' conftest.$ac_ext >&5
  17810. ac_cv_type_pid_t=no
  17811. fi
  17812. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17813. fi
  17814. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17815. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17816. if test $ac_cv_type_pid_t = yes; then
  17817. :
  17818. else
  17819. cat >>confdefs.h <<_ACEOF
  17820. #define pid_t int
  17821. _ACEOF
  17822. fi
  17823. echo "$as_me:$LINENO: checking for size_t" >&5
  17824. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17825. if test "${ac_cv_type_size_t+set}" = set; then
  17826. echo $ECHO_N "(cached) $ECHO_C" >&6
  17827. else
  17828. cat >conftest.$ac_ext <<_ACEOF
  17829. /* confdefs.h. */
  17830. _ACEOF
  17831. cat confdefs.h >>conftest.$ac_ext
  17832. cat >>conftest.$ac_ext <<_ACEOF
  17833. /* end confdefs.h. */
  17834. $ac_includes_default
  17835. int
  17836. main ()
  17837. {
  17838. if ((size_t *) 0)
  17839. return 0;
  17840. if (sizeof (size_t))
  17841. return 0;
  17842. ;
  17843. return 0;
  17844. }
  17845. _ACEOF
  17846. rm -f conftest.$ac_objext
  17847. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17848. (eval $ac_compile) 2>conftest.er1
  17849. ac_status=$?
  17850. grep -v '^ *+' conftest.er1 >conftest.err
  17851. rm -f conftest.er1
  17852. cat conftest.err >&5
  17853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17854. (exit $ac_status); } &&
  17855. { ac_try='test -z "$ac_c_werror_flag"
  17856. || test ! -s conftest.err'
  17857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17858. (eval $ac_try) 2>&5
  17859. ac_status=$?
  17860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17861. (exit $ac_status); }; } &&
  17862. { ac_try='test -s conftest.$ac_objext'
  17863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17864. (eval $ac_try) 2>&5
  17865. ac_status=$?
  17866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17867. (exit $ac_status); }; }; then
  17868. ac_cv_type_size_t=yes
  17869. else
  17870. echo "$as_me: failed program was:" >&5
  17871. sed 's/^/| /' conftest.$ac_ext >&5
  17872. ac_cv_type_size_t=no
  17873. fi
  17874. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17875. fi
  17876. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17877. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17878. if test $ac_cv_type_size_t = yes; then
  17879. :
  17880. else
  17881. cat >>confdefs.h <<_ACEOF
  17882. #define size_t unsigned
  17883. _ACEOF
  17884. fi
  17885. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17886. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17887. if test "${ac_cv_header_time+set}" = set; then
  17888. echo $ECHO_N "(cached) $ECHO_C" >&6
  17889. else
  17890. cat >conftest.$ac_ext <<_ACEOF
  17891. /* confdefs.h. */
  17892. _ACEOF
  17893. cat confdefs.h >>conftest.$ac_ext
  17894. cat >>conftest.$ac_ext <<_ACEOF
  17895. /* end confdefs.h. */
  17896. #include <sys/types.h>
  17897. #include <sys/time.h>
  17898. #include <time.h>
  17899. int
  17900. main ()
  17901. {
  17902. if ((struct tm *) 0)
  17903. return 0;
  17904. ;
  17905. return 0;
  17906. }
  17907. _ACEOF
  17908. rm -f conftest.$ac_objext
  17909. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17910. (eval $ac_compile) 2>conftest.er1
  17911. ac_status=$?
  17912. grep -v '^ *+' conftest.er1 >conftest.err
  17913. rm -f conftest.er1
  17914. cat conftest.err >&5
  17915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17916. (exit $ac_status); } &&
  17917. { ac_try='test -z "$ac_c_werror_flag"
  17918. || test ! -s conftest.err'
  17919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17920. (eval $ac_try) 2>&5
  17921. ac_status=$?
  17922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17923. (exit $ac_status); }; } &&
  17924. { ac_try='test -s conftest.$ac_objext'
  17925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17926. (eval $ac_try) 2>&5
  17927. ac_status=$?
  17928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17929. (exit $ac_status); }; }; then
  17930. ac_cv_header_time=yes
  17931. else
  17932. echo "$as_me: failed program was:" >&5
  17933. sed 's/^/| /' conftest.$ac_ext >&5
  17934. ac_cv_header_time=no
  17935. fi
  17936. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17937. fi
  17938. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17939. echo "${ECHO_T}$ac_cv_header_time" >&6
  17940. if test $ac_cv_header_time = yes; then
  17941. cat >>confdefs.h <<\_ACEOF
  17942. #define TIME_WITH_SYS_TIME 1
  17943. _ACEOF
  17944. fi
  17945. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17946. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17947. if test "${ac_cv_struct_tm+set}" = set; then
  17948. echo $ECHO_N "(cached) $ECHO_C" >&6
  17949. else
  17950. cat >conftest.$ac_ext <<_ACEOF
  17951. /* confdefs.h. */
  17952. _ACEOF
  17953. cat confdefs.h >>conftest.$ac_ext
  17954. cat >>conftest.$ac_ext <<_ACEOF
  17955. /* end confdefs.h. */
  17956. #include <sys/types.h>
  17957. #include <time.h>
  17958. int
  17959. main ()
  17960. {
  17961. struct tm *tp; tp->tm_sec;
  17962. ;
  17963. return 0;
  17964. }
  17965. _ACEOF
  17966. rm -f conftest.$ac_objext
  17967. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17968. (eval $ac_compile) 2>conftest.er1
  17969. ac_status=$?
  17970. grep -v '^ *+' conftest.er1 >conftest.err
  17971. rm -f conftest.er1
  17972. cat conftest.err >&5
  17973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17974. (exit $ac_status); } &&
  17975. { ac_try='test -z "$ac_c_werror_flag"
  17976. || test ! -s conftest.err'
  17977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17978. (eval $ac_try) 2>&5
  17979. ac_status=$?
  17980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17981. (exit $ac_status); }; } &&
  17982. { ac_try='test -s conftest.$ac_objext'
  17983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17984. (eval $ac_try) 2>&5
  17985. ac_status=$?
  17986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17987. (exit $ac_status); }; }; then
  17988. ac_cv_struct_tm=time.h
  17989. else
  17990. echo "$as_me: failed program was:" >&5
  17991. sed 's/^/| /' conftest.$ac_ext >&5
  17992. ac_cv_struct_tm=sys/time.h
  17993. fi
  17994. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17995. fi
  17996. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  17997. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  17998. if test $ac_cv_struct_tm = sys/time.h; then
  17999. cat >>confdefs.h <<\_ACEOF
  18000. #define TM_IN_SYS_TIME 1
  18001. _ACEOF
  18002. fi
  18003. # Checks for library functions.
  18004. for ac_header in unistd.h
  18005. do
  18006. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18007. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18008. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18009. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18010. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18011. echo $ECHO_N "(cached) $ECHO_C" >&6
  18012. fi
  18013. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18014. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18015. else
  18016. # Is the header compilable?
  18017. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18018. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18019. cat >conftest.$ac_ext <<_ACEOF
  18020. /* confdefs.h. */
  18021. _ACEOF
  18022. cat confdefs.h >>conftest.$ac_ext
  18023. cat >>conftest.$ac_ext <<_ACEOF
  18024. /* end confdefs.h. */
  18025. $ac_includes_default
  18026. #include <$ac_header>
  18027. _ACEOF
  18028. rm -f conftest.$ac_objext
  18029. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18030. (eval $ac_compile) 2>conftest.er1
  18031. ac_status=$?
  18032. grep -v '^ *+' conftest.er1 >conftest.err
  18033. rm -f conftest.er1
  18034. cat conftest.err >&5
  18035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18036. (exit $ac_status); } &&
  18037. { ac_try='test -z "$ac_c_werror_flag"
  18038. || test ! -s conftest.err'
  18039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18040. (eval $ac_try) 2>&5
  18041. ac_status=$?
  18042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18043. (exit $ac_status); }; } &&
  18044. { ac_try='test -s conftest.$ac_objext'
  18045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18046. (eval $ac_try) 2>&5
  18047. ac_status=$?
  18048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18049. (exit $ac_status); }; }; then
  18050. ac_header_compiler=yes
  18051. else
  18052. echo "$as_me: failed program was:" >&5
  18053. sed 's/^/| /' conftest.$ac_ext >&5
  18054. ac_header_compiler=no
  18055. fi
  18056. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18057. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18058. echo "${ECHO_T}$ac_header_compiler" >&6
  18059. # Is the header present?
  18060. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18061. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18062. cat >conftest.$ac_ext <<_ACEOF
  18063. /* confdefs.h. */
  18064. _ACEOF
  18065. cat confdefs.h >>conftest.$ac_ext
  18066. cat >>conftest.$ac_ext <<_ACEOF
  18067. /* end confdefs.h. */
  18068. #include <$ac_header>
  18069. _ACEOF
  18070. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18071. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18072. ac_status=$?
  18073. grep -v '^ *+' conftest.er1 >conftest.err
  18074. rm -f conftest.er1
  18075. cat conftest.err >&5
  18076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18077. (exit $ac_status); } >/dev/null; then
  18078. if test -s conftest.err; then
  18079. ac_cpp_err=$ac_c_preproc_warn_flag
  18080. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18081. else
  18082. ac_cpp_err=
  18083. fi
  18084. else
  18085. ac_cpp_err=yes
  18086. fi
  18087. if test -z "$ac_cpp_err"; then
  18088. ac_header_preproc=yes
  18089. else
  18090. echo "$as_me: failed program was:" >&5
  18091. sed 's/^/| /' conftest.$ac_ext >&5
  18092. ac_header_preproc=no
  18093. fi
  18094. rm -f conftest.err conftest.$ac_ext
  18095. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18096. echo "${ECHO_T}$ac_header_preproc" >&6
  18097. # So? What about this header?
  18098. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18099. yes:no: )
  18100. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18101. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18102. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18103. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18104. ac_header_preproc=yes
  18105. ;;
  18106. no:yes:* )
  18107. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18108. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18109. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18110. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18111. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18112. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18113. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18114. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18115. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18116. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18117. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18118. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18119. (
  18120. cat <<\_ASBOX
  18121. ## ------------------------------------------ ##
  18122. ## Report this to http://bugzilla.redhat.com/ ##
  18123. ## ------------------------------------------ ##
  18124. _ASBOX
  18125. ) |
  18126. sed "s/^/$as_me: WARNING: /" >&2
  18127. ;;
  18128. esac
  18129. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18130. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18131. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18132. echo $ECHO_N "(cached) $ECHO_C" >&6
  18133. else
  18134. eval "$as_ac_Header=\$ac_header_preproc"
  18135. fi
  18136. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18137. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18138. fi
  18139. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18140. cat >>confdefs.h <<_ACEOF
  18141. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18142. _ACEOF
  18143. fi
  18144. done
  18145. echo "$as_me:$LINENO: checking for working chown" >&5
  18146. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18147. if test "${ac_cv_func_chown_works+set}" = set; then
  18148. echo $ECHO_N "(cached) $ECHO_C" >&6
  18149. else
  18150. if test "$cross_compiling" = yes; then
  18151. ac_cv_func_chown_works=no
  18152. else
  18153. cat >conftest.$ac_ext <<_ACEOF
  18154. /* confdefs.h. */
  18155. _ACEOF
  18156. cat confdefs.h >>conftest.$ac_ext
  18157. cat >>conftest.$ac_ext <<_ACEOF
  18158. /* end confdefs.h. */
  18159. $ac_includes_default
  18160. #include <fcntl.h>
  18161. int
  18162. main ()
  18163. {
  18164. char *f = "conftest.chown";
  18165. struct stat before, after;
  18166. if (creat (f, 0600) < 0)
  18167. exit (1);
  18168. if (stat (f, &before) < 0)
  18169. exit (1);
  18170. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18171. exit (1);
  18172. if (stat (f, &after) < 0)
  18173. exit (1);
  18174. exit ((before.st_uid == after.st_uid
  18175. && before.st_gid == after.st_gid) ? 0 : 1);
  18176. ;
  18177. return 0;
  18178. }
  18179. _ACEOF
  18180. rm -f conftest$ac_exeext
  18181. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18182. (eval $ac_link) 2>&5
  18183. ac_status=$?
  18184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18185. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18187. (eval $ac_try) 2>&5
  18188. ac_status=$?
  18189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18190. (exit $ac_status); }; }; then
  18191. ac_cv_func_chown_works=yes
  18192. else
  18193. echo "$as_me: program exited with status $ac_status" >&5
  18194. echo "$as_me: failed program was:" >&5
  18195. sed 's/^/| /' conftest.$ac_ext >&5
  18196. ( exit $ac_status )
  18197. ac_cv_func_chown_works=no
  18198. fi
  18199. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18200. fi
  18201. rm -f conftest.chown
  18202. fi
  18203. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18204. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18205. if test $ac_cv_func_chown_works = yes; then
  18206. cat >>confdefs.h <<\_ACEOF
  18207. #define HAVE_CHOWN 1
  18208. _ACEOF
  18209. fi
  18210. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18211. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18212. if test "${ac_cv_func_closedir_void+set}" = set; then
  18213. echo $ECHO_N "(cached) $ECHO_C" >&6
  18214. else
  18215. if test "$cross_compiling" = yes; then
  18216. ac_cv_func_closedir_void=yes
  18217. else
  18218. cat >conftest.$ac_ext <<_ACEOF
  18219. /* confdefs.h. */
  18220. _ACEOF
  18221. cat confdefs.h >>conftest.$ac_ext
  18222. cat >>conftest.$ac_ext <<_ACEOF
  18223. /* end confdefs.h. */
  18224. $ac_includes_default
  18225. #include <$ac_header_dirent>
  18226. #ifndef __cplusplus
  18227. int closedir ();
  18228. #endif
  18229. int
  18230. main ()
  18231. {
  18232. exit (closedir (opendir (".")) != 0);
  18233. ;
  18234. return 0;
  18235. }
  18236. _ACEOF
  18237. rm -f conftest$ac_exeext
  18238. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18239. (eval $ac_link) 2>&5
  18240. ac_status=$?
  18241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18242. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18244. (eval $ac_try) 2>&5
  18245. ac_status=$?
  18246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18247. (exit $ac_status); }; }; then
  18248. ac_cv_func_closedir_void=no
  18249. else
  18250. echo "$as_me: program exited with status $ac_status" >&5
  18251. echo "$as_me: failed program was:" >&5
  18252. sed 's/^/| /' conftest.$ac_ext >&5
  18253. ( exit $ac_status )
  18254. ac_cv_func_closedir_void=yes
  18255. fi
  18256. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18257. fi
  18258. fi
  18259. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18260. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18261. if test $ac_cv_func_closedir_void = yes; then
  18262. cat >>confdefs.h <<\_ACEOF
  18263. #define CLOSEDIR_VOID 1
  18264. _ACEOF
  18265. fi
  18266. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18267. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18268. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18269. echo $ECHO_N "(cached) $ECHO_C" >&6
  18270. else
  18271. cat >conftest.$ac_ext <<_ACEOF
  18272. /* confdefs.h. */
  18273. _ACEOF
  18274. cat confdefs.h >>conftest.$ac_ext
  18275. cat >>conftest.$ac_ext <<_ACEOF
  18276. /* end confdefs.h. */
  18277. $ac_includes_default
  18278. int
  18279. main ()
  18280. {
  18281. error_at_line (0, 0, "", 0, "");
  18282. ;
  18283. return 0;
  18284. }
  18285. _ACEOF
  18286. rm -f conftest.$ac_objext conftest$ac_exeext
  18287. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18288. (eval $ac_link) 2>conftest.er1
  18289. ac_status=$?
  18290. grep -v '^ *+' conftest.er1 >conftest.err
  18291. rm -f conftest.er1
  18292. cat conftest.err >&5
  18293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18294. (exit $ac_status); } &&
  18295. { ac_try='test -z "$ac_c_werror_flag"
  18296. || test ! -s conftest.err'
  18297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18298. (eval $ac_try) 2>&5
  18299. ac_status=$?
  18300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18301. (exit $ac_status); }; } &&
  18302. { ac_try='test -s conftest$ac_exeext'
  18303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18304. (eval $ac_try) 2>&5
  18305. ac_status=$?
  18306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18307. (exit $ac_status); }; }; then
  18308. ac_cv_lib_error_at_line=yes
  18309. else
  18310. echo "$as_me: failed program was:" >&5
  18311. sed 's/^/| /' conftest.$ac_ext >&5
  18312. ac_cv_lib_error_at_line=no
  18313. fi
  18314. rm -f conftest.err conftest.$ac_objext \
  18315. conftest$ac_exeext conftest.$ac_ext
  18316. fi
  18317. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18318. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18319. if test $ac_cv_lib_error_at_line = no; then
  18320. case $LIBOBJS in
  18321. "error.$ac_objext" | \
  18322. *" error.$ac_objext" | \
  18323. "error.$ac_objext "* | \
  18324. *" error.$ac_objext "* ) ;;
  18325. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18326. esac
  18327. fi
  18328. for ac_header in unistd.h vfork.h
  18329. do
  18330. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18331. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18332. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18333. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18334. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18335. echo $ECHO_N "(cached) $ECHO_C" >&6
  18336. fi
  18337. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18338. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18339. else
  18340. # Is the header compilable?
  18341. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18342. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18343. cat >conftest.$ac_ext <<_ACEOF
  18344. /* confdefs.h. */
  18345. _ACEOF
  18346. cat confdefs.h >>conftest.$ac_ext
  18347. cat >>conftest.$ac_ext <<_ACEOF
  18348. /* end confdefs.h. */
  18349. $ac_includes_default
  18350. #include <$ac_header>
  18351. _ACEOF
  18352. rm -f conftest.$ac_objext
  18353. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18354. (eval $ac_compile) 2>conftest.er1
  18355. ac_status=$?
  18356. grep -v '^ *+' conftest.er1 >conftest.err
  18357. rm -f conftest.er1
  18358. cat conftest.err >&5
  18359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18360. (exit $ac_status); } &&
  18361. { ac_try='test -z "$ac_c_werror_flag"
  18362. || test ! -s conftest.err'
  18363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18364. (eval $ac_try) 2>&5
  18365. ac_status=$?
  18366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18367. (exit $ac_status); }; } &&
  18368. { ac_try='test -s conftest.$ac_objext'
  18369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18370. (eval $ac_try) 2>&5
  18371. ac_status=$?
  18372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18373. (exit $ac_status); }; }; then
  18374. ac_header_compiler=yes
  18375. else
  18376. echo "$as_me: failed program was:" >&5
  18377. sed 's/^/| /' conftest.$ac_ext >&5
  18378. ac_header_compiler=no
  18379. fi
  18380. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18381. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18382. echo "${ECHO_T}$ac_header_compiler" >&6
  18383. # Is the header present?
  18384. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18385. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18386. cat >conftest.$ac_ext <<_ACEOF
  18387. /* confdefs.h. */
  18388. _ACEOF
  18389. cat confdefs.h >>conftest.$ac_ext
  18390. cat >>conftest.$ac_ext <<_ACEOF
  18391. /* end confdefs.h. */
  18392. #include <$ac_header>
  18393. _ACEOF
  18394. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18395. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18396. ac_status=$?
  18397. grep -v '^ *+' conftest.er1 >conftest.err
  18398. rm -f conftest.er1
  18399. cat conftest.err >&5
  18400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18401. (exit $ac_status); } >/dev/null; then
  18402. if test -s conftest.err; then
  18403. ac_cpp_err=$ac_c_preproc_warn_flag
  18404. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18405. else
  18406. ac_cpp_err=
  18407. fi
  18408. else
  18409. ac_cpp_err=yes
  18410. fi
  18411. if test -z "$ac_cpp_err"; then
  18412. ac_header_preproc=yes
  18413. else
  18414. echo "$as_me: failed program was:" >&5
  18415. sed 's/^/| /' conftest.$ac_ext >&5
  18416. ac_header_preproc=no
  18417. fi
  18418. rm -f conftest.err conftest.$ac_ext
  18419. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18420. echo "${ECHO_T}$ac_header_preproc" >&6
  18421. # So? What about this header?
  18422. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18423. yes:no: )
  18424. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18425. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18426. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18427. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18428. ac_header_preproc=yes
  18429. ;;
  18430. no:yes:* )
  18431. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18432. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18433. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18434. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18435. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18436. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18437. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18438. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18439. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18440. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18441. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18442. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18443. (
  18444. cat <<\_ASBOX
  18445. ## ------------------------------------------ ##
  18446. ## Report this to http://bugzilla.redhat.com/ ##
  18447. ## ------------------------------------------ ##
  18448. _ASBOX
  18449. ) |
  18450. sed "s/^/$as_me: WARNING: /" >&2
  18451. ;;
  18452. esac
  18453. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18454. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18455. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18456. echo $ECHO_N "(cached) $ECHO_C" >&6
  18457. else
  18458. eval "$as_ac_Header=\$ac_header_preproc"
  18459. fi
  18460. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18461. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18462. fi
  18463. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18464. cat >>confdefs.h <<_ACEOF
  18465. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18466. _ACEOF
  18467. fi
  18468. done
  18469. for ac_func in fork vfork
  18470. do
  18471. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18472. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18473. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18474. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18475. echo $ECHO_N "(cached) $ECHO_C" >&6
  18476. else
  18477. cat >conftest.$ac_ext <<_ACEOF
  18478. /* confdefs.h. */
  18479. _ACEOF
  18480. cat confdefs.h >>conftest.$ac_ext
  18481. cat >>conftest.$ac_ext <<_ACEOF
  18482. /* end confdefs.h. */
  18483. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18484. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18485. #define $ac_func innocuous_$ac_func
  18486. /* System header to define __stub macros and hopefully few prototypes,
  18487. which can conflict with char $ac_func (); below.
  18488. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18489. <limits.h> exists even on freestanding compilers. */
  18490. #ifdef __STDC__
  18491. # include <limits.h>
  18492. #else
  18493. # include <assert.h>
  18494. #endif
  18495. #undef $ac_func
  18496. /* Override any gcc2 internal prototype to avoid an error. */
  18497. #ifdef __cplusplus
  18498. extern "C"
  18499. {
  18500. #endif
  18501. /* We use char because int might match the return type of a gcc2
  18502. builtin and then its argument prototype would still apply. */
  18503. char $ac_func ();
  18504. /* The GNU C library defines this for functions which it implements
  18505. to always fail with ENOSYS. Some functions are actually named
  18506. something starting with __ and the normal name is an alias. */
  18507. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18508. choke me
  18509. #else
  18510. char (*f) () = $ac_func;
  18511. #endif
  18512. #ifdef __cplusplus
  18513. }
  18514. #endif
  18515. int
  18516. main ()
  18517. {
  18518. return f != $ac_func;
  18519. ;
  18520. return 0;
  18521. }
  18522. _ACEOF
  18523. rm -f conftest.$ac_objext conftest$ac_exeext
  18524. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18525. (eval $ac_link) 2>conftest.er1
  18526. ac_status=$?
  18527. grep -v '^ *+' conftest.er1 >conftest.err
  18528. rm -f conftest.er1
  18529. cat conftest.err >&5
  18530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18531. (exit $ac_status); } &&
  18532. { ac_try='test -z "$ac_c_werror_flag"
  18533. || test ! -s conftest.err'
  18534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18535. (eval $ac_try) 2>&5
  18536. ac_status=$?
  18537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18538. (exit $ac_status); }; } &&
  18539. { ac_try='test -s conftest$ac_exeext'
  18540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18541. (eval $ac_try) 2>&5
  18542. ac_status=$?
  18543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18544. (exit $ac_status); }; }; then
  18545. eval "$as_ac_var=yes"
  18546. else
  18547. echo "$as_me: failed program was:" >&5
  18548. sed 's/^/| /' conftest.$ac_ext >&5
  18549. eval "$as_ac_var=no"
  18550. fi
  18551. rm -f conftest.err conftest.$ac_objext \
  18552. conftest$ac_exeext conftest.$ac_ext
  18553. fi
  18554. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18555. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18556. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18557. cat >>confdefs.h <<_ACEOF
  18558. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18559. _ACEOF
  18560. fi
  18561. done
  18562. if test "x$ac_cv_func_fork" = xyes; then
  18563. echo "$as_me:$LINENO: checking for working fork" >&5
  18564. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18565. if test "${ac_cv_func_fork_works+set}" = set; then
  18566. echo $ECHO_N "(cached) $ECHO_C" >&6
  18567. else
  18568. if test "$cross_compiling" = yes; then
  18569. ac_cv_func_fork_works=cross
  18570. else
  18571. cat >conftest.$ac_ext <<_ACEOF
  18572. /* By Ruediger Kuhlmann. */
  18573. #include <sys/types.h>
  18574. #if HAVE_UNISTD_H
  18575. # include <unistd.h>
  18576. #endif
  18577. /* Some systems only have a dummy stub for fork() */
  18578. int main ()
  18579. {
  18580. if (fork() < 0)
  18581. exit (1);
  18582. exit (0);
  18583. }
  18584. _ACEOF
  18585. rm -f conftest$ac_exeext
  18586. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18587. (eval $ac_link) 2>&5
  18588. ac_status=$?
  18589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18590. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18592. (eval $ac_try) 2>&5
  18593. ac_status=$?
  18594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18595. (exit $ac_status); }; }; then
  18596. ac_cv_func_fork_works=yes
  18597. else
  18598. echo "$as_me: program exited with status $ac_status" >&5
  18599. echo "$as_me: failed program was:" >&5
  18600. sed 's/^/| /' conftest.$ac_ext >&5
  18601. ( exit $ac_status )
  18602. ac_cv_func_fork_works=no
  18603. fi
  18604. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18605. fi
  18606. fi
  18607. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18608. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18609. else
  18610. ac_cv_func_fork_works=$ac_cv_func_fork
  18611. fi
  18612. if test "x$ac_cv_func_fork_works" = xcross; then
  18613. case $host in
  18614. *-*-amigaos* | *-*-msdosdjgpp*)
  18615. # Override, as these systems have only a dummy fork() stub
  18616. ac_cv_func_fork_works=no
  18617. ;;
  18618. *)
  18619. ac_cv_func_fork_works=yes
  18620. ;;
  18621. esac
  18622. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18623. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18624. fi
  18625. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18626. if test "x$ac_cv_func_vfork" = xyes; then
  18627. echo "$as_me:$LINENO: checking for working vfork" >&5
  18628. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18629. if test "${ac_cv_func_vfork_works+set}" = set; then
  18630. echo $ECHO_N "(cached) $ECHO_C" >&6
  18631. else
  18632. if test "$cross_compiling" = yes; then
  18633. ac_cv_func_vfork_works=cross
  18634. else
  18635. cat >conftest.$ac_ext <<_ACEOF
  18636. /* confdefs.h. */
  18637. _ACEOF
  18638. cat confdefs.h >>conftest.$ac_ext
  18639. cat >>conftest.$ac_ext <<_ACEOF
  18640. /* end confdefs.h. */
  18641. /* Thanks to Paul Eggert for this test. */
  18642. #include <stdio.h>
  18643. #include <stdlib.h>
  18644. #include <sys/types.h>
  18645. #include <sys/stat.h>
  18646. #include <sys/wait.h>
  18647. #if HAVE_UNISTD_H
  18648. # include <unistd.h>
  18649. #endif
  18650. #if HAVE_VFORK_H
  18651. # include <vfork.h>
  18652. #endif
  18653. /* On some sparc systems, changes by the child to local and incoming
  18654. argument registers are propagated back to the parent. The compiler
  18655. is told about this with #include <vfork.h>, but some compilers
  18656. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18657. static variable whose address is put into a register that is
  18658. clobbered by the vfork. */
  18659. static void
  18660. #ifdef __cplusplus
  18661. sparc_address_test (int arg)
  18662. # else
  18663. sparc_address_test (arg) int arg;
  18664. #endif
  18665. {
  18666. static pid_t child;
  18667. if (!child) {
  18668. child = vfork ();
  18669. if (child < 0) {
  18670. perror ("vfork");
  18671. _exit(2);
  18672. }
  18673. if (!child) {
  18674. arg = getpid();
  18675. write(-1, "", 0);
  18676. _exit (arg);
  18677. }
  18678. }
  18679. }
  18680. int
  18681. main ()
  18682. {
  18683. pid_t parent = getpid ();
  18684. pid_t child;
  18685. sparc_address_test (0);
  18686. child = vfork ();
  18687. if (child == 0) {
  18688. /* Here is another test for sparc vfork register problems. This
  18689. test uses lots of local variables, at least as many local
  18690. variables as main has allocated so far including compiler
  18691. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18692. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18693. reuse the register of parent for one of the local variables,
  18694. since it will think that parent can't possibly be used any more
  18695. in this routine. Assigning to the local variable will thus
  18696. munge parent in the parent process. */
  18697. pid_t
  18698. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18699. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18700. /* Convince the compiler that p..p7 are live; otherwise, it might
  18701. use the same hardware register for all 8 local variables. */
  18702. if (p != p1 || p != p2 || p != p3 || p != p4
  18703. || p != p5 || p != p6 || p != p7)
  18704. _exit(1);
  18705. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18706. from child file descriptors. If the child closes a descriptor
  18707. before it execs or exits, this munges the parent's descriptor
  18708. as well. Test for this by closing stdout in the child. */
  18709. _exit(close(fileno(stdout)) != 0);
  18710. } else {
  18711. int status;
  18712. struct stat st;
  18713. while (wait(&status) != child)
  18714. ;
  18715. exit(
  18716. /* Was there some problem with vforking? */
  18717. child < 0
  18718. /* Did the child fail? (This shouldn't happen.) */
  18719. || status
  18720. /* Did the vfork/compiler bug occur? */
  18721. || parent != getpid()
  18722. /* Did the file descriptor bug occur? */
  18723. || fstat(fileno(stdout), &st) != 0
  18724. );
  18725. }
  18726. }
  18727. _ACEOF
  18728. rm -f conftest$ac_exeext
  18729. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18730. (eval $ac_link) 2>&5
  18731. ac_status=$?
  18732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18733. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18735. (eval $ac_try) 2>&5
  18736. ac_status=$?
  18737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18738. (exit $ac_status); }; }; then
  18739. ac_cv_func_vfork_works=yes
  18740. else
  18741. echo "$as_me: program exited with status $ac_status" >&5
  18742. echo "$as_me: failed program was:" >&5
  18743. sed 's/^/| /' conftest.$ac_ext >&5
  18744. ( exit $ac_status )
  18745. ac_cv_func_vfork_works=no
  18746. fi
  18747. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18748. fi
  18749. fi
  18750. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18751. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18752. fi;
  18753. if test "x$ac_cv_func_fork_works" = xcross; then
  18754. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18755. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18756. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18757. fi
  18758. if test "x$ac_cv_func_vfork_works" = xyes; then
  18759. cat >>confdefs.h <<\_ACEOF
  18760. #define HAVE_WORKING_VFORK 1
  18761. _ACEOF
  18762. else
  18763. cat >>confdefs.h <<\_ACEOF
  18764. #define vfork fork
  18765. _ACEOF
  18766. fi
  18767. if test "x$ac_cv_func_fork_works" = xyes; then
  18768. cat >>confdefs.h <<\_ACEOF
  18769. #define HAVE_WORKING_FORK 1
  18770. _ACEOF
  18771. fi
  18772. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18773. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18774. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18775. echo $ECHO_N "(cached) $ECHO_C" >&6
  18776. else
  18777. rm -f conftest.sym conftest.file
  18778. echo >conftest.file
  18779. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18780. if test "$cross_compiling" = yes; then
  18781. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18782. else
  18783. cat >conftest.$ac_ext <<_ACEOF
  18784. /* confdefs.h. */
  18785. _ACEOF
  18786. cat confdefs.h >>conftest.$ac_ext
  18787. cat >>conftest.$ac_ext <<_ACEOF
  18788. /* end confdefs.h. */
  18789. $ac_includes_default
  18790. int
  18791. main ()
  18792. {
  18793. struct stat sbuf;
  18794. /* Linux will dereference the symlink and fail.
  18795. That is better in the sense that it means we will not
  18796. have to compile and use the lstat wrapper. */
  18797. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18798. ;
  18799. return 0;
  18800. }
  18801. _ACEOF
  18802. rm -f conftest$ac_exeext
  18803. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18804. (eval $ac_link) 2>&5
  18805. ac_status=$?
  18806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18807. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18809. (eval $ac_try) 2>&5
  18810. ac_status=$?
  18811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18812. (exit $ac_status); }; }; then
  18813. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18814. else
  18815. echo "$as_me: program exited with status $ac_status" >&5
  18816. echo "$as_me: failed program was:" >&5
  18817. sed 's/^/| /' conftest.$ac_ext >&5
  18818. ( exit $ac_status )
  18819. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18820. fi
  18821. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18822. fi
  18823. else
  18824. # If the `ln -s' command failed, then we probably don't even
  18825. # have an lstat function.
  18826. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18827. fi
  18828. rm -f conftest.sym conftest.file
  18829. fi
  18830. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18831. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18832. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18833. cat >>confdefs.h <<_ACEOF
  18834. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18835. _ACEOF
  18836. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18837. case $LIBOBJS in
  18838. "lstat.$ac_objext" | \
  18839. *" lstat.$ac_objext" | \
  18840. "lstat.$ac_objext "* | \
  18841. *" lstat.$ac_objext "* ) ;;
  18842. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18843. esac
  18844. fi
  18845. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18846. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18847. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18848. echo $ECHO_N "(cached) $ECHO_C" >&6
  18849. else
  18850. if test "$cross_compiling" = yes; then
  18851. ac_cv_func_lstat_empty_string_bug=yes
  18852. else
  18853. cat >conftest.$ac_ext <<_ACEOF
  18854. /* confdefs.h. */
  18855. _ACEOF
  18856. cat confdefs.h >>conftest.$ac_ext
  18857. cat >>conftest.$ac_ext <<_ACEOF
  18858. /* end confdefs.h. */
  18859. $ac_includes_default
  18860. int
  18861. main ()
  18862. {
  18863. struct stat sbuf;
  18864. exit (lstat ("", &sbuf) ? 1 : 0);
  18865. ;
  18866. return 0;
  18867. }
  18868. _ACEOF
  18869. rm -f conftest$ac_exeext
  18870. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18871. (eval $ac_link) 2>&5
  18872. ac_status=$?
  18873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18874. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18876. (eval $ac_try) 2>&5
  18877. ac_status=$?
  18878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18879. (exit $ac_status); }; }; then
  18880. ac_cv_func_lstat_empty_string_bug=yes
  18881. else
  18882. echo "$as_me: program exited with status $ac_status" >&5
  18883. echo "$as_me: failed program was:" >&5
  18884. sed 's/^/| /' conftest.$ac_ext >&5
  18885. ( exit $ac_status )
  18886. ac_cv_func_lstat_empty_string_bug=no
  18887. fi
  18888. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18889. fi
  18890. fi
  18891. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18892. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18893. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18894. case $LIBOBJS in
  18895. "lstat.$ac_objext" | \
  18896. *" lstat.$ac_objext" | \
  18897. "lstat.$ac_objext "* | \
  18898. *" lstat.$ac_objext "* ) ;;
  18899. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18900. esac
  18901. cat >>confdefs.h <<_ACEOF
  18902. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18903. _ACEOF
  18904. fi
  18905. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18906. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18907. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18908. echo $ECHO_N "(cached) $ECHO_C" >&6
  18909. else
  18910. rm -f conftest.sym conftest.file
  18911. echo >conftest.file
  18912. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18913. if test "$cross_compiling" = yes; then
  18914. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18915. else
  18916. cat >conftest.$ac_ext <<_ACEOF
  18917. /* confdefs.h. */
  18918. _ACEOF
  18919. cat confdefs.h >>conftest.$ac_ext
  18920. cat >>conftest.$ac_ext <<_ACEOF
  18921. /* end confdefs.h. */
  18922. $ac_includes_default
  18923. int
  18924. main ()
  18925. {
  18926. struct stat sbuf;
  18927. /* Linux will dereference the symlink and fail.
  18928. That is better in the sense that it means we will not
  18929. have to compile and use the lstat wrapper. */
  18930. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18931. ;
  18932. return 0;
  18933. }
  18934. _ACEOF
  18935. rm -f conftest$ac_exeext
  18936. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18937. (eval $ac_link) 2>&5
  18938. ac_status=$?
  18939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18940. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18942. (eval $ac_try) 2>&5
  18943. ac_status=$?
  18944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18945. (exit $ac_status); }; }; then
  18946. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18947. else
  18948. echo "$as_me: program exited with status $ac_status" >&5
  18949. echo "$as_me: failed program was:" >&5
  18950. sed 's/^/| /' conftest.$ac_ext >&5
  18951. ( exit $ac_status )
  18952. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18953. fi
  18954. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18955. fi
  18956. else
  18957. # If the `ln -s' command failed, then we probably don't even
  18958. # have an lstat function.
  18959. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18960. fi
  18961. rm -f conftest.sym conftest.file
  18962. fi
  18963. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18964. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18965. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18966. cat >>confdefs.h <<_ACEOF
  18967. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18968. _ACEOF
  18969. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18970. case $LIBOBJS in
  18971. "lstat.$ac_objext" | \
  18972. *" lstat.$ac_objext" | \
  18973. "lstat.$ac_objext "* | \
  18974. *" lstat.$ac_objext "* ) ;;
  18975. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18976. esac
  18977. fi
  18978. for ac_header in stdlib.h
  18979. do
  18980. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18981. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18982. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18983. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18984. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18985. echo $ECHO_N "(cached) $ECHO_C" >&6
  18986. fi
  18987. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18988. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18989. else
  18990. # Is the header compilable?
  18991. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18992. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18993. cat >conftest.$ac_ext <<_ACEOF
  18994. /* confdefs.h. */
  18995. _ACEOF
  18996. cat confdefs.h >>conftest.$ac_ext
  18997. cat >>conftest.$ac_ext <<_ACEOF
  18998. /* end confdefs.h. */
  18999. $ac_includes_default
  19000. #include <$ac_header>
  19001. _ACEOF
  19002. rm -f conftest.$ac_objext
  19003. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19004. (eval $ac_compile) 2>conftest.er1
  19005. ac_status=$?
  19006. grep -v '^ *+' conftest.er1 >conftest.err
  19007. rm -f conftest.er1
  19008. cat conftest.err >&5
  19009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19010. (exit $ac_status); } &&
  19011. { ac_try='test -z "$ac_c_werror_flag"
  19012. || test ! -s conftest.err'
  19013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19014. (eval $ac_try) 2>&5
  19015. ac_status=$?
  19016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19017. (exit $ac_status); }; } &&
  19018. { ac_try='test -s conftest.$ac_objext'
  19019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19020. (eval $ac_try) 2>&5
  19021. ac_status=$?
  19022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19023. (exit $ac_status); }; }; then
  19024. ac_header_compiler=yes
  19025. else
  19026. echo "$as_me: failed program was:" >&5
  19027. sed 's/^/| /' conftest.$ac_ext >&5
  19028. ac_header_compiler=no
  19029. fi
  19030. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19031. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19032. echo "${ECHO_T}$ac_header_compiler" >&6
  19033. # Is the header present?
  19034. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19035. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19036. cat >conftest.$ac_ext <<_ACEOF
  19037. /* confdefs.h. */
  19038. _ACEOF
  19039. cat confdefs.h >>conftest.$ac_ext
  19040. cat >>conftest.$ac_ext <<_ACEOF
  19041. /* end confdefs.h. */
  19042. #include <$ac_header>
  19043. _ACEOF
  19044. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19045. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19046. ac_status=$?
  19047. grep -v '^ *+' conftest.er1 >conftest.err
  19048. rm -f conftest.er1
  19049. cat conftest.err >&5
  19050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19051. (exit $ac_status); } >/dev/null; then
  19052. if test -s conftest.err; then
  19053. ac_cpp_err=$ac_c_preproc_warn_flag
  19054. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19055. else
  19056. ac_cpp_err=
  19057. fi
  19058. else
  19059. ac_cpp_err=yes
  19060. fi
  19061. if test -z "$ac_cpp_err"; then
  19062. ac_header_preproc=yes
  19063. else
  19064. echo "$as_me: failed program was:" >&5
  19065. sed 's/^/| /' conftest.$ac_ext >&5
  19066. ac_header_preproc=no
  19067. fi
  19068. rm -f conftest.err conftest.$ac_ext
  19069. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19070. echo "${ECHO_T}$ac_header_preproc" >&6
  19071. # So? What about this header?
  19072. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19073. yes:no: )
  19074. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19075. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19076. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19077. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19078. ac_header_preproc=yes
  19079. ;;
  19080. no:yes:* )
  19081. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19082. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19083. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19084. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19085. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19086. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19087. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19088. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19089. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19090. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19091. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19092. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19093. (
  19094. cat <<\_ASBOX
  19095. ## ------------------------------------------ ##
  19096. ## Report this to http://bugzilla.redhat.com/ ##
  19097. ## ------------------------------------------ ##
  19098. _ASBOX
  19099. ) |
  19100. sed "s/^/$as_me: WARNING: /" >&2
  19101. ;;
  19102. esac
  19103. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19104. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19105. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19106. echo $ECHO_N "(cached) $ECHO_C" >&6
  19107. else
  19108. eval "$as_ac_Header=\$ac_header_preproc"
  19109. fi
  19110. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19111. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19112. fi
  19113. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19114. cat >>confdefs.h <<_ACEOF
  19115. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19116. _ACEOF
  19117. fi
  19118. done
  19119. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19120. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19121. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19122. echo $ECHO_N "(cached) $ECHO_C" >&6
  19123. else
  19124. if test "$cross_compiling" = yes; then
  19125. ac_cv_func_malloc_0_nonnull=no
  19126. else
  19127. cat >conftest.$ac_ext <<_ACEOF
  19128. /* confdefs.h. */
  19129. _ACEOF
  19130. cat confdefs.h >>conftest.$ac_ext
  19131. cat >>conftest.$ac_ext <<_ACEOF
  19132. /* end confdefs.h. */
  19133. #if STDC_HEADERS || HAVE_STDLIB_H
  19134. # include <stdlib.h>
  19135. #else
  19136. char *malloc ();
  19137. #endif
  19138. int
  19139. main ()
  19140. {
  19141. exit (malloc (0) ? 0 : 1);
  19142. ;
  19143. return 0;
  19144. }
  19145. _ACEOF
  19146. rm -f conftest$ac_exeext
  19147. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19148. (eval $ac_link) 2>&5
  19149. ac_status=$?
  19150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19151. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19153. (eval $ac_try) 2>&5
  19154. ac_status=$?
  19155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19156. (exit $ac_status); }; }; then
  19157. ac_cv_func_malloc_0_nonnull=yes
  19158. else
  19159. echo "$as_me: program exited with status $ac_status" >&5
  19160. echo "$as_me: failed program was:" >&5
  19161. sed 's/^/| /' conftest.$ac_ext >&5
  19162. ( exit $ac_status )
  19163. ac_cv_func_malloc_0_nonnull=no
  19164. fi
  19165. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19166. fi
  19167. fi
  19168. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19169. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19170. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19171. cat >>confdefs.h <<\_ACEOF
  19172. #define HAVE_MALLOC 1
  19173. _ACEOF
  19174. else
  19175. cat >>confdefs.h <<\_ACEOF
  19176. #define HAVE_MALLOC 0
  19177. _ACEOF
  19178. case $LIBOBJS in
  19179. "malloc.$ac_objext" | \
  19180. *" malloc.$ac_objext" | \
  19181. "malloc.$ac_objext "* | \
  19182. *" malloc.$ac_objext "* ) ;;
  19183. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19184. esac
  19185. cat >>confdefs.h <<\_ACEOF
  19186. #define malloc rpl_malloc
  19187. _ACEOF
  19188. fi
  19189. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19190. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19191. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19192. echo $ECHO_N "(cached) $ECHO_C" >&6
  19193. else
  19194. if test "$cross_compiling" = yes; then
  19195. ac_cv_func_memcmp_working=no
  19196. else
  19197. cat >conftest.$ac_ext <<_ACEOF
  19198. /* confdefs.h. */
  19199. _ACEOF
  19200. cat confdefs.h >>conftest.$ac_ext
  19201. cat >>conftest.$ac_ext <<_ACEOF
  19202. /* end confdefs.h. */
  19203. $ac_includes_default
  19204. int
  19205. main ()
  19206. {
  19207. /* Some versions of memcmp are not 8-bit clean. */
  19208. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19209. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19210. exit (1);
  19211. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19212. or more and with at least one buffer not starting on a 4-byte boundary.
  19213. William Lewis provided this test program. */
  19214. {
  19215. char foo[21];
  19216. char bar[21];
  19217. int i;
  19218. for (i = 0; i < 4; i++)
  19219. {
  19220. char *a = foo + i;
  19221. char *b = bar + i;
  19222. strcpy (a, "--------01111111");
  19223. strcpy (b, "--------10000000");
  19224. if (memcmp (a, b, 16) >= 0)
  19225. exit (1);
  19226. }
  19227. exit (0);
  19228. }
  19229. ;
  19230. return 0;
  19231. }
  19232. _ACEOF
  19233. rm -f conftest$ac_exeext
  19234. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19235. (eval $ac_link) 2>&5
  19236. ac_status=$?
  19237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19238. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19240. (eval $ac_try) 2>&5
  19241. ac_status=$?
  19242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19243. (exit $ac_status); }; }; then
  19244. ac_cv_func_memcmp_working=yes
  19245. else
  19246. echo "$as_me: program exited with status $ac_status" >&5
  19247. echo "$as_me: failed program was:" >&5
  19248. sed 's/^/| /' conftest.$ac_ext >&5
  19249. ( exit $ac_status )
  19250. ac_cv_func_memcmp_working=no
  19251. fi
  19252. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19253. fi
  19254. fi
  19255. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19256. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19257. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19258. "memcmp.$ac_objext" | \
  19259. *" memcmp.$ac_objext" | \
  19260. "memcmp.$ac_objext "* | \
  19261. *" memcmp.$ac_objext "* ) ;;
  19262. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19263. esac
  19264. for ac_header in stdlib.h unistd.h
  19265. do
  19266. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19267. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19268. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19269. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19270. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19271. echo $ECHO_N "(cached) $ECHO_C" >&6
  19272. fi
  19273. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19274. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19275. else
  19276. # Is the header compilable?
  19277. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19278. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19279. cat >conftest.$ac_ext <<_ACEOF
  19280. /* confdefs.h. */
  19281. _ACEOF
  19282. cat confdefs.h >>conftest.$ac_ext
  19283. cat >>conftest.$ac_ext <<_ACEOF
  19284. /* end confdefs.h. */
  19285. $ac_includes_default
  19286. #include <$ac_header>
  19287. _ACEOF
  19288. rm -f conftest.$ac_objext
  19289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19290. (eval $ac_compile) 2>conftest.er1
  19291. ac_status=$?
  19292. grep -v '^ *+' conftest.er1 >conftest.err
  19293. rm -f conftest.er1
  19294. cat conftest.err >&5
  19295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19296. (exit $ac_status); } &&
  19297. { ac_try='test -z "$ac_c_werror_flag"
  19298. || test ! -s conftest.err'
  19299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19300. (eval $ac_try) 2>&5
  19301. ac_status=$?
  19302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19303. (exit $ac_status); }; } &&
  19304. { ac_try='test -s conftest.$ac_objext'
  19305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19306. (eval $ac_try) 2>&5
  19307. ac_status=$?
  19308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19309. (exit $ac_status); }; }; then
  19310. ac_header_compiler=yes
  19311. else
  19312. echo "$as_me: failed program was:" >&5
  19313. sed 's/^/| /' conftest.$ac_ext >&5
  19314. ac_header_compiler=no
  19315. fi
  19316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19317. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19318. echo "${ECHO_T}$ac_header_compiler" >&6
  19319. # Is the header present?
  19320. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19321. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19322. cat >conftest.$ac_ext <<_ACEOF
  19323. /* confdefs.h. */
  19324. _ACEOF
  19325. cat confdefs.h >>conftest.$ac_ext
  19326. cat >>conftest.$ac_ext <<_ACEOF
  19327. /* end confdefs.h. */
  19328. #include <$ac_header>
  19329. _ACEOF
  19330. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19331. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19332. ac_status=$?
  19333. grep -v '^ *+' conftest.er1 >conftest.err
  19334. rm -f conftest.er1
  19335. cat conftest.err >&5
  19336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19337. (exit $ac_status); } >/dev/null; then
  19338. if test -s conftest.err; then
  19339. ac_cpp_err=$ac_c_preproc_warn_flag
  19340. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19341. else
  19342. ac_cpp_err=
  19343. fi
  19344. else
  19345. ac_cpp_err=yes
  19346. fi
  19347. if test -z "$ac_cpp_err"; then
  19348. ac_header_preproc=yes
  19349. else
  19350. echo "$as_me: failed program was:" >&5
  19351. sed 's/^/| /' conftest.$ac_ext >&5
  19352. ac_header_preproc=no
  19353. fi
  19354. rm -f conftest.err conftest.$ac_ext
  19355. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19356. echo "${ECHO_T}$ac_header_preproc" >&6
  19357. # So? What about this header?
  19358. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19359. yes:no: )
  19360. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19361. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19362. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19363. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19364. ac_header_preproc=yes
  19365. ;;
  19366. no:yes:* )
  19367. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19368. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19369. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19370. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19371. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19372. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19373. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19374. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19375. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19376. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19377. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19378. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19379. (
  19380. cat <<\_ASBOX
  19381. ## ------------------------------------------ ##
  19382. ## Report this to http://bugzilla.redhat.com/ ##
  19383. ## ------------------------------------------ ##
  19384. _ASBOX
  19385. ) |
  19386. sed "s/^/$as_me: WARNING: /" >&2
  19387. ;;
  19388. esac
  19389. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19390. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19391. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19392. echo $ECHO_N "(cached) $ECHO_C" >&6
  19393. else
  19394. eval "$as_ac_Header=\$ac_header_preproc"
  19395. fi
  19396. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19397. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19398. fi
  19399. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19400. cat >>confdefs.h <<_ACEOF
  19401. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19402. _ACEOF
  19403. fi
  19404. done
  19405. for ac_func in getpagesize
  19406. do
  19407. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19408. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19409. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19410. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19411. echo $ECHO_N "(cached) $ECHO_C" >&6
  19412. else
  19413. cat >conftest.$ac_ext <<_ACEOF
  19414. /* confdefs.h. */
  19415. _ACEOF
  19416. cat confdefs.h >>conftest.$ac_ext
  19417. cat >>conftest.$ac_ext <<_ACEOF
  19418. /* end confdefs.h. */
  19419. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19420. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19421. #define $ac_func innocuous_$ac_func
  19422. /* System header to define __stub macros and hopefully few prototypes,
  19423. which can conflict with char $ac_func (); below.
  19424. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19425. <limits.h> exists even on freestanding compilers. */
  19426. #ifdef __STDC__
  19427. # include <limits.h>
  19428. #else
  19429. # include <assert.h>
  19430. #endif
  19431. #undef $ac_func
  19432. /* Override any gcc2 internal prototype to avoid an error. */
  19433. #ifdef __cplusplus
  19434. extern "C"
  19435. {
  19436. #endif
  19437. /* We use char because int might match the return type of a gcc2
  19438. builtin and then its argument prototype would still apply. */
  19439. char $ac_func ();
  19440. /* The GNU C library defines this for functions which it implements
  19441. to always fail with ENOSYS. Some functions are actually named
  19442. something starting with __ and the normal name is an alias. */
  19443. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19444. choke me
  19445. #else
  19446. char (*f) () = $ac_func;
  19447. #endif
  19448. #ifdef __cplusplus
  19449. }
  19450. #endif
  19451. int
  19452. main ()
  19453. {
  19454. return f != $ac_func;
  19455. ;
  19456. return 0;
  19457. }
  19458. _ACEOF
  19459. rm -f conftest.$ac_objext conftest$ac_exeext
  19460. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19461. (eval $ac_link) 2>conftest.er1
  19462. ac_status=$?
  19463. grep -v '^ *+' conftest.er1 >conftest.err
  19464. rm -f conftest.er1
  19465. cat conftest.err >&5
  19466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19467. (exit $ac_status); } &&
  19468. { ac_try='test -z "$ac_c_werror_flag"
  19469. || test ! -s conftest.err'
  19470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19471. (eval $ac_try) 2>&5
  19472. ac_status=$?
  19473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19474. (exit $ac_status); }; } &&
  19475. { ac_try='test -s conftest$ac_exeext'
  19476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19477. (eval $ac_try) 2>&5
  19478. ac_status=$?
  19479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19480. (exit $ac_status); }; }; then
  19481. eval "$as_ac_var=yes"
  19482. else
  19483. echo "$as_me: failed program was:" >&5
  19484. sed 's/^/| /' conftest.$ac_ext >&5
  19485. eval "$as_ac_var=no"
  19486. fi
  19487. rm -f conftest.err conftest.$ac_objext \
  19488. conftest$ac_exeext conftest.$ac_ext
  19489. fi
  19490. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19491. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19492. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19493. cat >>confdefs.h <<_ACEOF
  19494. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19495. _ACEOF
  19496. fi
  19497. done
  19498. echo "$as_me:$LINENO: checking for working mmap" >&5
  19499. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19500. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19501. echo $ECHO_N "(cached) $ECHO_C" >&6
  19502. else
  19503. if test "$cross_compiling" = yes; then
  19504. ac_cv_func_mmap_fixed_mapped=no
  19505. else
  19506. cat >conftest.$ac_ext <<_ACEOF
  19507. /* confdefs.h. */
  19508. _ACEOF
  19509. cat confdefs.h >>conftest.$ac_ext
  19510. cat >>conftest.$ac_ext <<_ACEOF
  19511. /* end confdefs.h. */
  19512. $ac_includes_default
  19513. /* malloc might have been renamed as rpl_malloc. */
  19514. #undef malloc
  19515. /* Thanks to Mike Haertel and Jim Avera for this test.
  19516. Here is a matrix of mmap possibilities:
  19517. mmap private not fixed
  19518. mmap private fixed at somewhere currently unmapped
  19519. mmap private fixed at somewhere already mapped
  19520. mmap shared not fixed
  19521. mmap shared fixed at somewhere currently unmapped
  19522. mmap shared fixed at somewhere already mapped
  19523. For private mappings, we should verify that changes cannot be read()
  19524. back from the file, nor mmap's back from the file at a different
  19525. address. (There have been systems where private was not correctly
  19526. implemented like the infamous i386 svr4.0, and systems where the
  19527. VM page cache was not coherent with the file system buffer cache
  19528. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19529. For shared mappings, we should conversely verify that changes get
  19530. propagated back to all the places they're supposed to be.
  19531. Grep wants private fixed already mapped.
  19532. The main things grep needs to know about mmap are:
  19533. * does it exist and is it safe to write into the mmap'd area
  19534. * how to use it (BSD variants) */
  19535. #include <fcntl.h>
  19536. #include <sys/mman.h>
  19537. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19538. char *malloc ();
  19539. #endif
  19540. /* This mess was copied from the GNU getpagesize.h. */
  19541. #if !HAVE_GETPAGESIZE
  19542. /* Assume that all systems that can run configure have sys/param.h. */
  19543. # if !HAVE_SYS_PARAM_H
  19544. # define HAVE_SYS_PARAM_H 1
  19545. # endif
  19546. # ifdef _SC_PAGESIZE
  19547. # define getpagesize() sysconf(_SC_PAGESIZE)
  19548. # else /* no _SC_PAGESIZE */
  19549. # if HAVE_SYS_PARAM_H
  19550. # include <sys/param.h>
  19551. # ifdef EXEC_PAGESIZE
  19552. # define getpagesize() EXEC_PAGESIZE
  19553. # else /* no EXEC_PAGESIZE */
  19554. # ifdef NBPG
  19555. # define getpagesize() NBPG * CLSIZE
  19556. # ifndef CLSIZE
  19557. # define CLSIZE 1
  19558. # endif /* no CLSIZE */
  19559. # else /* no NBPG */
  19560. # ifdef NBPC
  19561. # define getpagesize() NBPC
  19562. # else /* no NBPC */
  19563. # ifdef PAGESIZE
  19564. # define getpagesize() PAGESIZE
  19565. # endif /* PAGESIZE */
  19566. # endif /* no NBPC */
  19567. # endif /* no NBPG */
  19568. # endif /* no EXEC_PAGESIZE */
  19569. # else /* no HAVE_SYS_PARAM_H */
  19570. # define getpagesize() 8192 /* punt totally */
  19571. # endif /* no HAVE_SYS_PARAM_H */
  19572. # endif /* no _SC_PAGESIZE */
  19573. #endif /* no HAVE_GETPAGESIZE */
  19574. int
  19575. main ()
  19576. {
  19577. char *data, *data2, *data3;
  19578. int i, pagesize;
  19579. int fd;
  19580. pagesize = getpagesize ();
  19581. /* First, make a file with some known garbage in it. */
  19582. data = (char *) malloc (pagesize);
  19583. if (!data)
  19584. exit (1);
  19585. for (i = 0; i < pagesize; ++i)
  19586. *(data + i) = rand ();
  19587. umask (0);
  19588. fd = creat ("conftest.mmap", 0600);
  19589. if (fd < 0)
  19590. exit (1);
  19591. if (write (fd, data, pagesize) != pagesize)
  19592. exit (1);
  19593. close (fd);
  19594. /* Next, try to mmap the file at a fixed address which already has
  19595. something else allocated at it. If we can, also make sure that
  19596. we see the same garbage. */
  19597. fd = open ("conftest.mmap", O_RDWR);
  19598. if (fd < 0)
  19599. exit (1);
  19600. data2 = (char *) malloc (2 * pagesize);
  19601. if (!data2)
  19602. exit (1);
  19603. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19604. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19605. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19606. exit (1);
  19607. for (i = 0; i < pagesize; ++i)
  19608. if (*(data + i) != *(data2 + i))
  19609. exit (1);
  19610. /* Finally, make sure that changes to the mapped area do not
  19611. percolate back to the file as seen by read(). (This is a bug on
  19612. some variants of i386 svr4.0.) */
  19613. for (i = 0; i < pagesize; ++i)
  19614. *(data2 + i) = *(data2 + i) + 1;
  19615. data3 = (char *) malloc (pagesize);
  19616. if (!data3)
  19617. exit (1);
  19618. if (read (fd, data3, pagesize) != pagesize)
  19619. exit (1);
  19620. for (i = 0; i < pagesize; ++i)
  19621. if (*(data + i) != *(data3 + i))
  19622. exit (1);
  19623. close (fd);
  19624. exit (0);
  19625. }
  19626. _ACEOF
  19627. rm -f conftest$ac_exeext
  19628. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19629. (eval $ac_link) 2>&5
  19630. ac_status=$?
  19631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19632. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19634. (eval $ac_try) 2>&5
  19635. ac_status=$?
  19636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19637. (exit $ac_status); }; }; then
  19638. ac_cv_func_mmap_fixed_mapped=yes
  19639. else
  19640. echo "$as_me: program exited with status $ac_status" >&5
  19641. echo "$as_me: failed program was:" >&5
  19642. sed 's/^/| /' conftest.$ac_ext >&5
  19643. ( exit $ac_status )
  19644. ac_cv_func_mmap_fixed_mapped=no
  19645. fi
  19646. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19647. fi
  19648. fi
  19649. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19650. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19651. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19652. cat >>confdefs.h <<\_ACEOF
  19653. #define HAVE_MMAP 1
  19654. _ACEOF
  19655. fi
  19656. rm -f conftest.mmap
  19657. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19658. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19659. if test "${ac_cv_type_signal+set}" = set; then
  19660. echo $ECHO_N "(cached) $ECHO_C" >&6
  19661. else
  19662. cat >conftest.$ac_ext <<_ACEOF
  19663. /* confdefs.h. */
  19664. _ACEOF
  19665. cat confdefs.h >>conftest.$ac_ext
  19666. cat >>conftest.$ac_ext <<_ACEOF
  19667. /* end confdefs.h. */
  19668. #include <sys/types.h>
  19669. #include <signal.h>
  19670. #ifdef signal
  19671. # undef signal
  19672. #endif
  19673. #ifdef __cplusplus
  19674. extern "C" void (*signal (int, void (*)(int)))(int);
  19675. #else
  19676. void (*signal ()) ();
  19677. #endif
  19678. int
  19679. main ()
  19680. {
  19681. int i;
  19682. ;
  19683. return 0;
  19684. }
  19685. _ACEOF
  19686. rm -f conftest.$ac_objext
  19687. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19688. (eval $ac_compile) 2>conftest.er1
  19689. ac_status=$?
  19690. grep -v '^ *+' conftest.er1 >conftest.err
  19691. rm -f conftest.er1
  19692. cat conftest.err >&5
  19693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19694. (exit $ac_status); } &&
  19695. { ac_try='test -z "$ac_c_werror_flag"
  19696. || test ! -s conftest.err'
  19697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19698. (eval $ac_try) 2>&5
  19699. ac_status=$?
  19700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19701. (exit $ac_status); }; } &&
  19702. { ac_try='test -s conftest.$ac_objext'
  19703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19704. (eval $ac_try) 2>&5
  19705. ac_status=$?
  19706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19707. (exit $ac_status); }; }; then
  19708. ac_cv_type_signal=void
  19709. else
  19710. echo "$as_me: failed program was:" >&5
  19711. sed 's/^/| /' conftest.$ac_ext >&5
  19712. ac_cv_type_signal=int
  19713. fi
  19714. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19715. fi
  19716. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19717. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19718. cat >>confdefs.h <<_ACEOF
  19719. #define RETSIGTYPE $ac_cv_type_signal
  19720. _ACEOF
  19721. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19722. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19723. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19724. echo $ECHO_N "(cached) $ECHO_C" >&6
  19725. else
  19726. if test "$cross_compiling" = yes; then
  19727. ac_cv_func_stat_empty_string_bug=yes
  19728. else
  19729. cat >conftest.$ac_ext <<_ACEOF
  19730. /* confdefs.h. */
  19731. _ACEOF
  19732. cat confdefs.h >>conftest.$ac_ext
  19733. cat >>conftest.$ac_ext <<_ACEOF
  19734. /* end confdefs.h. */
  19735. $ac_includes_default
  19736. int
  19737. main ()
  19738. {
  19739. struct stat sbuf;
  19740. exit (stat ("", &sbuf) ? 1 : 0);
  19741. ;
  19742. return 0;
  19743. }
  19744. _ACEOF
  19745. rm -f conftest$ac_exeext
  19746. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19747. (eval $ac_link) 2>&5
  19748. ac_status=$?
  19749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19750. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19752. (eval $ac_try) 2>&5
  19753. ac_status=$?
  19754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19755. (exit $ac_status); }; }; then
  19756. ac_cv_func_stat_empty_string_bug=yes
  19757. else
  19758. echo "$as_me: program exited with status $ac_status" >&5
  19759. echo "$as_me: failed program was:" >&5
  19760. sed 's/^/| /' conftest.$ac_ext >&5
  19761. ( exit $ac_status )
  19762. ac_cv_func_stat_empty_string_bug=no
  19763. fi
  19764. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19765. fi
  19766. fi
  19767. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19768. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19769. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19770. case $LIBOBJS in
  19771. "stat.$ac_objext" | \
  19772. *" stat.$ac_objext" | \
  19773. "stat.$ac_objext "* | \
  19774. *" stat.$ac_objext "* ) ;;
  19775. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19776. esac
  19777. cat >>confdefs.h <<_ACEOF
  19778. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19779. _ACEOF
  19780. fi
  19781. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19782. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19783. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19784. echo $ECHO_N "(cached) $ECHO_C" >&6
  19785. else
  19786. cat >conftest.$ac_ext <<_ACEOF
  19787. /* confdefs.h. */
  19788. _ACEOF
  19789. cat confdefs.h >>conftest.$ac_ext
  19790. cat >>conftest.$ac_ext <<_ACEOF
  19791. /* end confdefs.h. */
  19792. $ac_includes_default
  19793. int
  19794. main ()
  19795. {
  19796. #ifndef strerror_r
  19797. char *p = (char *) strerror_r;
  19798. #endif
  19799. ;
  19800. return 0;
  19801. }
  19802. _ACEOF
  19803. rm -f conftest.$ac_objext
  19804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19805. (eval $ac_compile) 2>conftest.er1
  19806. ac_status=$?
  19807. grep -v '^ *+' conftest.er1 >conftest.err
  19808. rm -f conftest.er1
  19809. cat conftest.err >&5
  19810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19811. (exit $ac_status); } &&
  19812. { ac_try='test -z "$ac_c_werror_flag"
  19813. || test ! -s conftest.err'
  19814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19815. (eval $ac_try) 2>&5
  19816. ac_status=$?
  19817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19818. (exit $ac_status); }; } &&
  19819. { ac_try='test -s conftest.$ac_objext'
  19820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19821. (eval $ac_try) 2>&5
  19822. ac_status=$?
  19823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19824. (exit $ac_status); }; }; then
  19825. ac_cv_have_decl_strerror_r=yes
  19826. else
  19827. echo "$as_me: failed program was:" >&5
  19828. sed 's/^/| /' conftest.$ac_ext >&5
  19829. ac_cv_have_decl_strerror_r=no
  19830. fi
  19831. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19832. fi
  19833. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19834. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19835. if test $ac_cv_have_decl_strerror_r = yes; then
  19836. cat >>confdefs.h <<_ACEOF
  19837. #define HAVE_DECL_STRERROR_R 1
  19838. _ACEOF
  19839. else
  19840. cat >>confdefs.h <<_ACEOF
  19841. #define HAVE_DECL_STRERROR_R 0
  19842. _ACEOF
  19843. fi
  19844. for ac_func in strerror_r
  19845. do
  19846. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19847. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19848. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19849. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19850. echo $ECHO_N "(cached) $ECHO_C" >&6
  19851. else
  19852. cat >conftest.$ac_ext <<_ACEOF
  19853. /* confdefs.h. */
  19854. _ACEOF
  19855. cat confdefs.h >>conftest.$ac_ext
  19856. cat >>conftest.$ac_ext <<_ACEOF
  19857. /* end confdefs.h. */
  19858. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19860. #define $ac_func innocuous_$ac_func
  19861. /* System header to define __stub macros and hopefully few prototypes,
  19862. which can conflict with char $ac_func (); below.
  19863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19864. <limits.h> exists even on freestanding compilers. */
  19865. #ifdef __STDC__
  19866. # include <limits.h>
  19867. #else
  19868. # include <assert.h>
  19869. #endif
  19870. #undef $ac_func
  19871. /* Override any gcc2 internal prototype to avoid an error. */
  19872. #ifdef __cplusplus
  19873. extern "C"
  19874. {
  19875. #endif
  19876. /* We use char because int might match the return type of a gcc2
  19877. builtin and then its argument prototype would still apply. */
  19878. char $ac_func ();
  19879. /* The GNU C library defines this for functions which it implements
  19880. to always fail with ENOSYS. Some functions are actually named
  19881. something starting with __ and the normal name is an alias. */
  19882. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19883. choke me
  19884. #else
  19885. char (*f) () = $ac_func;
  19886. #endif
  19887. #ifdef __cplusplus
  19888. }
  19889. #endif
  19890. int
  19891. main ()
  19892. {
  19893. return f != $ac_func;
  19894. ;
  19895. return 0;
  19896. }
  19897. _ACEOF
  19898. rm -f conftest.$ac_objext conftest$ac_exeext
  19899. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19900. (eval $ac_link) 2>conftest.er1
  19901. ac_status=$?
  19902. grep -v '^ *+' conftest.er1 >conftest.err
  19903. rm -f conftest.er1
  19904. cat conftest.err >&5
  19905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19906. (exit $ac_status); } &&
  19907. { ac_try='test -z "$ac_c_werror_flag"
  19908. || test ! -s conftest.err'
  19909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19910. (eval $ac_try) 2>&5
  19911. ac_status=$?
  19912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19913. (exit $ac_status); }; } &&
  19914. { ac_try='test -s conftest$ac_exeext'
  19915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19916. (eval $ac_try) 2>&5
  19917. ac_status=$?
  19918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19919. (exit $ac_status); }; }; then
  19920. eval "$as_ac_var=yes"
  19921. else
  19922. echo "$as_me: failed program was:" >&5
  19923. sed 's/^/| /' conftest.$ac_ext >&5
  19924. eval "$as_ac_var=no"
  19925. fi
  19926. rm -f conftest.err conftest.$ac_objext \
  19927. conftest$ac_exeext conftest.$ac_ext
  19928. fi
  19929. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19930. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19931. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19932. cat >>confdefs.h <<_ACEOF
  19933. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19934. _ACEOF
  19935. fi
  19936. done
  19937. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19938. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19939. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19940. echo $ECHO_N "(cached) $ECHO_C" >&6
  19941. else
  19942. ac_cv_func_strerror_r_char_p=no
  19943. if test $ac_cv_have_decl_strerror_r = yes; then
  19944. cat >conftest.$ac_ext <<_ACEOF
  19945. /* confdefs.h. */
  19946. _ACEOF
  19947. cat confdefs.h >>conftest.$ac_ext
  19948. cat >>conftest.$ac_ext <<_ACEOF
  19949. /* end confdefs.h. */
  19950. $ac_includes_default
  19951. int
  19952. main ()
  19953. {
  19954. char buf[100];
  19955. char x = *strerror_r (0, buf, sizeof buf);
  19956. char *p = strerror_r (0, buf, sizeof buf);
  19957. ;
  19958. return 0;
  19959. }
  19960. _ACEOF
  19961. rm -f conftest.$ac_objext
  19962. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19963. (eval $ac_compile) 2>conftest.er1
  19964. ac_status=$?
  19965. grep -v '^ *+' conftest.er1 >conftest.err
  19966. rm -f conftest.er1
  19967. cat conftest.err >&5
  19968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19969. (exit $ac_status); } &&
  19970. { ac_try='test -z "$ac_c_werror_flag"
  19971. || test ! -s conftest.err'
  19972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19973. (eval $ac_try) 2>&5
  19974. ac_status=$?
  19975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19976. (exit $ac_status); }; } &&
  19977. { ac_try='test -s conftest.$ac_objext'
  19978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19979. (eval $ac_try) 2>&5
  19980. ac_status=$?
  19981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19982. (exit $ac_status); }; }; then
  19983. ac_cv_func_strerror_r_char_p=yes
  19984. else
  19985. echo "$as_me: failed program was:" >&5
  19986. sed 's/^/| /' conftest.$ac_ext >&5
  19987. fi
  19988. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19989. else
  19990. # strerror_r is not declared. Choose between
  19991. # systems that have relatively inaccessible declarations for the
  19992. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  19993. # former has a strerror_r that returns char*, while the latter
  19994. # has a strerror_r that returns `int'.
  19995. # This test should segfault on the DEC system.
  19996. if test "$cross_compiling" = yes; then
  19997. :
  19998. else
  19999. cat >conftest.$ac_ext <<_ACEOF
  20000. /* confdefs.h. */
  20001. _ACEOF
  20002. cat confdefs.h >>conftest.$ac_ext
  20003. cat >>conftest.$ac_ext <<_ACEOF
  20004. /* end confdefs.h. */
  20005. $ac_includes_default
  20006. extern char *strerror_r ();
  20007. int
  20008. main ()
  20009. {
  20010. char buf[100];
  20011. char x = *strerror_r (0, buf, sizeof buf);
  20012. exit (!isalpha (x));
  20013. ;
  20014. return 0;
  20015. }
  20016. _ACEOF
  20017. rm -f conftest$ac_exeext
  20018. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20019. (eval $ac_link) 2>&5
  20020. ac_status=$?
  20021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20022. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20024. (eval $ac_try) 2>&5
  20025. ac_status=$?
  20026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20027. (exit $ac_status); }; }; then
  20028. ac_cv_func_strerror_r_char_p=yes
  20029. else
  20030. echo "$as_me: program exited with status $ac_status" >&5
  20031. echo "$as_me: failed program was:" >&5
  20032. sed 's/^/| /' conftest.$ac_ext >&5
  20033. fi
  20034. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20035. fi
  20036. fi
  20037. fi
  20038. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20039. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  20040. if test $ac_cv_func_strerror_r_char_p = yes; then
  20041. cat >>confdefs.h <<\_ACEOF
  20042. #define STRERROR_R_CHAR_P 1
  20043. _ACEOF
  20044. fi
  20045. for ac_func in strftime
  20046. do
  20047. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20048. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20049. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20050. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20051. echo $ECHO_N "(cached) $ECHO_C" >&6
  20052. else
  20053. cat >conftest.$ac_ext <<_ACEOF
  20054. /* confdefs.h. */
  20055. _ACEOF
  20056. cat confdefs.h >>conftest.$ac_ext
  20057. cat >>conftest.$ac_ext <<_ACEOF
  20058. /* end confdefs.h. */
  20059. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20060. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20061. #define $ac_func innocuous_$ac_func
  20062. /* System header to define __stub macros and hopefully few prototypes,
  20063. which can conflict with char $ac_func (); below.
  20064. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20065. <limits.h> exists even on freestanding compilers. */
  20066. #ifdef __STDC__
  20067. # include <limits.h>
  20068. #else
  20069. # include <assert.h>
  20070. #endif
  20071. #undef $ac_func
  20072. /* Override any gcc2 internal prototype to avoid an error. */
  20073. #ifdef __cplusplus
  20074. extern "C"
  20075. {
  20076. #endif
  20077. /* We use char because int might match the return type of a gcc2
  20078. builtin and then its argument prototype would still apply. */
  20079. char $ac_func ();
  20080. /* The GNU C library defines this for functions which it implements
  20081. to always fail with ENOSYS. Some functions are actually named
  20082. something starting with __ and the normal name is an alias. */
  20083. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20084. choke me
  20085. #else
  20086. char (*f) () = $ac_func;
  20087. #endif
  20088. #ifdef __cplusplus
  20089. }
  20090. #endif
  20091. int
  20092. main ()
  20093. {
  20094. return f != $ac_func;
  20095. ;
  20096. return 0;
  20097. }
  20098. _ACEOF
  20099. rm -f conftest.$ac_objext conftest$ac_exeext
  20100. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20101. (eval $ac_link) 2>conftest.er1
  20102. ac_status=$?
  20103. grep -v '^ *+' conftest.er1 >conftest.err
  20104. rm -f conftest.er1
  20105. cat conftest.err >&5
  20106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20107. (exit $ac_status); } &&
  20108. { ac_try='test -z "$ac_c_werror_flag"
  20109. || test ! -s conftest.err'
  20110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20111. (eval $ac_try) 2>&5
  20112. ac_status=$?
  20113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20114. (exit $ac_status); }; } &&
  20115. { ac_try='test -s conftest$ac_exeext'
  20116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20117. (eval $ac_try) 2>&5
  20118. ac_status=$?
  20119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20120. (exit $ac_status); }; }; then
  20121. eval "$as_ac_var=yes"
  20122. else
  20123. echo "$as_me: failed program was:" >&5
  20124. sed 's/^/| /' conftest.$ac_ext >&5
  20125. eval "$as_ac_var=no"
  20126. fi
  20127. rm -f conftest.err conftest.$ac_objext \
  20128. conftest$ac_exeext conftest.$ac_ext
  20129. fi
  20130. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20131. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20132. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20133. cat >>confdefs.h <<_ACEOF
  20134. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20135. _ACEOF
  20136. else
  20137. # strftime is in -lintl on SCO UNIX.
  20138. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20139. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20140. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20141. echo $ECHO_N "(cached) $ECHO_C" >&6
  20142. else
  20143. ac_check_lib_save_LIBS=$LIBS
  20144. LIBS="-lintl $LIBS"
  20145. cat >conftest.$ac_ext <<_ACEOF
  20146. /* confdefs.h. */
  20147. _ACEOF
  20148. cat confdefs.h >>conftest.$ac_ext
  20149. cat >>conftest.$ac_ext <<_ACEOF
  20150. /* end confdefs.h. */
  20151. /* Override any gcc2 internal prototype to avoid an error. */
  20152. #ifdef __cplusplus
  20153. extern "C"
  20154. #endif
  20155. /* We use char because int might match the return type of a gcc2
  20156. builtin and then its argument prototype would still apply. */
  20157. char strftime ();
  20158. int
  20159. main ()
  20160. {
  20161. strftime ();
  20162. ;
  20163. return 0;
  20164. }
  20165. _ACEOF
  20166. rm -f conftest.$ac_objext conftest$ac_exeext
  20167. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20168. (eval $ac_link) 2>conftest.er1
  20169. ac_status=$?
  20170. grep -v '^ *+' conftest.er1 >conftest.err
  20171. rm -f conftest.er1
  20172. cat conftest.err >&5
  20173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20174. (exit $ac_status); } &&
  20175. { ac_try='test -z "$ac_c_werror_flag"
  20176. || test ! -s conftest.err'
  20177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20178. (eval $ac_try) 2>&5
  20179. ac_status=$?
  20180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20181. (exit $ac_status); }; } &&
  20182. { ac_try='test -s conftest$ac_exeext'
  20183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20184. (eval $ac_try) 2>&5
  20185. ac_status=$?
  20186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20187. (exit $ac_status); }; }; then
  20188. ac_cv_lib_intl_strftime=yes
  20189. else
  20190. echo "$as_me: failed program was:" >&5
  20191. sed 's/^/| /' conftest.$ac_ext >&5
  20192. ac_cv_lib_intl_strftime=no
  20193. fi
  20194. rm -f conftest.err conftest.$ac_objext \
  20195. conftest$ac_exeext conftest.$ac_ext
  20196. LIBS=$ac_check_lib_save_LIBS
  20197. fi
  20198. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20199. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20200. if test $ac_cv_lib_intl_strftime = yes; then
  20201. cat >>confdefs.h <<\_ACEOF
  20202. #define HAVE_STRFTIME 1
  20203. _ACEOF
  20204. LIBS="-lintl $LIBS"
  20205. fi
  20206. fi
  20207. done
  20208. for ac_func in vprintf
  20209. do
  20210. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20211. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20212. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20213. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20214. echo $ECHO_N "(cached) $ECHO_C" >&6
  20215. else
  20216. cat >conftest.$ac_ext <<_ACEOF
  20217. /* confdefs.h. */
  20218. _ACEOF
  20219. cat confdefs.h >>conftest.$ac_ext
  20220. cat >>conftest.$ac_ext <<_ACEOF
  20221. /* end confdefs.h. */
  20222. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20223. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20224. #define $ac_func innocuous_$ac_func
  20225. /* System header to define __stub macros and hopefully few prototypes,
  20226. which can conflict with char $ac_func (); below.
  20227. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20228. <limits.h> exists even on freestanding compilers. */
  20229. #ifdef __STDC__
  20230. # include <limits.h>
  20231. #else
  20232. # include <assert.h>
  20233. #endif
  20234. #undef $ac_func
  20235. /* Override any gcc2 internal prototype to avoid an error. */
  20236. #ifdef __cplusplus
  20237. extern "C"
  20238. {
  20239. #endif
  20240. /* We use char because int might match the return type of a gcc2
  20241. builtin and then its argument prototype would still apply. */
  20242. char $ac_func ();
  20243. /* The GNU C library defines this for functions which it implements
  20244. to always fail with ENOSYS. Some functions are actually named
  20245. something starting with __ and the normal name is an alias. */
  20246. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20247. choke me
  20248. #else
  20249. char (*f) () = $ac_func;
  20250. #endif
  20251. #ifdef __cplusplus
  20252. }
  20253. #endif
  20254. int
  20255. main ()
  20256. {
  20257. return f != $ac_func;
  20258. ;
  20259. return 0;
  20260. }
  20261. _ACEOF
  20262. rm -f conftest.$ac_objext conftest$ac_exeext
  20263. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20264. (eval $ac_link) 2>conftest.er1
  20265. ac_status=$?
  20266. grep -v '^ *+' conftest.er1 >conftest.err
  20267. rm -f conftest.er1
  20268. cat conftest.err >&5
  20269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20270. (exit $ac_status); } &&
  20271. { ac_try='test -z "$ac_c_werror_flag"
  20272. || test ! -s conftest.err'
  20273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20274. (eval $ac_try) 2>&5
  20275. ac_status=$?
  20276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20277. (exit $ac_status); }; } &&
  20278. { ac_try='test -s conftest$ac_exeext'
  20279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20280. (eval $ac_try) 2>&5
  20281. ac_status=$?
  20282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20283. (exit $ac_status); }; }; then
  20284. eval "$as_ac_var=yes"
  20285. else
  20286. echo "$as_me: failed program was:" >&5
  20287. sed 's/^/| /' conftest.$ac_ext >&5
  20288. eval "$as_ac_var=no"
  20289. fi
  20290. rm -f conftest.err conftest.$ac_objext \
  20291. conftest$ac_exeext conftest.$ac_ext
  20292. fi
  20293. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20294. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20295. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20296. cat >>confdefs.h <<_ACEOF
  20297. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20298. _ACEOF
  20299. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20300. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20301. if test "${ac_cv_func__doprnt+set}" = set; then
  20302. echo $ECHO_N "(cached) $ECHO_C" >&6
  20303. else
  20304. cat >conftest.$ac_ext <<_ACEOF
  20305. /* confdefs.h. */
  20306. _ACEOF
  20307. cat confdefs.h >>conftest.$ac_ext
  20308. cat >>conftest.$ac_ext <<_ACEOF
  20309. /* end confdefs.h. */
  20310. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20311. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20312. #define _doprnt innocuous__doprnt
  20313. /* System header to define __stub macros and hopefully few prototypes,
  20314. which can conflict with char _doprnt (); below.
  20315. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20316. <limits.h> exists even on freestanding compilers. */
  20317. #ifdef __STDC__
  20318. # include <limits.h>
  20319. #else
  20320. # include <assert.h>
  20321. #endif
  20322. #undef _doprnt
  20323. /* Override any gcc2 internal prototype to avoid an error. */
  20324. #ifdef __cplusplus
  20325. extern "C"
  20326. {
  20327. #endif
  20328. /* We use char because int might match the return type of a gcc2
  20329. builtin and then its argument prototype would still apply. */
  20330. char _doprnt ();
  20331. /* The GNU C library defines this for functions which it implements
  20332. to always fail with ENOSYS. Some functions are actually named
  20333. something starting with __ and the normal name is an alias. */
  20334. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20335. choke me
  20336. #else
  20337. char (*f) () = _doprnt;
  20338. #endif
  20339. #ifdef __cplusplus
  20340. }
  20341. #endif
  20342. int
  20343. main ()
  20344. {
  20345. return f != _doprnt;
  20346. ;
  20347. return 0;
  20348. }
  20349. _ACEOF
  20350. rm -f conftest.$ac_objext conftest$ac_exeext
  20351. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20352. (eval $ac_link) 2>conftest.er1
  20353. ac_status=$?
  20354. grep -v '^ *+' conftest.er1 >conftest.err
  20355. rm -f conftest.er1
  20356. cat conftest.err >&5
  20357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20358. (exit $ac_status); } &&
  20359. { ac_try='test -z "$ac_c_werror_flag"
  20360. || test ! -s conftest.err'
  20361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20362. (eval $ac_try) 2>&5
  20363. ac_status=$?
  20364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20365. (exit $ac_status); }; } &&
  20366. { ac_try='test -s conftest$ac_exeext'
  20367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20368. (eval $ac_try) 2>&5
  20369. ac_status=$?
  20370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20371. (exit $ac_status); }; }; then
  20372. ac_cv_func__doprnt=yes
  20373. else
  20374. echo "$as_me: failed program was:" >&5
  20375. sed 's/^/| /' conftest.$ac_ext >&5
  20376. ac_cv_func__doprnt=no
  20377. fi
  20378. rm -f conftest.err conftest.$ac_objext \
  20379. conftest$ac_exeext conftest.$ac_ext
  20380. fi
  20381. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20382. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20383. if test $ac_cv_func__doprnt = yes; then
  20384. cat >>confdefs.h <<\_ACEOF
  20385. #define HAVE_DOPRNT 1
  20386. _ACEOF
  20387. fi
  20388. fi
  20389. done
  20390. 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
  20391. do
  20392. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20393. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20394. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20395. if eval "test \"\${$as_ac_var+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. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20405. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20406. #define $ac_func innocuous_$ac_func
  20407. /* System header to define __stub macros and hopefully few prototypes,
  20408. which can conflict with char $ac_func (); below.
  20409. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20410. <limits.h> exists even on freestanding compilers. */
  20411. #ifdef __STDC__
  20412. # include <limits.h>
  20413. #else
  20414. # include <assert.h>
  20415. #endif
  20416. #undef $ac_func
  20417. /* Override any gcc2 internal prototype to avoid an error. */
  20418. #ifdef __cplusplus
  20419. extern "C"
  20420. {
  20421. #endif
  20422. /* We use char because int might match the return type of a gcc2
  20423. builtin and then its argument prototype would still apply. */
  20424. char $ac_func ();
  20425. /* The GNU C library defines this for functions which it implements
  20426. to always fail with ENOSYS. Some functions are actually named
  20427. something starting with __ and the normal name is an alias. */
  20428. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20429. choke me
  20430. #else
  20431. char (*f) () = $ac_func;
  20432. #endif
  20433. #ifdef __cplusplus
  20434. }
  20435. #endif
  20436. int
  20437. main ()
  20438. {
  20439. return f != $ac_func;
  20440. ;
  20441. return 0;
  20442. }
  20443. _ACEOF
  20444. rm -f conftest.$ac_objext conftest$ac_exeext
  20445. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20446. (eval $ac_link) 2>conftest.er1
  20447. ac_status=$?
  20448. grep -v '^ *+' conftest.er1 >conftest.err
  20449. rm -f conftest.er1
  20450. cat conftest.err >&5
  20451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20452. (exit $ac_status); } &&
  20453. { ac_try='test -z "$ac_c_werror_flag"
  20454. || test ! -s conftest.err'
  20455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20456. (eval $ac_try) 2>&5
  20457. ac_status=$?
  20458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20459. (exit $ac_status); }; } &&
  20460. { ac_try='test -s conftest$ac_exeext'
  20461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20462. (eval $ac_try) 2>&5
  20463. ac_status=$?
  20464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20465. (exit $ac_status); }; }; then
  20466. eval "$as_ac_var=yes"
  20467. else
  20468. echo "$as_me: failed program was:" >&5
  20469. sed 's/^/| /' conftest.$ac_ext >&5
  20470. eval "$as_ac_var=no"
  20471. fi
  20472. rm -f conftest.err conftest.$ac_objext \
  20473. conftest$ac_exeext conftest.$ac_ext
  20474. fi
  20475. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20476. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20477. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20478. cat >>confdefs.h <<_ACEOF
  20479. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20480. _ACEOF
  20481. fi
  20482. done
  20483. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20484. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20485. # Check whether --enable-debug or --disable-debug was given.
  20486. if test "${enable_debug+set}" = set; then
  20487. enableval="$enable_debug"
  20488. echo "$as_me:$LINENO: result: yes" >&5
  20489. echo "${ECHO_T}yes" >&6
  20490. debug_defs="-DDEBUG -DMCC_DEBUG"
  20491. else
  20492. echo "$as_me:$LINENO: result: no" >&5
  20493. echo "${ECHO_T}no" >&6
  20494. debug_defs=""
  20495. fi;
  20496. # Used for legacy style packaging where we bundle all of the dependencies.
  20497. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20498. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20499. # Check whether --enable-bundle or --disable-bundle was given.
  20500. if test "${enable_bundle+set}" = set; then
  20501. enableval="$enable_bundle"
  20502. echo "$as_me:$LINENO: result: yes" >&5
  20503. echo "${ECHO_T}yes" >&6
  20504. bundle="1";
  20505. else
  20506. echo "$as_me:$LINENO: result: no" >&5
  20507. echo "${ECHO_T}no" >&6
  20508. bundle="";
  20509. fi;
  20510. if test "$bundle" = "1"; then
  20511. BUNDLE_TRUE=
  20512. BUNDLE_FALSE='#'
  20513. else
  20514. BUNDLE_TRUE='#'
  20515. BUNDLE_FALSE=
  20516. fi
  20517. # these enables are for optional or experimental features
  20518. if test -z "$enable_pam_passthru" ; then
  20519. enable_pam_passthru=yes # if not set on cmdline, set default
  20520. fi
  20521. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20522. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20523. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20524. if test "${enable_pam_passthru+set}" = set; then
  20525. enableval="$enable_pam_passthru"
  20526. fi;
  20527. if test "$enable_pam_passthru" = yes ; then
  20528. echo "$as_me:$LINENO: result: yes" >&5
  20529. echo "${ECHO_T}yes" >&6
  20530. cat >>confdefs.h <<\_ACEOF
  20531. #define ENABLE_PAM_PASSTHRU 1
  20532. _ACEOF
  20533. else
  20534. echo "$as_me:$LINENO: result: no" >&5
  20535. echo "${ECHO_T}no" >&6
  20536. fi
  20537. if test "$enable_pam_passthru" = "yes"; then
  20538. enable_pam_passthru_TRUE=
  20539. enable_pam_passthru_FALSE='#'
  20540. else
  20541. enable_pam_passthru_TRUE='#'
  20542. enable_pam_passthru_FALSE=
  20543. fi
  20544. if test -z "$enable_dna" ; then
  20545. enable_dna=yes # if not set on cmdline, set default
  20546. fi
  20547. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20548. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20549. # Check whether --enable-dna or --disable-dna was given.
  20550. if test "${enable_dna+set}" = set; then
  20551. enableval="$enable_dna"
  20552. fi;
  20553. if test "$enable_dna" = yes ; then
  20554. echo "$as_me:$LINENO: result: yes" >&5
  20555. echo "${ECHO_T}yes" >&6
  20556. cat >>confdefs.h <<\_ACEOF
  20557. #define ENABLE_DNA 1
  20558. _ACEOF
  20559. else
  20560. echo "$as_me:$LINENO: result: no" >&5
  20561. echo "${ECHO_T}no" >&6
  20562. fi
  20563. if test "$enable_dna" = "yes"; then
  20564. enable_dna_TRUE=
  20565. enable_dna_FALSE='#'
  20566. else
  20567. enable_dna_TRUE='#'
  20568. enable_dna_FALSE=
  20569. fi
  20570. if test -z "$enable_ldapi" ; then
  20571. enable_ldapi=yes # if not set on cmdline, set default
  20572. fi
  20573. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20574. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20575. # Check whether --enable-ldapi or --disable-ldapi was given.
  20576. if test "${enable_ldapi+set}" = set; then
  20577. enableval="$enable_ldapi"
  20578. fi;
  20579. if test "$enable_ldapi" = yes ; then
  20580. echo "$as_me:$LINENO: result: yes" >&5
  20581. echo "${ECHO_T}yes" >&6
  20582. cat >>confdefs.h <<\_ACEOF
  20583. #define ENABLE_LDAPI 1
  20584. _ACEOF
  20585. else
  20586. echo "$as_me:$LINENO: result: no" >&5
  20587. echo "${ECHO_T}no" >&6
  20588. fi
  20589. if test "$enable_ldapi" = "yes"; then
  20590. enable_ldapi_TRUE=
  20591. enable_ldapi_FALSE='#'
  20592. else
  20593. enable_ldapi_TRUE='#'
  20594. enable_ldapi_FALSE=
  20595. fi
  20596. if test -z "$enable_autobind" ; then
  20597. enable_autobind=no # if not set on cmdline, set default
  20598. fi
  20599. echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  20600. echo $ECHO_N "checking for --enable-autobind... $ECHO_C" >&6
  20601. # Check whether --enable-autobind or --disable-autobind was given.
  20602. if test "${enable_autobind+set}" = set; then
  20603. enableval="$enable_autobind"
  20604. fi;
  20605. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  20606. echo "$as_me:$LINENO: result: yes" >&5
  20607. echo "${ECHO_T}yes" >&6
  20608. cat >>confdefs.h <<\_ACEOF
  20609. #define ENABLE_AUTOBIND 1
  20610. _ACEOF
  20611. else
  20612. echo "$as_me:$LINENO: result: no" >&5
  20613. echo "${ECHO_T}no" >&6
  20614. fi
  20615. if test "$enable_autobind" = "yes"; then
  20616. enable_autobind_TRUE=
  20617. enable_autobind_FALSE='#'
  20618. else
  20619. enable_autobind_TRUE='#'
  20620. enable_autobind_FALSE=
  20621. fi
  20622. if test -z "$enable_bitwise" ; then
  20623. enable_bitwise=yes # if not set on cmdline, set default
  20624. fi
  20625. echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  20626. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6
  20627. # Check whether --enable-bitwise or --disable-bitwise was given.
  20628. if test "${enable_bitwise+set}" = set; then
  20629. enableval="$enable_bitwise"
  20630. fi;
  20631. if test "$enable_bitwise" = yes ; then
  20632. echo "$as_me:$LINENO: result: yes" >&5
  20633. echo "${ECHO_T}yes" >&6
  20634. cat >>confdefs.h <<\_ACEOF
  20635. #define ENABLE_BITWISE 1
  20636. _ACEOF
  20637. else
  20638. echo "$as_me:$LINENO: result: no" >&5
  20639. echo "${ECHO_T}no" >&6
  20640. fi
  20641. if test "$enable_bitwise" = "yes"; then
  20642. enable_bitwise_TRUE=
  20643. enable_bitwise_FALSE='#'
  20644. else
  20645. enable_bitwise_TRUE='#'
  20646. enable_bitwise_FALSE=
  20647. fi
  20648. # the default prefix - override with --prefix or --with-fhs
  20649. brand=fedora
  20650. capbrand=Fedora
  20651. vendor="Fedora Project"
  20652. # BEGIN COPYRIGHT BLOCK
  20653. # Copyright (C) 2006 Red Hat, Inc.
  20654. # All rights reserved.
  20655. #
  20656. # This program is free software; you can redistribute it and/or
  20657. # modify it under the terms of the GNU General Public License
  20658. # as published by the Free Software Foundation; either version 2
  20659. # of the License, or (at your option) any later version.
  20660. #
  20661. # This program is distributed in the hope that it will be useful,
  20662. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20663. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20664. # GNU General Public License for more details.
  20665. #
  20666. # You should have received a copy of the GNU General Public License
  20667. # along with this program; if not, write to the Free Software
  20668. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20669. #
  20670. # END COPYRIGHT BLOCK
  20671. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20672. echo "$as_me: checking for FHS..." >&6;}
  20673. # check for --with-fhs
  20674. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20675. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20676. # Check whether --with-fhs or --without-fhs was given.
  20677. if test "${with_fhs+set}" = set; then
  20678. withval="$with_fhs"
  20679. with_fhs=yes
  20680. echo "$as_me:$LINENO: result: yes" >&5
  20681. echo "${ECHO_T}yes" >&6
  20682. else
  20683. echo "$as_me:$LINENO: result: no" >&5
  20684. echo "${ECHO_T}no" >&6
  20685. fi;
  20686. if test "$with_fhs" = "yes"; then
  20687. cat >>confdefs.h <<\_ACEOF
  20688. #define IS_FHS 1
  20689. _ACEOF
  20690. fi
  20691. # check for --with-fhs-opt
  20692. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20693. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20694. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20695. if test "${with_fhs_opt+set}" = set; then
  20696. withval="$with_fhs_opt"
  20697. with_fhs_opt=yes
  20698. echo "$as_me:$LINENO: result: yes" >&5
  20699. echo "${ECHO_T}yes" >&6
  20700. else
  20701. echo "$as_me:$LINENO: result: no" >&5
  20702. echo "${ECHO_T}no" >&6
  20703. fi;
  20704. if test "$with_fhs_opt" = "yes"; then
  20705. cat >>confdefs.h <<\_ACEOF
  20706. #define IS_FHS_OPT 1
  20707. _ACEOF
  20708. fi
  20709. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20710. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20711. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20712. { (exit 1); exit 1; }; }
  20713. fi
  20714. # installation paths - by default, we store everything
  20715. # under the prefix. The with-fhs option will use /usr,
  20716. # /etc, and /var. The with-fhs-opt option will use the
  20717. # prefix, but it's sysconfdir and localstatedir will be
  20718. # /etc/opt, and /var/opt.
  20719. if test "$with_fhs_opt" = "yes"; then
  20720. # Override sysconfdir and localstatedir if FHS optional
  20721. # package was requested.
  20722. sysconfdir='/etc/opt'
  20723. localstatedir='/var/opt'
  20724. # relative to datadir
  20725. sampledatadir=/data
  20726. # relative to datadir
  20727. scripttemplatedir=/script-templates
  20728. # relative to libdir
  20729. serverdir=
  20730. # relative to libdir
  20731. serverplugindir=/plugins
  20732. # relative to datadir
  20733. infdir=/inf
  20734. # relative to datadir
  20735. mibdir=/mibs
  20736. # location of property/resource files, relative to datadir
  20737. propertydir=/properties
  20738. # relative to libdir
  20739. perldir=/perl
  20740. else
  20741. if test "$with_fhs" = "yes"; then
  20742. ac_default_prefix=/usr
  20743. prefix=$ac_default_prefix
  20744. exec_prefix=$prefix
  20745. sysconfdir='/etc'
  20746. localstatedir='/var'
  20747. fi
  20748. # relative to datadir
  20749. sampledatadir=/$PACKAGE_NAME/data
  20750. # relative to datadir
  20751. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20752. # relative to libdir
  20753. serverdir=/$PACKAGE_NAME
  20754. # relative to libdir
  20755. serverplugindir=/$PACKAGE_NAME/plugins
  20756. # relative to datadir
  20757. infdir=/$PACKAGE_NAME/inf
  20758. # relative to datadir
  20759. mibdir=/$PACKAGE_NAME/mibs
  20760. # location of property/resource files, relative to datadir
  20761. propertydir=/$PACKAGE_NAME/properties
  20762. # relative to libdir
  20763. perldir=/$PACKAGE_NAME/perl
  20764. fi
  20765. # if mandir is the default value, override it
  20766. # otherwise, the user must have set it - just use it
  20767. if test X"$mandir" = X'${prefix}/man' ; then
  20768. mandir='$(datadir)/man'
  20769. fi
  20770. # Shared paths for all layouts
  20771. # relative to sysconfdir
  20772. configdir=/$PACKAGE_NAME/config
  20773. # relative to sysconfdir
  20774. schemadir=/$PACKAGE_NAME/schema
  20775. # default user, group
  20776. defaultuser=nobody
  20777. defaultgroup=nobody
  20778. # check for --with-instconfigdir
  20779. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20780. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20781. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20782. if test "${with_instconfigdir+set}" = set; then
  20783. withval="$with_instconfigdir"
  20784. if test $withval = yes ; then
  20785. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20786. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20787. { (exit 1); exit 1; }; }
  20788. fi
  20789. instconfigdir="$withval"
  20790. else
  20791. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20792. fi;
  20793. # WINNT should be true if building on Windows system not using
  20794. # cygnus, mingw, or the like and using cmd.exe as the shell
  20795. if false; then
  20796. WINNT_TRUE=
  20797. WINNT_FALSE='#'
  20798. else
  20799. WINNT_TRUE='#'
  20800. WINNT_FALSE=
  20801. fi
  20802. # Deal with platform dependent defines
  20803. # relative to sysconfdir
  20804. initdir=/rc.d
  20805. # on most platforms, we will just use perl from PATH
  20806. # On some platforms, we cannot. Why not just use any old
  20807. # perl? Because of perldap. We use a perldap that is
  20808. # compiled to either 32bit or 64bit, so we must use a native
  20809. # perl binary compiled with the same bitsize. On Solaris
  20810. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  20811. # those with our 64 bit compiled product.
  20812. perlexec='/usr/bin/env perl'
  20813. case $host in
  20814. *-*-linux*)
  20815. cat >>confdefs.h <<\_ACEOF
  20816. #define XP_UNIX 1
  20817. _ACEOF
  20818. cat >>confdefs.h <<\_ACEOF
  20819. #define Linux 1
  20820. _ACEOF
  20821. cat >>confdefs.h <<\_ACEOF
  20822. #define LINUX 1
  20823. _ACEOF
  20824. cat >>confdefs.h <<\_ACEOF
  20825. #define LINUX2_0 1
  20826. _ACEOF
  20827. cat >>confdefs.h <<\_ACEOF
  20828. #define LINUX2_2 1
  20829. _ACEOF
  20830. cat >>confdefs.h <<\_ACEOF
  20831. #define LINUX2_4 1
  20832. _ACEOF
  20833. cat >>confdefs.h <<\_ACEOF
  20834. #define _GNU_SOURCE 1
  20835. _ACEOF
  20836. platform="linux"
  20837. # relative to sysconfdir
  20838. initdir=/rc.d/init.d
  20839. ;;
  20840. ia64-hp-hpux*)
  20841. cat >>confdefs.h <<\_ACEOF
  20842. #define XP_UNIX 1
  20843. _ACEOF
  20844. cat >>confdefs.h <<\_ACEOF
  20845. #define hpux 1
  20846. _ACEOF
  20847. cat >>confdefs.h <<\_ACEOF
  20848. #define HPUX 1
  20849. _ACEOF
  20850. cat >>confdefs.h <<\_ACEOF
  20851. #define HPUX11 1
  20852. _ACEOF
  20853. cat >>confdefs.h <<\_ACEOF
  20854. #define HPUX11_23 1
  20855. _ACEOF
  20856. cat >>confdefs.h <<\_ACEOF
  20857. #define CPU_ia64
  20858. _ACEOF
  20859. cat >>confdefs.h <<\_ACEOF
  20860. #define OS_hpux 1
  20861. _ACEOF
  20862. cat >>confdefs.h <<\_ACEOF
  20863. #define _POSIX_C_SOURCE 199506L
  20864. _ACEOF
  20865. cat >>confdefs.h <<\_ACEOF
  20866. #define _HPUX_SOURCE 1
  20867. _ACEOF
  20868. cat >>confdefs.h <<\_ACEOF
  20869. #define _INCLUDE_STDC__SOURCE_199901 1
  20870. _ACEOF
  20871. # assume 64 bit
  20872. perlexec='/opt/perl_64/bin/perl'
  20873. platform="hpux"
  20874. initconfigdir="/$PACKAGE_NAME/config"
  20875. ;;
  20876. hppa*-hp-hpux*)
  20877. cat >>confdefs.h <<\_ACEOF
  20878. #define XP_UNIX 1
  20879. _ACEOF
  20880. cat >>confdefs.h <<\_ACEOF
  20881. #define hpux 1
  20882. _ACEOF
  20883. cat >>confdefs.h <<\_ACEOF
  20884. #define HPUX 1
  20885. _ACEOF
  20886. cat >>confdefs.h <<\_ACEOF
  20887. #define HPUX11 1
  20888. _ACEOF
  20889. cat >>confdefs.h <<\_ACEOF
  20890. #define HPUX11_11 1
  20891. _ACEOF
  20892. cat >>confdefs.h <<\_ACEOF
  20893. #define CPU_hppa
  20894. _ACEOF
  20895. cat >>confdefs.h <<\_ACEOF
  20896. #define OS_hpux 1
  20897. _ACEOF
  20898. cat >>confdefs.h <<\_ACEOF
  20899. #define _POSIX_C_SOURCE 199506L
  20900. _ACEOF
  20901. cat >>confdefs.h <<\_ACEOF
  20902. #define _HPUX_SOURCE 1
  20903. _ACEOF
  20904. cat >>confdefs.h <<\_ACEOF
  20905. #define _INCLUDE_STDC__SOURCE_199901 1
  20906. _ACEOF
  20907. # assume 64 bit
  20908. initconfigdir="/$PACKAGE_NAME/config"
  20909. perlexec='/opt/perl_64/bin/perl'
  20910. platform="hpux"
  20911. ;;
  20912. sparc-sun-solaris*)
  20913. cat >>confdefs.h <<\_ACEOF
  20914. #define XP_UNIX 1
  20915. _ACEOF
  20916. cat >>confdefs.h <<\_ACEOF
  20917. #define SVR4 1
  20918. _ACEOF
  20919. cat >>confdefs.h <<\_ACEOF
  20920. #define __svr4 1
  20921. _ACEOF
  20922. cat >>confdefs.h <<\_ACEOF
  20923. #define __svr4__ 1
  20924. _ACEOF
  20925. cat >>confdefs.h <<\_ACEOF
  20926. #define _SVID_GETTOD 1
  20927. _ACEOF
  20928. cat >>confdefs.h <<\_ACEOF
  20929. #define SOLARIS 1
  20930. _ACEOF
  20931. cat >>confdefs.h <<\_ACEOF
  20932. #define CPU_sparc
  20933. _ACEOF
  20934. cat >>confdefs.h <<\_ACEOF
  20935. #define OS_solaris 1
  20936. _ACEOF
  20937. cat >>confdefs.h <<\_ACEOF
  20938. #define sunos5 1
  20939. _ACEOF
  20940. cat >>confdefs.h <<\_ACEOF
  20941. #define OSVERSION 509
  20942. _ACEOF
  20943. cat >>confdefs.h <<\_ACEOF
  20944. #define _REENTRANT 1
  20945. _ACEOF
  20946. cat >>confdefs.h <<\_ACEOF
  20947. #define NO_DOMAINNAME 1
  20948. _ACEOF
  20949. LIBSOCKET=-lsocket
  20950. LIBSOCKET=$LIBSOCKET
  20951. LIBNSL=-lnsl
  20952. LIBNSL=$LIBNSL
  20953. LIBDL=-ldl
  20954. LIBDL=$LIBDL
  20955. LIBCSTD=-lCstd
  20956. LIBCSTD=$LIBCSTD
  20957. LIBCRUN=-lCrun
  20958. LIBCRUN=$LIBCRUN
  20959. platform="solaris"
  20960. # assume 64 bit
  20961. perlexec='/opt/perl5x/bin/perl'
  20962. # relative to sysconfdir
  20963. initdir=/init.d
  20964. ;;
  20965. *)
  20966. platform=""
  20967. ;;
  20968. esac
  20969. # set default initconfigdir if not already set
  20970. # value will be set so as to be relative to $(sysconfdir)
  20971. if test -z "$initconfigdir" ; then
  20972. if test -d /etc/sysconfig ; then
  20973. initconfigdir=/sysconfig
  20974. elif test -d /etc/default ; then
  20975. initconfigdir=/default
  20976. else
  20977. initconfigdir="/$PACKAGE_NAME/config"
  20978. fi
  20979. fi
  20980. if test "$platform" = "hpux"; then
  20981. HPUX_TRUE=
  20982. HPUX_FALSE='#'
  20983. else
  20984. HPUX_TRUE='#'
  20985. HPUX_FALSE=
  20986. fi
  20987. if test "$platform" = "solaris"; then
  20988. SOLARIS_TRUE=
  20989. SOLARIS_FALSE='#'
  20990. else
  20991. SOLARIS_TRUE='#'
  20992. SOLARIS_FALSE=
  20993. fi
  20994. # Check for library dependencies
  20995. # BEGIN COPYRIGHT BLOCK
  20996. # Copyright (C) 2007 Red Hat, Inc.
  20997. # All rights reserved.
  20998. #
  20999. # This program is free software; you can redistribute it and/or
  21000. # modify it under the terms of the GNU General Public License
  21001. # as published by the Free Software Foundation; either version 2
  21002. # of the License, or (at your option) any later version.
  21003. #
  21004. # This program is distributed in the hope that it will be useful,
  21005. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21006. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21007. # GNU General Public License for more details.
  21008. #
  21009. # You should have received a copy of the GNU General Public License
  21010. # along with this program; if not, write to the Free Software
  21011. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21012. #
  21013. # END COPYRIGHT BLOCK
  21014. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  21015. echo "$as_me: checking for NSPR..." >&6;}
  21016. # check for --with-nspr
  21017. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  21018. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  21019. # Check whether --with-nspr or --without-nspr was given.
  21020. if test "${with_nspr+set}" = set; then
  21021. withval="$with_nspr"
  21022. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  21023. then
  21024. echo "$as_me:$LINENO: result: using $withval" >&5
  21025. echo "${ECHO_T}using $withval" >&6
  21026. NSPRDIR=$withval
  21027. nspr_inc="-I$NSPRDIR/include"
  21028. nspr_lib="-L$NSPRDIR/lib"
  21029. nspr_libdir="$NSPRDIR/lib"
  21030. else
  21031. echo
  21032. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21033. echo "$as_me: error: $withval not found" >&2;}
  21034. { (exit 1); exit 1; }; }
  21035. fi
  21036. else
  21037. echo "$as_me:$LINENO: result: no" >&5
  21038. echo "${ECHO_T}no" >&6
  21039. fi;
  21040. # check for --with-nspr-inc
  21041. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  21042. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  21043. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  21044. if test "${with_nspr_inc+set}" = set; then
  21045. withval="$with_nspr_inc"
  21046. if test -e "$withval"/nspr.h
  21047. then
  21048. echo "$as_me:$LINENO: result: using $withval" >&5
  21049. echo "${ECHO_T}using $withval" >&6
  21050. nspr_inc="-I$withval"
  21051. else
  21052. echo
  21053. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21054. echo "$as_me: error: $withval not found" >&2;}
  21055. { (exit 1); exit 1; }; }
  21056. fi
  21057. else
  21058. echo "$as_me:$LINENO: result: no" >&5
  21059. echo "${ECHO_T}no" >&6
  21060. fi;
  21061. # check for --with-nspr-lib
  21062. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  21063. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  21064. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  21065. if test "${with_nspr_lib+set}" = set; then
  21066. withval="$with_nspr_lib"
  21067. if test -d "$withval"
  21068. then
  21069. echo "$as_me:$LINENO: result: using $withval" >&5
  21070. echo "${ECHO_T}using $withval" >&6
  21071. nspr_lib="-L$withval"
  21072. nspr_libdir="$withval"
  21073. else
  21074. echo
  21075. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21076. echo "$as_me: error: $withval not found" >&2;}
  21077. { (exit 1); exit 1; }; }
  21078. fi
  21079. else
  21080. echo "$as_me:$LINENO: result: no" >&5
  21081. echo "${ECHO_T}no" >&6
  21082. fi;
  21083. # if NSPR is not found yet, try pkg-config
  21084. # last resort
  21085. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21086. # Extract the first word of "pkg-config", so it can be a program name with args.
  21087. set dummy pkg-config; ac_word=$2
  21088. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21089. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21090. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21091. echo $ECHO_N "(cached) $ECHO_C" >&6
  21092. else
  21093. case $PKG_CONFIG in
  21094. [\\/]* | ?:[\\/]*)
  21095. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21096. ;;
  21097. *)
  21098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21099. for as_dir in $PATH
  21100. do
  21101. IFS=$as_save_IFS
  21102. test -z "$as_dir" && as_dir=.
  21103. for ac_exec_ext in '' $ac_executable_extensions; do
  21104. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21105. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21106. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21107. break 2
  21108. fi
  21109. done
  21110. done
  21111. ;;
  21112. esac
  21113. fi
  21114. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21115. if test -n "$PKG_CONFIG"; then
  21116. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21117. echo "${ECHO_T}$PKG_CONFIG" >&6
  21118. else
  21119. echo "$as_me:$LINENO: result: no" >&5
  21120. echo "${ECHO_T}no" >&6
  21121. fi
  21122. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  21123. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  21124. if test -n "$PKG_CONFIG"; then
  21125. if $PKG_CONFIG --exists nspr; then
  21126. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  21127. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  21128. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21129. echo "$as_me:$LINENO: result: using system NSPR" >&5
  21130. echo "${ECHO_T}using system NSPR" >&6
  21131. elif $PKG_CONFIG --exists dirsec-nspr; then
  21132. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  21133. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  21134. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21135. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  21136. echo "${ECHO_T}using system dirsec NSPR" >&6
  21137. else
  21138. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  21139. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  21140. { (exit 1); exit 1; }; }
  21141. fi
  21142. fi
  21143. fi
  21144. # BEGIN COPYRIGHT BLOCK
  21145. # Copyright (C) 2007 Red Hat, Inc.
  21146. # All rights reserved.
  21147. #
  21148. # This program is free software; you can redistribute it and/or
  21149. # modify it under the terms of the GNU General Public License
  21150. # as published by the Free Software Foundation; either version 2
  21151. # of the License, or (at your option) any later version.
  21152. #
  21153. # This program is distributed in the hope that it will be useful,
  21154. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21155. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21156. # GNU General Public License for more details.
  21157. #
  21158. # You should have received a copy of the GNU General Public License
  21159. # along with this program; if not, write to the Free Software
  21160. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21161. #
  21162. # END COPYRIGHT BLOCK
  21163. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21164. echo "$as_me: checking for NSS..." >&6;}
  21165. # check for --with-nss
  21166. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21167. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21168. # Check whether --with-nss or --without-nss was given.
  21169. if test "${with_nss+set}" = set; then
  21170. withval="$with_nss"
  21171. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21172. then
  21173. echo "$as_me:$LINENO: result: using $withval" >&5
  21174. echo "${ECHO_T}using $withval" >&6
  21175. NSSDIR=$withval
  21176. nss_inc="-I$NSSDIR/include"
  21177. nss_lib="-L$NSSDIR/lib"
  21178. nss_libdir="$NSSDIR/lib"
  21179. else
  21180. echo
  21181. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21182. echo "$as_me: error: $withval not found" >&2;}
  21183. { (exit 1); exit 1; }; }
  21184. fi
  21185. else
  21186. echo "$as_me:$LINENO: result: no" >&5
  21187. echo "${ECHO_T}no" >&6
  21188. fi;
  21189. # check for --with-nss-inc
  21190. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21191. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21192. # Check whether --with-nss-inc or --without-nss-inc was given.
  21193. if test "${with_nss_inc+set}" = set; then
  21194. withval="$with_nss_inc"
  21195. if test -e "$withval"/nss.h
  21196. then
  21197. echo "$as_me:$LINENO: result: using $withval" >&5
  21198. echo "${ECHO_T}using $withval" >&6
  21199. nss_inc="-I$withval"
  21200. else
  21201. echo
  21202. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21203. echo "$as_me: error: $withval not found" >&2;}
  21204. { (exit 1); exit 1; }; }
  21205. fi
  21206. else
  21207. echo "$as_me:$LINENO: result: no" >&5
  21208. echo "${ECHO_T}no" >&6
  21209. fi;
  21210. # check for --with-nss-lib
  21211. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21212. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21213. # Check whether --with-nss-lib or --without-nss-lib was given.
  21214. if test "${with_nss_lib+set}" = set; then
  21215. withval="$with_nss_lib"
  21216. if test -d "$withval"
  21217. then
  21218. echo "$as_me:$LINENO: result: using $withval" >&5
  21219. echo "${ECHO_T}using $withval" >&6
  21220. nss_lib="-L$withval"
  21221. nss_libdir="$withval"
  21222. else
  21223. echo
  21224. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21225. echo "$as_me: error: $withval not found" >&2;}
  21226. { (exit 1); exit 1; }; }
  21227. fi
  21228. else
  21229. echo "$as_me:$LINENO: result: no" >&5
  21230. echo "${ECHO_T}no" >&6
  21231. fi;
  21232. # if NSS is not found yet, try pkg-config
  21233. # last resort
  21234. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21235. # Extract the first word of "pkg-config", so it can be a program name with args.
  21236. set dummy pkg-config; ac_word=$2
  21237. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21238. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21239. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21240. echo $ECHO_N "(cached) $ECHO_C" >&6
  21241. else
  21242. case $PKG_CONFIG in
  21243. [\\/]* | ?:[\\/]*)
  21244. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21245. ;;
  21246. *)
  21247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21248. for as_dir in $PATH
  21249. do
  21250. IFS=$as_save_IFS
  21251. test -z "$as_dir" && as_dir=.
  21252. for ac_exec_ext in '' $ac_executable_extensions; do
  21253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21254. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21256. break 2
  21257. fi
  21258. done
  21259. done
  21260. ;;
  21261. esac
  21262. fi
  21263. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21264. if test -n "$PKG_CONFIG"; then
  21265. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21266. echo "${ECHO_T}$PKG_CONFIG" >&6
  21267. else
  21268. echo "$as_me:$LINENO: result: no" >&5
  21269. echo "${ECHO_T}no" >&6
  21270. fi
  21271. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21272. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21273. if test -n "$PKG_CONFIG"; then
  21274. if $PKG_CONFIG --exists nss; then
  21275. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21276. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21277. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21278. echo "$as_me:$LINENO: result: using system NSS" >&5
  21279. echo "${ECHO_T}using system NSS" >&6
  21280. elif $PKG_CONFIG --exists dirsec-nss; then
  21281. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21282. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21283. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21284. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21285. echo "${ECHO_T}using system dirsec NSS" >&6
  21286. else
  21287. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21288. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21289. { (exit 1); exit 1; }; }
  21290. fi
  21291. fi
  21292. fi
  21293. # BEGIN COPYRIGHT BLOCK
  21294. # Copyright (C) 2007 Red Hat, Inc.
  21295. # All rights reserved.
  21296. #
  21297. # This program is free software; you can redistribute it and/or
  21298. # modify it under the terms of the GNU General Public License
  21299. # as published by the Free Software Foundation; either version 2
  21300. # of the License, or (at your option) any later version.
  21301. #
  21302. # This program is distributed in the hope that it will be useful,
  21303. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21304. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21305. # GNU General Public License for more details.
  21306. #
  21307. # You should have received a copy of the GNU General Public License
  21308. # along with this program; if not, write to the Free Software
  21309. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21310. #
  21311. # END COPYRIGHT BLOCK
  21312. { echo "$as_me:$LINENO: checking for LDAPSDK..." >&5
  21313. echo "$as_me: checking for LDAPSDK..." >&6;}
  21314. # check for --with-ldapsdk
  21315. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  21316. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  21317. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  21318. if test "${with_ldapsdk+set}" = set; then
  21319. withval="$with_ldapsdk"
  21320. if test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21321. then
  21322. echo "$as_me:$LINENO: result: using $withval" >&5
  21323. echo "${ECHO_T}using $withval" >&6
  21324. LDAPSDKDIR=$withval
  21325. ldapsdk_inc="-I$LDAPSDKDIR/include"
  21326. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  21327. ldapsdk_libdir="$LDAPSDKDIR/lib"
  21328. ldapsdk_bindir="$LDAPSDKDIR/bin"
  21329. else
  21330. echo
  21331. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21332. echo "$as_me: error: $withval not found" >&2;}
  21333. { (exit 1); exit 1; }; }
  21334. fi
  21335. else
  21336. echo "$as_me:$LINENO: result: no" >&5
  21337. echo "${ECHO_T}no" >&6
  21338. fi;
  21339. # check for --with-ldapsdk-inc
  21340. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  21341. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  21342. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  21343. if test "${with_ldapsdk_inc+set}" = set; then
  21344. withval="$with_ldapsdk_inc"
  21345. if test -e "$withval"/ldap.h
  21346. then
  21347. echo "$as_me:$LINENO: result: using $withval" >&5
  21348. echo "${ECHO_T}using $withval" >&6
  21349. ldapsdk_inc="-I$withval"
  21350. else
  21351. echo
  21352. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21353. echo "$as_me: error: $withval not found" >&2;}
  21354. { (exit 1); exit 1; }; }
  21355. fi
  21356. else
  21357. echo "$as_me:$LINENO: result: no" >&5
  21358. echo "${ECHO_T}no" >&6
  21359. fi;
  21360. # check for --with-ldapsdk-lib
  21361. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  21362. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  21363. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  21364. if test "${with_ldapsdk_lib+set}" = set; then
  21365. withval="$with_ldapsdk_lib"
  21366. if test -d "$withval"
  21367. then
  21368. echo "$as_me:$LINENO: result: using $withval" >&5
  21369. echo "${ECHO_T}using $withval" >&6
  21370. ldapsdk_lib="-L$withval"
  21371. ldapsdk_libdir="$withval"
  21372. else
  21373. echo
  21374. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21375. echo "$as_me: error: $withval not found" >&2;}
  21376. { (exit 1); exit 1; }; }
  21377. fi
  21378. else
  21379. echo "$as_me:$LINENO: result: no" >&5
  21380. echo "${ECHO_T}no" >&6
  21381. fi;
  21382. # check for --with-ldapsdk-bin
  21383. echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  21384. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6
  21385. # Check whether --with-ldapsdk-bin or --without-ldapsdk-bin was given.
  21386. if test "${with_ldapsdk_bin+set}" = set; then
  21387. withval="$with_ldapsdk_bin"
  21388. if test -d "$withval"
  21389. then
  21390. echo "$as_me:$LINENO: result: using $withval" >&5
  21391. echo "${ECHO_T}using $withval" >&6
  21392. ldapsdk_bindir="$withval"
  21393. else
  21394. echo
  21395. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21396. echo "$as_me: error: $withval not found" >&2;}
  21397. { (exit 1); exit 1; }; }
  21398. fi
  21399. else
  21400. echo "$as_me:$LINENO: result: no" >&5
  21401. echo "${ECHO_T}no" >&6
  21402. fi;
  21403. # if LDAPSDK is not found yet, try pkg-config
  21404. # last resort
  21405. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  21406. # Extract the first word of "pkg-config", so it can be a program name with args.
  21407. set dummy pkg-config; ac_word=$2
  21408. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21409. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21410. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21411. echo $ECHO_N "(cached) $ECHO_C" >&6
  21412. else
  21413. case $PKG_CONFIG in
  21414. [\\/]* | ?:[\\/]*)
  21415. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21416. ;;
  21417. *)
  21418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21419. for as_dir in $PATH
  21420. do
  21421. IFS=$as_save_IFS
  21422. test -z "$as_dir" && as_dir=.
  21423. for ac_exec_ext in '' $ac_executable_extensions; do
  21424. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21425. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21426. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21427. break 2
  21428. fi
  21429. done
  21430. done
  21431. ;;
  21432. esac
  21433. fi
  21434. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21435. if test -n "$PKG_CONFIG"; then
  21436. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21437. echo "${ECHO_T}$PKG_CONFIG" >&6
  21438. else
  21439. echo "$as_me:$LINENO: result: no" >&5
  21440. echo "${ECHO_T}no" >&6
  21441. fi
  21442. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  21443. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  21444. if test -n "$PKG_CONFIG"; then
  21445. if $PKG_CONFIG --exists mozldap6; then
  21446. mozldappkg=mozldap6
  21447. elif $PKG_CONFIG --exists mozldap; then
  21448. mozldappkg=mozldap
  21449. else
  21450. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  21451. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  21452. { (exit 1); exit 1; }; }
  21453. fi
  21454. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  21455. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  21456. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  21457. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  21458. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  21459. echo "${ECHO_T}using system $mozldappkg" >&6
  21460. fi
  21461. fi
  21462. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  21463. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  21464. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  21465. { (exit 1); exit 1; }; }
  21466. fi
  21467. if test -z "$ldapsdk_bindir" ; then
  21468. if -d $libdir/mozldap6 ; then
  21469. ldapsdk_bindir=$libdir/mozldap6
  21470. else
  21471. ldapsdk_bindir=$libdir/mozldap
  21472. fi
  21473. fi
  21474. save_cppflags="$CPPFLAGS"
  21475. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  21476. echo "$as_me:$LINENO: checking for ldap.h" >&5
  21477. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  21478. if test "${ac_cv_header_ldap_h+set}" = set; then
  21479. echo $ECHO_N "(cached) $ECHO_C" >&6
  21480. else
  21481. cat >conftest.$ac_ext <<_ACEOF
  21482. /* confdefs.h. */
  21483. _ACEOF
  21484. cat confdefs.h >>conftest.$ac_ext
  21485. cat >>conftest.$ac_ext <<_ACEOF
  21486. /* end confdefs.h. */
  21487. #include <ldap-standard.h>
  21488. #if LDAP_VENDOR_VERSION < 600
  21489. #error The LDAP C SDK version is not supported
  21490. #endif
  21491. #include <ldap.h>
  21492. _ACEOF
  21493. rm -f conftest.$ac_objext
  21494. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21495. (eval $ac_compile) 2>conftest.er1
  21496. ac_status=$?
  21497. grep -v '^ *+' conftest.er1 >conftest.err
  21498. rm -f conftest.er1
  21499. cat conftest.err >&5
  21500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21501. (exit $ac_status); } &&
  21502. { ac_try='test -z "$ac_c_werror_flag"
  21503. || test ! -s conftest.err'
  21504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21505. (eval $ac_try) 2>&5
  21506. ac_status=$?
  21507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21508. (exit $ac_status); }; } &&
  21509. { ac_try='test -s conftest.$ac_objext'
  21510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21511. (eval $ac_try) 2>&5
  21512. ac_status=$?
  21513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21514. (exit $ac_status); }; }; then
  21515. ac_cv_header_ldap_h=yes
  21516. else
  21517. echo "$as_me: failed program was:" >&5
  21518. sed 's/^/| /' conftest.$ac_ext >&5
  21519. ac_cv_header_ldap_h=no
  21520. fi
  21521. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21522. fi
  21523. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  21524. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  21525. if test $ac_cv_header_ldap_h = yes; then
  21526. isversion6=1
  21527. else
  21528. isversion6=
  21529. fi
  21530. CPPFLAGS="$save_cppflags"
  21531. if test -z "$isversion6" ; then
  21532. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  21533. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  21534. { (exit 1); exit 1; }; }
  21535. fi
  21536. # BEGIN COPYRIGHT BLOCK
  21537. # Copyright (C) 2007 Red Hat, Inc.
  21538. # All rights reserved.
  21539. #
  21540. # This program is free software; you can redistribute it and/or
  21541. # modify it under the terms of the GNU General Public License
  21542. # as published by the Free Software Foundation; either version 2
  21543. # of the License, or (at your option) any later version.
  21544. #
  21545. # This program is distributed in the hope that it will be useful,
  21546. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21547. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21548. # GNU General Public License for more details.
  21549. #
  21550. # You should have received a copy of the GNU General Public License
  21551. # along with this program; if not, write to the Free Software
  21552. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21553. #
  21554. # END COPYRIGHT BLOCK
  21555. { echo "$as_me:$LINENO: checking for db..." >&5
  21556. echo "$as_me: checking for db..." >&6;}
  21557. echo "$as_me:$LINENO: checking for --with-db" >&5
  21558. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  21559. # Check whether --with-db or --without-db was given.
  21560. if test "${with_db+set}" = set; then
  21561. withval="$with_db"
  21562. if test "$withval" = "yes"; then
  21563. echo "$as_me:$LINENO: result: yes" >&5
  21564. echo "${ECHO_T}yes" >&6
  21565. if test -f "/usr/include/db.h"; then
  21566. db_incdir="/usr/include"
  21567. db_inc="-I/usr/include"
  21568. db_lib='-L$(libdir)'
  21569. db_libdir='$(libdir)'
  21570. else
  21571. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  21572. echo "$as_me: error: db.h not found" >&2;}
  21573. { (exit 1); exit 1; }; }
  21574. fi
  21575. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21576. echo "$as_me:$LINENO: result: using $withval" >&5
  21577. echo "${ECHO_T}using $withval" >&6
  21578. DBDIR=$withval
  21579. db_lib="-L$DBDIR/lib"
  21580. db_libdir="$DBDIR/lib"
  21581. db_incdir="$DBDIR/include"
  21582. if ! test -e "$db_incdir/db.h" ; then
  21583. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21584. echo "$as_me: error: $withval include dir not found" >&2;}
  21585. { (exit 1); exit 1; }; }
  21586. fi
  21587. db_inc="-I$db_incdir"
  21588. else
  21589. echo
  21590. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21591. echo "$as_me: error: $withval not found" >&2;}
  21592. { (exit 1); exit 1; }; }
  21593. fi
  21594. else
  21595. echo "$as_me:$LINENO: result: no" >&5
  21596. echo "${ECHO_T}no" >&6
  21597. fi;
  21598. if test -z "$db_inc"; then
  21599. echo "$as_me:$LINENO: checking for db.h" >&5
  21600. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  21601. if test -f "/usr/include/db.h"; then
  21602. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  21603. echo "${ECHO_T}using /usr/include/db.h" >&6
  21604. db_incdir="/usr/include"
  21605. db_inc="-I/usr/include"
  21606. db_lib='-L$(libdir)'
  21607. db_libdir='$(libdir)'
  21608. else
  21609. echo "$as_me:$LINENO: result: no" >&5
  21610. echo "${ECHO_T}no" >&6
  21611. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  21612. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  21613. { (exit 1); exit 1; }; }
  21614. fi
  21615. fi
  21616. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  21617. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  21618. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  21619. db_libver=${db_ver_maj}.${db_ver_min}
  21620. save_ldflags="$LDFLAGS"
  21621. LDFLAGS="$db_lib $LDFLAGS"
  21622. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  21623. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  21624. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  21625. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21626. echo $ECHO_N "(cached) $ECHO_C" >&6
  21627. else
  21628. ac_check_lib_save_LIBS=$LIBS
  21629. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  21630. cat >conftest.$ac_ext <<_ACEOF
  21631. /* confdefs.h. */
  21632. _ACEOF
  21633. cat confdefs.h >>conftest.$ac_ext
  21634. cat >>conftest.$ac_ext <<_ACEOF
  21635. /* end confdefs.h. */
  21636. /* Override any gcc2 internal prototype to avoid an error. */
  21637. #ifdef __cplusplus
  21638. extern "C"
  21639. #endif
  21640. /* We use char because int might match the return type of a gcc2
  21641. builtin and then its argument prototype would still apply. */
  21642. char db_create ();
  21643. int
  21644. main ()
  21645. {
  21646. db_create ();
  21647. ;
  21648. return 0;
  21649. }
  21650. _ACEOF
  21651. rm -f conftest.$ac_objext conftest$ac_exeext
  21652. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21653. (eval $ac_link) 2>conftest.er1
  21654. ac_status=$?
  21655. grep -v '^ *+' conftest.er1 >conftest.err
  21656. rm -f conftest.er1
  21657. cat conftest.err >&5
  21658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21659. (exit $ac_status); } &&
  21660. { ac_try='test -z "$ac_c_werror_flag"
  21661. || test ! -s conftest.err'
  21662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21663. (eval $ac_try) 2>&5
  21664. ac_status=$?
  21665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21666. (exit $ac_status); }; } &&
  21667. { ac_try='test -s conftest$ac_exeext'
  21668. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21669. (eval $ac_try) 2>&5
  21670. ac_status=$?
  21671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21672. (exit $ac_status); }; }; then
  21673. eval "$as_ac_Lib=yes"
  21674. else
  21675. echo "$as_me: failed program was:" >&5
  21676. sed 's/^/| /' conftest.$ac_ext >&5
  21677. eval "$as_ac_Lib=no"
  21678. fi
  21679. rm -f conftest.err conftest.$ac_objext \
  21680. conftest$ac_exeext conftest.$ac_ext
  21681. LIBS=$ac_check_lib_save_LIBS
  21682. fi
  21683. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21684. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21685. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21686. true
  21687. else
  21688. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  21689. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  21690. { (exit 1); exit 1; }; }
  21691. fi
  21692. LDFLAGS="$save_ldflags"
  21693. # if DB is not found yet, try pkg-config
  21694. # last resort
  21695. # Although the other db_* variables are correctly assigned at this point,
  21696. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  21697. if test -n "$PKG_CONFIG"; then
  21698. if $PKG_CONFIG --exists db; then
  21699. db_bindir=`$PKG_CONFIG --variable=bindir db`
  21700. else
  21701. db_bindir=/usr/bin
  21702. fi
  21703. else
  21704. db_bindir=/usr/bin
  21705. fi
  21706. # BEGIN COPYRIGHT BLOCK
  21707. # Copyright (C) 2007 Red Hat, Inc.
  21708. # All rights reserved.
  21709. #
  21710. # This program is free software; you can redistribute it and/or
  21711. # modify it under the terms of the GNU General Public License
  21712. # as published by the Free Software Foundation; either version 2
  21713. # of the License, or (at your option) any later version.
  21714. #
  21715. # This program is distributed in the hope that it will be useful,
  21716. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21717. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21718. # GNU General Public License for more details.
  21719. #
  21720. # You should have received a copy of the GNU General Public License
  21721. # along with this program; if not, write to the Free Software
  21722. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21723. #
  21724. # END COPYRIGHT BLOCK
  21725. # -*- tab-width: 4; -*-
  21726. # Configure paths for SASL
  21727. { echo "$as_me:$LINENO: checking for sasl..." >&5
  21728. echo "$as_me: checking for sasl..." >&6;}
  21729. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  21730. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  21731. # Check whether --with-sasl or --without-sasl was given.
  21732. if test "${with_sasl+set}" = set; then
  21733. withval="$with_sasl"
  21734. if test "$withval" = "yes"; then
  21735. echo "$as_me:$LINENO: result: yes" >&5
  21736. echo "${ECHO_T}yes" >&6
  21737. if test -f /usr/include/sasl/sasl.h; then
  21738. sasl_inc="-I/usr/include/sasl"
  21739. elif test -f /usr/include/sasl.h; then
  21740. sasl_inc="-I/usr/include"
  21741. else
  21742. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21743. echo "$as_me: error: sasl.h not found" >&2;}
  21744. { (exit 1); exit 1; }; }
  21745. fi
  21746. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21747. echo "$as_me:$LINENO: result: using $withval" >&5
  21748. echo "${ECHO_T}using $withval" >&6
  21749. if test -f "$withval/include/sasl/sasl.h"; then
  21750. sasl_inc="-I$withval/include/sasl"
  21751. elif test -f "$withval/include/sasl.h"; then
  21752. sasl_inc="-I$withval/include"
  21753. else
  21754. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21755. echo "$as_me: error: sasl.h not found" >&2;}
  21756. { (exit 1); exit 1; }; }
  21757. fi
  21758. sasl_lib="-L$withval/lib"
  21759. sasl_libdir="$withval/lib"
  21760. else
  21761. echo "$as_me:$LINENO: result: yes" >&5
  21762. echo "${ECHO_T}yes" >&6
  21763. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  21764. echo "$as_me: error: sasl not found in $withval" >&2;}
  21765. { (exit 1); exit 1; }; }
  21766. fi
  21767. else
  21768. echo "$as_me:$LINENO: result: no" >&5
  21769. echo "${ECHO_T}no" >&6
  21770. fi;
  21771. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  21772. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  21773. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  21774. if test "${with_sasl_inc+set}" = set; then
  21775. withval="$with_sasl_inc"
  21776. if test -f "$withval"/sasl.h; then
  21777. echo "$as_me:$LINENO: result: using $withval" >&5
  21778. echo "${ECHO_T}using $withval" >&6
  21779. sasl_inc="-I$withval"
  21780. else
  21781. echo
  21782. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  21783. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  21784. { (exit 1); exit 1; }; }
  21785. fi
  21786. else
  21787. echo "$as_me:$LINENO: result: no" >&5
  21788. echo "${ECHO_T}no" >&6
  21789. fi;
  21790. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  21791. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  21792. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  21793. if test "${with_sasl_lib+set}" = set; then
  21794. withval="$with_sasl_lib"
  21795. if test -d "$withval"; then
  21796. echo "$as_me:$LINENO: result: using $withval" >&5
  21797. echo "${ECHO_T}using $withval" >&6
  21798. sasl_lib="-L$withval"
  21799. sasl_libdir="$withval"
  21800. else
  21801. echo
  21802. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21803. echo "$as_me: error: $withval not found" >&2;}
  21804. { (exit 1); exit 1; }; }
  21805. fi
  21806. else
  21807. echo "$as_me:$LINENO: result: no" >&5
  21808. echo "${ECHO_T}no" >&6
  21809. fi;
  21810. if test -z "$sasl_inc"; then
  21811. echo "$as_me:$LINENO: checking for sasl.h" >&5
  21812. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  21813. if test -f /usr/include/sasl/sasl.h; then
  21814. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  21815. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  21816. sasl_inc="-I/usr/include/sasl"
  21817. elif test -f /usr/include/sasl.h; then
  21818. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  21819. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  21820. sasl_inc="-I/usr/include"
  21821. else
  21822. echo "$as_me:$LINENO: result: no" >&5
  21823. echo "${ECHO_T}no" >&6
  21824. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  21825. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  21826. { (exit 1); exit 1; }; }
  21827. fi
  21828. fi
  21829. # BEGIN COPYRIGHT BLOCK
  21830. # Copyright (C) 2007 Red Hat, Inc.
  21831. # All rights reserved.
  21832. #
  21833. # This program is free software; you can redistribute it and/or
  21834. # modify it under the terms of the GNU General Public License
  21835. # as published by the Free Software Foundation; either version 2
  21836. # of the License, or (at your option) any later version.
  21837. #
  21838. # This program is distributed in the hope that it will be useful,
  21839. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21840. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21841. # GNU General Public License for more details.
  21842. #
  21843. # You should have received a copy of the GNU General Public License
  21844. # along with this program; if not, write to the Free Software
  21845. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21846. #
  21847. # END COPYRIGHT BLOCK
  21848. #
  21849. # Configure paths for SVRCORE
  21850. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  21851. echo "$as_me: checking for svrcore..." >&6;}
  21852. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  21853. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  21854. # Check whether --with-svrcore or --without-svrcore was given.
  21855. if test "${with_svrcore+set}" = set; then
  21856. withval="$with_svrcore"
  21857. if test "$withval" = "yes"; then
  21858. echo "$as_me:$LINENO: result: yes" >&5
  21859. echo "${ECHO_T}yes" >&6
  21860. if test -f /usr/include/svrcore.h; then
  21861. svrcore_inc="-I/usr/include"
  21862. else
  21863. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21864. echo "$as_me: error: svrcore.h not found" >&2;}
  21865. { (exit 1); exit 1; }; }
  21866. fi
  21867. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21868. echo "$as_me:$LINENO: result: using $withval" >&5
  21869. echo "${ECHO_T}using $withval" >&6
  21870. if test -f "$withval/include/svrcore.h"; then
  21871. svrcore_inc="-I$withval/include"
  21872. else
  21873. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21874. echo "$as_me: error: svrcore.h not found" >&2;}
  21875. { (exit 1); exit 1; }; }
  21876. fi
  21877. svrcore_lib="-L$withval/lib"
  21878. else
  21879. echo "$as_me:$LINENO: result: yes" >&5
  21880. echo "${ECHO_T}yes" >&6
  21881. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  21882. echo "$as_me: error: svrcore not found in $withval" >&2;}
  21883. { (exit 1); exit 1; }; }
  21884. fi
  21885. else
  21886. echo "$as_me:$LINENO: result: no" >&5
  21887. echo "${ECHO_T}no" >&6
  21888. fi;
  21889. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  21890. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  21891. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  21892. if test "${with_svrcore_inc+set}" = set; then
  21893. withval="$with_svrcore_inc"
  21894. if test -f "$withval"/svrcore.h; then
  21895. echo "$as_me:$LINENO: result: using $withval" >&5
  21896. echo "${ECHO_T}using $withval" >&6
  21897. svrcore_inc="-I$withval"
  21898. else
  21899. echo
  21900. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  21901. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  21902. { (exit 1); exit 1; }; }
  21903. fi
  21904. else
  21905. echo "$as_me:$LINENO: result: no" >&5
  21906. echo "${ECHO_T}no" >&6
  21907. fi;
  21908. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  21909. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  21910. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  21911. if test "${with_svrcore_lib+set}" = set; then
  21912. withval="$with_svrcore_lib"
  21913. if test -d "$withval"; then
  21914. echo "$as_me:$LINENO: result: using $withval" >&5
  21915. echo "${ECHO_T}using $withval" >&6
  21916. svrcore_lib="-L$withval"
  21917. else
  21918. echo
  21919. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21920. echo "$as_me: error: $withval not found" >&2;}
  21921. { (exit 1); exit 1; }; }
  21922. fi
  21923. else
  21924. echo "$as_me:$LINENO: result: no" >&5
  21925. echo "${ECHO_T}no" >&6
  21926. fi;
  21927. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21928. # Extract the first word of "pkg-config", so it can be a program name with args.
  21929. set dummy pkg-config; ac_word=$2
  21930. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21931. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21932. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21933. echo $ECHO_N "(cached) $ECHO_C" >&6
  21934. else
  21935. case $PKG_CONFIG in
  21936. [\\/]* | ?:[\\/]*)
  21937. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21938. ;;
  21939. *)
  21940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21941. for as_dir in $PATH
  21942. do
  21943. IFS=$as_save_IFS
  21944. test -z "$as_dir" && as_dir=.
  21945. for ac_exec_ext in '' $ac_executable_extensions; do
  21946. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21947. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21948. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21949. break 2
  21950. fi
  21951. done
  21952. done
  21953. ;;
  21954. esac
  21955. fi
  21956. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21957. if test -n "$PKG_CONFIG"; then
  21958. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21959. echo "${ECHO_T}$PKG_CONFIG" >&6
  21960. else
  21961. echo "$as_me:$LINENO: result: no" >&5
  21962. echo "${ECHO_T}no" >&6
  21963. fi
  21964. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  21965. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  21966. if test -n "$PKG_CONFIG"; then
  21967. if $PKG_CONFIG --exists svrcore; then
  21968. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  21969. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  21970. echo "$as_me:$LINENO: result: using system svrcore" >&5
  21971. echo "${ECHO_T}using system svrcore" >&6
  21972. fi
  21973. fi
  21974. fi
  21975. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21976. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  21977. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  21978. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  21979. echo $ECHO_N "(cached) $ECHO_C" >&6
  21980. else
  21981. ac_check_lib_save_LIBS=$LIBS
  21982. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  21983. cat >conftest.$ac_ext <<_ACEOF
  21984. /* confdefs.h. */
  21985. _ACEOF
  21986. cat confdefs.h >>conftest.$ac_ext
  21987. cat >>conftest.$ac_ext <<_ACEOF
  21988. /* end confdefs.h. */
  21989. /* Override any gcc2 internal prototype to avoid an error. */
  21990. #ifdef __cplusplus
  21991. extern "C"
  21992. #endif
  21993. /* We use char because int might match the return type of a gcc2
  21994. builtin and then its argument prototype would still apply. */
  21995. char SVRCORE_GetRegisteredPinObj ();
  21996. int
  21997. main ()
  21998. {
  21999. SVRCORE_GetRegisteredPinObj ();
  22000. ;
  22001. return 0;
  22002. }
  22003. _ACEOF
  22004. rm -f conftest.$ac_objext conftest$ac_exeext
  22005. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22006. (eval $ac_link) 2>conftest.er1
  22007. ac_status=$?
  22008. grep -v '^ *+' conftest.er1 >conftest.err
  22009. rm -f conftest.er1
  22010. cat conftest.err >&5
  22011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22012. (exit $ac_status); } &&
  22013. { ac_try='test -z "$ac_c_werror_flag"
  22014. || test ! -s conftest.err'
  22015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22016. (eval $ac_try) 2>&5
  22017. ac_status=$?
  22018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22019. (exit $ac_status); }; } &&
  22020. { ac_try='test -s conftest$ac_exeext'
  22021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22022. (eval $ac_try) 2>&5
  22023. ac_status=$?
  22024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22025. (exit $ac_status); }; }; then
  22026. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  22027. else
  22028. echo "$as_me: failed program was:" >&5
  22029. sed 's/^/| /' conftest.$ac_ext >&5
  22030. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  22031. fi
  22032. rm -f conftest.err conftest.$ac_objext \
  22033. conftest$ac_exeext conftest.$ac_ext
  22034. LIBS=$ac_check_lib_save_LIBS
  22035. fi
  22036. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  22037. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  22038. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  22039. havesvrcore=1
  22040. fi
  22041. if test -n "$havesvrcore" ; then
  22042. save_cppflags="$CPPFLAGS"
  22043. CPPFLAGS="$nss_inc $nspr_inc"
  22044. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22045. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22046. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22047. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22048. echo $ECHO_N "(cached) $ECHO_C" >&6
  22049. fi
  22050. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22051. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22052. else
  22053. # Is the header compilable?
  22054. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  22055. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  22056. cat >conftest.$ac_ext <<_ACEOF
  22057. /* confdefs.h. */
  22058. _ACEOF
  22059. cat confdefs.h >>conftest.$ac_ext
  22060. cat >>conftest.$ac_ext <<_ACEOF
  22061. /* end confdefs.h. */
  22062. $ac_includes_default
  22063. #include <svrcore.h>
  22064. _ACEOF
  22065. rm -f conftest.$ac_objext
  22066. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22067. (eval $ac_compile) 2>conftest.er1
  22068. ac_status=$?
  22069. grep -v '^ *+' conftest.er1 >conftest.err
  22070. rm -f conftest.er1
  22071. cat conftest.err >&5
  22072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22073. (exit $ac_status); } &&
  22074. { ac_try='test -z "$ac_c_werror_flag"
  22075. || test ! -s conftest.err'
  22076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22077. (eval $ac_try) 2>&5
  22078. ac_status=$?
  22079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22080. (exit $ac_status); }; } &&
  22081. { ac_try='test -s conftest.$ac_objext'
  22082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22083. (eval $ac_try) 2>&5
  22084. ac_status=$?
  22085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22086. (exit $ac_status); }; }; then
  22087. ac_header_compiler=yes
  22088. else
  22089. echo "$as_me: failed program was:" >&5
  22090. sed 's/^/| /' conftest.$ac_ext >&5
  22091. ac_header_compiler=no
  22092. fi
  22093. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22094. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22095. echo "${ECHO_T}$ac_header_compiler" >&6
  22096. # Is the header present?
  22097. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  22098. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  22099. cat >conftest.$ac_ext <<_ACEOF
  22100. /* confdefs.h. */
  22101. _ACEOF
  22102. cat confdefs.h >>conftest.$ac_ext
  22103. cat >>conftest.$ac_ext <<_ACEOF
  22104. /* end confdefs.h. */
  22105. #include <svrcore.h>
  22106. _ACEOF
  22107. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22108. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22109. ac_status=$?
  22110. grep -v '^ *+' conftest.er1 >conftest.err
  22111. rm -f conftest.er1
  22112. cat conftest.err >&5
  22113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22114. (exit $ac_status); } >/dev/null; then
  22115. if test -s conftest.err; then
  22116. ac_cpp_err=$ac_c_preproc_warn_flag
  22117. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22118. else
  22119. ac_cpp_err=
  22120. fi
  22121. else
  22122. ac_cpp_err=yes
  22123. fi
  22124. if test -z "$ac_cpp_err"; then
  22125. ac_header_preproc=yes
  22126. else
  22127. echo "$as_me: failed program was:" >&5
  22128. sed 's/^/| /' conftest.$ac_ext >&5
  22129. ac_header_preproc=no
  22130. fi
  22131. rm -f conftest.err conftest.$ac_ext
  22132. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22133. echo "${ECHO_T}$ac_header_preproc" >&6
  22134. # So? What about this header?
  22135. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22136. yes:no: )
  22137. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22138. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22139. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  22140. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  22141. ac_header_preproc=yes
  22142. ;;
  22143. no:yes:* )
  22144. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  22145. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  22146. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  22147. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  22148. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  22149. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  22150. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  22151. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22152. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  22153. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  22154. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  22155. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  22156. (
  22157. cat <<\_ASBOX
  22158. ## ------------------------------------------ ##
  22159. ## Report this to http://bugzilla.redhat.com/ ##
  22160. ## ------------------------------------------ ##
  22161. _ASBOX
  22162. ) |
  22163. sed "s/^/$as_me: WARNING: /" >&2
  22164. ;;
  22165. esac
  22166. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22167. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22168. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22169. echo $ECHO_N "(cached) $ECHO_C" >&6
  22170. else
  22171. ac_cv_header_svrcore_h=$ac_header_preproc
  22172. fi
  22173. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22174. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22175. fi
  22176. if test $ac_cv_header_svrcore_h = yes; then
  22177. havesvrcore=1
  22178. else
  22179. havesvrcore=
  22180. fi
  22181. CPPFLAGS="$save_cppflags"
  22182. fi
  22183. if test -z "$havesvrcore" ; then
  22184. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  22185. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  22186. { (exit 1); exit 1; }; }
  22187. fi
  22188. fi
  22189. # BEGIN COPYRIGHT BLOCK
  22190. # Copyright (C) 2006 Red Hat, Inc.
  22191. # All rights reserved.
  22192. #
  22193. # This program is free software; you can redistribute it and/or
  22194. # modify it under the terms of the GNU General Public License
  22195. # as published by the Free Software Foundation; either version 2
  22196. # of the License, or (at your option) any later version.
  22197. #
  22198. # This program is distributed in the hope that it will be useful,
  22199. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22200. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22201. # GNU General Public License for more details.
  22202. #
  22203. # You should have received a copy of the GNU General Public License
  22204. # along with this program; if not, write to the Free Software
  22205. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22206. #
  22207. # END COPYRIGHT BLOCK
  22208. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  22209. echo "$as_me: checking for LIBICU..." >&6;}
  22210. # check for --with-icu
  22211. echo "$as_me:$LINENO: checking for --with-icu" >&5
  22212. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  22213. # Check whether --with-icu or --without-icu was given.
  22214. if test "${with_icu+set}" = set; then
  22215. withval="$with_icu"
  22216. if test -d "$withval"/lib
  22217. then
  22218. echo "$as_me:$LINENO: result: using $withval" >&5
  22219. echo "${ECHO_T}using $withval" >&6
  22220. ICUDIR=$withval
  22221. icu_lib="-L$ICUDIR/lib"
  22222. else
  22223. echo
  22224. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22225. echo "$as_me: error: $withval not found" >&2;}
  22226. { (exit 1); exit 1; }; }
  22227. fi
  22228. icu_inc="-I$withval/include"
  22229. icu_bin="$withval/bin"
  22230. else
  22231. echo "$as_me:$LINENO: result: no" >&5
  22232. echo "${ECHO_T}no" >&6
  22233. fi;
  22234. # check for --with-icu-inc
  22235. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  22236. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  22237. # Check whether --with-icu-inc or --without-icu-inc was given.
  22238. if test "${with_icu_inc+set}" = set; then
  22239. withval="$with_icu_inc"
  22240. if test -d "$withval"
  22241. then
  22242. echo "$as_me:$LINENO: result: using $withval" >&5
  22243. echo "${ECHO_T}using $withval" >&6
  22244. icu_inc="-I$withval"
  22245. else
  22246. echo
  22247. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22248. echo "$as_me: error: $withval not found" >&2;}
  22249. { (exit 1); exit 1; }; }
  22250. fi
  22251. else
  22252. echo "$as_me:$LINENO: result: no" >&5
  22253. echo "${ECHO_T}no" >&6
  22254. fi;
  22255. # check for --with-icu-lib
  22256. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  22257. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  22258. # Check whether --with-icu-lib or --without-icu-lib was given.
  22259. if test "${with_icu_lib+set}" = set; then
  22260. withval="$with_icu_lib"
  22261. if test -d "$withval"
  22262. then
  22263. echo "$as_me:$LINENO: result: using $withval" >&5
  22264. echo "${ECHO_T}using $withval" >&6
  22265. icu_lib="-L$withval"
  22266. else
  22267. echo
  22268. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22269. echo "$as_me: error: $withval not found" >&2;}
  22270. { (exit 1); exit 1; }; }
  22271. fi
  22272. else
  22273. echo "$as_me:$LINENO: result: no" >&5
  22274. echo "${ECHO_T}no" >&6
  22275. fi;
  22276. # check for --with-icu-bin
  22277. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  22278. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  22279. # Check whether --with-icu-bin or --without-icu-bin was given.
  22280. if test "${with_icu_bin+set}" = set; then
  22281. withval="$with_icu_bin"
  22282. if test -d "$withval"
  22283. then
  22284. echo "$as_me:$LINENO: result: using $withval" >&5
  22285. echo "${ECHO_T}using $withval" >&6
  22286. icu_bin="$withval"
  22287. else
  22288. echo
  22289. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22290. echo "$as_me: error: $withval not found" >&2;}
  22291. { (exit 1); exit 1; }; }
  22292. fi
  22293. else
  22294. echo "$as_me:$LINENO: result: no" >&5
  22295. echo "${ECHO_T}no" >&6
  22296. fi;
  22297. # if ICU is not found yet, try pkg-config
  22298. # last resort
  22299. if test -z "$icu_lib"; then
  22300. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  22301. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  22302. # Extract the first word of "icu-config", so it can be a program name with args.
  22303. set dummy icu-config; ac_word=$2
  22304. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22305. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22306. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  22307. echo $ECHO_N "(cached) $ECHO_C" >&6
  22308. else
  22309. case $ICU_CONFIG in
  22310. [\\/]* | ?:[\\/]*)
  22311. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  22312. ;;
  22313. *)
  22314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22315. for as_dir in $PATH
  22316. do
  22317. IFS=$as_save_IFS
  22318. test -z "$as_dir" && as_dir=.
  22319. for ac_exec_ext in '' $ac_executable_extensions; do
  22320. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22321. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22322. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22323. break 2
  22324. fi
  22325. done
  22326. done
  22327. ;;
  22328. esac
  22329. fi
  22330. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  22331. if test -n "$ICU_CONFIG"; then
  22332. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  22333. echo "${ECHO_T}$ICU_CONFIG" >&6
  22334. else
  22335. echo "$as_me:$LINENO: result: no" >&5
  22336. echo "${ECHO_T}no" >&6
  22337. fi
  22338. if test -n "$ICU_CONFIG"; then
  22339. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  22340. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  22341. icu_bin=`$ICU_CONFIG --bindir`
  22342. echo "$as_me:$LINENO: result: using system ICU" >&5
  22343. echo "${ECHO_T}using system ICU" >&6
  22344. else
  22345. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  22346. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  22347. { (exit 1); exit 1; }; }
  22348. fi
  22349. fi
  22350. # BEGIN COPYRIGHT BLOCK
  22351. # Copyright (C) 2006 Red Hat, Inc.
  22352. # All rights reserved.
  22353. #
  22354. # This program is free software; you can redistribute it and/or
  22355. # modify it under the terms of the GNU General Public License
  22356. # as published by the Free Software Foundation; either version 2
  22357. # of the License, or (at your option) any later version.
  22358. #
  22359. # This program is distributed in the hope that it will be useful,
  22360. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22361. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22362. # GNU General Public License for more details.
  22363. #
  22364. # You should have received a copy of the GNU General Public License
  22365. # along with this program; if not, write to the Free Software
  22366. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22367. #
  22368. # END COPYRIGHT BLOCK
  22369. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  22370. echo "$as_me: checking for Net-SNMP..." >&6;}
  22371. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  22372. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  22373. # Check whether --with-netsnmp or --without-netsnmp was given.
  22374. if test "${with_netsnmp+set}" = set; then
  22375. withval="$with_netsnmp"
  22376. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  22377. echo "$as_me:$LINENO: result: using $withval" >&5
  22378. echo "${ECHO_T}using $withval" >&6
  22379. NETSNMPDIR=$withval
  22380. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  22381. netsnmp_inc="-I$withval/include"
  22382. else
  22383. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  22384. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  22385. { (exit 1); exit 1; }; }
  22386. fi
  22387. netsnmp_lib="-L$withval/lib"
  22388. netsnmp_libdir="$withval/lib"
  22389. else
  22390. echo "$as_me:$LINENO: result: yes" >&5
  22391. echo "${ECHO_T}yes" >&6
  22392. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22393. echo "$as_me: error: $withval not found" >&2;}
  22394. { (exit 1); exit 1; }; }
  22395. fi
  22396. else
  22397. echo "$as_me:$LINENO: result: no" >&5
  22398. echo "${ECHO_T}no" >&6
  22399. fi;
  22400. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  22401. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  22402. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  22403. if test "${with_netsnmp_inc+set}" = set; then
  22404. withval="$with_netsnmp_inc"
  22405. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  22406. echo "$as_me:$LINENO: result: using $withval" >&5
  22407. echo "${ECHO_T}using $withval" >&6
  22408. netsnmp_inc="-I$withval"
  22409. else
  22410. echo
  22411. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  22412. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  22413. { (exit 1); exit 1; }; }
  22414. fi
  22415. else
  22416. echo "$as_me:$LINENO: result: no" >&5
  22417. echo "${ECHO_T}no" >&6
  22418. fi;
  22419. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  22420. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  22421. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  22422. if test "${with_netsnmp_lib+set}" = set; then
  22423. withval="$with_netsnmp_lib"
  22424. if test -d "$withval"
  22425. then
  22426. echo "$as_me:$LINENO: result: using $withval" >&5
  22427. echo "${ECHO_T}using $withval" >&6
  22428. netsnmp_lib="-L$withval"
  22429. netsnmp_libdir="$withval"
  22430. else
  22431. echo
  22432. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22433. echo "$as_me: error: $withval not found" >&2;}
  22434. { (exit 1); exit 1; }; }
  22435. fi
  22436. else
  22437. echo "$as_me:$LINENO: result: no" >&5
  22438. echo "${ECHO_T}no" >&6
  22439. fi;
  22440. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  22441. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  22442. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  22443. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  22444. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  22445. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  22446. netsnmp_inc="-I/usr/include"
  22447. else
  22448. echo "$as_me:$LINENO: result: no" >&5
  22449. echo "${ECHO_T}no" >&6
  22450. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  22451. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  22452. { (exit 1); exit 1; }; }
  22453. fi
  22454. fi
  22455. if test -n "$netsnmp_inc"; then
  22456. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  22457. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  22458. else
  22459. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  22460. set dummy net-snmp-config; ac_word=$2
  22461. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22462. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22463. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  22464. echo $ECHO_N "(cached) $ECHO_C" >&6
  22465. else
  22466. case $NETSNMP_CONFIG in
  22467. [\\/]* | ?:[\\/]*)
  22468. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  22469. ;;
  22470. *)
  22471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22472. for as_dir in $PATH
  22473. do
  22474. IFS=$as_save_IFS
  22475. test -z "$as_dir" && as_dir=.
  22476. for ac_exec_ext in '' $ac_executable_extensions; do
  22477. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22478. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22479. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22480. break 2
  22481. fi
  22482. done
  22483. done
  22484. ;;
  22485. esac
  22486. fi
  22487. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  22488. if test -n "$NETSNMP_CONFIG"; then
  22489. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  22490. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  22491. else
  22492. echo "$as_me:$LINENO: result: no" >&5
  22493. echo "${ECHO_T}no" >&6
  22494. fi
  22495. fi
  22496. if test -n "$NETSNMP_CONFIG"; then
  22497. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  22498. else
  22499. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  22500. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  22501. { (exit 1); exit 1; }; }
  22502. fi
  22503. else
  22504. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  22505. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  22506. { (exit 1); exit 1; }; }
  22507. fi
  22508. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  22509. # set sasl_path for wrapper scripts
  22510. if test -z "$sasl_libdir" ; then
  22511. sasl_path="$libdir/sasl2"
  22512. else
  22513. sasl_path="$sasl_libdir/sasl2"
  22514. fi
  22515. # write out paths for binary components
  22516. cat >>confdefs.h <<\_ACEOF
  22517. #define LDAP_DEBUG 1
  22518. _ACEOF
  22519. cat >>confdefs.h <<\_ACEOF
  22520. #define LDAP_DONT_USE_SMARTHEAP 1
  22521. _ACEOF
  22522. # libtool on fedora/rhel contains some gcc-isms which cause problems
  22523. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  22524. # we remove them here
  22525. if test "$GCC" != yes ; then
  22526. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  22527. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  22528. cp -p libtool libtool.orig
  22529. cp -p libtool libtool.tmp
  22530. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  22531. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  22532. # perl produced write-only code . . .
  22533. sed -e '/^gcc_dir/ d' \
  22534. -e '/^gcc_ver/ d' \
  22535. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  22536. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  22537. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  22538. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  22539. libtool > libtool.tmp
  22540. cp -p libtool.tmp libtool
  22541. rm -f libtool.tmp
  22542. fi
  22543. ac_config_files="$ac_config_files Makefile"
  22544. cat >confcache <<\_ACEOF
  22545. # This file is a shell script that caches the results of configure
  22546. # tests run on this system so they can be shared between configure
  22547. # scripts and configure runs, see configure's option --config-cache.
  22548. # It is not useful on other systems. If it contains results you don't
  22549. # want to keep, you may remove or edit it.
  22550. #
  22551. # config.status only pays attention to the cache file if you give it
  22552. # the --recheck option to rerun configure.
  22553. #
  22554. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22555. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22556. # following values.
  22557. _ACEOF
  22558. # The following way of writing the cache mishandles newlines in values,
  22559. # but we know of no workaround that is simple, portable, and efficient.
  22560. # So, don't put newlines in cache variables' values.
  22561. # Ultrix sh set writes to stderr and can't be redirected directly,
  22562. # and sets the high bit in the cache file unless we assign to the vars.
  22563. {
  22564. (set) 2>&1 |
  22565. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  22566. *ac_space=\ *)
  22567. # `set' does not quote correctly, so add quotes (double-quote
  22568. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22569. sed -n \
  22570. "s/'/'\\\\''/g;
  22571. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22572. ;;
  22573. *)
  22574. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22575. sed -n \
  22576. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  22577. ;;
  22578. esac;
  22579. } |
  22580. sed '
  22581. t clear
  22582. : clear
  22583. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22584. t end
  22585. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22586. : end' >>confcache
  22587. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  22588. if test -w $cache_file; then
  22589. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  22590. cat confcache >$cache_file
  22591. else
  22592. echo "not updating unwritable cache $cache_file"
  22593. fi
  22594. fi
  22595. rm -f confcache
  22596. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22597. # Let make expand exec_prefix.
  22598. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22599. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22600. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22601. # trailing colons and then remove the whole line if VPATH becomes empty
  22602. # (actually we leave an empty line to preserve line numbers).
  22603. if test "x$srcdir" = x.; then
  22604. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22605. s/:*\$(srcdir):*/:/;
  22606. s/:*\${srcdir}:*/:/;
  22607. s/:*@srcdir@:*/:/;
  22608. s/^\([^=]*=[ ]*\):*/\1/;
  22609. s/:*$//;
  22610. s/^[^=]*=[ ]*$//;
  22611. }'
  22612. fi
  22613. DEFS=-DHAVE_CONFIG_H
  22614. ac_libobjs=
  22615. ac_ltlibobjs=
  22616. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22617. # 1. Remove the extension, and $U if already installed.
  22618. ac_i=`echo "$ac_i" |
  22619. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  22620. # 2. Add them.
  22621. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  22622. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  22623. done
  22624. LIBOBJS=$ac_libobjs
  22625. LTLIBOBJS=$ac_ltlibobjs
  22626. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22627. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  22628. Usually this means the macro was only invoked conditionally." >&5
  22629. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  22630. Usually this means the macro was only invoked conditionally." >&2;}
  22631. { (exit 1); exit 1; }; }
  22632. fi
  22633. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22634. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22635. Usually this means the macro was only invoked conditionally." >&5
  22636. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22637. Usually this means the macro was only invoked conditionally." >&2;}
  22638. { (exit 1); exit 1; }; }
  22639. fi
  22640. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22641. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22642. Usually this means the macro was only invoked conditionally." >&5
  22643. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22644. Usually this means the macro was only invoked conditionally." >&2;}
  22645. { (exit 1); exit 1; }; }
  22646. fi
  22647. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22648. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22649. Usually this means the macro was only invoked conditionally." >&5
  22650. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22651. Usually this means the macro was only invoked conditionally." >&2;}
  22652. { (exit 1); exit 1; }; }
  22653. fi
  22654. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  22655. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  22656. Usually this means the macro was only invoked conditionally." >&5
  22657. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  22658. Usually this means the macro was only invoked conditionally." >&2;}
  22659. { (exit 1); exit 1; }; }
  22660. fi
  22661. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  22662. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  22663. Usually this means the macro was only invoked conditionally." >&5
  22664. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  22665. Usually this means the macro was only invoked conditionally." >&2;}
  22666. { (exit 1); exit 1; }; }
  22667. fi
  22668. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  22669. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  22670. Usually this means the macro was only invoked conditionally." >&5
  22671. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  22672. Usually this means the macro was only invoked conditionally." >&2;}
  22673. { (exit 1); exit 1; }; }
  22674. fi
  22675. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  22676. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  22677. Usually this means the macro was only invoked conditionally." >&5
  22678. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  22679. Usually this means the macro was only invoked conditionally." >&2;}
  22680. { (exit 1); exit 1; }; }
  22681. fi
  22682. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  22683. { { echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  22684. Usually this means the macro was only invoked conditionally." >&5
  22685. echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  22686. Usually this means the macro was only invoked conditionally." >&2;}
  22687. { (exit 1); exit 1; }; }
  22688. fi
  22689. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  22690. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  22691. Usually this means the macro was only invoked conditionally." >&5
  22692. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  22693. Usually this means the macro was only invoked conditionally." >&2;}
  22694. { (exit 1); exit 1; }; }
  22695. fi
  22696. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  22697. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  22698. Usually this means the macro was only invoked conditionally." >&5
  22699. echo "$as_me: error: conditional \"WINNT\" was never defined.
  22700. Usually this means the macro was only invoked conditionally." >&2;}
  22701. { (exit 1); exit 1; }; }
  22702. fi
  22703. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  22704. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  22705. Usually this means the macro was only invoked conditionally." >&5
  22706. echo "$as_me: error: conditional \"HPUX\" was never defined.
  22707. Usually this means the macro was only invoked conditionally." >&2;}
  22708. { (exit 1); exit 1; }; }
  22709. fi
  22710. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  22711. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  22712. Usually this means the macro was only invoked conditionally." >&5
  22713. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  22714. Usually this means the macro was only invoked conditionally." >&2;}
  22715. { (exit 1); exit 1; }; }
  22716. fi
  22717. : ${CONFIG_STATUS=./config.status}
  22718. ac_clean_files_save=$ac_clean_files
  22719. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22720. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22721. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22722. cat >$CONFIG_STATUS <<_ACEOF
  22723. #! $SHELL
  22724. # Generated by $as_me.
  22725. # Run this file to recreate the current configuration.
  22726. # Compiler output produced by configure, useful for debugging
  22727. # configure, is in config.log if it exists.
  22728. debug=false
  22729. ac_cs_recheck=false
  22730. ac_cs_silent=false
  22731. SHELL=\${CONFIG_SHELL-$SHELL}
  22732. _ACEOF
  22733. cat >>$CONFIG_STATUS <<\_ACEOF
  22734. ## --------------------- ##
  22735. ## M4sh Initialization. ##
  22736. ## --------------------- ##
  22737. # Be Bourne compatible
  22738. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22739. emulate sh
  22740. NULLCMD=:
  22741. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  22742. # is contrary to our usage. Disable this feature.
  22743. alias -g '${1+"$@"}'='"$@"'
  22744. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22745. set -o posix
  22746. fi
  22747. DUALCASE=1; export DUALCASE # for MKS sh
  22748. # Support unset when possible.
  22749. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22750. as_unset=unset
  22751. else
  22752. as_unset=false
  22753. fi
  22754. # Work around bugs in pre-3.0 UWIN ksh.
  22755. $as_unset ENV MAIL MAILPATH
  22756. PS1='$ '
  22757. PS2='> '
  22758. PS4='+ '
  22759. # NLS nuisances.
  22760. for as_var in \
  22761. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  22762. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  22763. LC_TELEPHONE LC_TIME
  22764. do
  22765. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  22766. eval $as_var=C; export $as_var
  22767. else
  22768. $as_unset $as_var
  22769. fi
  22770. done
  22771. # Required to use basename.
  22772. if expr a : '\(a\)' >/dev/null 2>&1; then
  22773. as_expr=expr
  22774. else
  22775. as_expr=false
  22776. fi
  22777. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  22778. as_basename=basename
  22779. else
  22780. as_basename=false
  22781. fi
  22782. # Name of the executable.
  22783. as_me=`$as_basename "$0" ||
  22784. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22785. X"$0" : 'X\(//\)$' \| \
  22786. X"$0" : 'X\(/\)$' \| \
  22787. . : '\(.\)' 2>/dev/null ||
  22788. echo X/"$0" |
  22789. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  22790. /^X\/\(\/\/\)$/{ s//\1/; q; }
  22791. /^X\/\(\/\).*/{ s//\1/; q; }
  22792. s/.*/./; q'`
  22793. # PATH needs CR, and LINENO needs CR and PATH.
  22794. # Avoid depending upon Character Ranges.
  22795. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22796. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22797. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22798. as_cr_digits='0123456789'
  22799. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22800. # The user is always right.
  22801. if test "${PATH_SEPARATOR+set}" != set; then
  22802. echo "#! /bin/sh" >conf$$.sh
  22803. echo "exit 0" >>conf$$.sh
  22804. chmod +x conf$$.sh
  22805. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  22806. PATH_SEPARATOR=';'
  22807. else
  22808. PATH_SEPARATOR=:
  22809. fi
  22810. rm -f conf$$.sh
  22811. fi
  22812. as_lineno_1=$LINENO
  22813. as_lineno_2=$LINENO
  22814. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22815. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22816. test "x$as_lineno_3" = "x$as_lineno_2" || {
  22817. # Find who we are. Look in the path if we contain no path at all
  22818. # relative or not.
  22819. case $0 in
  22820. *[\\/]* ) as_myself=$0 ;;
  22821. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22822. for as_dir in $PATH
  22823. do
  22824. IFS=$as_save_IFS
  22825. test -z "$as_dir" && as_dir=.
  22826. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22827. done
  22828. ;;
  22829. esac
  22830. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22831. # in which case we are not to be found in the path.
  22832. if test "x$as_myself" = x; then
  22833. as_myself=$0
  22834. fi
  22835. if test ! -f "$as_myself"; then
  22836. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  22837. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  22838. { (exit 1); exit 1; }; }
  22839. fi
  22840. case $CONFIG_SHELL in
  22841. '')
  22842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22843. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  22844. do
  22845. IFS=$as_save_IFS
  22846. test -z "$as_dir" && as_dir=.
  22847. for as_base in sh bash ksh sh5; do
  22848. case $as_dir in
  22849. /*)
  22850. if ("$as_dir/$as_base" -c '
  22851. as_lineno_1=$LINENO
  22852. as_lineno_2=$LINENO
  22853. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22854. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22855. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  22856. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  22857. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  22858. CONFIG_SHELL=$as_dir/$as_base
  22859. export CONFIG_SHELL
  22860. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  22861. fi;;
  22862. esac
  22863. done
  22864. done
  22865. ;;
  22866. esac
  22867. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22868. # uniformly replaced by the line number. The first 'sed' inserts a
  22869. # line-number line before each line; the second 'sed' does the real
  22870. # work. The second script uses 'N' to pair each line-number line
  22871. # with the numbered line, and appends trailing '-' during
  22872. # substitution so that $LINENO is not a special case at line end.
  22873. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22874. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  22875. sed '=' <$as_myself |
  22876. sed '
  22877. N
  22878. s,$,-,
  22879. : loop
  22880. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  22881. t loop
  22882. s,-$,,
  22883. s,^['$as_cr_digits']*\n,,
  22884. ' >$as_me.lineno &&
  22885. chmod +x $as_me.lineno ||
  22886. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  22887. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  22888. { (exit 1); exit 1; }; }
  22889. # Don't try to exec as it changes $[0], causing all sort of problems
  22890. # (the dirname of $[0] is not the place where we might find the
  22891. # original and so on. Autoconf is especially sensible to this).
  22892. . ./$as_me.lineno
  22893. # Exit status is that of the last command.
  22894. exit
  22895. }
  22896. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  22897. *c*,-n*) ECHO_N= ECHO_C='
  22898. ' ECHO_T=' ' ;;
  22899. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  22900. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  22901. esac
  22902. if expr a : '\(a\)' >/dev/null 2>&1; then
  22903. as_expr=expr
  22904. else
  22905. as_expr=false
  22906. fi
  22907. rm -f conf$$ conf$$.exe conf$$.file
  22908. echo >conf$$.file
  22909. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22910. # We could just check for DJGPP; but this test a) works b) is more generic
  22911. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  22912. if test -f conf$$.exe; then
  22913. # Don't use ln at all; we don't have any links
  22914. as_ln_s='cp -p'
  22915. else
  22916. as_ln_s='ln -s'
  22917. fi
  22918. elif ln conf$$.file conf$$ 2>/dev/null; then
  22919. as_ln_s=ln
  22920. else
  22921. as_ln_s='cp -p'
  22922. fi
  22923. rm -f conf$$ conf$$.exe conf$$.file
  22924. if mkdir -p . 2>/dev/null; then
  22925. as_mkdir_p=:
  22926. else
  22927. test -d ./-p && rmdir ./-p
  22928. as_mkdir_p=false
  22929. fi
  22930. as_executable_p="test -f"
  22931. # Sed expression to map a string onto a valid CPP name.
  22932. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22933. # Sed expression to map a string onto a valid variable name.
  22934. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22935. # IFS
  22936. # We need space, tab and new line, in precisely that order.
  22937. as_nl='
  22938. '
  22939. IFS=" $as_nl"
  22940. # CDPATH.
  22941. $as_unset CDPATH
  22942. exec 6>&1
  22943. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  22944. # report actual input values of CONFIG_FILES etc. instead of their
  22945. # values after options handling. Logging --version etc. is OK.
  22946. exec 5>>config.log
  22947. {
  22948. echo
  22949. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22950. ## Running $as_me. ##
  22951. _ASBOX
  22952. } >&5
  22953. cat >&5 <<_CSEOF
  22954. This file was extended by dirsrv $as_me 1.1.4, which was
  22955. generated by GNU Autoconf 2.59. Invocation command line was
  22956. CONFIG_FILES = $CONFIG_FILES
  22957. CONFIG_HEADERS = $CONFIG_HEADERS
  22958. CONFIG_LINKS = $CONFIG_LINKS
  22959. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22960. $ $0 $@
  22961. _CSEOF
  22962. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  22963. echo >&5
  22964. _ACEOF
  22965. # Files that config.status was made for.
  22966. if test -n "$ac_config_files"; then
  22967. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  22968. fi
  22969. if test -n "$ac_config_headers"; then
  22970. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  22971. fi
  22972. if test -n "$ac_config_links"; then
  22973. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  22974. fi
  22975. if test -n "$ac_config_commands"; then
  22976. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  22977. fi
  22978. cat >>$CONFIG_STATUS <<\_ACEOF
  22979. ac_cs_usage="\
  22980. \`$as_me' instantiates files from templates according to the
  22981. current configuration.
  22982. Usage: $0 [OPTIONS] [FILE]...
  22983. -h, --help print this help, then exit
  22984. -V, --version print version number, then exit
  22985. -q, --quiet do not print progress messages
  22986. -d, --debug don't remove temporary files
  22987. --recheck update $as_me by reconfiguring in the same conditions
  22988. --file=FILE[:TEMPLATE]
  22989. instantiate the configuration file FILE
  22990. --header=FILE[:TEMPLATE]
  22991. instantiate the configuration header FILE
  22992. Configuration files:
  22993. $config_files
  22994. Configuration headers:
  22995. $config_headers
  22996. Configuration commands:
  22997. $config_commands
  22998. Report bugs to <[email protected]>."
  22999. _ACEOF
  23000. cat >>$CONFIG_STATUS <<_ACEOF
  23001. ac_cs_version="\\
  23002. dirsrv config.status 1.1.4
  23003. configured by $0, generated by GNU Autoconf 2.59,
  23004. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  23005. Copyright (C) 2003 Free Software Foundation, Inc.
  23006. This config.status script is free software; the Free Software Foundation
  23007. gives unlimited permission to copy, distribute and modify it."
  23008. srcdir=$srcdir
  23009. INSTALL="$INSTALL"
  23010. _ACEOF
  23011. cat >>$CONFIG_STATUS <<\_ACEOF
  23012. # If no file are specified by the user, then we need to provide default
  23013. # value. By we need to know if files were specified by the user.
  23014. ac_need_defaults=:
  23015. while test $# != 0
  23016. do
  23017. case $1 in
  23018. --*=*)
  23019. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  23020. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  23021. ac_shift=:
  23022. ;;
  23023. -*)
  23024. ac_option=$1
  23025. ac_optarg=$2
  23026. ac_shift=shift
  23027. ;;
  23028. *) # This is not an option, so the user has probably given explicit
  23029. # arguments.
  23030. ac_option=$1
  23031. ac_need_defaults=false;;
  23032. esac
  23033. case $ac_option in
  23034. # Handling of the options.
  23035. _ACEOF
  23036. cat >>$CONFIG_STATUS <<\_ACEOF
  23037. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23038. ac_cs_recheck=: ;;
  23039. --version | --vers* | -V )
  23040. echo "$ac_cs_version"; exit 0 ;;
  23041. --he | --h)
  23042. # Conflict between --help and --header
  23043. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  23044. Try \`$0 --help' for more information." >&5
  23045. echo "$as_me: error: ambiguous option: $1
  23046. Try \`$0 --help' for more information." >&2;}
  23047. { (exit 1); exit 1; }; };;
  23048. --help | --hel | -h )
  23049. echo "$ac_cs_usage"; exit 0 ;;
  23050. --debug | --d* | -d )
  23051. debug=: ;;
  23052. --file | --fil | --fi | --f )
  23053. $ac_shift
  23054. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  23055. ac_need_defaults=false;;
  23056. --header | --heade | --head | --hea )
  23057. $ac_shift
  23058. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  23059. ac_need_defaults=false;;
  23060. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23061. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23062. ac_cs_silent=: ;;
  23063. # This is an error.
  23064. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  23065. Try \`$0 --help' for more information." >&5
  23066. echo "$as_me: error: unrecognized option: $1
  23067. Try \`$0 --help' for more information." >&2;}
  23068. { (exit 1); exit 1; }; } ;;
  23069. *) ac_config_targets="$ac_config_targets $1" ;;
  23070. esac
  23071. shift
  23072. done
  23073. ac_configure_extra_args=
  23074. if $ac_cs_silent; then
  23075. exec 6>/dev/null
  23076. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23077. fi
  23078. _ACEOF
  23079. cat >>$CONFIG_STATUS <<_ACEOF
  23080. if \$ac_cs_recheck; then
  23081. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  23082. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23083. fi
  23084. _ACEOF
  23085. cat >>$CONFIG_STATUS <<_ACEOF
  23086. #
  23087. # INIT-COMMANDS section.
  23088. #
  23089. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  23090. _ACEOF
  23091. cat >>$CONFIG_STATUS <<\_ACEOF
  23092. for ac_config_target in $ac_config_targets
  23093. do
  23094. case "$ac_config_target" in
  23095. # Handling of arguments.
  23096. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23097. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23098. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  23099. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  23100. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  23101. { (exit 1); exit 1; }; };;
  23102. esac
  23103. done
  23104. # If the user did not use the arguments to specify the items to instantiate,
  23105. # then the envvar interface is used. Set only those that are not.
  23106. # We use the long form for the default assignment because of an extremely
  23107. # bizarre bug on SunOS 4.1.3.
  23108. if $ac_need_defaults; then
  23109. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23110. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23111. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23112. fi
  23113. # Have a temporary directory for convenience. Make it in the build tree
  23114. # simply because there is no reason to put it here, and in addition,
  23115. # creating and moving files from /tmp can sometimes cause problems.
  23116. # Create a temporary directory, and hook for its removal unless debugging.
  23117. $debug ||
  23118. {
  23119. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  23120. trap '{ (exit 1); exit 1; }' 1 2 13 15
  23121. }
  23122. # Create a (secure) tmp directory for tmp files.
  23123. {
  23124. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  23125. test -n "$tmp" && test -d "$tmp"
  23126. } ||
  23127. {
  23128. tmp=./confstat$$-$RANDOM
  23129. (umask 077 && mkdir $tmp)
  23130. } ||
  23131. {
  23132. echo "$me: cannot create a temporary directory in ." >&2
  23133. { (exit 1); exit 1; }
  23134. }
  23135. _ACEOF
  23136. cat >>$CONFIG_STATUS <<_ACEOF
  23137. #
  23138. # CONFIG_FILES section.
  23139. #
  23140. # No need to generate the scripts if there are no CONFIG_FILES.
  23141. # This happens for instance when ./config.status config.h
  23142. if test -n "\$CONFIG_FILES"; then
  23143. # Protect against being on the right side of a sed subst in config.status.
  23144. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  23145. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  23146. s,@SHELL@,$SHELL,;t t
  23147. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  23148. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  23149. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  23150. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  23151. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  23152. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  23153. s,@exec_prefix@,$exec_prefix,;t t
  23154. s,@prefix@,$prefix,;t t
  23155. s,@program_transform_name@,$program_transform_name,;t t
  23156. s,@bindir@,$bindir,;t t
  23157. s,@sbindir@,$sbindir,;t t
  23158. s,@libexecdir@,$libexecdir,;t t
  23159. s,@datadir@,$datadir,;t t
  23160. s,@sysconfdir@,$sysconfdir,;t t
  23161. s,@sharedstatedir@,$sharedstatedir,;t t
  23162. s,@localstatedir@,$localstatedir,;t t
  23163. s,@libdir@,$libdir,;t t
  23164. s,@includedir@,$includedir,;t t
  23165. s,@oldincludedir@,$oldincludedir,;t t
  23166. s,@infodir@,$infodir,;t t
  23167. s,@mandir@,$mandir,;t t
  23168. s,@build_alias@,$build_alias,;t t
  23169. s,@host_alias@,$host_alias,;t t
  23170. s,@target_alias@,$target_alias,;t t
  23171. s,@DEFS@,$DEFS,;t t
  23172. s,@ECHO_C@,$ECHO_C,;t t
  23173. s,@ECHO_N@,$ECHO_N,;t t
  23174. s,@ECHO_T@,$ECHO_T,;t t
  23175. s,@LIBS@,$LIBS,;t t
  23176. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  23177. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  23178. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  23179. s,@CYGPATH_W@,$CYGPATH_W,;t t
  23180. s,@PACKAGE@,$PACKAGE,;t t
  23181. s,@VERSION@,$VERSION,;t t
  23182. s,@ACLOCAL@,$ACLOCAL,;t t
  23183. s,@AUTOCONF@,$AUTOCONF,;t t
  23184. s,@AUTOMAKE@,$AUTOMAKE,;t t
  23185. s,@AUTOHEADER@,$AUTOHEADER,;t t
  23186. s,@MAKEINFO@,$MAKEINFO,;t t
  23187. s,@install_sh@,$install_sh,;t t
  23188. s,@STRIP@,$STRIP,;t t
  23189. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  23190. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  23191. s,@mkdir_p@,$mkdir_p,;t t
  23192. s,@AWK@,$AWK,;t t
  23193. s,@SET_MAKE@,$SET_MAKE,;t t
  23194. s,@am__leading_dot@,$am__leading_dot,;t t
  23195. s,@AMTAR@,$AMTAR,;t t
  23196. s,@am__tar@,$am__tar,;t t
  23197. s,@am__untar@,$am__untar,;t t
  23198. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  23199. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  23200. s,@MAINT@,$MAINT,;t t
  23201. s,@build@,$build,;t t
  23202. s,@build_cpu@,$build_cpu,;t t
  23203. s,@build_vendor@,$build_vendor,;t t
  23204. s,@build_os@,$build_os,;t t
  23205. s,@host@,$host,;t t
  23206. s,@host_cpu@,$host_cpu,;t t
  23207. s,@host_vendor@,$host_vendor,;t t
  23208. s,@host_os@,$host_os,;t t
  23209. s,@CXX@,$CXX,;t t
  23210. s,@CXXFLAGS@,$CXXFLAGS,;t t
  23211. s,@LDFLAGS@,$LDFLAGS,;t t
  23212. s,@CPPFLAGS@,$CPPFLAGS,;t t
  23213. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  23214. s,@EXEEXT@,$EXEEXT,;t t
  23215. s,@OBJEXT@,$OBJEXT,;t t
  23216. s,@DEPDIR@,$DEPDIR,;t t
  23217. s,@am__include@,$am__include,;t t
  23218. s,@am__quote@,$am__quote,;t t
  23219. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  23220. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  23221. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  23222. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  23223. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  23224. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  23225. s,@CC@,$CC,;t t
  23226. s,@CFLAGS@,$CFLAGS,;t t
  23227. s,@ac_ct_CC@,$ac_ct_CC,;t t
  23228. s,@CCDEPMODE@,$CCDEPMODE,;t t
  23229. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  23230. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  23231. s,@CCAS@,$CCAS,;t t
  23232. s,@CCASFLAGS@,$CCASFLAGS,;t t
  23233. s,@SED@,$SED,;t t
  23234. s,@EGREP@,$EGREP,;t t
  23235. s,@LN_S@,$LN_S,;t t
  23236. s,@ECHO@,$ECHO,;t t
  23237. s,@AR@,$AR,;t t
  23238. s,@ac_ct_AR@,$ac_ct_AR,;t t
  23239. s,@RANLIB@,$RANLIB,;t t
  23240. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  23241. s,@CPP@,$CPP,;t t
  23242. s,@CXXCPP@,$CXXCPP,;t t
  23243. s,@F77@,$F77,;t t
  23244. s,@FFLAGS@,$FFLAGS,;t t
  23245. s,@ac_ct_F77@,$ac_ct_F77,;t t
  23246. s,@LIBTOOL@,$LIBTOOL,;t t
  23247. s,@LIBOBJS@,$LIBOBJS,;t t
  23248. s,@debug_defs@,$debug_defs,;t t
  23249. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  23250. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  23251. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  23252. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  23253. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  23254. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  23255. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  23256. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  23257. s,@enable_autobind_TRUE@,$enable_autobind_TRUE,;t t
  23258. s,@enable_autobind_FALSE@,$enable_autobind_FALSE,;t t
  23259. s,@enable_bitwise_TRUE@,$enable_bitwise_TRUE,;t t
  23260. s,@enable_bitwise_FALSE@,$enable_bitwise_FALSE,;t t
  23261. s,@with_fhs_opt@,$with_fhs_opt,;t t
  23262. s,@configdir@,$configdir,;t t
  23263. s,@sampledatadir@,$sampledatadir,;t t
  23264. s,@propertydir@,$propertydir,;t t
  23265. s,@schemadir@,$schemadir,;t t
  23266. s,@serverdir@,$serverdir,;t t
  23267. s,@serverplugindir@,$serverplugindir,;t t
  23268. s,@scripttemplatedir@,$scripttemplatedir,;t t
  23269. s,@perldir@,$perldir,;t t
  23270. s,@infdir@,$infdir,;t t
  23271. s,@mibdir@,$mibdir,;t t
  23272. s,@defaultuser@,$defaultuser,;t t
  23273. s,@defaultgroup@,$defaultgroup,;t t
  23274. s,@instconfigdir@,$instconfigdir,;t t
  23275. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  23276. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  23277. s,@LIBSOCKET@,$LIBSOCKET,;t t
  23278. s,@LIBNSL@,$LIBNSL,;t t
  23279. s,@LIBDL@,$LIBDL,;t t
  23280. s,@LIBCSTD@,$LIBCSTD,;t t
  23281. s,@LIBCRUN@,$LIBCRUN,;t t
  23282. s,@initdir@,$initdir,;t t
  23283. s,@perlexec@,$perlexec,;t t
  23284. s,@initconfigdir@,$initconfigdir,;t t
  23285. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  23286. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  23287. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  23288. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  23289. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  23290. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  23291. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  23292. s,@PACKAGE_BASE_VERSION@,$PACKAGE_BASE_VERSION,;t t
  23293. s,@nspr_inc@,$nspr_inc,;t t
  23294. s,@nspr_lib@,$nspr_lib,;t t
  23295. s,@nspr_libdir@,$nspr_libdir,;t t
  23296. s,@nss_inc@,$nss_inc,;t t
  23297. s,@nss_lib@,$nss_lib,;t t
  23298. s,@nss_libdir@,$nss_libdir,;t t
  23299. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  23300. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  23301. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  23302. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  23303. s,@db_inc@,$db_inc,;t t
  23304. s,@db_incdir@,$db_incdir,;t t
  23305. s,@db_lib@,$db_lib,;t t
  23306. s,@db_libdir@,$db_libdir,;t t
  23307. s,@db_bindir@,$db_bindir,;t t
  23308. s,@db_libver@,$db_libver,;t t
  23309. s,@sasl_inc@,$sasl_inc,;t t
  23310. s,@sasl_lib@,$sasl_lib,;t t
  23311. s,@sasl_libdir@,$sasl_libdir,;t t
  23312. s,@sasl_path@,$sasl_path,;t t
  23313. s,@svrcore_inc@,$svrcore_inc,;t t
  23314. s,@svrcore_lib@,$svrcore_lib,;t t
  23315. s,@icu_lib@,$icu_lib,;t t
  23316. s,@icu_inc@,$icu_inc,;t t
  23317. s,@icu_bin@,$icu_bin,;t t
  23318. s,@netsnmp_inc@,$netsnmp_inc,;t t
  23319. s,@netsnmp_lib@,$netsnmp_lib,;t t
  23320. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  23321. s,@netsnmp_link@,$netsnmp_link,;t t
  23322. s,@brand@,$brand,;t t
  23323. s,@capbrand@,$capbrand,;t t
  23324. s,@vendor@,$vendor,;t t
  23325. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  23326. CEOF
  23327. _ACEOF
  23328. cat >>$CONFIG_STATUS <<\_ACEOF
  23329. # Split the substitutions into bite-sized pieces for seds with
  23330. # small command number limits, like on Digital OSF/1 and HP-UX.
  23331. ac_max_sed_lines=48
  23332. ac_sed_frag=1 # Number of current file.
  23333. ac_beg=1 # First line for current file.
  23334. ac_end=$ac_max_sed_lines # Line after last line for current file.
  23335. ac_more_lines=:
  23336. ac_sed_cmds=
  23337. while $ac_more_lines; do
  23338. if test $ac_beg -gt 1; then
  23339. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23340. else
  23341. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23342. fi
  23343. if test ! -s $tmp/subs.frag; then
  23344. ac_more_lines=false
  23345. else
  23346. # The purpose of the label and of the branching condition is to
  23347. # speed up the sed processing (if there are no `@' at all, there
  23348. # is no need to browse any of the substitutions).
  23349. # These are the two extra sed commands mentioned above.
  23350. (echo ':t
  23351. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  23352. if test -z "$ac_sed_cmds"; then
  23353. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  23354. else
  23355. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  23356. fi
  23357. ac_sed_frag=`expr $ac_sed_frag + 1`
  23358. ac_beg=$ac_end
  23359. ac_end=`expr $ac_end + $ac_max_sed_lines`
  23360. fi
  23361. done
  23362. if test -z "$ac_sed_cmds"; then
  23363. ac_sed_cmds=cat
  23364. fi
  23365. fi # test -n "$CONFIG_FILES"
  23366. _ACEOF
  23367. cat >>$CONFIG_STATUS <<\_ACEOF
  23368. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  23369. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23370. case $ac_file in
  23371. - | *:- | *:-:* ) # input from stdin
  23372. cat >$tmp/stdin
  23373. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23374. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23375. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23376. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23377. * ) ac_file_in=$ac_file.in ;;
  23378. esac
  23379. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  23380. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23381. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23382. X"$ac_file" : 'X\(//\)[^/]' \| \
  23383. X"$ac_file" : 'X\(//\)$' \| \
  23384. X"$ac_file" : 'X\(/\)' \| \
  23385. . : '\(.\)' 2>/dev/null ||
  23386. echo X"$ac_file" |
  23387. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23388. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23389. /^X\(\/\/\)$/{ s//\1/; q; }
  23390. /^X\(\/\).*/{ s//\1/; q; }
  23391. s/.*/./; q'`
  23392. { if $as_mkdir_p; then
  23393. mkdir -p "$ac_dir"
  23394. else
  23395. as_dir="$ac_dir"
  23396. as_dirs=
  23397. while test ! -d "$as_dir"; do
  23398. as_dirs="$as_dir $as_dirs"
  23399. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23400. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23401. X"$as_dir" : 'X\(//\)[^/]' \| \
  23402. X"$as_dir" : 'X\(//\)$' \| \
  23403. X"$as_dir" : 'X\(/\)' \| \
  23404. . : '\(.\)' 2>/dev/null ||
  23405. echo X"$as_dir" |
  23406. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23407. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23408. /^X\(\/\/\)$/{ s//\1/; q; }
  23409. /^X\(\/\).*/{ s//\1/; q; }
  23410. s/.*/./; q'`
  23411. done
  23412. test ! -n "$as_dirs" || mkdir $as_dirs
  23413. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23414. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23415. { (exit 1); exit 1; }; }; }
  23416. ac_builddir=.
  23417. if test "$ac_dir" != .; then
  23418. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23419. # A "../" for each directory in $ac_dir_suffix.
  23420. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23421. else
  23422. ac_dir_suffix= ac_top_builddir=
  23423. fi
  23424. case $srcdir in
  23425. .) # No --srcdir option. We are building in place.
  23426. ac_srcdir=.
  23427. if test -z "$ac_top_builddir"; then
  23428. ac_top_srcdir=.
  23429. else
  23430. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23431. fi ;;
  23432. [\\/]* | ?:[\\/]* ) # Absolute path.
  23433. ac_srcdir=$srcdir$ac_dir_suffix;
  23434. ac_top_srcdir=$srcdir ;;
  23435. *) # Relative path.
  23436. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23437. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23438. esac
  23439. # Do not use `cd foo && pwd` to compute absolute paths, because
  23440. # the directories may not exist.
  23441. case `pwd` in
  23442. .) ac_abs_builddir="$ac_dir";;
  23443. *)
  23444. case "$ac_dir" in
  23445. .) ac_abs_builddir=`pwd`;;
  23446. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23447. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23448. esac;;
  23449. esac
  23450. case $ac_abs_builddir in
  23451. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23452. *)
  23453. case ${ac_top_builddir}. in
  23454. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23455. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23456. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23457. esac;;
  23458. esac
  23459. case $ac_abs_builddir in
  23460. .) ac_abs_srcdir=$ac_srcdir;;
  23461. *)
  23462. case $ac_srcdir in
  23463. .) ac_abs_srcdir=$ac_abs_builddir;;
  23464. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23465. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23466. esac;;
  23467. esac
  23468. case $ac_abs_builddir in
  23469. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23470. *)
  23471. case $ac_top_srcdir in
  23472. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23473. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23474. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23475. esac;;
  23476. esac
  23477. case $INSTALL in
  23478. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23479. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  23480. esac
  23481. if test x"$ac_file" != x-; then
  23482. { echo "$as_me:$LINENO: creating $ac_file" >&5
  23483. echo "$as_me: creating $ac_file" >&6;}
  23484. rm -f "$ac_file"
  23485. fi
  23486. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23487. # use $as_me), people would be surprised to read:
  23488. # /* config.h. Generated by config.status. */
  23489. if test x"$ac_file" = x-; then
  23490. configure_input=
  23491. else
  23492. configure_input="$ac_file. "
  23493. fi
  23494. configure_input=$configure_input"Generated from `echo $ac_file_in |
  23495. sed 's,.*/,,'` by configure."
  23496. # First look for the input files in the build tree, otherwise in the
  23497. # src tree.
  23498. ac_file_inputs=`IFS=:
  23499. for f in $ac_file_in; do
  23500. case $f in
  23501. -) echo $tmp/stdin ;;
  23502. [\\/$]*)
  23503. # Absolute (can't be DOS-style, as IFS=:)
  23504. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23505. echo "$as_me: error: cannot find input file: $f" >&2;}
  23506. { (exit 1); exit 1; }; }
  23507. echo "$f";;
  23508. *) # Relative
  23509. if test -f "$f"; then
  23510. # Build tree
  23511. echo "$f"
  23512. elif test -f "$srcdir/$f"; then
  23513. # Source tree
  23514. echo "$srcdir/$f"
  23515. else
  23516. # /dev/null tree
  23517. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23518. echo "$as_me: error: cannot find input file: $f" >&2;}
  23519. { (exit 1); exit 1; }; }
  23520. fi;;
  23521. esac
  23522. done` || { (exit 1); exit 1; }
  23523. _ACEOF
  23524. cat >>$CONFIG_STATUS <<_ACEOF
  23525. sed "$ac_vpsub
  23526. $extrasub
  23527. _ACEOF
  23528. cat >>$CONFIG_STATUS <<\_ACEOF
  23529. :t
  23530. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23531. s,@configure_input@,$configure_input,;t t
  23532. s,@srcdir@,$ac_srcdir,;t t
  23533. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  23534. s,@top_srcdir@,$ac_top_srcdir,;t t
  23535. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  23536. s,@builddir@,$ac_builddir,;t t
  23537. s,@abs_builddir@,$ac_abs_builddir,;t t
  23538. s,@top_builddir@,$ac_top_builddir,;t t
  23539. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  23540. s,@INSTALL@,$ac_INSTALL,;t t
  23541. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  23542. rm -f $tmp/stdin
  23543. if test x"$ac_file" != x-; then
  23544. mv $tmp/out $ac_file
  23545. else
  23546. cat $tmp/out
  23547. rm -f $tmp/out
  23548. fi
  23549. done
  23550. _ACEOF
  23551. cat >>$CONFIG_STATUS <<\_ACEOF
  23552. #
  23553. # CONFIG_HEADER section.
  23554. #
  23555. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  23556. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  23557. #
  23558. # ac_d sets the value in "#define NAME VALUE" lines.
  23559. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  23560. ac_dB='[ ].*$,\1#\2'
  23561. ac_dC=' '
  23562. ac_dD=',;t'
  23563. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  23564. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  23565. ac_uB='$,\1#\2define\3'
  23566. ac_uC=' '
  23567. ac_uD=',;t'
  23568. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  23569. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23570. case $ac_file in
  23571. - | *:- | *:-:* ) # input from stdin
  23572. cat >$tmp/stdin
  23573. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23574. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23575. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23576. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23577. * ) ac_file_in=$ac_file.in ;;
  23578. esac
  23579. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  23580. echo "$as_me: creating $ac_file" >&6;}
  23581. # First look for the input files in the build tree, otherwise in the
  23582. # src tree.
  23583. ac_file_inputs=`IFS=:
  23584. for f in $ac_file_in; do
  23585. case $f in
  23586. -) echo $tmp/stdin ;;
  23587. [\\/$]*)
  23588. # Absolute (can't be DOS-style, as IFS=:)
  23589. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23590. echo "$as_me: error: cannot find input file: $f" >&2;}
  23591. { (exit 1); exit 1; }; }
  23592. # Do quote $f, to prevent DOS paths from being IFS'd.
  23593. echo "$f";;
  23594. *) # Relative
  23595. if test -f "$f"; then
  23596. # Build tree
  23597. echo "$f"
  23598. elif test -f "$srcdir/$f"; then
  23599. # Source tree
  23600. echo "$srcdir/$f"
  23601. else
  23602. # /dev/null tree
  23603. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23604. echo "$as_me: error: cannot find input file: $f" >&2;}
  23605. { (exit 1); exit 1; }; }
  23606. fi;;
  23607. esac
  23608. done` || { (exit 1); exit 1; }
  23609. # Remove the trailing spaces.
  23610. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  23611. _ACEOF
  23612. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  23613. # `conftest.undefs', that substitutes the proper values into
  23614. # config.h.in to produce config.h. The first handles `#define'
  23615. # templates, and the second `#undef' templates.
  23616. # And first: Protect against being on the right side of a sed subst in
  23617. # config.status. Protect against being in an unquoted here document
  23618. # in config.status.
  23619. rm -f conftest.defines conftest.undefs
  23620. # Using a here document instead of a string reduces the quoting nightmare.
  23621. # Putting comments in sed scripts is not portable.
  23622. #
  23623. # `end' is used to avoid that the second main sed command (meant for
  23624. # 0-ary CPP macros) applies to n-ary macro definitions.
  23625. # See the Autoconf documentation for `clear'.
  23626. cat >confdef2sed.sed <<\_ACEOF
  23627. s/[\\&,]/\\&/g
  23628. s,[\\$`],\\&,g
  23629. t clear
  23630. : clear
  23631. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  23632. t end
  23633. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  23634. : end
  23635. _ACEOF
  23636. # If some macros were called several times there might be several times
  23637. # the same #defines, which is useless. Nevertheless, we may not want to
  23638. # sort them, since we want the *last* AC-DEFINE to be honored.
  23639. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  23640. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  23641. rm -f confdef2sed.sed
  23642. # This sed command replaces #undef with comments. This is necessary, for
  23643. # example, in the case of _POSIX_SOURCE, which is predefined and required
  23644. # on some systems where configure will not decide to define it.
  23645. cat >>conftest.undefs <<\_ACEOF
  23646. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  23647. _ACEOF
  23648. # Break up conftest.defines because some shells have a limit on the size
  23649. # of here documents, and old seds have small limits too (100 cmds).
  23650. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  23651. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  23652. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  23653. echo ' :' >>$CONFIG_STATUS
  23654. rm -f conftest.tail
  23655. while grep . conftest.defines >/dev/null
  23656. do
  23657. # Write a limited-size here document to $tmp/defines.sed.
  23658. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  23659. # Speed up: don't consider the non `#define' lines.
  23660. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  23661. # Work around the forget-to-reset-the-flag bug.
  23662. echo 't clr' >>$CONFIG_STATUS
  23663. echo ': clr' >>$CONFIG_STATUS
  23664. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  23665. echo 'CEOF
  23666. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  23667. rm -f $tmp/in
  23668. mv $tmp/out $tmp/in
  23669. ' >>$CONFIG_STATUS
  23670. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  23671. rm -f conftest.defines
  23672. mv conftest.tail conftest.defines
  23673. done
  23674. rm -f conftest.defines
  23675. echo ' fi # grep' >>$CONFIG_STATUS
  23676. echo >>$CONFIG_STATUS
  23677. # Break up conftest.undefs because some shells have a limit on the size
  23678. # of here documents, and old seds have small limits too (100 cmds).
  23679. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  23680. rm -f conftest.tail
  23681. while grep . conftest.undefs >/dev/null
  23682. do
  23683. # Write a limited-size here document to $tmp/undefs.sed.
  23684. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  23685. # Speed up: don't consider the non `#undef'
  23686. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  23687. # Work around the forget-to-reset-the-flag bug.
  23688. echo 't clr' >>$CONFIG_STATUS
  23689. echo ': clr' >>$CONFIG_STATUS
  23690. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  23691. echo 'CEOF
  23692. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  23693. rm -f $tmp/in
  23694. mv $tmp/out $tmp/in
  23695. ' >>$CONFIG_STATUS
  23696. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  23697. rm -f conftest.undefs
  23698. mv conftest.tail conftest.undefs
  23699. done
  23700. rm -f conftest.undefs
  23701. cat >>$CONFIG_STATUS <<\_ACEOF
  23702. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23703. # use $as_me), people would be surprised to read:
  23704. # /* config.h. Generated by config.status. */
  23705. if test x"$ac_file" = x-; then
  23706. echo "/* Generated by configure. */" >$tmp/config.h
  23707. else
  23708. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  23709. fi
  23710. cat $tmp/in >>$tmp/config.h
  23711. rm -f $tmp/in
  23712. if test x"$ac_file" != x-; then
  23713. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  23714. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23715. echo "$as_me: $ac_file is unchanged" >&6;}
  23716. else
  23717. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23718. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23719. X"$ac_file" : 'X\(//\)[^/]' \| \
  23720. X"$ac_file" : 'X\(//\)$' \| \
  23721. X"$ac_file" : 'X\(/\)' \| \
  23722. . : '\(.\)' 2>/dev/null ||
  23723. echo X"$ac_file" |
  23724. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23725. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23726. /^X\(\/\/\)$/{ s//\1/; q; }
  23727. /^X\(\/\).*/{ s//\1/; q; }
  23728. s/.*/./; q'`
  23729. { if $as_mkdir_p; then
  23730. mkdir -p "$ac_dir"
  23731. else
  23732. as_dir="$ac_dir"
  23733. as_dirs=
  23734. while test ! -d "$as_dir"; do
  23735. as_dirs="$as_dir $as_dirs"
  23736. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23737. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23738. X"$as_dir" : 'X\(//\)[^/]' \| \
  23739. X"$as_dir" : 'X\(//\)$' \| \
  23740. X"$as_dir" : 'X\(/\)' \| \
  23741. . : '\(.\)' 2>/dev/null ||
  23742. echo X"$as_dir" |
  23743. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23744. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23745. /^X\(\/\/\)$/{ s//\1/; q; }
  23746. /^X\(\/\).*/{ s//\1/; q; }
  23747. s/.*/./; q'`
  23748. done
  23749. test ! -n "$as_dirs" || mkdir $as_dirs
  23750. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23751. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23752. { (exit 1); exit 1; }; }; }
  23753. rm -f $ac_file
  23754. mv $tmp/config.h $ac_file
  23755. fi
  23756. else
  23757. cat $tmp/config.h
  23758. rm -f $tmp/config.h
  23759. fi
  23760. # Compute $ac_file's index in $config_headers.
  23761. _am_stamp_count=1
  23762. for _am_header in $config_headers :; do
  23763. case $_am_header in
  23764. $ac_file | $ac_file:* )
  23765. break ;;
  23766. * )
  23767. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23768. esac
  23769. done
  23770. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  23771. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23772. X$ac_file : 'X\(//\)[^/]' \| \
  23773. X$ac_file : 'X\(//\)$' \| \
  23774. X$ac_file : 'X\(/\)' \| \
  23775. . : '\(.\)' 2>/dev/null ||
  23776. echo X$ac_file |
  23777. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23778. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23779. /^X\(\/\/\)$/{ s//\1/; q; }
  23780. /^X\(\/\).*/{ s//\1/; q; }
  23781. s/.*/./; q'`/stamp-h$_am_stamp_count
  23782. done
  23783. _ACEOF
  23784. cat >>$CONFIG_STATUS <<\_ACEOF
  23785. #
  23786. # CONFIG_COMMANDS section.
  23787. #
  23788. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  23789. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  23790. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23791. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  23792. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23793. X"$ac_dest" : 'X\(//\)[^/]' \| \
  23794. X"$ac_dest" : 'X\(//\)$' \| \
  23795. X"$ac_dest" : 'X\(/\)' \| \
  23796. . : '\(.\)' 2>/dev/null ||
  23797. echo X"$ac_dest" |
  23798. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23799. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23800. /^X\(\/\/\)$/{ s//\1/; q; }
  23801. /^X\(\/\).*/{ s//\1/; q; }
  23802. s/.*/./; q'`
  23803. { if $as_mkdir_p; then
  23804. mkdir -p "$ac_dir"
  23805. else
  23806. as_dir="$ac_dir"
  23807. as_dirs=
  23808. while test ! -d "$as_dir"; do
  23809. as_dirs="$as_dir $as_dirs"
  23810. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23811. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23812. X"$as_dir" : 'X\(//\)[^/]' \| \
  23813. X"$as_dir" : 'X\(//\)$' \| \
  23814. X"$as_dir" : 'X\(/\)' \| \
  23815. . : '\(.\)' 2>/dev/null ||
  23816. echo X"$as_dir" |
  23817. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23818. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23819. /^X\(\/\/\)$/{ s//\1/; q; }
  23820. /^X\(\/\).*/{ s//\1/; q; }
  23821. s/.*/./; q'`
  23822. done
  23823. test ! -n "$as_dirs" || mkdir $as_dirs
  23824. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23825. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23826. { (exit 1); exit 1; }; }; }
  23827. ac_builddir=.
  23828. if test "$ac_dir" != .; then
  23829. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23830. # A "../" for each directory in $ac_dir_suffix.
  23831. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23832. else
  23833. ac_dir_suffix= ac_top_builddir=
  23834. fi
  23835. case $srcdir in
  23836. .) # No --srcdir option. We are building in place.
  23837. ac_srcdir=.
  23838. if test -z "$ac_top_builddir"; then
  23839. ac_top_srcdir=.
  23840. else
  23841. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23842. fi ;;
  23843. [\\/]* | ?:[\\/]* ) # Absolute path.
  23844. ac_srcdir=$srcdir$ac_dir_suffix;
  23845. ac_top_srcdir=$srcdir ;;
  23846. *) # Relative path.
  23847. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23848. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23849. esac
  23850. # Do not use `cd foo && pwd` to compute absolute paths, because
  23851. # the directories may not exist.
  23852. case `pwd` in
  23853. .) ac_abs_builddir="$ac_dir";;
  23854. *)
  23855. case "$ac_dir" in
  23856. .) ac_abs_builddir=`pwd`;;
  23857. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23858. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23859. esac;;
  23860. esac
  23861. case $ac_abs_builddir in
  23862. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23863. *)
  23864. case ${ac_top_builddir}. in
  23865. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23866. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23867. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23868. esac;;
  23869. esac
  23870. case $ac_abs_builddir in
  23871. .) ac_abs_srcdir=$ac_srcdir;;
  23872. *)
  23873. case $ac_srcdir in
  23874. .) ac_abs_srcdir=$ac_abs_builddir;;
  23875. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23876. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23877. esac;;
  23878. esac
  23879. case $ac_abs_builddir in
  23880. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23881. *)
  23882. case $ac_top_srcdir in
  23883. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23884. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23885. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23886. esac;;
  23887. esac
  23888. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  23889. echo "$as_me: executing $ac_dest commands" >&6;}
  23890. case $ac_dest in
  23891. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  23892. # Strip MF so we end up with the name of the file.
  23893. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23894. # Check whether this is an Automake generated Makefile or not.
  23895. # We used to match only the files named `Makefile.in', but
  23896. # some people rename them; so instead we look at the file content.
  23897. # Grep'ing the first line is not enough: some people post-process
  23898. # each Makefile.in and add a new line on top of each file to say so.
  23899. # So let's grep whole file.
  23900. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  23901. dirpart=`(dirname "$mf") 2>/dev/null ||
  23902. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23903. X"$mf" : 'X\(//\)[^/]' \| \
  23904. X"$mf" : 'X\(//\)$' \| \
  23905. X"$mf" : 'X\(/\)' \| \
  23906. . : '\(.\)' 2>/dev/null ||
  23907. echo X"$mf" |
  23908. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23909. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23910. /^X\(\/\/\)$/{ s//\1/; q; }
  23911. /^X\(\/\).*/{ s//\1/; q; }
  23912. s/.*/./; q'`
  23913. else
  23914. continue
  23915. fi
  23916. # Extract the definition of DEPDIR, am__include, and am__quote
  23917. # from the Makefile without running `make'.
  23918. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23919. test -z "$DEPDIR" && continue
  23920. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23921. test -z "am__include" && continue
  23922. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23923. # When using ansi2knr, U may be empty or an underscore; expand it
  23924. U=`sed -n 's/^U = //p' < "$mf"`
  23925. # Find all dependency output files, they are included files with
  23926. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23927. # simplest approach to changing $(DEPDIR) to its actual value in the
  23928. # expansion.
  23929. for file in `sed -n "
  23930. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23931. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23932. # Make sure the directory exists.
  23933. test -f "$dirpart/$file" && continue
  23934. fdir=`(dirname "$file") 2>/dev/null ||
  23935. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23936. X"$file" : 'X\(//\)[^/]' \| \
  23937. X"$file" : 'X\(//\)$' \| \
  23938. X"$file" : 'X\(/\)' \| \
  23939. . : '\(.\)' 2>/dev/null ||
  23940. echo X"$file" |
  23941. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23942. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23943. /^X\(\/\/\)$/{ s//\1/; q; }
  23944. /^X\(\/\).*/{ s//\1/; q; }
  23945. s/.*/./; q'`
  23946. { if $as_mkdir_p; then
  23947. mkdir -p $dirpart/$fdir
  23948. else
  23949. as_dir=$dirpart/$fdir
  23950. as_dirs=
  23951. while test ! -d "$as_dir"; do
  23952. as_dirs="$as_dir $as_dirs"
  23953. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23954. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23955. X"$as_dir" : 'X\(//\)[^/]' \| \
  23956. X"$as_dir" : 'X\(//\)$' \| \
  23957. X"$as_dir" : 'X\(/\)' \| \
  23958. . : '\(.\)' 2>/dev/null ||
  23959. echo X"$as_dir" |
  23960. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23961. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23962. /^X\(\/\/\)$/{ s//\1/; q; }
  23963. /^X\(\/\).*/{ s//\1/; q; }
  23964. s/.*/./; q'`
  23965. done
  23966. test ! -n "$as_dirs" || mkdir $as_dirs
  23967. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  23968. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  23969. { (exit 1); exit 1; }; }; }
  23970. # echo "creating $dirpart/$file"
  23971. echo '# dummy' > "$dirpart/$file"
  23972. done
  23973. done
  23974. ;;
  23975. esac
  23976. done
  23977. _ACEOF
  23978. cat >>$CONFIG_STATUS <<\_ACEOF
  23979. { (exit 0); exit 0; }
  23980. _ACEOF
  23981. chmod +x $CONFIG_STATUS
  23982. ac_clean_files=$ac_clean_files_save
  23983. # configure is writing to config.log, and then calls config.status.
  23984. # config.status does its own redirection, appending to config.log.
  23985. # Unfortunately, on DOS this fails, as config.log is still kept open
  23986. # by configure, so config.status won't be able to write to it; its
  23987. # output is simply discarded. So we exec the FD to /dev/null,
  23988. # effectively closing config.log, so it can be properly (re)opened and
  23989. # appended to by config.status. When coming back to configure, we
  23990. # need to make the FD available again.
  23991. if test "$no_create" != yes; then
  23992. ac_cs_success=:
  23993. ac_config_status_args=
  23994. test "$silent" = yes &&
  23995. ac_config_status_args="$ac_config_status_args --quiet"
  23996. exec 5>/dev/null
  23997. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23998. exec 5>>config.log
  23999. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24000. # would make configure fail if this is the last instruction.
  24001. $ac_cs_success || { (exit 1); exit 1; }
  24002. fi