configure 843 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dirsrv 1.1.0b1.
  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.0b1'
  375. PACKAGE_STRING='dirsrv 1.1.0b1'
  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 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_bitwise_TRUE enable_bitwise_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec 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 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_CPP_set=${CPP+set}
  822. ac_env_CPP_value=$CPP
  823. ac_cv_env_CPP_set=${CPP+set}
  824. ac_cv_env_CPP_value=$CPP
  825. ac_env_CXXCPP_set=${CXXCPP+set}
  826. ac_env_CXXCPP_value=$CXXCPP
  827. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  828. ac_cv_env_CXXCPP_value=$CXXCPP
  829. ac_env_F77_set=${F77+set}
  830. ac_env_F77_value=$F77
  831. ac_cv_env_F77_set=${F77+set}
  832. ac_cv_env_F77_value=$F77
  833. ac_env_FFLAGS_set=${FFLAGS+set}
  834. ac_env_FFLAGS_value=$FFLAGS
  835. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  836. ac_cv_env_FFLAGS_value=$FFLAGS
  837. #
  838. # Report the --help message.
  839. #
  840. if test "$ac_init_help" = "long"; then
  841. # Omit some internal or obsolete options to make the list less imposing.
  842. # This message is too long to be a string in the A/UX 3.1 sh.
  843. cat <<_ACEOF
  844. \`configure' configures dirsrv 1.1.0b1 to adapt to many kinds of systems.
  845. Usage: $0 [OPTION]... [VAR=VALUE]...
  846. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  847. VAR=VALUE. See below for descriptions of some of the useful variables.
  848. Defaults for the options are specified in brackets.
  849. Configuration:
  850. -h, --help display this help and exit
  851. --help=short display options specific to this package
  852. --help=recursive display the short help of all the included packages
  853. -V, --version display version information and exit
  854. -q, --quiet, --silent do not print \`checking...' messages
  855. --cache-file=FILE cache test results in FILE [disabled]
  856. -C, --config-cache alias for \`--cache-file=config.cache'
  857. -n, --no-create do not create output files
  858. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  859. _ACEOF
  860. cat <<_ACEOF
  861. Installation directories:
  862. --prefix=PREFIX install architecture-independent files in PREFIX
  863. [$ac_default_prefix]
  864. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  865. [PREFIX]
  866. By default, \`make install' will install all the files in
  867. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  868. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  869. for instance \`--prefix=\$HOME'.
  870. For better control, use the options below.
  871. Fine tuning of the installation directories:
  872. --bindir=DIR user executables [EPREFIX/bin]
  873. --sbindir=DIR system admin executables [EPREFIX/sbin]
  874. --libexecdir=DIR program executables [EPREFIX/libexec]
  875. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  876. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  877. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  878. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  879. --libdir=DIR object code libraries [EPREFIX/lib]
  880. --includedir=DIR C header files [PREFIX/include]
  881. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  882. --infodir=DIR info documentation [PREFIX/info]
  883. --mandir=DIR man documentation [PREFIX/man]
  884. _ACEOF
  885. cat <<\_ACEOF
  886. Program names:
  887. --program-prefix=PREFIX prepend PREFIX to installed program names
  888. --program-suffix=SUFFIX append SUFFIX to installed program names
  889. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  890. System types:
  891. --build=BUILD configure for building on BUILD [guessed]
  892. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. case $ac_init_help in
  897. short | recursive ) echo "Configuration of dirsrv 1.1.0b1:";;
  898. esac
  899. cat <<\_ACEOF
  900. Optional Features:
  901. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  902. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  903. --enable-maintainer-mode enable make rules and dependencies not useful
  904. (and sometimes confusing) to the casual installer
  905. --disable-dependency-tracking speeds up one-time build
  906. --enable-dependency-tracking do not reject slow dependency extractors
  907. --enable-static[=PKGS]
  908. build static libraries [default=no]
  909. --enable-shared[=PKGS]
  910. build shared libraries [default=yes]
  911. --enable-fast-install[=PKGS]
  912. optimize for fast installation [default=yes]
  913. --disable-libtool-lock avoid locking (might break parallel builds)
  914. --enable-debug Enable debug features (default: no)
  915. --enable-bundle Enable bundled dependencies (default: no)
  916. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  917. yes)
  918. --enable-dna enable the Distributed Numeric Assignment (DNA)
  919. plugin (default: yes)
  920. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  921. (default: yes)
  922. --enable-bitwise enable the bitwise matching rule plugin (default:
  923. yes)
  924. Optional Packages:
  925. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  926. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  927. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  928. --with-pic try to use only PIC/non-PIC objects [default=use
  929. both]
  930. --with-tags[=TAGS]
  931. include additional configurations [automatic]
  932. --with-fhs Use FHS layout
  933. --with-fhs-opt Use FHS optional layout
  934. --with-instconfigdir=/path
  935. Base directory for instance specific writable
  936. configuration directories (default
  937. $sysconfdir/$PACKAGE_NAME)
  938. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  939. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  940. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  941. --with-nss=PATH Network Security Services (NSS) directory
  942. --with-nss-inc=PATH Network Security Services (NSS) include directory
  943. --with-nss-lib=PATH Network Security Services (NSS) library directory
  944. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  945. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  946. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  947. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  948. --with-db=PATH Berkeley DB directory
  949. --with-sasl=PATH Use sasl from supplied path
  950. --with-sasl-inc=PATH SASL include file directory
  951. --with-sasl-lib=PATH SASL library directory
  952. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  953. --with-svrcore-inc=PATH SVRCORE include file directory
  954. --with-svrcore-lib=PATH SVRCORE library directory
  955. --with-icu=PATH ICU directory
  956. --with-icu-inc=PATH ICU include directory
  957. --with-icu-lib=PATH ICU library directory
  958. --with-icu-bin=PATH ICU binary directory
  959. --with-netsnmp=PATH Net-SNMP directory
  960. --with-netsnmp-inc=PATH Net-SNMP include directory
  961. --with-netsnmp-lib=PATH Net-SNMP library directory
  962. Some influential environment variables:
  963. CXX C++ compiler command
  964. CXXFLAGS C++ compiler flags
  965. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  966. nonstandard directory <lib dir>
  967. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  968. headers in a nonstandard directory <include dir>
  969. CC C compiler command
  970. CFLAGS C compiler flags
  971. CPP C preprocessor
  972. CXXCPP C++ preprocessor
  973. F77 Fortran 77 compiler command
  974. FFLAGS Fortran 77 compiler flags
  975. Use these variables to override the choices made by `configure' or to help
  976. it to find libraries and programs with nonstandard names/locations.
  977. Report bugs to <http://bugzilla.redhat.com/>.
  978. _ACEOF
  979. fi
  980. if test "$ac_init_help" = "recursive"; then
  981. # If there are subdirs, report their specific --help.
  982. ac_popdir=`pwd`
  983. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  984. test -d $ac_dir || continue
  985. ac_builddir=.
  986. if test "$ac_dir" != .; then
  987. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  988. # A "../" for each directory in $ac_dir_suffix.
  989. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  990. else
  991. ac_dir_suffix= ac_top_builddir=
  992. fi
  993. case $srcdir in
  994. .) # No --srcdir option. We are building in place.
  995. ac_srcdir=.
  996. if test -z "$ac_top_builddir"; then
  997. ac_top_srcdir=.
  998. else
  999. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1000. fi ;;
  1001. [\\/]* | ?:[\\/]* ) # Absolute path.
  1002. ac_srcdir=$srcdir$ac_dir_suffix;
  1003. ac_top_srcdir=$srcdir ;;
  1004. *) # Relative path.
  1005. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1006. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1007. esac
  1008. # Do not use `cd foo && pwd` to compute absolute paths, because
  1009. # the directories may not exist.
  1010. case `pwd` in
  1011. .) ac_abs_builddir="$ac_dir";;
  1012. *)
  1013. case "$ac_dir" in
  1014. .) ac_abs_builddir=`pwd`;;
  1015. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1016. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1017. esac;;
  1018. esac
  1019. case $ac_abs_builddir in
  1020. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1021. *)
  1022. case ${ac_top_builddir}. in
  1023. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1024. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1025. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1026. esac;;
  1027. esac
  1028. case $ac_abs_builddir in
  1029. .) ac_abs_srcdir=$ac_srcdir;;
  1030. *)
  1031. case $ac_srcdir in
  1032. .) ac_abs_srcdir=$ac_abs_builddir;;
  1033. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1034. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1035. esac;;
  1036. esac
  1037. case $ac_abs_builddir in
  1038. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1039. *)
  1040. case $ac_top_srcdir in
  1041. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1042. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1043. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1044. esac;;
  1045. esac
  1046. cd $ac_dir
  1047. # Check for guested configure; otherwise get Cygnus style configure.
  1048. if test -f $ac_srcdir/configure.gnu; then
  1049. echo
  1050. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1051. elif test -f $ac_srcdir/configure; then
  1052. echo
  1053. $SHELL $ac_srcdir/configure --help=recursive
  1054. elif test -f $ac_srcdir/configure.ac ||
  1055. test -f $ac_srcdir/configure.in; then
  1056. echo
  1057. $ac_configure --help
  1058. else
  1059. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1060. fi
  1061. cd $ac_popdir
  1062. done
  1063. fi
  1064. test -n "$ac_init_help" && exit 0
  1065. if $ac_init_version; then
  1066. cat <<\_ACEOF
  1067. dirsrv configure 1.1.0b1
  1068. generated by GNU Autoconf 2.59
  1069. Copyright (C) 2003 Free Software Foundation, Inc.
  1070. This configure script is free software; the Free Software Foundation
  1071. gives unlimited permission to copy, distribute and modify it.
  1072. _ACEOF
  1073. exit 0
  1074. fi
  1075. exec 5>config.log
  1076. cat >&5 <<_ACEOF
  1077. This file contains any messages produced by compilers while
  1078. running configure, to aid debugging if configure makes a mistake.
  1079. It was created by dirsrv $as_me 1.1.0b1, which was
  1080. generated by GNU Autoconf 2.59. Invocation command line was
  1081. $ $0 $@
  1082. _ACEOF
  1083. {
  1084. cat <<_ASUNAME
  1085. ## --------- ##
  1086. ## Platform. ##
  1087. ## --------- ##
  1088. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1089. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1090. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1091. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1092. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1093. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1094. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1095. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1096. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1097. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1098. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1099. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1100. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1101. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1102. _ASUNAME
  1103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1104. for as_dir in $PATH
  1105. do
  1106. IFS=$as_save_IFS
  1107. test -z "$as_dir" && as_dir=.
  1108. echo "PATH: $as_dir"
  1109. done
  1110. } >&5
  1111. cat >&5 <<_ACEOF
  1112. ## ----------- ##
  1113. ## Core tests. ##
  1114. ## ----------- ##
  1115. _ACEOF
  1116. # Keep a trace of the command line.
  1117. # Strip out --no-create and --no-recursion so they do not pile up.
  1118. # Strip out --silent because we don't want to record it for future runs.
  1119. # Also quote any args containing shell meta-characters.
  1120. # Make two passes to allow for proper duplicate-argument suppression.
  1121. ac_configure_args=
  1122. ac_configure_args0=
  1123. ac_configure_args1=
  1124. ac_sep=
  1125. ac_must_keep_next=false
  1126. for ac_pass in 1 2
  1127. do
  1128. for ac_arg
  1129. do
  1130. case $ac_arg in
  1131. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1132. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1133. | -silent | --silent | --silen | --sile | --sil)
  1134. continue ;;
  1135. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1136. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1137. esac
  1138. case $ac_pass in
  1139. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1140. 2)
  1141. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1142. if test $ac_must_keep_next = true; then
  1143. ac_must_keep_next=false # Got value, back to normal.
  1144. else
  1145. case $ac_arg in
  1146. *=* | --config-cache | -C | -disable-* | --disable-* \
  1147. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1148. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1149. | -with-* | --with-* | -without-* | --without-* | --x)
  1150. case "$ac_configure_args0 " in
  1151. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1152. esac
  1153. ;;
  1154. -* ) ac_must_keep_next=true ;;
  1155. esac
  1156. fi
  1157. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1158. # Get rid of the leading space.
  1159. ac_sep=" "
  1160. ;;
  1161. esac
  1162. done
  1163. done
  1164. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1165. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1166. # When interrupted or exit'd, cleanup temporary files, and complete
  1167. # config.log. We remove comments because anyway the quotes in there
  1168. # would cause problems or look ugly.
  1169. # WARNING: Be sure not to use single quotes in there, as some shells,
  1170. # such as our DU 5.0 friend, will then `close' the trap.
  1171. trap 'exit_status=$?
  1172. # Save into config.log some information that might help in debugging.
  1173. {
  1174. echo
  1175. cat <<\_ASBOX
  1176. ## ---------------- ##
  1177. ## Cache variables. ##
  1178. ## ---------------- ##
  1179. _ASBOX
  1180. echo
  1181. # The following way of writing the cache mishandles newlines in values,
  1182. {
  1183. (set) 2>&1 |
  1184. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1185. *ac_space=\ *)
  1186. sed -n \
  1187. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1188. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1189. ;;
  1190. *)
  1191. sed -n \
  1192. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1193. ;;
  1194. esac;
  1195. }
  1196. echo
  1197. cat <<\_ASBOX
  1198. ## ----------------- ##
  1199. ## Output variables. ##
  1200. ## ----------------- ##
  1201. _ASBOX
  1202. echo
  1203. for ac_var in $ac_subst_vars
  1204. do
  1205. eval ac_val=$`echo $ac_var`
  1206. echo "$ac_var='"'"'$ac_val'"'"'"
  1207. done | sort
  1208. echo
  1209. if test -n "$ac_subst_files"; then
  1210. cat <<\_ASBOX
  1211. ## ------------- ##
  1212. ## Output files. ##
  1213. ## ------------- ##
  1214. _ASBOX
  1215. echo
  1216. for ac_var in $ac_subst_files
  1217. do
  1218. eval ac_val=$`echo $ac_var`
  1219. echo "$ac_var='"'"'$ac_val'"'"'"
  1220. done | sort
  1221. echo
  1222. fi
  1223. if test -s confdefs.h; then
  1224. cat <<\_ASBOX
  1225. ## ----------- ##
  1226. ## confdefs.h. ##
  1227. ## ----------- ##
  1228. _ASBOX
  1229. echo
  1230. sed "/^$/d" confdefs.h | sort
  1231. echo
  1232. fi
  1233. test "$ac_signal" != 0 &&
  1234. echo "$as_me: caught signal $ac_signal"
  1235. echo "$as_me: exit $exit_status"
  1236. } >&5
  1237. rm -f core *.core &&
  1238. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1239. exit $exit_status
  1240. ' 0
  1241. for ac_signal in 1 2 13 15; do
  1242. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1243. done
  1244. ac_signal=0
  1245. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1246. rm -rf conftest* confdefs.h
  1247. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1248. echo >confdefs.h
  1249. # Predefined preprocessor variables.
  1250. cat >>confdefs.h <<_ACEOF
  1251. #define PACKAGE_NAME "$PACKAGE_NAME"
  1252. _ACEOF
  1253. cat >>confdefs.h <<_ACEOF
  1254. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1255. _ACEOF
  1256. cat >>confdefs.h <<_ACEOF
  1257. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1258. _ACEOF
  1259. cat >>confdefs.h <<_ACEOF
  1260. #define PACKAGE_STRING "$PACKAGE_STRING"
  1261. _ACEOF
  1262. cat >>confdefs.h <<_ACEOF
  1263. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1264. _ACEOF
  1265. # Let the site file select an alternate cache file if it wants to.
  1266. # Prefer explicitly selected file to automatically selected ones.
  1267. if test -z "$CONFIG_SITE"; then
  1268. if test "x$prefix" != xNONE; then
  1269. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1270. else
  1271. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1272. fi
  1273. fi
  1274. for ac_site_file in $CONFIG_SITE; do
  1275. if test -r "$ac_site_file"; then
  1276. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1277. echo "$as_me: loading site script $ac_site_file" >&6;}
  1278. sed 's/^/| /' "$ac_site_file" >&5
  1279. . "$ac_site_file"
  1280. fi
  1281. done
  1282. if test -r "$cache_file"; then
  1283. # Some versions of bash will fail to source /dev/null (special
  1284. # files actually), so we avoid doing that.
  1285. if test -f "$cache_file"; then
  1286. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1287. echo "$as_me: loading cache $cache_file" >&6;}
  1288. case $cache_file in
  1289. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1290. *) . ./$cache_file;;
  1291. esac
  1292. fi
  1293. else
  1294. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1295. echo "$as_me: creating cache $cache_file" >&6;}
  1296. >$cache_file
  1297. fi
  1298. # Check that the precious variables saved in the cache have kept the same
  1299. # value.
  1300. ac_cache_corrupted=false
  1301. for ac_var in `(set) 2>&1 |
  1302. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1303. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1304. eval ac_new_set=\$ac_env_${ac_var}_set
  1305. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1306. eval ac_new_val="\$ac_env_${ac_var}_value"
  1307. case $ac_old_set,$ac_new_set in
  1308. set,)
  1309. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1310. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1311. ac_cache_corrupted=: ;;
  1312. ,set)
  1313. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1314. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1315. ac_cache_corrupted=: ;;
  1316. ,);;
  1317. *)
  1318. if test "x$ac_old_val" != "x$ac_new_val"; then
  1319. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1320. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1321. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1322. echo "$as_me: former value: $ac_old_val" >&2;}
  1323. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1324. echo "$as_me: current value: $ac_new_val" >&2;}
  1325. ac_cache_corrupted=:
  1326. fi;;
  1327. esac
  1328. # Pass precious variables to config.status.
  1329. if test "$ac_new_set" = set; then
  1330. case $ac_new_val in
  1331. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1332. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1333. *) ac_arg=$ac_var=$ac_new_val ;;
  1334. esac
  1335. case " $ac_configure_args " in
  1336. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1337. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1338. esac
  1339. fi
  1340. done
  1341. if $ac_cache_corrupted; then
  1342. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1343. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1344. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1345. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1346. { (exit 1); exit 1; }; }
  1347. fi
  1348. ac_ext=c
  1349. ac_cpp='$CPP $CPPFLAGS'
  1350. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1351. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1352. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1353. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1354. ac_config_headers="$ac_config_headers config.h"
  1355. am__api_version="1.9"
  1356. ac_aux_dir=
  1357. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1358. if test -f $ac_dir/install-sh; then
  1359. ac_aux_dir=$ac_dir
  1360. ac_install_sh="$ac_aux_dir/install-sh -c"
  1361. break
  1362. elif test -f $ac_dir/install.sh; then
  1363. ac_aux_dir=$ac_dir
  1364. ac_install_sh="$ac_aux_dir/install.sh -c"
  1365. break
  1366. elif test -f $ac_dir/shtool; then
  1367. ac_aux_dir=$ac_dir
  1368. ac_install_sh="$ac_aux_dir/shtool install -c"
  1369. break
  1370. fi
  1371. done
  1372. if test -z "$ac_aux_dir"; then
  1373. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1374. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1375. { (exit 1); exit 1; }; }
  1376. fi
  1377. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1378. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1379. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1380. # Find a good install program. We prefer a C program (faster),
  1381. # so one script is as good as another. But avoid the broken or
  1382. # incompatible versions:
  1383. # SysV /etc/install, /usr/sbin/install
  1384. # SunOS /usr/etc/install
  1385. # IRIX /sbin/install
  1386. # AIX /bin/install
  1387. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1388. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1389. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1390. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1391. # OS/2's system install, which has a completely different semantic
  1392. # ./install, which can be erroneously created by make from ./install.sh.
  1393. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1394. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1395. if test -z "$INSTALL"; then
  1396. if test "${ac_cv_path_install+set}" = set; then
  1397. echo $ECHO_N "(cached) $ECHO_C" >&6
  1398. else
  1399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1400. for as_dir in $PATH
  1401. do
  1402. IFS=$as_save_IFS
  1403. test -z "$as_dir" && as_dir=.
  1404. # Account for people who put trailing slashes in PATH elements.
  1405. case $as_dir/ in
  1406. ./ | .// | /cC/* | \
  1407. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1408. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1409. /usr/ucb/* ) ;;
  1410. *)
  1411. # OSF1 and SCO ODT 3.0 have their own names for install.
  1412. # Don't use installbsd from OSF since it installs stuff as root
  1413. # by default.
  1414. for ac_prog in ginstall scoinst install; do
  1415. for ac_exec_ext in '' $ac_executable_extensions; do
  1416. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1417. if test $ac_prog = install &&
  1418. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1419. # AIX install. It has an incompatible calling convention.
  1420. :
  1421. elif test $ac_prog = install &&
  1422. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1423. # program-specific install script used by HP pwplus--don't use.
  1424. :
  1425. else
  1426. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1427. break 3
  1428. fi
  1429. fi
  1430. done
  1431. done
  1432. ;;
  1433. esac
  1434. done
  1435. fi
  1436. if test "${ac_cv_path_install+set}" = set; then
  1437. INSTALL=$ac_cv_path_install
  1438. else
  1439. # As a last resort, use the slow shell script. We don't cache a
  1440. # path for INSTALL within a source directory, because that will
  1441. # break other packages using the cache if that directory is
  1442. # removed, or if the path is relative.
  1443. INSTALL=$ac_install_sh
  1444. fi
  1445. fi
  1446. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1447. echo "${ECHO_T}$INSTALL" >&6
  1448. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1449. # It thinks the first close brace ends the variable substitution.
  1450. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1451. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1452. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1453. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1454. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1455. # Just in case
  1456. sleep 1
  1457. echo timestamp > conftest.file
  1458. # Do `set' in a subshell so we don't clobber the current shell's
  1459. # arguments. Must try -L first in case configure is actually a
  1460. # symlink; some systems play weird games with the mod time of symlinks
  1461. # (eg FreeBSD returns the mod time of the symlink's containing
  1462. # directory).
  1463. if (
  1464. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1465. if test "$*" = "X"; then
  1466. # -L didn't work.
  1467. set X `ls -t $srcdir/configure conftest.file`
  1468. fi
  1469. rm -f conftest.file
  1470. if test "$*" != "X $srcdir/configure conftest.file" \
  1471. && test "$*" != "X conftest.file $srcdir/configure"; then
  1472. # If neither matched, then we have a broken ls. This can happen
  1473. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1474. # broken ls alias from the environment. This has actually
  1475. # happened. Such a system could not be considered "sane".
  1476. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1477. alias in your environment" >&5
  1478. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1479. alias in your environment" >&2;}
  1480. { (exit 1); exit 1; }; }
  1481. fi
  1482. test "$2" = conftest.file
  1483. )
  1484. then
  1485. # Ok.
  1486. :
  1487. else
  1488. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1489. Check your system clock" >&5
  1490. echo "$as_me: error: newly created file is older than distributed files!
  1491. Check your system clock" >&2;}
  1492. { (exit 1); exit 1; }; }
  1493. fi
  1494. echo "$as_me:$LINENO: result: yes" >&5
  1495. echo "${ECHO_T}yes" >&6
  1496. test "$program_prefix" != NONE &&
  1497. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1498. # Use a double $ so make ignores it.
  1499. test "$program_suffix" != NONE &&
  1500. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1501. # Double any \ or $. echo might interpret backslashes.
  1502. # By default was `s,x,x', remove it if useless.
  1503. cat <<\_ACEOF >conftest.sed
  1504. s/[\\$]/&&/g;s/;s,x,x,$//
  1505. _ACEOF
  1506. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1507. rm conftest.sed
  1508. # expand $ac_aux_dir to an absolute path
  1509. am_aux_dir=`cd $ac_aux_dir && pwd`
  1510. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1511. # Use eval to expand $SHELL
  1512. if eval "$MISSING --run true"; then
  1513. am_missing_run="$MISSING --run "
  1514. else
  1515. am_missing_run=
  1516. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1517. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1518. fi
  1519. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1520. # We used to keeping the `.' as first argument, in order to
  1521. # allow $(mkdir_p) to be used without argument. As in
  1522. # $(mkdir_p) $(somedir)
  1523. # where $(somedir) is conditionally defined. However this is wrong
  1524. # for two reasons:
  1525. # 1. if the package is installed by a user who cannot write `.'
  1526. # make install will fail,
  1527. # 2. the above comment should most certainly read
  1528. # $(mkdir_p) $(DESTDIR)$(somedir)
  1529. # so it does not work when $(somedir) is undefined and
  1530. # $(DESTDIR) is not.
  1531. # To support the latter case, we have to write
  1532. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1533. # so the `.' trick is pointless.
  1534. mkdir_p='mkdir -p --'
  1535. else
  1536. # On NextStep and OpenStep, the `mkdir' command does not
  1537. # recognize any option. It will interpret all options as
  1538. # directories to create, and then abort because `.' already
  1539. # exists.
  1540. for d in ./-p ./--version;
  1541. do
  1542. test -d $d && rmdir $d
  1543. done
  1544. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1545. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1546. mkdir_p='$(mkinstalldirs)'
  1547. else
  1548. mkdir_p='$(install_sh) -d'
  1549. fi
  1550. fi
  1551. for ac_prog in gawk mawk nawk awk
  1552. do
  1553. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1554. set dummy $ac_prog; ac_word=$2
  1555. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1556. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1557. if test "${ac_cv_prog_AWK+set}" = set; then
  1558. echo $ECHO_N "(cached) $ECHO_C" >&6
  1559. else
  1560. if test -n "$AWK"; then
  1561. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1562. else
  1563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1564. for as_dir in $PATH
  1565. do
  1566. IFS=$as_save_IFS
  1567. test -z "$as_dir" && as_dir=.
  1568. for ac_exec_ext in '' $ac_executable_extensions; do
  1569. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1570. ac_cv_prog_AWK="$ac_prog"
  1571. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1572. break 2
  1573. fi
  1574. done
  1575. done
  1576. fi
  1577. fi
  1578. AWK=$ac_cv_prog_AWK
  1579. if test -n "$AWK"; then
  1580. echo "$as_me:$LINENO: result: $AWK" >&5
  1581. echo "${ECHO_T}$AWK" >&6
  1582. else
  1583. echo "$as_me:$LINENO: result: no" >&5
  1584. echo "${ECHO_T}no" >&6
  1585. fi
  1586. test -n "$AWK" && break
  1587. done
  1588. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1589. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1590. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1591. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1592. echo $ECHO_N "(cached) $ECHO_C" >&6
  1593. else
  1594. cat >conftest.make <<\_ACEOF
  1595. all:
  1596. @echo 'ac_maketemp="$(MAKE)"'
  1597. _ACEOF
  1598. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1599. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1600. if test -n "$ac_maketemp"; then
  1601. eval ac_cv_prog_make_${ac_make}_set=yes
  1602. else
  1603. eval ac_cv_prog_make_${ac_make}_set=no
  1604. fi
  1605. rm -f conftest.make
  1606. fi
  1607. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1608. echo "$as_me:$LINENO: result: yes" >&5
  1609. echo "${ECHO_T}yes" >&6
  1610. SET_MAKE=
  1611. else
  1612. echo "$as_me:$LINENO: result: no" >&5
  1613. echo "${ECHO_T}no" >&6
  1614. SET_MAKE="MAKE=${MAKE-make}"
  1615. fi
  1616. rm -rf .tst 2>/dev/null
  1617. mkdir .tst 2>/dev/null
  1618. if test -d .tst; then
  1619. am__leading_dot=.
  1620. else
  1621. am__leading_dot=_
  1622. fi
  1623. rmdir .tst 2>/dev/null
  1624. # test to see if srcdir already configured
  1625. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1626. test -f $srcdir/config.status; then
  1627. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1628. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1629. { (exit 1); exit 1; }; }
  1630. fi
  1631. # test whether we have cygpath
  1632. if test -z "$CYGPATH_W"; then
  1633. if (cygpath --version) >/dev/null 2>/dev/null; then
  1634. CYGPATH_W='cygpath -w'
  1635. else
  1636. CYGPATH_W=echo
  1637. fi
  1638. fi
  1639. # Define the identity of the package.
  1640. PACKAGE='dirsrv'
  1641. VERSION='1.1.0b1'
  1642. cat >>confdefs.h <<_ACEOF
  1643. #define PACKAGE "$PACKAGE"
  1644. _ACEOF
  1645. cat >>confdefs.h <<_ACEOF
  1646. #define VERSION "$VERSION"
  1647. _ACEOF
  1648. # Some tools Automake needs.
  1649. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1650. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1651. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1652. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1653. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1654. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1655. # Installed binaries are usually stripped using `strip' when the user
  1656. # run `make install-strip'. However `strip' might not be the right
  1657. # tool to use in cross-compilation environments, therefore Automake
  1658. # will honor the `STRIP' environment variable to overrule this program.
  1659. if test "$cross_compiling" != no; then
  1660. if test -n "$ac_tool_prefix"; then
  1661. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1662. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1663. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1664. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1665. if test "${ac_cv_prog_STRIP+set}" = set; then
  1666. echo $ECHO_N "(cached) $ECHO_C" >&6
  1667. else
  1668. if test -n "$STRIP"; then
  1669. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1670. else
  1671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1672. for as_dir in $PATH
  1673. do
  1674. IFS=$as_save_IFS
  1675. test -z "$as_dir" && as_dir=.
  1676. for ac_exec_ext in '' $ac_executable_extensions; do
  1677. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1678. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1679. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1680. break 2
  1681. fi
  1682. done
  1683. done
  1684. fi
  1685. fi
  1686. STRIP=$ac_cv_prog_STRIP
  1687. if test -n "$STRIP"; then
  1688. echo "$as_me:$LINENO: result: $STRIP" >&5
  1689. echo "${ECHO_T}$STRIP" >&6
  1690. else
  1691. echo "$as_me:$LINENO: result: no" >&5
  1692. echo "${ECHO_T}no" >&6
  1693. fi
  1694. fi
  1695. if test -z "$ac_cv_prog_STRIP"; then
  1696. ac_ct_STRIP=$STRIP
  1697. # Extract the first word of "strip", so it can be a program name with args.
  1698. set dummy strip; ac_word=$2
  1699. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1700. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1701. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1702. echo $ECHO_N "(cached) $ECHO_C" >&6
  1703. else
  1704. if test -n "$ac_ct_STRIP"; then
  1705. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1706. else
  1707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1708. for as_dir in $PATH
  1709. do
  1710. IFS=$as_save_IFS
  1711. test -z "$as_dir" && as_dir=.
  1712. for ac_exec_ext in '' $ac_executable_extensions; do
  1713. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1714. ac_cv_prog_ac_ct_STRIP="strip"
  1715. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1716. break 2
  1717. fi
  1718. done
  1719. done
  1720. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1721. fi
  1722. fi
  1723. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1724. if test -n "$ac_ct_STRIP"; then
  1725. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1726. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1727. else
  1728. echo "$as_me:$LINENO: result: no" >&5
  1729. echo "${ECHO_T}no" >&6
  1730. fi
  1731. STRIP=$ac_ct_STRIP
  1732. else
  1733. STRIP="$ac_cv_prog_STRIP"
  1734. fi
  1735. fi
  1736. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1737. # We need awk for the "check" target. The system "awk" is bad on
  1738. # some platforms.
  1739. # Always define AMTAR for backward compatibility.
  1740. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1741. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1742. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1743. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1744. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1745. if test "${enable_maintainer_mode+set}" = set; then
  1746. enableval="$enable_maintainer_mode"
  1747. USE_MAINTAINER_MODE=$enableval
  1748. else
  1749. USE_MAINTAINER_MODE=no
  1750. fi;
  1751. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1752. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1753. if test $USE_MAINTAINER_MODE = yes; then
  1754. MAINTAINER_MODE_TRUE=
  1755. MAINTAINER_MODE_FALSE='#'
  1756. else
  1757. MAINTAINER_MODE_TRUE='#'
  1758. MAINTAINER_MODE_FALSE=
  1759. fi
  1760. MAINT=$MAINTAINER_MODE_TRUE
  1761. # Make sure we can run config.sub.
  1762. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1763. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1764. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1765. { (exit 1); exit 1; }; }
  1766. echo "$as_me:$LINENO: checking build system type" >&5
  1767. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1768. if test "${ac_cv_build+set}" = set; then
  1769. echo $ECHO_N "(cached) $ECHO_C" >&6
  1770. else
  1771. ac_cv_build_alias=$build_alias
  1772. test -z "$ac_cv_build_alias" &&
  1773. ac_cv_build_alias=`$ac_config_guess`
  1774. test -z "$ac_cv_build_alias" &&
  1775. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1776. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1777. { (exit 1); exit 1; }; }
  1778. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1779. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1780. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1781. { (exit 1); exit 1; }; }
  1782. fi
  1783. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1784. echo "${ECHO_T}$ac_cv_build" >&6
  1785. build=$ac_cv_build
  1786. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1787. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1788. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1789. echo "$as_me:$LINENO: checking host system type" >&5
  1790. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1791. if test "${ac_cv_host+set}" = set; then
  1792. echo $ECHO_N "(cached) $ECHO_C" >&6
  1793. else
  1794. ac_cv_host_alias=$host_alias
  1795. test -z "$ac_cv_host_alias" &&
  1796. ac_cv_host_alias=$ac_cv_build_alias
  1797. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1798. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1799. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1800. { (exit 1); exit 1; }; }
  1801. fi
  1802. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1803. echo "${ECHO_T}$ac_cv_host" >&6
  1804. host=$ac_cv_host
  1805. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1806. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1807. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1808. # Checks for programs.
  1809. ac_ext=cc
  1810. ac_cpp='$CXXCPP $CPPFLAGS'
  1811. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1812. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1813. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1814. if test -n "$ac_tool_prefix"; then
  1815. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1816. do
  1817. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1818. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1819. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1820. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1821. if test "${ac_cv_prog_CXX+set}" = set; then
  1822. echo $ECHO_N "(cached) $ECHO_C" >&6
  1823. else
  1824. if test -n "$CXX"; then
  1825. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1826. else
  1827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1828. for as_dir in $PATH
  1829. do
  1830. IFS=$as_save_IFS
  1831. test -z "$as_dir" && as_dir=.
  1832. for ac_exec_ext in '' $ac_executable_extensions; do
  1833. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1834. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1835. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1836. break 2
  1837. fi
  1838. done
  1839. done
  1840. fi
  1841. fi
  1842. CXX=$ac_cv_prog_CXX
  1843. if test -n "$CXX"; then
  1844. echo "$as_me:$LINENO: result: $CXX" >&5
  1845. echo "${ECHO_T}$CXX" >&6
  1846. else
  1847. echo "$as_me:$LINENO: result: no" >&5
  1848. echo "${ECHO_T}no" >&6
  1849. fi
  1850. test -n "$CXX" && break
  1851. done
  1852. fi
  1853. if test -z "$CXX"; then
  1854. ac_ct_CXX=$CXX
  1855. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1856. do
  1857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1858. set dummy $ac_prog; ac_word=$2
  1859. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1860. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1861. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1862. echo $ECHO_N "(cached) $ECHO_C" >&6
  1863. else
  1864. if test -n "$ac_ct_CXX"; then
  1865. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1866. else
  1867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1868. for as_dir in $PATH
  1869. do
  1870. IFS=$as_save_IFS
  1871. test -z "$as_dir" && as_dir=.
  1872. for ac_exec_ext in '' $ac_executable_extensions; do
  1873. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1874. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1875. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1876. break 2
  1877. fi
  1878. done
  1879. done
  1880. fi
  1881. fi
  1882. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1883. if test -n "$ac_ct_CXX"; then
  1884. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1885. echo "${ECHO_T}$ac_ct_CXX" >&6
  1886. else
  1887. echo "$as_me:$LINENO: result: no" >&5
  1888. echo "${ECHO_T}no" >&6
  1889. fi
  1890. test -n "$ac_ct_CXX" && break
  1891. done
  1892. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1893. CXX=$ac_ct_CXX
  1894. fi
  1895. # Provide some information about the compiler.
  1896. echo "$as_me:$LINENO:" \
  1897. "checking for C++ compiler version" >&5
  1898. ac_compiler=`set X $ac_compile; echo $2`
  1899. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1900. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1901. ac_status=$?
  1902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); }
  1904. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1905. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }
  1909. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1910. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); }
  1914. cat >conftest.$ac_ext <<_ACEOF
  1915. /* confdefs.h. */
  1916. _ACEOF
  1917. cat confdefs.h >>conftest.$ac_ext
  1918. cat >>conftest.$ac_ext <<_ACEOF
  1919. /* end confdefs.h. */
  1920. int
  1921. main ()
  1922. {
  1923. ;
  1924. return 0;
  1925. }
  1926. _ACEOF
  1927. ac_clean_files_save=$ac_clean_files
  1928. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1929. # Try to create an executable without -o first, disregard a.out.
  1930. # It will help us diagnose broken compilers, and finding out an intuition
  1931. # of exeext.
  1932. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1933. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1934. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1935. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1936. (eval $ac_link_default) 2>&5
  1937. ac_status=$?
  1938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1939. (exit $ac_status); }; then
  1940. # Find the output, starting from the most likely. This scheme is
  1941. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1942. # resort.
  1943. # Be careful to initialize this variable, since it used to be cached.
  1944. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1945. ac_cv_exeext=
  1946. # b.out is created by i960 compilers.
  1947. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1948. do
  1949. test -f "$ac_file" || continue
  1950. case $ac_file in
  1951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1952. ;;
  1953. conftest.$ac_ext )
  1954. # This is the source file.
  1955. ;;
  1956. [ab].out )
  1957. # We found the default executable, but exeext='' is most
  1958. # certainly right.
  1959. break;;
  1960. *.* )
  1961. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1962. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1963. # but it would be cool to find out if it's true. Does anybody
  1964. # maintain Libtool? --akim.
  1965. export ac_cv_exeext
  1966. break;;
  1967. * )
  1968. break;;
  1969. esac
  1970. done
  1971. else
  1972. echo "$as_me: failed program was:" >&5
  1973. sed 's/^/| /' conftest.$ac_ext >&5
  1974. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1975. See \`config.log' for more details." >&5
  1976. echo "$as_me: error: C++ compiler cannot create executables
  1977. See \`config.log' for more details." >&2;}
  1978. { (exit 77); exit 77; }; }
  1979. fi
  1980. ac_exeext=$ac_cv_exeext
  1981. echo "$as_me:$LINENO: result: $ac_file" >&5
  1982. echo "${ECHO_T}$ac_file" >&6
  1983. # Check the compiler produces executables we can run. If not, either
  1984. # the compiler is broken, or we cross compile.
  1985. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1986. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1987. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1988. # If not cross compiling, check that we can run a simple program.
  1989. if test "$cross_compiling" != yes; then
  1990. if { ac_try='./$ac_file'
  1991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1992. (eval $ac_try) 2>&5
  1993. ac_status=$?
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); }; }; then
  1996. cross_compiling=no
  1997. else
  1998. if test "$cross_compiling" = maybe; then
  1999. cross_compiling=yes
  2000. else
  2001. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2002. If you meant to cross compile, use \`--host'.
  2003. See \`config.log' for more details." >&5
  2004. echo "$as_me: error: cannot run C++ compiled programs.
  2005. If you meant to cross compile, use \`--host'.
  2006. See \`config.log' for more details." >&2;}
  2007. { (exit 1); exit 1; }; }
  2008. fi
  2009. fi
  2010. fi
  2011. echo "$as_me:$LINENO: result: yes" >&5
  2012. echo "${ECHO_T}yes" >&6
  2013. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2014. ac_clean_files=$ac_clean_files_save
  2015. # Check the compiler produces executables we can run. If not, either
  2016. # the compiler is broken, or we cross compile.
  2017. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2018. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2019. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2020. echo "${ECHO_T}$cross_compiling" >&6
  2021. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2022. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2023. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2024. (eval $ac_link) 2>&5
  2025. ac_status=$?
  2026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2027. (exit $ac_status); }; then
  2028. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2029. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2030. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2031. # `rm'.
  2032. for ac_file in conftest.exe conftest conftest.*; do
  2033. test -f "$ac_file" || continue
  2034. case $ac_file in
  2035. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2036. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2037. export ac_cv_exeext
  2038. break;;
  2039. * ) break;;
  2040. esac
  2041. done
  2042. else
  2043. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2044. See \`config.log' for more details." >&5
  2045. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2046. See \`config.log' for more details." >&2;}
  2047. { (exit 1); exit 1; }; }
  2048. fi
  2049. rm -f conftest$ac_cv_exeext
  2050. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2051. echo "${ECHO_T}$ac_cv_exeext" >&6
  2052. rm -f conftest.$ac_ext
  2053. EXEEXT=$ac_cv_exeext
  2054. ac_exeext=$EXEEXT
  2055. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2056. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2057. if test "${ac_cv_objext+set}" = set; then
  2058. echo $ECHO_N "(cached) $ECHO_C" >&6
  2059. else
  2060. cat >conftest.$ac_ext <<_ACEOF
  2061. /* confdefs.h. */
  2062. _ACEOF
  2063. cat confdefs.h >>conftest.$ac_ext
  2064. cat >>conftest.$ac_ext <<_ACEOF
  2065. /* end confdefs.h. */
  2066. int
  2067. main ()
  2068. {
  2069. ;
  2070. return 0;
  2071. }
  2072. _ACEOF
  2073. rm -f conftest.o conftest.obj
  2074. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2075. (eval $ac_compile) 2>&5
  2076. ac_status=$?
  2077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2078. (exit $ac_status); }; then
  2079. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2080. case $ac_file in
  2081. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2082. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2083. break;;
  2084. esac
  2085. done
  2086. else
  2087. echo "$as_me: failed program was:" >&5
  2088. sed 's/^/| /' conftest.$ac_ext >&5
  2089. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2090. See \`config.log' for more details." >&5
  2091. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2092. See \`config.log' for more details." >&2;}
  2093. { (exit 1); exit 1; }; }
  2094. fi
  2095. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2096. fi
  2097. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2098. echo "${ECHO_T}$ac_cv_objext" >&6
  2099. OBJEXT=$ac_cv_objext
  2100. ac_objext=$OBJEXT
  2101. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2102. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2103. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2104. echo $ECHO_N "(cached) $ECHO_C" >&6
  2105. else
  2106. cat >conftest.$ac_ext <<_ACEOF
  2107. /* confdefs.h. */
  2108. _ACEOF
  2109. cat confdefs.h >>conftest.$ac_ext
  2110. cat >>conftest.$ac_ext <<_ACEOF
  2111. /* end confdefs.h. */
  2112. int
  2113. main ()
  2114. {
  2115. #ifndef __GNUC__
  2116. choke me
  2117. #endif
  2118. ;
  2119. return 0;
  2120. }
  2121. _ACEOF
  2122. rm -f conftest.$ac_objext
  2123. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2124. (eval $ac_compile) 2>conftest.er1
  2125. ac_status=$?
  2126. grep -v '^ *+' conftest.er1 >conftest.err
  2127. rm -f conftest.er1
  2128. cat conftest.err >&5
  2129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2130. (exit $ac_status); } &&
  2131. { ac_try='test -z "$ac_cxx_werror_flag"
  2132. || test ! -s conftest.err'
  2133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2134. (eval $ac_try) 2>&5
  2135. ac_status=$?
  2136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2137. (exit $ac_status); }; } &&
  2138. { ac_try='test -s conftest.$ac_objext'
  2139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2140. (eval $ac_try) 2>&5
  2141. ac_status=$?
  2142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2143. (exit $ac_status); }; }; then
  2144. ac_compiler_gnu=yes
  2145. else
  2146. echo "$as_me: failed program was:" >&5
  2147. sed 's/^/| /' conftest.$ac_ext >&5
  2148. ac_compiler_gnu=no
  2149. fi
  2150. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2151. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2152. fi
  2153. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2154. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2155. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2156. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2157. ac_save_CXXFLAGS=$CXXFLAGS
  2158. CXXFLAGS="-g"
  2159. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2160. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2161. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2162. echo $ECHO_N "(cached) $ECHO_C" >&6
  2163. else
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. int
  2171. main ()
  2172. {
  2173. ;
  2174. return 0;
  2175. }
  2176. _ACEOF
  2177. rm -f conftest.$ac_objext
  2178. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2179. (eval $ac_compile) 2>conftest.er1
  2180. ac_status=$?
  2181. grep -v '^ *+' conftest.er1 >conftest.err
  2182. rm -f conftest.er1
  2183. cat conftest.err >&5
  2184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2185. (exit $ac_status); } &&
  2186. { ac_try='test -z "$ac_cxx_werror_flag"
  2187. || test ! -s conftest.err'
  2188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2189. (eval $ac_try) 2>&5
  2190. ac_status=$?
  2191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2192. (exit $ac_status); }; } &&
  2193. { ac_try='test -s conftest.$ac_objext'
  2194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2195. (eval $ac_try) 2>&5
  2196. ac_status=$?
  2197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2198. (exit $ac_status); }; }; then
  2199. ac_cv_prog_cxx_g=yes
  2200. else
  2201. echo "$as_me: failed program was:" >&5
  2202. sed 's/^/| /' conftest.$ac_ext >&5
  2203. ac_cv_prog_cxx_g=no
  2204. fi
  2205. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2206. fi
  2207. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2208. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2209. if test "$ac_test_CXXFLAGS" = set; then
  2210. CXXFLAGS=$ac_save_CXXFLAGS
  2211. elif test $ac_cv_prog_cxx_g = yes; then
  2212. if test "$GXX" = yes; then
  2213. CXXFLAGS="-g -O2"
  2214. else
  2215. CXXFLAGS="-g"
  2216. fi
  2217. else
  2218. if test "$GXX" = yes; then
  2219. CXXFLAGS="-O2"
  2220. else
  2221. CXXFLAGS=
  2222. fi
  2223. fi
  2224. for ac_declaration in \
  2225. '' \
  2226. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2227. 'extern "C" void std::exit (int); using std::exit;' \
  2228. 'extern "C" void exit (int) throw ();' \
  2229. 'extern "C" void exit (int);' \
  2230. 'void exit (int);'
  2231. do
  2232. cat >conftest.$ac_ext <<_ACEOF
  2233. /* confdefs.h. */
  2234. _ACEOF
  2235. cat confdefs.h >>conftest.$ac_ext
  2236. cat >>conftest.$ac_ext <<_ACEOF
  2237. /* end confdefs.h. */
  2238. $ac_declaration
  2239. #include <stdlib.h>
  2240. int
  2241. main ()
  2242. {
  2243. exit (42);
  2244. ;
  2245. return 0;
  2246. }
  2247. _ACEOF
  2248. rm -f conftest.$ac_objext
  2249. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2250. (eval $ac_compile) 2>conftest.er1
  2251. ac_status=$?
  2252. grep -v '^ *+' conftest.er1 >conftest.err
  2253. rm -f conftest.er1
  2254. cat conftest.err >&5
  2255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2256. (exit $ac_status); } &&
  2257. { ac_try='test -z "$ac_cxx_werror_flag"
  2258. || test ! -s conftest.err'
  2259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2260. (eval $ac_try) 2>&5
  2261. ac_status=$?
  2262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2263. (exit $ac_status); }; } &&
  2264. { ac_try='test -s conftest.$ac_objext'
  2265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2266. (eval $ac_try) 2>&5
  2267. ac_status=$?
  2268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2269. (exit $ac_status); }; }; then
  2270. :
  2271. else
  2272. echo "$as_me: failed program was:" >&5
  2273. sed 's/^/| /' conftest.$ac_ext >&5
  2274. continue
  2275. fi
  2276. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2277. cat >conftest.$ac_ext <<_ACEOF
  2278. /* confdefs.h. */
  2279. _ACEOF
  2280. cat confdefs.h >>conftest.$ac_ext
  2281. cat >>conftest.$ac_ext <<_ACEOF
  2282. /* end confdefs.h. */
  2283. $ac_declaration
  2284. int
  2285. main ()
  2286. {
  2287. exit (42);
  2288. ;
  2289. return 0;
  2290. }
  2291. _ACEOF
  2292. rm -f conftest.$ac_objext
  2293. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2294. (eval $ac_compile) 2>conftest.er1
  2295. ac_status=$?
  2296. grep -v '^ *+' conftest.er1 >conftest.err
  2297. rm -f conftest.er1
  2298. cat conftest.err >&5
  2299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2300. (exit $ac_status); } &&
  2301. { ac_try='test -z "$ac_cxx_werror_flag"
  2302. || test ! -s conftest.err'
  2303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2304. (eval $ac_try) 2>&5
  2305. ac_status=$?
  2306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2307. (exit $ac_status); }; } &&
  2308. { ac_try='test -s conftest.$ac_objext'
  2309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2310. (eval $ac_try) 2>&5
  2311. ac_status=$?
  2312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2313. (exit $ac_status); }; }; then
  2314. break
  2315. else
  2316. echo "$as_me: failed program was:" >&5
  2317. sed 's/^/| /' conftest.$ac_ext >&5
  2318. fi
  2319. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2320. done
  2321. rm -f conftest*
  2322. if test -n "$ac_declaration"; then
  2323. echo '#ifdef __cplusplus' >>confdefs.h
  2324. echo $ac_declaration >>confdefs.h
  2325. echo '#endif' >>confdefs.h
  2326. fi
  2327. ac_ext=c
  2328. ac_cpp='$CPP $CPPFLAGS'
  2329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2332. DEPDIR="${am__leading_dot}deps"
  2333. ac_config_commands="$ac_config_commands depfiles"
  2334. am_make=${MAKE-make}
  2335. cat > confinc << 'END'
  2336. am__doit:
  2337. @echo done
  2338. .PHONY: am__doit
  2339. END
  2340. # If we don't find an include directive, just comment out the code.
  2341. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2342. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2343. am__include="#"
  2344. am__quote=
  2345. _am_result=none
  2346. # First try GNU make style include.
  2347. echo "include confinc" > confmf
  2348. # We grep out `Entering directory' and `Leaving directory'
  2349. # messages which can occur if `w' ends up in MAKEFLAGS.
  2350. # In particular we don't look at `^make:' because GNU make might
  2351. # be invoked under some other name (usually "gmake"), in which
  2352. # case it prints its new name instead of `make'.
  2353. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2354. am__include=include
  2355. am__quote=
  2356. _am_result=GNU
  2357. fi
  2358. # Now try BSD make style include.
  2359. if test "$am__include" = "#"; then
  2360. echo '.include "confinc"' > confmf
  2361. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2362. am__include=.include
  2363. am__quote="\""
  2364. _am_result=BSD
  2365. fi
  2366. fi
  2367. echo "$as_me:$LINENO: result: $_am_result" >&5
  2368. echo "${ECHO_T}$_am_result" >&6
  2369. rm -f confinc confmf
  2370. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2371. if test "${enable_dependency_tracking+set}" = set; then
  2372. enableval="$enable_dependency_tracking"
  2373. fi;
  2374. if test "x$enable_dependency_tracking" != xno; then
  2375. am_depcomp="$ac_aux_dir/depcomp"
  2376. AMDEPBACKSLASH='\'
  2377. fi
  2378. if test "x$enable_dependency_tracking" != xno; then
  2379. AMDEP_TRUE=
  2380. AMDEP_FALSE='#'
  2381. else
  2382. AMDEP_TRUE='#'
  2383. AMDEP_FALSE=
  2384. fi
  2385. depcc="$CXX" am_compiler_list=
  2386. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2387. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2388. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2389. echo $ECHO_N "(cached) $ECHO_C" >&6
  2390. else
  2391. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2392. # We make a subdir and do the tests there. Otherwise we can end up
  2393. # making bogus files that we don't know about and never remove. For
  2394. # instance it was reported that on HP-UX the gcc test will end up
  2395. # making a dummy file named `D' -- because `-MD' means `put the output
  2396. # in D'.
  2397. mkdir conftest.dir
  2398. # Copy depcomp to subdir because otherwise we won't find it if we're
  2399. # using a relative directory.
  2400. cp "$am_depcomp" conftest.dir
  2401. cd conftest.dir
  2402. # We will build objects and dependencies in a subdirectory because
  2403. # it helps to detect inapplicable dependency modes. For instance
  2404. # both Tru64's cc and ICC support -MD to output dependencies as a
  2405. # side effect of compilation, but ICC will put the dependencies in
  2406. # the current directory while Tru64 will put them in the object
  2407. # directory.
  2408. mkdir sub
  2409. am_cv_CXX_dependencies_compiler_type=none
  2410. if test "$am_compiler_list" = ""; then
  2411. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2412. fi
  2413. for depmode in $am_compiler_list; do
  2414. # Setup a source with many dependencies, because some compilers
  2415. # like to wrap large dependency lists on column 80 (with \), and
  2416. # we should not choose a depcomp mode which is confused by this.
  2417. #
  2418. # We need to recreate these files for each test, as the compiler may
  2419. # overwrite some of them when testing with obscure command lines.
  2420. # This happens at least with the AIX C compiler.
  2421. : > sub/conftest.c
  2422. for i in 1 2 3 4 5 6; do
  2423. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2424. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2425. # Solaris 8's {/usr,}/bin/sh.
  2426. touch sub/conftst$i.h
  2427. done
  2428. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2429. case $depmode in
  2430. nosideeffect)
  2431. # after this tag, mechanisms are not by side-effect, so they'll
  2432. # only be used when explicitly requested
  2433. if test "x$enable_dependency_tracking" = xyes; then
  2434. continue
  2435. else
  2436. break
  2437. fi
  2438. ;;
  2439. none) break ;;
  2440. esac
  2441. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2442. # mode. It turns out that the SunPro C++ compiler does not properly
  2443. # handle `-M -o', and we need to detect this.
  2444. if depmode=$depmode \
  2445. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2446. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2447. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2448. >/dev/null 2>conftest.err &&
  2449. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2450. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2451. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2452. # icc doesn't choke on unknown options, it will just issue warnings
  2453. # or remarks (even with -Werror). So we grep stderr for any message
  2454. # that says an option was ignored or not supported.
  2455. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2456. # icc: Command line warning: ignoring option '-M'; no argument required
  2457. # The diagnosis changed in icc 8.0:
  2458. # icc: Command line remark: option '-MP' not supported
  2459. if (grep 'ignoring option' conftest.err ||
  2460. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2461. am_cv_CXX_dependencies_compiler_type=$depmode
  2462. break
  2463. fi
  2464. fi
  2465. done
  2466. cd ..
  2467. rm -rf conftest.dir
  2468. else
  2469. am_cv_CXX_dependencies_compiler_type=none
  2470. fi
  2471. fi
  2472. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2473. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2474. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2475. if
  2476. test "x$enable_dependency_tracking" != xno \
  2477. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2478. am__fastdepCXX_TRUE=
  2479. am__fastdepCXX_FALSE='#'
  2480. else
  2481. am__fastdepCXX_TRUE='#'
  2482. am__fastdepCXX_FALSE=
  2483. fi
  2484. ac_ext=c
  2485. ac_cpp='$CPP $CPPFLAGS'
  2486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2489. if test -n "$ac_tool_prefix"; then
  2490. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2491. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2492. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2493. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2494. if test "${ac_cv_prog_CC+set}" = set; then
  2495. echo $ECHO_N "(cached) $ECHO_C" >&6
  2496. else
  2497. if test -n "$CC"; then
  2498. ac_cv_prog_CC="$CC" # Let the user override the test.
  2499. else
  2500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2501. for as_dir in $PATH
  2502. do
  2503. IFS=$as_save_IFS
  2504. test -z "$as_dir" && as_dir=.
  2505. for ac_exec_ext in '' $ac_executable_extensions; do
  2506. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2507. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2508. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2509. break 2
  2510. fi
  2511. done
  2512. done
  2513. fi
  2514. fi
  2515. CC=$ac_cv_prog_CC
  2516. if test -n "$CC"; then
  2517. echo "$as_me:$LINENO: result: $CC" >&5
  2518. echo "${ECHO_T}$CC" >&6
  2519. else
  2520. echo "$as_me:$LINENO: result: no" >&5
  2521. echo "${ECHO_T}no" >&6
  2522. fi
  2523. fi
  2524. if test -z "$ac_cv_prog_CC"; then
  2525. ac_ct_CC=$CC
  2526. # Extract the first word of "gcc", so it can be a program name with args.
  2527. set dummy gcc; ac_word=$2
  2528. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2529. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2530. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2531. echo $ECHO_N "(cached) $ECHO_C" >&6
  2532. else
  2533. if test -n "$ac_ct_CC"; then
  2534. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2535. else
  2536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2537. for as_dir in $PATH
  2538. do
  2539. IFS=$as_save_IFS
  2540. test -z "$as_dir" && as_dir=.
  2541. for ac_exec_ext in '' $ac_executable_extensions; do
  2542. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2543. ac_cv_prog_ac_ct_CC="gcc"
  2544. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2545. break 2
  2546. fi
  2547. done
  2548. done
  2549. fi
  2550. fi
  2551. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2552. if test -n "$ac_ct_CC"; then
  2553. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2554. echo "${ECHO_T}$ac_ct_CC" >&6
  2555. else
  2556. echo "$as_me:$LINENO: result: no" >&5
  2557. echo "${ECHO_T}no" >&6
  2558. fi
  2559. CC=$ac_ct_CC
  2560. else
  2561. CC="$ac_cv_prog_CC"
  2562. fi
  2563. if test -z "$CC"; then
  2564. if test -n "$ac_tool_prefix"; then
  2565. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2566. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2567. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2568. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2569. if test "${ac_cv_prog_CC+set}" = set; then
  2570. echo $ECHO_N "(cached) $ECHO_C" >&6
  2571. else
  2572. if test -n "$CC"; then
  2573. ac_cv_prog_CC="$CC" # Let the user override the test.
  2574. else
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2582. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2583. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2584. break 2
  2585. fi
  2586. done
  2587. done
  2588. fi
  2589. fi
  2590. CC=$ac_cv_prog_CC
  2591. if test -n "$CC"; then
  2592. echo "$as_me:$LINENO: result: $CC" >&5
  2593. echo "${ECHO_T}$CC" >&6
  2594. else
  2595. echo "$as_me:$LINENO: result: no" >&5
  2596. echo "${ECHO_T}no" >&6
  2597. fi
  2598. fi
  2599. if test -z "$ac_cv_prog_CC"; then
  2600. ac_ct_CC=$CC
  2601. # Extract the first word of "cc", so it can be a program name with args.
  2602. set dummy cc; ac_word=$2
  2603. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2604. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2605. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2606. echo $ECHO_N "(cached) $ECHO_C" >&6
  2607. else
  2608. if test -n "$ac_ct_CC"; then
  2609. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_exec_ext in '' $ac_executable_extensions; do
  2617. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2618. ac_cv_prog_ac_ct_CC="cc"
  2619. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2620. break 2
  2621. fi
  2622. done
  2623. done
  2624. fi
  2625. fi
  2626. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2627. if test -n "$ac_ct_CC"; then
  2628. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2629. echo "${ECHO_T}$ac_ct_CC" >&6
  2630. else
  2631. echo "$as_me:$LINENO: result: no" >&5
  2632. echo "${ECHO_T}no" >&6
  2633. fi
  2634. CC=$ac_ct_CC
  2635. else
  2636. CC="$ac_cv_prog_CC"
  2637. fi
  2638. fi
  2639. if test -z "$CC"; then
  2640. # Extract the first word of "cc", so it can be a program name with args.
  2641. set dummy cc; ac_word=$2
  2642. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2643. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2644. if test "${ac_cv_prog_CC+set}" = set; then
  2645. echo $ECHO_N "(cached) $ECHO_C" >&6
  2646. else
  2647. if test -n "$CC"; then
  2648. ac_cv_prog_CC="$CC" # Let the user override the test.
  2649. else
  2650. ac_prog_rejected=no
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2658. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2659. ac_prog_rejected=yes
  2660. continue
  2661. fi
  2662. ac_cv_prog_CC="cc"
  2663. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. if test $ac_prog_rejected = yes; then
  2669. # We found a bogon in the path, so make sure we never use it.
  2670. set dummy $ac_cv_prog_CC
  2671. shift
  2672. if test $# != 0; then
  2673. # We chose a different compiler from the bogus one.
  2674. # However, it has the same basename, so the bogon will be chosen
  2675. # first if we set CC to just the basename; use the full file name.
  2676. shift
  2677. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2678. fi
  2679. fi
  2680. fi
  2681. fi
  2682. CC=$ac_cv_prog_CC
  2683. if test -n "$CC"; then
  2684. echo "$as_me:$LINENO: result: $CC" >&5
  2685. echo "${ECHO_T}$CC" >&6
  2686. else
  2687. echo "$as_me:$LINENO: result: no" >&5
  2688. echo "${ECHO_T}no" >&6
  2689. fi
  2690. fi
  2691. if test -z "$CC"; then
  2692. if test -n "$ac_tool_prefix"; then
  2693. for ac_prog in cl
  2694. do
  2695. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2696. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2697. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2698. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2699. if test "${ac_cv_prog_CC+set}" = set; then
  2700. echo $ECHO_N "(cached) $ECHO_C" >&6
  2701. else
  2702. if test -n "$CC"; then
  2703. ac_cv_prog_CC="$CC" # Let the user override the test.
  2704. else
  2705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2706. for as_dir in $PATH
  2707. do
  2708. IFS=$as_save_IFS
  2709. test -z "$as_dir" && as_dir=.
  2710. for ac_exec_ext in '' $ac_executable_extensions; do
  2711. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2712. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2713. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2714. break 2
  2715. fi
  2716. done
  2717. done
  2718. fi
  2719. fi
  2720. CC=$ac_cv_prog_CC
  2721. if test -n "$CC"; then
  2722. echo "$as_me:$LINENO: result: $CC" >&5
  2723. echo "${ECHO_T}$CC" >&6
  2724. else
  2725. echo "$as_me:$LINENO: result: no" >&5
  2726. echo "${ECHO_T}no" >&6
  2727. fi
  2728. test -n "$CC" && break
  2729. done
  2730. fi
  2731. if test -z "$CC"; then
  2732. ac_ct_CC=$CC
  2733. for ac_prog in cl
  2734. do
  2735. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2736. set dummy $ac_prog; ac_word=$2
  2737. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2738. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2739. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. if test -n "$ac_ct_CC"; then
  2743. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2744. else
  2745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2746. for as_dir in $PATH
  2747. do
  2748. IFS=$as_save_IFS
  2749. test -z "$as_dir" && as_dir=.
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2752. ac_cv_prog_ac_ct_CC="$ac_prog"
  2753. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2754. break 2
  2755. fi
  2756. done
  2757. done
  2758. fi
  2759. fi
  2760. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2761. if test -n "$ac_ct_CC"; then
  2762. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2763. echo "${ECHO_T}$ac_ct_CC" >&6
  2764. else
  2765. echo "$as_me:$LINENO: result: no" >&5
  2766. echo "${ECHO_T}no" >&6
  2767. fi
  2768. test -n "$ac_ct_CC" && break
  2769. done
  2770. CC=$ac_ct_CC
  2771. fi
  2772. fi
  2773. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2774. See \`config.log' for more details." >&5
  2775. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2776. See \`config.log' for more details." >&2;}
  2777. { (exit 1); exit 1; }; }
  2778. # Provide some information about the compiler.
  2779. echo "$as_me:$LINENO:" \
  2780. "checking for C compiler version" >&5
  2781. ac_compiler=`set X $ac_compile; echo $2`
  2782. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2783. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2784. ac_status=$?
  2785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2786. (exit $ac_status); }
  2787. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2788. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2789. ac_status=$?
  2790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); }
  2792. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2793. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2794. ac_status=$?
  2795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2796. (exit $ac_status); }
  2797. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2798. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2799. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2800. echo $ECHO_N "(cached) $ECHO_C" >&6
  2801. else
  2802. cat >conftest.$ac_ext <<_ACEOF
  2803. /* confdefs.h. */
  2804. _ACEOF
  2805. cat confdefs.h >>conftest.$ac_ext
  2806. cat >>conftest.$ac_ext <<_ACEOF
  2807. /* end confdefs.h. */
  2808. int
  2809. main ()
  2810. {
  2811. #ifndef __GNUC__
  2812. choke me
  2813. #endif
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. rm -f conftest.$ac_objext
  2819. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2820. (eval $ac_compile) 2>conftest.er1
  2821. ac_status=$?
  2822. grep -v '^ *+' conftest.er1 >conftest.err
  2823. rm -f conftest.er1
  2824. cat conftest.err >&5
  2825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. (exit $ac_status); } &&
  2827. { ac_try='test -z "$ac_c_werror_flag"
  2828. || test ! -s conftest.err'
  2829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2830. (eval $ac_try) 2>&5
  2831. ac_status=$?
  2832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2833. (exit $ac_status); }; } &&
  2834. { ac_try='test -s conftest.$ac_objext'
  2835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2836. (eval $ac_try) 2>&5
  2837. ac_status=$?
  2838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2839. (exit $ac_status); }; }; then
  2840. ac_compiler_gnu=yes
  2841. else
  2842. echo "$as_me: failed program was:" >&5
  2843. sed 's/^/| /' conftest.$ac_ext >&5
  2844. ac_compiler_gnu=no
  2845. fi
  2846. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2847. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2848. fi
  2849. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2850. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2851. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2852. ac_test_CFLAGS=${CFLAGS+set}
  2853. ac_save_CFLAGS=$CFLAGS
  2854. CFLAGS="-g"
  2855. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2856. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2857. if test "${ac_cv_prog_cc_g+set}" = set; then
  2858. echo $ECHO_N "(cached) $ECHO_C" >&6
  2859. else
  2860. cat >conftest.$ac_ext <<_ACEOF
  2861. /* confdefs.h. */
  2862. _ACEOF
  2863. cat confdefs.h >>conftest.$ac_ext
  2864. cat >>conftest.$ac_ext <<_ACEOF
  2865. /* end confdefs.h. */
  2866. int
  2867. main ()
  2868. {
  2869. ;
  2870. return 0;
  2871. }
  2872. _ACEOF
  2873. rm -f conftest.$ac_objext
  2874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2875. (eval $ac_compile) 2>conftest.er1
  2876. ac_status=$?
  2877. grep -v '^ *+' conftest.er1 >conftest.err
  2878. rm -f conftest.er1
  2879. cat conftest.err >&5
  2880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2881. (exit $ac_status); } &&
  2882. { ac_try='test -z "$ac_c_werror_flag"
  2883. || test ! -s conftest.err'
  2884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2885. (eval $ac_try) 2>&5
  2886. ac_status=$?
  2887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888. (exit $ac_status); }; } &&
  2889. { ac_try='test -s conftest.$ac_objext'
  2890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2891. (eval $ac_try) 2>&5
  2892. ac_status=$?
  2893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2894. (exit $ac_status); }; }; then
  2895. ac_cv_prog_cc_g=yes
  2896. else
  2897. echo "$as_me: failed program was:" >&5
  2898. sed 's/^/| /' conftest.$ac_ext >&5
  2899. ac_cv_prog_cc_g=no
  2900. fi
  2901. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2902. fi
  2903. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2904. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2905. if test "$ac_test_CFLAGS" = set; then
  2906. CFLAGS=$ac_save_CFLAGS
  2907. elif test $ac_cv_prog_cc_g = yes; then
  2908. if test "$GCC" = yes; then
  2909. CFLAGS="-g -O2"
  2910. else
  2911. CFLAGS="-g"
  2912. fi
  2913. else
  2914. if test "$GCC" = yes; then
  2915. CFLAGS="-O2"
  2916. else
  2917. CFLAGS=
  2918. fi
  2919. fi
  2920. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2921. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2922. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2923. echo $ECHO_N "(cached) $ECHO_C" >&6
  2924. else
  2925. ac_cv_prog_cc_stdc=no
  2926. ac_save_CC=$CC
  2927. cat >conftest.$ac_ext <<_ACEOF
  2928. /* confdefs.h. */
  2929. _ACEOF
  2930. cat confdefs.h >>conftest.$ac_ext
  2931. cat >>conftest.$ac_ext <<_ACEOF
  2932. /* end confdefs.h. */
  2933. #include <stdarg.h>
  2934. #include <stdio.h>
  2935. #include <sys/types.h>
  2936. #include <sys/stat.h>
  2937. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2938. struct buf { int x; };
  2939. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2940. static char *e (p, i)
  2941. char **p;
  2942. int i;
  2943. {
  2944. return p[i];
  2945. }
  2946. static char *f (char * (*g) (char **, int), char **p, ...)
  2947. {
  2948. char *s;
  2949. va_list v;
  2950. va_start (v,p);
  2951. s = g (p, va_arg (v,int));
  2952. va_end (v);
  2953. return s;
  2954. }
  2955. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2956. function prototypes and stuff, but not '\xHH' hex character constants.
  2957. These don't provoke an error unfortunately, instead are silently treated
  2958. as 'x'. The following induces an error, until -std1 is added to get
  2959. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2960. array size at least. It's necessary to write '\x00'==0 to get something
  2961. that's true only with -std1. */
  2962. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2963. int test (int i, double x);
  2964. struct s1 {int (*f) (int a);};
  2965. struct s2 {int (*f) (double a);};
  2966. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2967. int argc;
  2968. char **argv;
  2969. int
  2970. main ()
  2971. {
  2972. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2973. ;
  2974. return 0;
  2975. }
  2976. _ACEOF
  2977. # Don't try gcc -ansi; that turns off useful extensions and
  2978. # breaks some systems' header files.
  2979. # AIX -qlanglvl=ansi
  2980. # Ultrix and OSF/1 -std1
  2981. # HP-UX 10.20 and later -Ae
  2982. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2983. # SVR4 -Xc -D__EXTENSIONS__
  2984. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2985. do
  2986. CC="$ac_save_CC $ac_arg"
  2987. rm -f conftest.$ac_objext
  2988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2989. (eval $ac_compile) 2>conftest.er1
  2990. ac_status=$?
  2991. grep -v '^ *+' conftest.er1 >conftest.err
  2992. rm -f conftest.er1
  2993. cat conftest.err >&5
  2994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2995. (exit $ac_status); } &&
  2996. { ac_try='test -z "$ac_c_werror_flag"
  2997. || test ! -s conftest.err'
  2998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2999. (eval $ac_try) 2>&5
  3000. ac_status=$?
  3001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3002. (exit $ac_status); }; } &&
  3003. { ac_try='test -s conftest.$ac_objext'
  3004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3005. (eval $ac_try) 2>&5
  3006. ac_status=$?
  3007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3008. (exit $ac_status); }; }; then
  3009. ac_cv_prog_cc_stdc=$ac_arg
  3010. break
  3011. else
  3012. echo "$as_me: failed program was:" >&5
  3013. sed 's/^/| /' conftest.$ac_ext >&5
  3014. fi
  3015. rm -f conftest.err conftest.$ac_objext
  3016. done
  3017. rm -f conftest.$ac_ext conftest.$ac_objext
  3018. CC=$ac_save_CC
  3019. fi
  3020. case "x$ac_cv_prog_cc_stdc" in
  3021. x|xno)
  3022. echo "$as_me:$LINENO: result: none needed" >&5
  3023. echo "${ECHO_T}none needed" >&6 ;;
  3024. *)
  3025. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3026. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3027. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3028. esac
  3029. # Some people use a C++ compiler to compile C. Since we use `exit',
  3030. # in C++ we need to declare it. In case someone uses the same compiler
  3031. # for both compiling C and C++ we need to have the C++ compiler decide
  3032. # the declaration of exit, since it's the most demanding environment.
  3033. cat >conftest.$ac_ext <<_ACEOF
  3034. #ifndef __cplusplus
  3035. choke me
  3036. #endif
  3037. _ACEOF
  3038. rm -f conftest.$ac_objext
  3039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3040. (eval $ac_compile) 2>conftest.er1
  3041. ac_status=$?
  3042. grep -v '^ *+' conftest.er1 >conftest.err
  3043. rm -f conftest.er1
  3044. cat conftest.err >&5
  3045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3046. (exit $ac_status); } &&
  3047. { ac_try='test -z "$ac_c_werror_flag"
  3048. || test ! -s conftest.err'
  3049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3050. (eval $ac_try) 2>&5
  3051. ac_status=$?
  3052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3053. (exit $ac_status); }; } &&
  3054. { ac_try='test -s conftest.$ac_objext'
  3055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3056. (eval $ac_try) 2>&5
  3057. ac_status=$?
  3058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3059. (exit $ac_status); }; }; then
  3060. for ac_declaration in \
  3061. '' \
  3062. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3063. 'extern "C" void std::exit (int); using std::exit;' \
  3064. 'extern "C" void exit (int) throw ();' \
  3065. 'extern "C" void exit (int);' \
  3066. 'void exit (int);'
  3067. do
  3068. cat >conftest.$ac_ext <<_ACEOF
  3069. /* confdefs.h. */
  3070. _ACEOF
  3071. cat confdefs.h >>conftest.$ac_ext
  3072. cat >>conftest.$ac_ext <<_ACEOF
  3073. /* end confdefs.h. */
  3074. $ac_declaration
  3075. #include <stdlib.h>
  3076. int
  3077. main ()
  3078. {
  3079. exit (42);
  3080. ;
  3081. return 0;
  3082. }
  3083. _ACEOF
  3084. rm -f conftest.$ac_objext
  3085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3086. (eval $ac_compile) 2>conftest.er1
  3087. ac_status=$?
  3088. grep -v '^ *+' conftest.er1 >conftest.err
  3089. rm -f conftest.er1
  3090. cat conftest.err >&5
  3091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3092. (exit $ac_status); } &&
  3093. { ac_try='test -z "$ac_c_werror_flag"
  3094. || test ! -s conftest.err'
  3095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3096. (eval $ac_try) 2>&5
  3097. ac_status=$?
  3098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3099. (exit $ac_status); }; } &&
  3100. { ac_try='test -s conftest.$ac_objext'
  3101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3102. (eval $ac_try) 2>&5
  3103. ac_status=$?
  3104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3105. (exit $ac_status); }; }; then
  3106. :
  3107. else
  3108. echo "$as_me: failed program was:" >&5
  3109. sed 's/^/| /' conftest.$ac_ext >&5
  3110. continue
  3111. fi
  3112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3113. cat >conftest.$ac_ext <<_ACEOF
  3114. /* confdefs.h. */
  3115. _ACEOF
  3116. cat confdefs.h >>conftest.$ac_ext
  3117. cat >>conftest.$ac_ext <<_ACEOF
  3118. /* end confdefs.h. */
  3119. $ac_declaration
  3120. int
  3121. main ()
  3122. {
  3123. exit (42);
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. rm -f conftest.$ac_objext
  3129. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3130. (eval $ac_compile) 2>conftest.er1
  3131. ac_status=$?
  3132. grep -v '^ *+' conftest.er1 >conftest.err
  3133. rm -f conftest.er1
  3134. cat conftest.err >&5
  3135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3136. (exit $ac_status); } &&
  3137. { ac_try='test -z "$ac_c_werror_flag"
  3138. || test ! -s conftest.err'
  3139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3140. (eval $ac_try) 2>&5
  3141. ac_status=$?
  3142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3143. (exit $ac_status); }; } &&
  3144. { ac_try='test -s conftest.$ac_objext'
  3145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3146. (eval $ac_try) 2>&5
  3147. ac_status=$?
  3148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3149. (exit $ac_status); }; }; then
  3150. break
  3151. else
  3152. echo "$as_me: failed program was:" >&5
  3153. sed 's/^/| /' conftest.$ac_ext >&5
  3154. fi
  3155. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3156. done
  3157. rm -f conftest*
  3158. if test -n "$ac_declaration"; then
  3159. echo '#ifdef __cplusplus' >>confdefs.h
  3160. echo $ac_declaration >>confdefs.h
  3161. echo '#endif' >>confdefs.h
  3162. fi
  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. ac_ext=c
  3169. ac_cpp='$CPP $CPPFLAGS'
  3170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3173. depcc="$CC" am_compiler_list=
  3174. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3175. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3176. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3177. echo $ECHO_N "(cached) $ECHO_C" >&6
  3178. else
  3179. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3180. # We make a subdir and do the tests there. Otherwise we can end up
  3181. # making bogus files that we don't know about and never remove. For
  3182. # instance it was reported that on HP-UX the gcc test will end up
  3183. # making a dummy file named `D' -- because `-MD' means `put the output
  3184. # in D'.
  3185. mkdir conftest.dir
  3186. # Copy depcomp to subdir because otherwise we won't find it if we're
  3187. # using a relative directory.
  3188. cp "$am_depcomp" conftest.dir
  3189. cd conftest.dir
  3190. # We will build objects and dependencies in a subdirectory because
  3191. # it helps to detect inapplicable dependency modes. For instance
  3192. # both Tru64's cc and ICC support -MD to output dependencies as a
  3193. # side effect of compilation, but ICC will put the dependencies in
  3194. # the current directory while Tru64 will put them in the object
  3195. # directory.
  3196. mkdir sub
  3197. am_cv_CC_dependencies_compiler_type=none
  3198. if test "$am_compiler_list" = ""; then
  3199. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3200. fi
  3201. for depmode in $am_compiler_list; do
  3202. # Setup a source with many dependencies, because some compilers
  3203. # like to wrap large dependency lists on column 80 (with \), and
  3204. # we should not choose a depcomp mode which is confused by this.
  3205. #
  3206. # We need to recreate these files for each test, as the compiler may
  3207. # overwrite some of them when testing with obscure command lines.
  3208. # This happens at least with the AIX C compiler.
  3209. : > sub/conftest.c
  3210. for i in 1 2 3 4 5 6; do
  3211. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3212. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3213. # Solaris 8's {/usr,}/bin/sh.
  3214. touch sub/conftst$i.h
  3215. done
  3216. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3217. case $depmode in
  3218. nosideeffect)
  3219. # after this tag, mechanisms are not by side-effect, so they'll
  3220. # only be used when explicitly requested
  3221. if test "x$enable_dependency_tracking" = xyes; then
  3222. continue
  3223. else
  3224. break
  3225. fi
  3226. ;;
  3227. none) break ;;
  3228. esac
  3229. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3230. # mode. It turns out that the SunPro C++ compiler does not properly
  3231. # handle `-M -o', and we need to detect this.
  3232. if depmode=$depmode \
  3233. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3234. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3235. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3236. >/dev/null 2>conftest.err &&
  3237. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3238. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3239. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3240. # icc doesn't choke on unknown options, it will just issue warnings
  3241. # or remarks (even with -Werror). So we grep stderr for any message
  3242. # that says an option was ignored or not supported.
  3243. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3244. # icc: Command line warning: ignoring option '-M'; no argument required
  3245. # The diagnosis changed in icc 8.0:
  3246. # icc: Command line remark: option '-MP' not supported
  3247. if (grep 'ignoring option' conftest.err ||
  3248. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3249. am_cv_CC_dependencies_compiler_type=$depmode
  3250. break
  3251. fi
  3252. fi
  3253. done
  3254. cd ..
  3255. rm -rf conftest.dir
  3256. else
  3257. am_cv_CC_dependencies_compiler_type=none
  3258. fi
  3259. fi
  3260. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3261. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3262. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3263. if
  3264. test "x$enable_dependency_tracking" != xno \
  3265. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3266. am__fastdepCC_TRUE=
  3267. am__fastdepCC_FALSE='#'
  3268. else
  3269. am__fastdepCC_TRUE='#'
  3270. am__fastdepCC_FALSE=
  3271. fi
  3272. if test "x$CC" != xcc; then
  3273. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3274. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3275. else
  3276. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3277. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3278. fi
  3279. set dummy $CC; ac_cc=`echo $2 |
  3280. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3281. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3282. echo $ECHO_N "(cached) $ECHO_C" >&6
  3283. else
  3284. cat >conftest.$ac_ext <<_ACEOF
  3285. /* confdefs.h. */
  3286. _ACEOF
  3287. cat confdefs.h >>conftest.$ac_ext
  3288. cat >>conftest.$ac_ext <<_ACEOF
  3289. /* end confdefs.h. */
  3290. int
  3291. main ()
  3292. {
  3293. ;
  3294. return 0;
  3295. }
  3296. _ACEOF
  3297. # Make sure it works both with $CC and with simple cc.
  3298. # We do the test twice because some compilers refuse to overwrite an
  3299. # existing .o file with -o, though they will create one.
  3300. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3301. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3302. (eval $ac_try) 2>&5
  3303. ac_status=$?
  3304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3305. (exit $ac_status); } &&
  3306. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3307. (eval $ac_try) 2>&5
  3308. ac_status=$?
  3309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3310. (exit $ac_status); };
  3311. then
  3312. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3313. if test "x$CC" != xcc; then
  3314. # Test first that cc exists at all.
  3315. if { ac_try='cc -c conftest.$ac_ext >&5'
  3316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3317. (eval $ac_try) 2>&5
  3318. ac_status=$?
  3319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3320. (exit $ac_status); }; }; then
  3321. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3322. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3323. (eval $ac_try) 2>&5
  3324. ac_status=$?
  3325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3326. (exit $ac_status); } &&
  3327. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3328. (eval $ac_try) 2>&5
  3329. ac_status=$?
  3330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3331. (exit $ac_status); };
  3332. then
  3333. # cc works too.
  3334. :
  3335. else
  3336. # cc exists but doesn't like -o.
  3337. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3338. fi
  3339. fi
  3340. fi
  3341. else
  3342. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3343. fi
  3344. rm -f conftest*
  3345. fi
  3346. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3347. echo "$as_me:$LINENO: result: yes" >&5
  3348. echo "${ECHO_T}yes" >&6
  3349. else
  3350. echo "$as_me:$LINENO: result: no" >&5
  3351. echo "${ECHO_T}no" >&6
  3352. cat >>confdefs.h <<\_ACEOF
  3353. #define NO_MINUS_C_MINUS_O 1
  3354. _ACEOF
  3355. fi
  3356. # FIXME: we rely on the cache variable name because
  3357. # there is no other way.
  3358. set dummy $CC
  3359. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3360. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3361. # Losing compiler, so override with the script.
  3362. # FIXME: It is wrong to rewrite CC.
  3363. # But if we don't then we get into trouble of one sort or another.
  3364. # A longer-term fix would be to have automake use am__CC in this case,
  3365. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3366. CC="$am_aux_dir/compile $CC"
  3367. fi
  3368. # disable static libs by default - we only use a couple
  3369. # Check whether --enable-static or --disable-static was given.
  3370. if test "${enable_static+set}" = set; then
  3371. enableval="$enable_static"
  3372. p=${PACKAGE-default}
  3373. case $enableval in
  3374. yes) enable_static=yes ;;
  3375. no) enable_static=no ;;
  3376. *)
  3377. enable_static=no
  3378. # Look at the argument we got. We use all the common list separators.
  3379. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3380. for pkg in $enableval; do
  3381. IFS="$lt_save_ifs"
  3382. if test "X$pkg" = "X$p"; then
  3383. enable_static=yes
  3384. fi
  3385. done
  3386. IFS="$lt_save_ifs"
  3387. ;;
  3388. esac
  3389. else
  3390. enable_static=no
  3391. fi;
  3392. # Check whether --enable-shared or --disable-shared was given.
  3393. if test "${enable_shared+set}" = set; then
  3394. enableval="$enable_shared"
  3395. p=${PACKAGE-default}
  3396. case $enableval in
  3397. yes) enable_shared=yes ;;
  3398. no) enable_shared=no ;;
  3399. *)
  3400. enable_shared=no
  3401. # Look at the argument we got. We use all the common list separators.
  3402. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3403. for pkg in $enableval; do
  3404. IFS="$lt_save_ifs"
  3405. if test "X$pkg" = "X$p"; then
  3406. enable_shared=yes
  3407. fi
  3408. done
  3409. IFS="$lt_save_ifs"
  3410. ;;
  3411. esac
  3412. else
  3413. enable_shared=yes
  3414. fi;
  3415. # Check whether --enable-fast-install or --disable-fast-install was given.
  3416. if test "${enable_fast_install+set}" = set; then
  3417. enableval="$enable_fast_install"
  3418. p=${PACKAGE-default}
  3419. case $enableval in
  3420. yes) enable_fast_install=yes ;;
  3421. no) enable_fast_install=no ;;
  3422. *)
  3423. enable_fast_install=no
  3424. # Look at the argument we got. We use all the common list separators.
  3425. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3426. for pkg in $enableval; do
  3427. IFS="$lt_save_ifs"
  3428. if test "X$pkg" = "X$p"; then
  3429. enable_fast_install=yes
  3430. fi
  3431. done
  3432. IFS="$lt_save_ifs"
  3433. ;;
  3434. esac
  3435. else
  3436. enable_fast_install=yes
  3437. fi;
  3438. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3439. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3440. if test "${lt_cv_path_SED+set}" = set; then
  3441. echo $ECHO_N "(cached) $ECHO_C" >&6
  3442. else
  3443. # Loop through the user's path and test for sed and gsed.
  3444. # Then use that list of sed's as ones to test for truncation.
  3445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3446. for as_dir in $PATH
  3447. do
  3448. IFS=$as_save_IFS
  3449. test -z "$as_dir" && as_dir=.
  3450. for lt_ac_prog in sed gsed; do
  3451. for ac_exec_ext in '' $ac_executable_extensions; do
  3452. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3453. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3454. fi
  3455. done
  3456. done
  3457. done
  3458. IFS=$as_save_IFS
  3459. lt_ac_max=0
  3460. lt_ac_count=0
  3461. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3462. # along with /bin/sed that truncates output.
  3463. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3464. test ! -f $lt_ac_sed && continue
  3465. cat /dev/null > conftest.in
  3466. lt_ac_count=0
  3467. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3468. # Check for GNU sed and select it if it is found.
  3469. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3470. lt_cv_path_SED=$lt_ac_sed
  3471. break
  3472. fi
  3473. while true; do
  3474. cat conftest.in conftest.in >conftest.tmp
  3475. mv conftest.tmp conftest.in
  3476. cp conftest.in conftest.nl
  3477. echo >>conftest.nl
  3478. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3479. cmp -s conftest.out conftest.nl || break
  3480. # 10000 chars as input seems more than enough
  3481. test $lt_ac_count -gt 10 && break
  3482. lt_ac_count=`expr $lt_ac_count + 1`
  3483. if test $lt_ac_count -gt $lt_ac_max; then
  3484. lt_ac_max=$lt_ac_count
  3485. lt_cv_path_SED=$lt_ac_sed
  3486. fi
  3487. done
  3488. done
  3489. fi
  3490. SED=$lt_cv_path_SED
  3491. echo "$as_me:$LINENO: result: $SED" >&5
  3492. echo "${ECHO_T}$SED" >&6
  3493. echo "$as_me:$LINENO: checking for egrep" >&5
  3494. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3495. if test "${ac_cv_prog_egrep+set}" = set; then
  3496. echo $ECHO_N "(cached) $ECHO_C" >&6
  3497. else
  3498. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3499. then ac_cv_prog_egrep='grep -E'
  3500. else ac_cv_prog_egrep='egrep'
  3501. fi
  3502. fi
  3503. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3504. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3505. EGREP=$ac_cv_prog_egrep
  3506. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3507. if test "${with_gnu_ld+set}" = set; then
  3508. withval="$with_gnu_ld"
  3509. test "$withval" = no || with_gnu_ld=yes
  3510. else
  3511. with_gnu_ld=no
  3512. fi;
  3513. ac_prog=ld
  3514. if test "$GCC" = yes; then
  3515. # Check if gcc -print-prog-name=ld gives a path.
  3516. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3517. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3518. case $host in
  3519. *-*-mingw*)
  3520. # gcc leaves a trailing carriage return which upsets mingw
  3521. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3522. *)
  3523. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3524. esac
  3525. case $ac_prog in
  3526. # Accept absolute paths.
  3527. [\\/]* | ?:[\\/]*)
  3528. re_direlt='/[^/][^/]*/\.\./'
  3529. # Canonicalize the pathname of ld
  3530. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3531. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3532. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3533. done
  3534. test -z "$LD" && LD="$ac_prog"
  3535. ;;
  3536. "")
  3537. # If it fails, then pretend we aren't using GCC.
  3538. ac_prog=ld
  3539. ;;
  3540. *)
  3541. # If it is relative, then search for the first ld in PATH.
  3542. with_gnu_ld=unknown
  3543. ;;
  3544. esac
  3545. elif test "$with_gnu_ld" = yes; then
  3546. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3547. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3548. else
  3549. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3550. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3551. fi
  3552. if test "${lt_cv_path_LD+set}" = set; then
  3553. echo $ECHO_N "(cached) $ECHO_C" >&6
  3554. else
  3555. if test -z "$LD"; then
  3556. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3557. for ac_dir in $PATH; do
  3558. IFS="$lt_save_ifs"
  3559. test -z "$ac_dir" && ac_dir=.
  3560. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3561. lt_cv_path_LD="$ac_dir/$ac_prog"
  3562. # Check to see if the program is GNU ld. I'd rather use --version,
  3563. # but apparently some variants of GNU ld only accept -v.
  3564. # Break only if it was the GNU/non-GNU ld that we prefer.
  3565. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3566. *GNU* | *'with BFD'*)
  3567. test "$with_gnu_ld" != no && break
  3568. ;;
  3569. *)
  3570. test "$with_gnu_ld" != yes && break
  3571. ;;
  3572. esac
  3573. fi
  3574. done
  3575. IFS="$lt_save_ifs"
  3576. else
  3577. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3578. fi
  3579. fi
  3580. LD="$lt_cv_path_LD"
  3581. if test -n "$LD"; then
  3582. echo "$as_me:$LINENO: result: $LD" >&5
  3583. echo "${ECHO_T}$LD" >&6
  3584. else
  3585. echo "$as_me:$LINENO: result: no" >&5
  3586. echo "${ECHO_T}no" >&6
  3587. fi
  3588. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3589. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3590. { (exit 1); exit 1; }; }
  3591. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3592. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3593. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3594. echo $ECHO_N "(cached) $ECHO_C" >&6
  3595. else
  3596. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3597. case `$LD -v 2>&1 </dev/null` in
  3598. *GNU* | *'with BFD'*)
  3599. lt_cv_prog_gnu_ld=yes
  3600. ;;
  3601. *)
  3602. lt_cv_prog_gnu_ld=no
  3603. ;;
  3604. esac
  3605. fi
  3606. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3607. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3608. with_gnu_ld=$lt_cv_prog_gnu_ld
  3609. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3610. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3611. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3612. echo $ECHO_N "(cached) $ECHO_C" >&6
  3613. else
  3614. lt_cv_ld_reload_flag='-r'
  3615. fi
  3616. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3617. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3618. reload_flag=$lt_cv_ld_reload_flag
  3619. case $reload_flag in
  3620. "" | " "*) ;;
  3621. *) reload_flag=" $reload_flag" ;;
  3622. esac
  3623. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3624. case $host_os in
  3625. darwin*)
  3626. if test "$GCC" = yes; then
  3627. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3628. else
  3629. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3630. fi
  3631. ;;
  3632. esac
  3633. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3634. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3635. if test "${lt_cv_path_NM+set}" = set; then
  3636. echo $ECHO_N "(cached) $ECHO_C" >&6
  3637. else
  3638. if test -n "$NM"; then
  3639. # Let the user override the test.
  3640. lt_cv_path_NM="$NM"
  3641. else
  3642. lt_nm_to_check="${ac_tool_prefix}nm"
  3643. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3644. lt_nm_to_check="$lt_nm_to_check nm"
  3645. fi
  3646. for lt_tmp_nm in $lt_nm_to_check; do
  3647. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3648. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3649. IFS="$lt_save_ifs"
  3650. test -z "$ac_dir" && ac_dir=.
  3651. tmp_nm="$ac_dir/$lt_tmp_nm"
  3652. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3653. # Check to see if the nm accepts a BSD-compat flag.
  3654. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3655. # nm: unknown option "B" ignored
  3656. # Tru64's nm complains that /dev/null is an invalid object file
  3657. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3658. */dev/null* | *'Invalid file or object type'*)
  3659. lt_cv_path_NM="$tmp_nm -B"
  3660. break
  3661. ;;
  3662. *)
  3663. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3664. */dev/null*)
  3665. lt_cv_path_NM="$tmp_nm -p"
  3666. break
  3667. ;;
  3668. *)
  3669. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3670. continue # so that we can try to find one that supports BSD flags
  3671. ;;
  3672. esac
  3673. ;;
  3674. esac
  3675. fi
  3676. done
  3677. IFS="$lt_save_ifs"
  3678. done
  3679. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3680. fi
  3681. fi
  3682. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3683. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3684. NM="$lt_cv_path_NM"
  3685. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3686. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3687. LN_S=$as_ln_s
  3688. if test "$LN_S" = "ln -s"; then
  3689. echo "$as_me:$LINENO: result: yes" >&5
  3690. echo "${ECHO_T}yes" >&6
  3691. else
  3692. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3693. echo "${ECHO_T}no, using $LN_S" >&6
  3694. fi
  3695. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3696. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3697. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3698. echo $ECHO_N "(cached) $ECHO_C" >&6
  3699. else
  3700. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3701. lt_cv_file_magic_test_file=
  3702. lt_cv_deplibs_check_method='unknown'
  3703. # Need to set the preceding variable on all platforms that support
  3704. # interlibrary dependencies.
  3705. # 'none' -- dependencies not supported.
  3706. # `unknown' -- same as none, but documents that we really don't know.
  3707. # 'pass_all' -- all dependencies passed with no checks.
  3708. # 'test_compile' -- check by making test program.
  3709. # 'file_magic [[regex]]' -- check by looking for files in library path
  3710. # which responds to the $file_magic_cmd with a given extended regex.
  3711. # If you have `file' or equivalent on your system and you're not sure
  3712. # whether `pass_all' will *always* work, you probably want this one.
  3713. case $host_os in
  3714. aix4* | aix5*)
  3715. lt_cv_deplibs_check_method=pass_all
  3716. ;;
  3717. beos*)
  3718. lt_cv_deplibs_check_method=pass_all
  3719. ;;
  3720. bsdi[45]*)
  3721. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3722. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3723. lt_cv_file_magic_test_file=/shlib/libc.so
  3724. ;;
  3725. cygwin*)
  3726. # func_win32_libid is a shell function defined in ltmain.sh
  3727. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3728. lt_cv_file_magic_cmd='func_win32_libid'
  3729. ;;
  3730. mingw* | pw32*)
  3731. # Base MSYS/MinGW do not provide the 'file' command needed by
  3732. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3733. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3734. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3735. ;;
  3736. darwin* | rhapsody*)
  3737. lt_cv_deplibs_check_method=pass_all
  3738. ;;
  3739. freebsd* | kfreebsd*-gnu | dragonfly*)
  3740. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3741. case $host_cpu in
  3742. i*86 )
  3743. # Not sure whether the presence of OpenBSD here was a mistake.
  3744. # Let's accept both of them until this is cleared up.
  3745. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3746. lt_cv_file_magic_cmd=/usr/bin/file
  3747. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3748. ;;
  3749. esac
  3750. else
  3751. lt_cv_deplibs_check_method=pass_all
  3752. fi
  3753. ;;
  3754. gnu*)
  3755. lt_cv_deplibs_check_method=pass_all
  3756. ;;
  3757. hpux10.20* | hpux11*)
  3758. lt_cv_file_magic_cmd=/usr/bin/file
  3759. case $host_cpu in
  3760. ia64*)
  3761. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3762. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3763. ;;
  3764. hppa*64*)
  3765. 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]'
  3766. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3767. ;;
  3768. *)
  3769. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3770. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3771. ;;
  3772. esac
  3773. ;;
  3774. interix3*)
  3775. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3776. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3777. ;;
  3778. irix5* | irix6* | nonstopux*)
  3779. case $LD in
  3780. *-32|*"-32 ") libmagic=32-bit;;
  3781. *-n32|*"-n32 ") libmagic=N32;;
  3782. *-64|*"-64 ") libmagic=64-bit;;
  3783. *) libmagic=never-match;;
  3784. esac
  3785. lt_cv_deplibs_check_method=pass_all
  3786. ;;
  3787. # This must be Linux ELF.
  3788. linux*)
  3789. lt_cv_deplibs_check_method=pass_all
  3790. ;;
  3791. netbsd*)
  3792. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3793. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3794. else
  3795. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3796. fi
  3797. ;;
  3798. newos6*)
  3799. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3800. lt_cv_file_magic_cmd=/usr/bin/file
  3801. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3802. ;;
  3803. nto-qnx*)
  3804. lt_cv_deplibs_check_method=unknown
  3805. ;;
  3806. openbsd*)
  3807. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3809. else
  3810. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3811. fi
  3812. ;;
  3813. osf3* | osf4* | osf5*)
  3814. lt_cv_deplibs_check_method=pass_all
  3815. ;;
  3816. solaris*)
  3817. lt_cv_deplibs_check_method=pass_all
  3818. ;;
  3819. sysv4 | sysv4.3*)
  3820. case $host_vendor in
  3821. motorola)
  3822. 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]'
  3823. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3824. ;;
  3825. ncr)
  3826. lt_cv_deplibs_check_method=pass_all
  3827. ;;
  3828. sequent)
  3829. lt_cv_file_magic_cmd='/bin/file'
  3830. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3831. ;;
  3832. sni)
  3833. lt_cv_file_magic_cmd='/bin/file'
  3834. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3835. lt_cv_file_magic_test_file=/lib/libc.so
  3836. ;;
  3837. siemens)
  3838. lt_cv_deplibs_check_method=pass_all
  3839. ;;
  3840. pc)
  3841. lt_cv_deplibs_check_method=pass_all
  3842. ;;
  3843. esac
  3844. ;;
  3845. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3846. lt_cv_deplibs_check_method=pass_all
  3847. ;;
  3848. esac
  3849. fi
  3850. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3851. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3852. file_magic_cmd=$lt_cv_file_magic_cmd
  3853. deplibs_check_method=$lt_cv_deplibs_check_method
  3854. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3855. # If no C compiler was specified, use CC.
  3856. LTCC=${LTCC-"$CC"}
  3857. # If no C compiler flags were specified, use CFLAGS.
  3858. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3859. # Allow CC to be a program name with arguments.
  3860. compiler=$CC
  3861. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3862. if test "${enable_libtool_lock+set}" = set; then
  3863. enableval="$enable_libtool_lock"
  3864. fi;
  3865. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3866. # Some flags need to be propagated to the compiler or linker for good
  3867. # libtool support.
  3868. case $host in
  3869. ia64-*-hpux*)
  3870. # Find out which ABI we are using.
  3871. echo 'int i;' > conftest.$ac_ext
  3872. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3873. (eval $ac_compile) 2>&5
  3874. ac_status=$?
  3875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); }; then
  3877. case `/usr/bin/file conftest.$ac_objext` in
  3878. *ELF-32*)
  3879. HPUX_IA64_MODE="32"
  3880. ;;
  3881. *ELF-64*)
  3882. HPUX_IA64_MODE="64"
  3883. ;;
  3884. esac
  3885. fi
  3886. rm -rf conftest*
  3887. ;;
  3888. *-*-irix6*)
  3889. # Find out which ABI we are using.
  3890. echo '#line 4315 "configure"' > conftest.$ac_ext
  3891. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3892. (eval $ac_compile) 2>&5
  3893. ac_status=$?
  3894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3895. (exit $ac_status); }; then
  3896. if test "$lt_cv_prog_gnu_ld" = yes; then
  3897. case `/usr/bin/file conftest.$ac_objext` in
  3898. *32-bit*)
  3899. LD="${LD-ld} -melf32bsmip"
  3900. ;;
  3901. *N32*)
  3902. LD="${LD-ld} -melf32bmipn32"
  3903. ;;
  3904. *64-bit*)
  3905. LD="${LD-ld} -melf64bmip"
  3906. ;;
  3907. esac
  3908. else
  3909. case `/usr/bin/file conftest.$ac_objext` in
  3910. *32-bit*)
  3911. LD="${LD-ld} -32"
  3912. ;;
  3913. *N32*)
  3914. LD="${LD-ld} -n32"
  3915. ;;
  3916. *64-bit*)
  3917. LD="${LD-ld} -64"
  3918. ;;
  3919. esac
  3920. fi
  3921. fi
  3922. rm -rf conftest*
  3923. ;;
  3924. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3925. # Find out which ABI we are using.
  3926. echo 'int i;' > conftest.$ac_ext
  3927. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3928. (eval $ac_compile) 2>&5
  3929. ac_status=$?
  3930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3931. (exit $ac_status); }; then
  3932. case `/usr/bin/file conftest.o` in
  3933. *32-bit*)
  3934. case $host in
  3935. x86_64-*linux*)
  3936. LD="${LD-ld} -m elf_i386"
  3937. ;;
  3938. ppc64-*linux*|powerpc64-*linux*)
  3939. LD="${LD-ld} -m elf32ppclinux"
  3940. ;;
  3941. s390x-*linux*)
  3942. LD="${LD-ld} -m elf_s390"
  3943. ;;
  3944. sparc64-*linux*)
  3945. LD="${LD-ld} -m elf32_sparc"
  3946. ;;
  3947. esac
  3948. ;;
  3949. *64-bit*)
  3950. case $host in
  3951. x86_64-*linux*)
  3952. LD="${LD-ld} -m elf_x86_64"
  3953. ;;
  3954. ppc*-*linux*|powerpc*-*linux*)
  3955. LD="${LD-ld} -m elf64ppc"
  3956. ;;
  3957. s390*-*linux*)
  3958. LD="${LD-ld} -m elf64_s390"
  3959. ;;
  3960. sparc*-*linux*)
  3961. LD="${LD-ld} -m elf64_sparc"
  3962. ;;
  3963. esac
  3964. ;;
  3965. esac
  3966. fi
  3967. rm -rf conftest*
  3968. ;;
  3969. *-*-sco3.2v5*)
  3970. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3971. SAVE_CFLAGS="$CFLAGS"
  3972. CFLAGS="$CFLAGS -belf"
  3973. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3974. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3975. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3976. echo $ECHO_N "(cached) $ECHO_C" >&6
  3977. else
  3978. ac_ext=c
  3979. ac_cpp='$CPP $CPPFLAGS'
  3980. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3981. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3982. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3983. cat >conftest.$ac_ext <<_ACEOF
  3984. /* confdefs.h. */
  3985. _ACEOF
  3986. cat confdefs.h >>conftest.$ac_ext
  3987. cat >>conftest.$ac_ext <<_ACEOF
  3988. /* end confdefs.h. */
  3989. int
  3990. main ()
  3991. {
  3992. ;
  3993. return 0;
  3994. }
  3995. _ACEOF
  3996. rm -f conftest.$ac_objext conftest$ac_exeext
  3997. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3998. (eval $ac_link) 2>conftest.er1
  3999. ac_status=$?
  4000. grep -v '^ *+' conftest.er1 >conftest.err
  4001. rm -f conftest.er1
  4002. cat conftest.err >&5
  4003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4004. (exit $ac_status); } &&
  4005. { ac_try='test -z "$ac_c_werror_flag"
  4006. || test ! -s conftest.err'
  4007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4008. (eval $ac_try) 2>&5
  4009. ac_status=$?
  4010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4011. (exit $ac_status); }; } &&
  4012. { ac_try='test -s conftest$ac_exeext'
  4013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4014. (eval $ac_try) 2>&5
  4015. ac_status=$?
  4016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4017. (exit $ac_status); }; }; then
  4018. lt_cv_cc_needs_belf=yes
  4019. else
  4020. echo "$as_me: failed program was:" >&5
  4021. sed 's/^/| /' conftest.$ac_ext >&5
  4022. lt_cv_cc_needs_belf=no
  4023. fi
  4024. rm -f conftest.err conftest.$ac_objext \
  4025. conftest$ac_exeext conftest.$ac_ext
  4026. ac_ext=c
  4027. ac_cpp='$CPP $CPPFLAGS'
  4028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4031. fi
  4032. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4033. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4034. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4035. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4036. CFLAGS="$SAVE_CFLAGS"
  4037. fi
  4038. ;;
  4039. sparc*-*solaris*)
  4040. # Find out which ABI we are using.
  4041. echo 'int i;' > conftest.$ac_ext
  4042. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4043. (eval $ac_compile) 2>&5
  4044. ac_status=$?
  4045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4046. (exit $ac_status); }; then
  4047. case `/usr/bin/file conftest.o` in
  4048. *64-bit*)
  4049. case $lt_cv_prog_gnu_ld in
  4050. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4051. *) LD="${LD-ld} -64" ;;
  4052. esac
  4053. ;;
  4054. esac
  4055. fi
  4056. rm -rf conftest*
  4057. ;;
  4058. esac
  4059. need_locks="$enable_libtool_lock"
  4060. ac_ext=c
  4061. ac_cpp='$CPP $CPPFLAGS'
  4062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4065. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4066. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4067. # On Suns, sometimes $CPP names a directory.
  4068. if test -n "$CPP" && test -d "$CPP"; then
  4069. CPP=
  4070. fi
  4071. if test -z "$CPP"; then
  4072. if test "${ac_cv_prog_CPP+set}" = set; then
  4073. echo $ECHO_N "(cached) $ECHO_C" >&6
  4074. else
  4075. # Double quotes because CPP needs to be expanded
  4076. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4077. do
  4078. ac_preproc_ok=false
  4079. for ac_c_preproc_warn_flag in '' yes
  4080. do
  4081. # Use a header file that comes with gcc, so configuring glibc
  4082. # with a fresh cross-compiler works.
  4083. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4084. # <limits.h> exists even on freestanding compilers.
  4085. # On the NeXT, cc -E runs the code through the compiler's parser,
  4086. # not just through cpp. "Syntax error" is here to catch this case.
  4087. cat >conftest.$ac_ext <<_ACEOF
  4088. /* confdefs.h. */
  4089. _ACEOF
  4090. cat confdefs.h >>conftest.$ac_ext
  4091. cat >>conftest.$ac_ext <<_ACEOF
  4092. /* end confdefs.h. */
  4093. #ifdef __STDC__
  4094. # include <limits.h>
  4095. #else
  4096. # include <assert.h>
  4097. #endif
  4098. Syntax error
  4099. _ACEOF
  4100. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4101. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4102. ac_status=$?
  4103. grep -v '^ *+' conftest.er1 >conftest.err
  4104. rm -f conftest.er1
  4105. cat conftest.err >&5
  4106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4107. (exit $ac_status); } >/dev/null; then
  4108. if test -s conftest.err; then
  4109. ac_cpp_err=$ac_c_preproc_warn_flag
  4110. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4111. else
  4112. ac_cpp_err=
  4113. fi
  4114. else
  4115. ac_cpp_err=yes
  4116. fi
  4117. if test -z "$ac_cpp_err"; then
  4118. :
  4119. else
  4120. echo "$as_me: failed program was:" >&5
  4121. sed 's/^/| /' conftest.$ac_ext >&5
  4122. # Broken: fails on valid input.
  4123. continue
  4124. fi
  4125. rm -f conftest.err conftest.$ac_ext
  4126. # OK, works on sane cases. Now check whether non-existent headers
  4127. # can be detected and how.
  4128. cat >conftest.$ac_ext <<_ACEOF
  4129. /* confdefs.h. */
  4130. _ACEOF
  4131. cat confdefs.h >>conftest.$ac_ext
  4132. cat >>conftest.$ac_ext <<_ACEOF
  4133. /* end confdefs.h. */
  4134. #include <ac_nonexistent.h>
  4135. _ACEOF
  4136. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4137. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4138. ac_status=$?
  4139. grep -v '^ *+' conftest.er1 >conftest.err
  4140. rm -f conftest.er1
  4141. cat conftest.err >&5
  4142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4143. (exit $ac_status); } >/dev/null; then
  4144. if test -s conftest.err; then
  4145. ac_cpp_err=$ac_c_preproc_warn_flag
  4146. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4147. else
  4148. ac_cpp_err=
  4149. fi
  4150. else
  4151. ac_cpp_err=yes
  4152. fi
  4153. if test -z "$ac_cpp_err"; then
  4154. # Broken: success on invalid input.
  4155. continue
  4156. else
  4157. echo "$as_me: failed program was:" >&5
  4158. sed 's/^/| /' conftest.$ac_ext >&5
  4159. # Passes both tests.
  4160. ac_preproc_ok=:
  4161. break
  4162. fi
  4163. rm -f conftest.err conftest.$ac_ext
  4164. done
  4165. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4166. rm -f conftest.err conftest.$ac_ext
  4167. if $ac_preproc_ok; then
  4168. break
  4169. fi
  4170. done
  4171. ac_cv_prog_CPP=$CPP
  4172. fi
  4173. CPP=$ac_cv_prog_CPP
  4174. else
  4175. ac_cv_prog_CPP=$CPP
  4176. fi
  4177. echo "$as_me:$LINENO: result: $CPP" >&5
  4178. echo "${ECHO_T}$CPP" >&6
  4179. ac_preproc_ok=false
  4180. for ac_c_preproc_warn_flag in '' yes
  4181. do
  4182. # Use a header file that comes with gcc, so configuring glibc
  4183. # with a fresh cross-compiler works.
  4184. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4185. # <limits.h> exists even on freestanding compilers.
  4186. # On the NeXT, cc -E runs the code through the compiler's parser,
  4187. # not just through cpp. "Syntax error" is here to catch this case.
  4188. cat >conftest.$ac_ext <<_ACEOF
  4189. /* confdefs.h. */
  4190. _ACEOF
  4191. cat confdefs.h >>conftest.$ac_ext
  4192. cat >>conftest.$ac_ext <<_ACEOF
  4193. /* end confdefs.h. */
  4194. #ifdef __STDC__
  4195. # include <limits.h>
  4196. #else
  4197. # include <assert.h>
  4198. #endif
  4199. Syntax error
  4200. _ACEOF
  4201. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4202. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4203. ac_status=$?
  4204. grep -v '^ *+' conftest.er1 >conftest.err
  4205. rm -f conftest.er1
  4206. cat conftest.err >&5
  4207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208. (exit $ac_status); } >/dev/null; then
  4209. if test -s conftest.err; then
  4210. ac_cpp_err=$ac_c_preproc_warn_flag
  4211. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4212. else
  4213. ac_cpp_err=
  4214. fi
  4215. else
  4216. ac_cpp_err=yes
  4217. fi
  4218. if test -z "$ac_cpp_err"; then
  4219. :
  4220. else
  4221. echo "$as_me: failed program was:" >&5
  4222. sed 's/^/| /' conftest.$ac_ext >&5
  4223. # Broken: fails on valid input.
  4224. continue
  4225. fi
  4226. rm -f conftest.err conftest.$ac_ext
  4227. # OK, works on sane cases. Now check whether non-existent headers
  4228. # can be detected and how.
  4229. cat >conftest.$ac_ext <<_ACEOF
  4230. /* confdefs.h. */
  4231. _ACEOF
  4232. cat confdefs.h >>conftest.$ac_ext
  4233. cat >>conftest.$ac_ext <<_ACEOF
  4234. /* end confdefs.h. */
  4235. #include <ac_nonexistent.h>
  4236. _ACEOF
  4237. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4238. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4239. ac_status=$?
  4240. grep -v '^ *+' conftest.er1 >conftest.err
  4241. rm -f conftest.er1
  4242. cat conftest.err >&5
  4243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4244. (exit $ac_status); } >/dev/null; then
  4245. if test -s conftest.err; then
  4246. ac_cpp_err=$ac_c_preproc_warn_flag
  4247. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4248. else
  4249. ac_cpp_err=
  4250. fi
  4251. else
  4252. ac_cpp_err=yes
  4253. fi
  4254. if test -z "$ac_cpp_err"; then
  4255. # Broken: success on invalid input.
  4256. continue
  4257. else
  4258. echo "$as_me: failed program was:" >&5
  4259. sed 's/^/| /' conftest.$ac_ext >&5
  4260. # Passes both tests.
  4261. ac_preproc_ok=:
  4262. break
  4263. fi
  4264. rm -f conftest.err conftest.$ac_ext
  4265. done
  4266. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4267. rm -f conftest.err conftest.$ac_ext
  4268. if $ac_preproc_ok; then
  4269. :
  4270. else
  4271. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4272. See \`config.log' for more details." >&5
  4273. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4274. See \`config.log' for more details." >&2;}
  4275. { (exit 1); exit 1; }; }
  4276. fi
  4277. ac_ext=c
  4278. ac_cpp='$CPP $CPPFLAGS'
  4279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4282. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4283. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4284. if test "${ac_cv_header_stdc+set}" = set; then
  4285. echo $ECHO_N "(cached) $ECHO_C" >&6
  4286. else
  4287. cat >conftest.$ac_ext <<_ACEOF
  4288. /* confdefs.h. */
  4289. _ACEOF
  4290. cat confdefs.h >>conftest.$ac_ext
  4291. cat >>conftest.$ac_ext <<_ACEOF
  4292. /* end confdefs.h. */
  4293. #include <stdlib.h>
  4294. #include <stdarg.h>
  4295. #include <string.h>
  4296. #include <float.h>
  4297. int
  4298. main ()
  4299. {
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. rm -f conftest.$ac_objext
  4305. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4306. (eval $ac_compile) 2>conftest.er1
  4307. ac_status=$?
  4308. grep -v '^ *+' conftest.er1 >conftest.err
  4309. rm -f conftest.er1
  4310. cat conftest.err >&5
  4311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4312. (exit $ac_status); } &&
  4313. { ac_try='test -z "$ac_c_werror_flag"
  4314. || test ! -s conftest.err'
  4315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4316. (eval $ac_try) 2>&5
  4317. ac_status=$?
  4318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4319. (exit $ac_status); }; } &&
  4320. { ac_try='test -s conftest.$ac_objext'
  4321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4322. (eval $ac_try) 2>&5
  4323. ac_status=$?
  4324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4325. (exit $ac_status); }; }; then
  4326. ac_cv_header_stdc=yes
  4327. else
  4328. echo "$as_me: failed program was:" >&5
  4329. sed 's/^/| /' conftest.$ac_ext >&5
  4330. ac_cv_header_stdc=no
  4331. fi
  4332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4333. if test $ac_cv_header_stdc = yes; then
  4334. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4335. cat >conftest.$ac_ext <<_ACEOF
  4336. /* confdefs.h. */
  4337. _ACEOF
  4338. cat confdefs.h >>conftest.$ac_ext
  4339. cat >>conftest.$ac_ext <<_ACEOF
  4340. /* end confdefs.h. */
  4341. #include <string.h>
  4342. _ACEOF
  4343. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4344. $EGREP "memchr" >/dev/null 2>&1; then
  4345. :
  4346. else
  4347. ac_cv_header_stdc=no
  4348. fi
  4349. rm -f conftest*
  4350. fi
  4351. if test $ac_cv_header_stdc = yes; then
  4352. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4353. cat >conftest.$ac_ext <<_ACEOF
  4354. /* confdefs.h. */
  4355. _ACEOF
  4356. cat confdefs.h >>conftest.$ac_ext
  4357. cat >>conftest.$ac_ext <<_ACEOF
  4358. /* end confdefs.h. */
  4359. #include <stdlib.h>
  4360. _ACEOF
  4361. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4362. $EGREP "free" >/dev/null 2>&1; then
  4363. :
  4364. else
  4365. ac_cv_header_stdc=no
  4366. fi
  4367. rm -f conftest*
  4368. fi
  4369. if test $ac_cv_header_stdc = yes; then
  4370. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4371. if test "$cross_compiling" = yes; then
  4372. :
  4373. else
  4374. cat >conftest.$ac_ext <<_ACEOF
  4375. /* confdefs.h. */
  4376. _ACEOF
  4377. cat confdefs.h >>conftest.$ac_ext
  4378. cat >>conftest.$ac_ext <<_ACEOF
  4379. /* end confdefs.h. */
  4380. #include <ctype.h>
  4381. #if ((' ' & 0x0FF) == 0x020)
  4382. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4383. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4384. #else
  4385. # define ISLOWER(c) \
  4386. (('a' <= (c) && (c) <= 'i') \
  4387. || ('j' <= (c) && (c) <= 'r') \
  4388. || ('s' <= (c) && (c) <= 'z'))
  4389. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4390. #endif
  4391. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4392. int
  4393. main ()
  4394. {
  4395. int i;
  4396. for (i = 0; i < 256; i++)
  4397. if (XOR (islower (i), ISLOWER (i))
  4398. || toupper (i) != TOUPPER (i))
  4399. exit(2);
  4400. exit (0);
  4401. }
  4402. _ACEOF
  4403. rm -f conftest$ac_exeext
  4404. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4405. (eval $ac_link) 2>&5
  4406. ac_status=$?
  4407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4408. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4409. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4410. (eval $ac_try) 2>&5
  4411. ac_status=$?
  4412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4413. (exit $ac_status); }; }; then
  4414. :
  4415. else
  4416. echo "$as_me: program exited with status $ac_status" >&5
  4417. echo "$as_me: failed program was:" >&5
  4418. sed 's/^/| /' conftest.$ac_ext >&5
  4419. ( exit $ac_status )
  4420. ac_cv_header_stdc=no
  4421. fi
  4422. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4423. fi
  4424. fi
  4425. fi
  4426. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4427. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4428. if test $ac_cv_header_stdc = yes; then
  4429. cat >>confdefs.h <<\_ACEOF
  4430. #define STDC_HEADERS 1
  4431. _ACEOF
  4432. fi
  4433. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4434. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4435. inttypes.h stdint.h unistd.h
  4436. do
  4437. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4438. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4439. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4440. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4441. echo $ECHO_N "(cached) $ECHO_C" >&6
  4442. else
  4443. cat >conftest.$ac_ext <<_ACEOF
  4444. /* confdefs.h. */
  4445. _ACEOF
  4446. cat confdefs.h >>conftest.$ac_ext
  4447. cat >>conftest.$ac_ext <<_ACEOF
  4448. /* end confdefs.h. */
  4449. $ac_includes_default
  4450. #include <$ac_header>
  4451. _ACEOF
  4452. rm -f conftest.$ac_objext
  4453. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4454. (eval $ac_compile) 2>conftest.er1
  4455. ac_status=$?
  4456. grep -v '^ *+' conftest.er1 >conftest.err
  4457. rm -f conftest.er1
  4458. cat conftest.err >&5
  4459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4460. (exit $ac_status); } &&
  4461. { ac_try='test -z "$ac_c_werror_flag"
  4462. || test ! -s conftest.err'
  4463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4464. (eval $ac_try) 2>&5
  4465. ac_status=$?
  4466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4467. (exit $ac_status); }; } &&
  4468. { ac_try='test -s conftest.$ac_objext'
  4469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4470. (eval $ac_try) 2>&5
  4471. ac_status=$?
  4472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4473. (exit $ac_status); }; }; then
  4474. eval "$as_ac_Header=yes"
  4475. else
  4476. echo "$as_me: failed program was:" >&5
  4477. sed 's/^/| /' conftest.$ac_ext >&5
  4478. eval "$as_ac_Header=no"
  4479. fi
  4480. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4481. fi
  4482. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4483. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4484. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4485. cat >>confdefs.h <<_ACEOF
  4486. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4487. _ACEOF
  4488. fi
  4489. done
  4490. for ac_header in dlfcn.h
  4491. do
  4492. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4493. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4494. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4495. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4496. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4497. echo $ECHO_N "(cached) $ECHO_C" >&6
  4498. fi
  4499. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4500. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4501. else
  4502. # Is the header compilable?
  4503. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4504. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4505. cat >conftest.$ac_ext <<_ACEOF
  4506. /* confdefs.h. */
  4507. _ACEOF
  4508. cat confdefs.h >>conftest.$ac_ext
  4509. cat >>conftest.$ac_ext <<_ACEOF
  4510. /* end confdefs.h. */
  4511. $ac_includes_default
  4512. #include <$ac_header>
  4513. _ACEOF
  4514. rm -f conftest.$ac_objext
  4515. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4516. (eval $ac_compile) 2>conftest.er1
  4517. ac_status=$?
  4518. grep -v '^ *+' conftest.er1 >conftest.err
  4519. rm -f conftest.er1
  4520. cat conftest.err >&5
  4521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4522. (exit $ac_status); } &&
  4523. { ac_try='test -z "$ac_c_werror_flag"
  4524. || test ! -s conftest.err'
  4525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4526. (eval $ac_try) 2>&5
  4527. ac_status=$?
  4528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4529. (exit $ac_status); }; } &&
  4530. { ac_try='test -s conftest.$ac_objext'
  4531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4532. (eval $ac_try) 2>&5
  4533. ac_status=$?
  4534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4535. (exit $ac_status); }; }; then
  4536. ac_header_compiler=yes
  4537. else
  4538. echo "$as_me: failed program was:" >&5
  4539. sed 's/^/| /' conftest.$ac_ext >&5
  4540. ac_header_compiler=no
  4541. fi
  4542. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4543. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4544. echo "${ECHO_T}$ac_header_compiler" >&6
  4545. # Is the header present?
  4546. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4547. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4548. cat >conftest.$ac_ext <<_ACEOF
  4549. /* confdefs.h. */
  4550. _ACEOF
  4551. cat confdefs.h >>conftest.$ac_ext
  4552. cat >>conftest.$ac_ext <<_ACEOF
  4553. /* end confdefs.h. */
  4554. #include <$ac_header>
  4555. _ACEOF
  4556. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4557. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4558. ac_status=$?
  4559. grep -v '^ *+' conftest.er1 >conftest.err
  4560. rm -f conftest.er1
  4561. cat conftest.err >&5
  4562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4563. (exit $ac_status); } >/dev/null; then
  4564. if test -s conftest.err; then
  4565. ac_cpp_err=$ac_c_preproc_warn_flag
  4566. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4567. else
  4568. ac_cpp_err=
  4569. fi
  4570. else
  4571. ac_cpp_err=yes
  4572. fi
  4573. if test -z "$ac_cpp_err"; then
  4574. ac_header_preproc=yes
  4575. else
  4576. echo "$as_me: failed program was:" >&5
  4577. sed 's/^/| /' conftest.$ac_ext >&5
  4578. ac_header_preproc=no
  4579. fi
  4580. rm -f conftest.err conftest.$ac_ext
  4581. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4582. echo "${ECHO_T}$ac_header_preproc" >&6
  4583. # So? What about this header?
  4584. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4585. yes:no: )
  4586. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4587. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4588. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4589. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4590. ac_header_preproc=yes
  4591. ;;
  4592. no:yes:* )
  4593. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4594. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4595. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4596. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4597. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4598. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4599. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4600. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4601. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4602. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4603. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4604. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4605. (
  4606. cat <<\_ASBOX
  4607. ## ------------------------------------------ ##
  4608. ## Report this to http://bugzilla.redhat.com/ ##
  4609. ## ------------------------------------------ ##
  4610. _ASBOX
  4611. ) |
  4612. sed "s/^/$as_me: WARNING: /" >&2
  4613. ;;
  4614. esac
  4615. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4616. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4617. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4618. echo $ECHO_N "(cached) $ECHO_C" >&6
  4619. else
  4620. eval "$as_ac_Header=\$ac_header_preproc"
  4621. fi
  4622. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4623. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4624. fi
  4625. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4626. cat >>confdefs.h <<_ACEOF
  4627. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4628. _ACEOF
  4629. fi
  4630. done
  4631. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4632. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4633. (test "X$CXX" != "Xg++"))) ; then
  4634. ac_ext=cc
  4635. ac_cpp='$CXXCPP $CPPFLAGS'
  4636. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4637. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4638. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4639. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4640. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4641. if test -z "$CXXCPP"; then
  4642. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4643. echo $ECHO_N "(cached) $ECHO_C" >&6
  4644. else
  4645. # Double quotes because CXXCPP needs to be expanded
  4646. for CXXCPP in "$CXX -E" "/lib/cpp"
  4647. do
  4648. ac_preproc_ok=false
  4649. for ac_cxx_preproc_warn_flag in '' yes
  4650. do
  4651. # Use a header file that comes with gcc, so configuring glibc
  4652. # with a fresh cross-compiler works.
  4653. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4654. # <limits.h> exists even on freestanding compilers.
  4655. # On the NeXT, cc -E runs the code through the compiler's parser,
  4656. # not just through cpp. "Syntax error" is here to catch this case.
  4657. cat >conftest.$ac_ext <<_ACEOF
  4658. /* confdefs.h. */
  4659. _ACEOF
  4660. cat confdefs.h >>conftest.$ac_ext
  4661. cat >>conftest.$ac_ext <<_ACEOF
  4662. /* end confdefs.h. */
  4663. #ifdef __STDC__
  4664. # include <limits.h>
  4665. #else
  4666. # include <assert.h>
  4667. #endif
  4668. Syntax error
  4669. _ACEOF
  4670. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4671. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4672. ac_status=$?
  4673. grep -v '^ *+' conftest.er1 >conftest.err
  4674. rm -f conftest.er1
  4675. cat conftest.err >&5
  4676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4677. (exit $ac_status); } >/dev/null; then
  4678. if test -s conftest.err; then
  4679. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4680. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4681. else
  4682. ac_cpp_err=
  4683. fi
  4684. else
  4685. ac_cpp_err=yes
  4686. fi
  4687. if test -z "$ac_cpp_err"; then
  4688. :
  4689. else
  4690. echo "$as_me: failed program was:" >&5
  4691. sed 's/^/| /' conftest.$ac_ext >&5
  4692. # Broken: fails on valid input.
  4693. continue
  4694. fi
  4695. rm -f conftest.err conftest.$ac_ext
  4696. # OK, works on sane cases. Now check whether non-existent headers
  4697. # can be detected and how.
  4698. cat >conftest.$ac_ext <<_ACEOF
  4699. /* confdefs.h. */
  4700. _ACEOF
  4701. cat confdefs.h >>conftest.$ac_ext
  4702. cat >>conftest.$ac_ext <<_ACEOF
  4703. /* end confdefs.h. */
  4704. #include <ac_nonexistent.h>
  4705. _ACEOF
  4706. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4707. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4708. ac_status=$?
  4709. grep -v '^ *+' conftest.er1 >conftest.err
  4710. rm -f conftest.er1
  4711. cat conftest.err >&5
  4712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4713. (exit $ac_status); } >/dev/null; then
  4714. if test -s conftest.err; then
  4715. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4716. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4717. else
  4718. ac_cpp_err=
  4719. fi
  4720. else
  4721. ac_cpp_err=yes
  4722. fi
  4723. if test -z "$ac_cpp_err"; then
  4724. # Broken: success on invalid input.
  4725. continue
  4726. else
  4727. echo "$as_me: failed program was:" >&5
  4728. sed 's/^/| /' conftest.$ac_ext >&5
  4729. # Passes both tests.
  4730. ac_preproc_ok=:
  4731. break
  4732. fi
  4733. rm -f conftest.err conftest.$ac_ext
  4734. done
  4735. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4736. rm -f conftest.err conftest.$ac_ext
  4737. if $ac_preproc_ok; then
  4738. break
  4739. fi
  4740. done
  4741. ac_cv_prog_CXXCPP=$CXXCPP
  4742. fi
  4743. CXXCPP=$ac_cv_prog_CXXCPP
  4744. else
  4745. ac_cv_prog_CXXCPP=$CXXCPP
  4746. fi
  4747. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4748. echo "${ECHO_T}$CXXCPP" >&6
  4749. ac_preproc_ok=false
  4750. for ac_cxx_preproc_warn_flag in '' yes
  4751. do
  4752. # Use a header file that comes with gcc, so configuring glibc
  4753. # with a fresh cross-compiler works.
  4754. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4755. # <limits.h> exists even on freestanding compilers.
  4756. # On the NeXT, cc -E runs the code through the compiler's parser,
  4757. # not just through cpp. "Syntax error" is here to catch this case.
  4758. cat >conftest.$ac_ext <<_ACEOF
  4759. /* confdefs.h. */
  4760. _ACEOF
  4761. cat confdefs.h >>conftest.$ac_ext
  4762. cat >>conftest.$ac_ext <<_ACEOF
  4763. /* end confdefs.h. */
  4764. #ifdef __STDC__
  4765. # include <limits.h>
  4766. #else
  4767. # include <assert.h>
  4768. #endif
  4769. Syntax error
  4770. _ACEOF
  4771. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4772. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4773. ac_status=$?
  4774. grep -v '^ *+' conftest.er1 >conftest.err
  4775. rm -f conftest.er1
  4776. cat conftest.err >&5
  4777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4778. (exit $ac_status); } >/dev/null; then
  4779. if test -s conftest.err; then
  4780. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4781. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4782. else
  4783. ac_cpp_err=
  4784. fi
  4785. else
  4786. ac_cpp_err=yes
  4787. fi
  4788. if test -z "$ac_cpp_err"; then
  4789. :
  4790. else
  4791. echo "$as_me: failed program was:" >&5
  4792. sed 's/^/| /' conftest.$ac_ext >&5
  4793. # Broken: fails on valid input.
  4794. continue
  4795. fi
  4796. rm -f conftest.err conftest.$ac_ext
  4797. # OK, works on sane cases. Now check whether non-existent headers
  4798. # can be detected and how.
  4799. cat >conftest.$ac_ext <<_ACEOF
  4800. /* confdefs.h. */
  4801. _ACEOF
  4802. cat confdefs.h >>conftest.$ac_ext
  4803. cat >>conftest.$ac_ext <<_ACEOF
  4804. /* end confdefs.h. */
  4805. #include <ac_nonexistent.h>
  4806. _ACEOF
  4807. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4808. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4809. ac_status=$?
  4810. grep -v '^ *+' conftest.er1 >conftest.err
  4811. rm -f conftest.er1
  4812. cat conftest.err >&5
  4813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4814. (exit $ac_status); } >/dev/null; then
  4815. if test -s conftest.err; then
  4816. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4817. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4818. else
  4819. ac_cpp_err=
  4820. fi
  4821. else
  4822. ac_cpp_err=yes
  4823. fi
  4824. if test -z "$ac_cpp_err"; then
  4825. # Broken: success on invalid input.
  4826. continue
  4827. else
  4828. echo "$as_me: failed program was:" >&5
  4829. sed 's/^/| /' conftest.$ac_ext >&5
  4830. # Passes both tests.
  4831. ac_preproc_ok=:
  4832. break
  4833. fi
  4834. rm -f conftest.err conftest.$ac_ext
  4835. done
  4836. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4837. rm -f conftest.err conftest.$ac_ext
  4838. if $ac_preproc_ok; then
  4839. :
  4840. else
  4841. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4842. See \`config.log' for more details." >&5
  4843. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4844. See \`config.log' for more details." >&2;}
  4845. { (exit 1); exit 1; }; }
  4846. fi
  4847. ac_ext=cc
  4848. ac_cpp='$CXXCPP $CPPFLAGS'
  4849. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4850. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4851. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4852. fi
  4853. ac_ext=f
  4854. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4855. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4856. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4857. if test -n "$ac_tool_prefix"; then
  4858. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4859. do
  4860. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4861. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4862. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4863. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4864. if test "${ac_cv_prog_F77+set}" = set; then
  4865. echo $ECHO_N "(cached) $ECHO_C" >&6
  4866. else
  4867. if test -n "$F77"; then
  4868. ac_cv_prog_F77="$F77" # Let the user override the test.
  4869. else
  4870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4871. for as_dir in $PATH
  4872. do
  4873. IFS=$as_save_IFS
  4874. test -z "$as_dir" && as_dir=.
  4875. for ac_exec_ext in '' $ac_executable_extensions; do
  4876. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4877. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4878. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4879. break 2
  4880. fi
  4881. done
  4882. done
  4883. fi
  4884. fi
  4885. F77=$ac_cv_prog_F77
  4886. if test -n "$F77"; then
  4887. echo "$as_me:$LINENO: result: $F77" >&5
  4888. echo "${ECHO_T}$F77" >&6
  4889. else
  4890. echo "$as_me:$LINENO: result: no" >&5
  4891. echo "${ECHO_T}no" >&6
  4892. fi
  4893. test -n "$F77" && break
  4894. done
  4895. fi
  4896. if test -z "$F77"; then
  4897. ac_ct_F77=$F77
  4898. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4899. do
  4900. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4901. set dummy $ac_prog; ac_word=$2
  4902. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4903. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4904. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4905. echo $ECHO_N "(cached) $ECHO_C" >&6
  4906. else
  4907. if test -n "$ac_ct_F77"; then
  4908. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4909. else
  4910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4911. for as_dir in $PATH
  4912. do
  4913. IFS=$as_save_IFS
  4914. test -z "$as_dir" && as_dir=.
  4915. for ac_exec_ext in '' $ac_executable_extensions; do
  4916. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4917. ac_cv_prog_ac_ct_F77="$ac_prog"
  4918. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4919. break 2
  4920. fi
  4921. done
  4922. done
  4923. fi
  4924. fi
  4925. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4926. if test -n "$ac_ct_F77"; then
  4927. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4928. echo "${ECHO_T}$ac_ct_F77" >&6
  4929. else
  4930. echo "$as_me:$LINENO: result: no" >&5
  4931. echo "${ECHO_T}no" >&6
  4932. fi
  4933. test -n "$ac_ct_F77" && break
  4934. done
  4935. F77=$ac_ct_F77
  4936. fi
  4937. # Provide some information about the compiler.
  4938. echo "$as_me:5450:" \
  4939. "checking for Fortran 77 compiler version" >&5
  4940. ac_compiler=`set X $ac_compile; echo $2`
  4941. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4942. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4943. ac_status=$?
  4944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4945. (exit $ac_status); }
  4946. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4947. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4948. ac_status=$?
  4949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4950. (exit $ac_status); }
  4951. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4952. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4953. ac_status=$?
  4954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4955. (exit $ac_status); }
  4956. rm -f a.out
  4957. # If we don't use `.F' as extension, the preprocessor is not run on the
  4958. # input file. (Note that this only needs to work for GNU compilers.)
  4959. ac_save_ext=$ac_ext
  4960. ac_ext=F
  4961. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4962. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4963. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4964. echo $ECHO_N "(cached) $ECHO_C" >&6
  4965. else
  4966. cat >conftest.$ac_ext <<_ACEOF
  4967. program main
  4968. #ifndef __GNUC__
  4969. choke me
  4970. #endif
  4971. end
  4972. _ACEOF
  4973. rm -f conftest.$ac_objext
  4974. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4975. (eval $ac_compile) 2>conftest.er1
  4976. ac_status=$?
  4977. grep -v '^ *+' conftest.er1 >conftest.err
  4978. rm -f conftest.er1
  4979. cat conftest.err >&5
  4980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4981. (exit $ac_status); } &&
  4982. { ac_try='test -z "$ac_f77_werror_flag"
  4983. || test ! -s conftest.err'
  4984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4985. (eval $ac_try) 2>&5
  4986. ac_status=$?
  4987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4988. (exit $ac_status); }; } &&
  4989. { ac_try='test -s conftest.$ac_objext'
  4990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4991. (eval $ac_try) 2>&5
  4992. ac_status=$?
  4993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4994. (exit $ac_status); }; }; then
  4995. ac_compiler_gnu=yes
  4996. else
  4997. echo "$as_me: failed program was:" >&5
  4998. sed 's/^/| /' conftest.$ac_ext >&5
  4999. ac_compiler_gnu=no
  5000. fi
  5001. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5002. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5003. fi
  5004. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5005. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5006. ac_ext=$ac_save_ext
  5007. ac_test_FFLAGS=${FFLAGS+set}
  5008. ac_save_FFLAGS=$FFLAGS
  5009. FFLAGS=
  5010. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5011. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5012. if test "${ac_cv_prog_f77_g+set}" = set; then
  5013. echo $ECHO_N "(cached) $ECHO_C" >&6
  5014. else
  5015. FFLAGS=-g
  5016. cat >conftest.$ac_ext <<_ACEOF
  5017. program main
  5018. end
  5019. _ACEOF
  5020. rm -f conftest.$ac_objext
  5021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5022. (eval $ac_compile) 2>conftest.er1
  5023. ac_status=$?
  5024. grep -v '^ *+' conftest.er1 >conftest.err
  5025. rm -f conftest.er1
  5026. cat conftest.err >&5
  5027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5028. (exit $ac_status); } &&
  5029. { ac_try='test -z "$ac_f77_werror_flag"
  5030. || test ! -s conftest.err'
  5031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5032. (eval $ac_try) 2>&5
  5033. ac_status=$?
  5034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5035. (exit $ac_status); }; } &&
  5036. { ac_try='test -s conftest.$ac_objext'
  5037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5038. (eval $ac_try) 2>&5
  5039. ac_status=$?
  5040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5041. (exit $ac_status); }; }; then
  5042. ac_cv_prog_f77_g=yes
  5043. else
  5044. echo "$as_me: failed program was:" >&5
  5045. sed 's/^/| /' conftest.$ac_ext >&5
  5046. ac_cv_prog_f77_g=no
  5047. fi
  5048. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5049. fi
  5050. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5051. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5052. if test "$ac_test_FFLAGS" = set; then
  5053. FFLAGS=$ac_save_FFLAGS
  5054. elif test $ac_cv_prog_f77_g = yes; then
  5055. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5056. FFLAGS="-g -O2"
  5057. else
  5058. FFLAGS="-g"
  5059. fi
  5060. else
  5061. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5062. FFLAGS="-O2"
  5063. else
  5064. FFLAGS=
  5065. fi
  5066. fi
  5067. G77=`test $ac_compiler_gnu = yes && echo yes`
  5068. ac_ext=c
  5069. ac_cpp='$CPP $CPPFLAGS'
  5070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5073. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5074. # find the maximum length of command line arguments
  5075. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5076. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5077. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5078. echo $ECHO_N "(cached) $ECHO_C" >&6
  5079. else
  5080. i=0
  5081. teststring="ABCD"
  5082. case $build_os in
  5083. msdosdjgpp*)
  5084. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5085. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5086. # during glob expansion). Even if it were fixed, the result of this
  5087. # check would be larger than it should be.
  5088. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5089. ;;
  5090. gnu*)
  5091. # Under GNU Hurd, this test is not required because there is
  5092. # no limit to the length of command line arguments.
  5093. # Libtool will interpret -1 as no limit whatsoever
  5094. lt_cv_sys_max_cmd_len=-1;
  5095. ;;
  5096. cygwin* | mingw*)
  5097. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5098. # about 5 minutes as the teststring grows exponentially.
  5099. # Worse, since 9x/ME are not pre-emptively multitasking,
  5100. # you end up with a "frozen" computer, even though with patience
  5101. # the test eventually succeeds (with a max line length of 256k).
  5102. # Instead, let's just punt: use the minimum linelength reported by
  5103. # all of the supported platforms: 8192 (on NT/2K/XP).
  5104. lt_cv_sys_max_cmd_len=8192;
  5105. ;;
  5106. amigaos*)
  5107. # On AmigaOS with pdksh, this test takes hours, literally.
  5108. # So we just punt and use a minimum line length of 8192.
  5109. lt_cv_sys_max_cmd_len=8192;
  5110. ;;
  5111. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5112. # This has been around since 386BSD, at least. Likely further.
  5113. if test -x /sbin/sysctl; then
  5114. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5115. elif test -x /usr/sbin/sysctl; then
  5116. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5117. else
  5118. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5119. fi
  5120. # And add a safety zone
  5121. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5122. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5123. ;;
  5124. interix*)
  5125. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5126. lt_cv_sys_max_cmd_len=196608
  5127. ;;
  5128. osf*)
  5129. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5130. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5131. # nice to cause kernel panics so lets avoid the loop below.
  5132. # First set a reasonable default.
  5133. lt_cv_sys_max_cmd_len=16384
  5134. #
  5135. if test -x /sbin/sysconfig; then
  5136. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5137. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5138. esac
  5139. fi
  5140. ;;
  5141. sco3.2v5*)
  5142. lt_cv_sys_max_cmd_len=102400
  5143. ;;
  5144. sysv5* | sco5v6* | sysv4.2uw2*)
  5145. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5146. if test -n "$kargmax"; then
  5147. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5148. else
  5149. lt_cv_sys_max_cmd_len=32768
  5150. fi
  5151. ;;
  5152. *)
  5153. # If test is not a shell built-in, we'll probably end up computing a
  5154. # maximum length that is only half of the actual maximum length, but
  5155. # we can't tell.
  5156. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5157. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5158. = "XX$teststring") >/dev/null 2>&1 &&
  5159. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5160. lt_cv_sys_max_cmd_len=$new_result &&
  5161. test $i != 17 # 1/2 MB should be enough
  5162. do
  5163. i=`expr $i + 1`
  5164. teststring=$teststring$teststring
  5165. done
  5166. teststring=
  5167. # Add a significant safety factor because C++ compilers can tack on massive
  5168. # amounts of additional arguments before passing them to the linker.
  5169. # It appears as though 1/2 is a usable value.
  5170. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5171. ;;
  5172. esac
  5173. fi
  5174. if test -n $lt_cv_sys_max_cmd_len ; then
  5175. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5176. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5177. else
  5178. echo "$as_me:$LINENO: result: none" >&5
  5179. echo "${ECHO_T}none" >&6
  5180. fi
  5181. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5182. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5183. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5184. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5185. echo $ECHO_N "(cached) $ECHO_C" >&6
  5186. else
  5187. # These are sane defaults that work on at least a few old systems.
  5188. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5189. # Character class describing NM global symbol codes.
  5190. symcode='[BCDEGRST]'
  5191. # Regexp to match symbols that can be accessed directly from C.
  5192. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5193. # Transform an extracted symbol line into a proper C declaration
  5194. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5195. # Transform an extracted symbol line into symbol name and symbol address
  5196. 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'"
  5197. # Define system-specific variables.
  5198. case $host_os in
  5199. aix*)
  5200. symcode='[BCDT]'
  5201. ;;
  5202. cygwin* | mingw* | pw32*)
  5203. symcode='[ABCDGISTW]'
  5204. ;;
  5205. hpux*) # Its linker distinguishes data from code symbols
  5206. if test "$host_cpu" = ia64; then
  5207. symcode='[ABCDEGRST]'
  5208. fi
  5209. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5210. 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'"
  5211. ;;
  5212. linux*)
  5213. if test "$host_cpu" = ia64; then
  5214. symcode='[ABCDGIRSTW]'
  5215. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5216. 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'"
  5217. fi
  5218. ;;
  5219. irix* | nonstopux*)
  5220. symcode='[BCDEGRST]'
  5221. ;;
  5222. osf*)
  5223. symcode='[BCDEGQRST]'
  5224. ;;
  5225. solaris*)
  5226. symcode='[BDRT]'
  5227. ;;
  5228. sco3.2v5*)
  5229. symcode='[DT]'
  5230. ;;
  5231. sysv4.2uw2*)
  5232. symcode='[DT]'
  5233. ;;
  5234. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5235. symcode='[ABDT]'
  5236. ;;
  5237. sysv4)
  5238. symcode='[DFNSTU]'
  5239. ;;
  5240. esac
  5241. # Handle CRLF in mingw tool chain
  5242. opt_cr=
  5243. case $build_os in
  5244. mingw*)
  5245. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5246. ;;
  5247. esac
  5248. # If we're using GNU nm, then use its standard symbol codes.
  5249. case `$NM -V 2>&1` in
  5250. *GNU* | *'with BFD'*)
  5251. symcode='[ABCDGIRSTW]' ;;
  5252. esac
  5253. # Try without a prefix undercore, then with it.
  5254. for ac_symprfx in "" "_"; do
  5255. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5256. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5257. # Write the raw and C identifiers.
  5258. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5259. # Check to see that the pipe works correctly.
  5260. pipe_works=no
  5261. rm -f conftest*
  5262. cat > conftest.$ac_ext <<EOF
  5263. #ifdef __cplusplus
  5264. extern "C" {
  5265. #endif
  5266. char nm_test_var;
  5267. void nm_test_func(){}
  5268. #ifdef __cplusplus
  5269. }
  5270. #endif
  5271. int main(){nm_test_var='a';nm_test_func();return(0);}
  5272. EOF
  5273. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5274. (eval $ac_compile) 2>&5
  5275. ac_status=$?
  5276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5277. (exit $ac_status); }; then
  5278. # Now try to grab the symbols.
  5279. nlist=conftest.nm
  5280. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5281. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5282. ac_status=$?
  5283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5284. (exit $ac_status); } && test -s "$nlist"; then
  5285. # Try sorting and uniquifying the output.
  5286. if sort "$nlist" | uniq > "$nlist"T; then
  5287. mv -f "$nlist"T "$nlist"
  5288. else
  5289. rm -f "$nlist"T
  5290. fi
  5291. # Make sure that we snagged all the symbols we need.
  5292. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5293. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5294. cat <<EOF > conftest.$ac_ext
  5295. #ifdef __cplusplus
  5296. extern "C" {
  5297. #endif
  5298. EOF
  5299. # Now generate the symbol file.
  5300. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5301. cat <<EOF >> conftest.$ac_ext
  5302. #if defined (__STDC__) && __STDC__
  5303. # define lt_ptr_t void *
  5304. #else
  5305. # define lt_ptr_t char *
  5306. # define const
  5307. #endif
  5308. /* The mapping between symbol names and symbols. */
  5309. const struct {
  5310. const char *name;
  5311. lt_ptr_t address;
  5312. }
  5313. lt_preloaded_symbols[] =
  5314. {
  5315. EOF
  5316. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5317. cat <<\EOF >> conftest.$ac_ext
  5318. {0, (lt_ptr_t) 0}
  5319. };
  5320. #ifdef __cplusplus
  5321. }
  5322. #endif
  5323. EOF
  5324. # Now try linking the two files.
  5325. mv conftest.$ac_objext conftstm.$ac_objext
  5326. lt_save_LIBS="$LIBS"
  5327. lt_save_CFLAGS="$CFLAGS"
  5328. LIBS="conftstm.$ac_objext"
  5329. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5330. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5331. (eval $ac_link) 2>&5
  5332. ac_status=$?
  5333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5334. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5335. pipe_works=yes
  5336. fi
  5337. LIBS="$lt_save_LIBS"
  5338. CFLAGS="$lt_save_CFLAGS"
  5339. else
  5340. echo "cannot find nm_test_func in $nlist" >&5
  5341. fi
  5342. else
  5343. echo "cannot find nm_test_var in $nlist" >&5
  5344. fi
  5345. else
  5346. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5347. fi
  5348. else
  5349. echo "$progname: failed program was:" >&5
  5350. cat conftest.$ac_ext >&5
  5351. fi
  5352. rm -f conftest* conftst*
  5353. # Do not use the global_symbol_pipe unless it works.
  5354. if test "$pipe_works" = yes; then
  5355. break
  5356. else
  5357. lt_cv_sys_global_symbol_pipe=
  5358. fi
  5359. done
  5360. fi
  5361. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5362. lt_cv_sys_global_symbol_to_cdecl=
  5363. fi
  5364. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5365. echo "$as_me:$LINENO: result: failed" >&5
  5366. echo "${ECHO_T}failed" >&6
  5367. else
  5368. echo "$as_me:$LINENO: result: ok" >&5
  5369. echo "${ECHO_T}ok" >&6
  5370. fi
  5371. echo "$as_me:$LINENO: checking for objdir" >&5
  5372. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5373. if test "${lt_cv_objdir+set}" = set; then
  5374. echo $ECHO_N "(cached) $ECHO_C" >&6
  5375. else
  5376. rm -f .libs 2>/dev/null
  5377. mkdir .libs 2>/dev/null
  5378. if test -d .libs; then
  5379. lt_cv_objdir=.libs
  5380. else
  5381. # MS-DOS does not allow filenames that begin with a dot.
  5382. lt_cv_objdir=_libs
  5383. fi
  5384. rmdir .libs 2>/dev/null
  5385. fi
  5386. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5387. echo "${ECHO_T}$lt_cv_objdir" >&6
  5388. objdir=$lt_cv_objdir
  5389. case $host_os in
  5390. aix3*)
  5391. # AIX sometimes has problems with the GCC collect2 program. For some
  5392. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5393. # vanish in a puff of smoke.
  5394. if test "X${COLLECT_NAMES+set}" != Xset; then
  5395. COLLECT_NAMES=
  5396. export COLLECT_NAMES
  5397. fi
  5398. ;;
  5399. esac
  5400. # Sed substitution that helps us do robust quoting. It backslashifies
  5401. # metacharacters that are still active within double-quoted strings.
  5402. Xsed='sed -e 1s/^X//'
  5403. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5404. # Same as above, but do not quote variable references.
  5405. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5406. # Sed substitution to delay expansion of an escaped shell variable in a
  5407. # double_quote_subst'ed string.
  5408. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5409. # Sed substitution to avoid accidental globbing in evaled expressions
  5410. no_glob_subst='s/\*/\\\*/g'
  5411. # Constants:
  5412. rm="rm -f"
  5413. # Global variables:
  5414. default_ofile=libtool
  5415. can_build_shared=yes
  5416. # All known linkers require a `.a' archive for static linking (except MSVC,
  5417. # which needs '.lib').
  5418. libext=a
  5419. ltmain="$ac_aux_dir/ltmain.sh"
  5420. ofile="$default_ofile"
  5421. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5422. if test -n "$ac_tool_prefix"; then
  5423. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5424. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5425. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5426. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5427. if test "${ac_cv_prog_AR+set}" = set; then
  5428. echo $ECHO_N "(cached) $ECHO_C" >&6
  5429. else
  5430. if test -n "$AR"; then
  5431. ac_cv_prog_AR="$AR" # Let the user override the test.
  5432. else
  5433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5434. for as_dir in $PATH
  5435. do
  5436. IFS=$as_save_IFS
  5437. test -z "$as_dir" && as_dir=.
  5438. for ac_exec_ext in '' $ac_executable_extensions; do
  5439. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5440. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5441. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5442. break 2
  5443. fi
  5444. done
  5445. done
  5446. fi
  5447. fi
  5448. AR=$ac_cv_prog_AR
  5449. if test -n "$AR"; then
  5450. echo "$as_me:$LINENO: result: $AR" >&5
  5451. echo "${ECHO_T}$AR" >&6
  5452. else
  5453. echo "$as_me:$LINENO: result: no" >&5
  5454. echo "${ECHO_T}no" >&6
  5455. fi
  5456. fi
  5457. if test -z "$ac_cv_prog_AR"; then
  5458. ac_ct_AR=$AR
  5459. # Extract the first word of "ar", so it can be a program name with args.
  5460. set dummy ar; ac_word=$2
  5461. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5462. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5463. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5464. echo $ECHO_N "(cached) $ECHO_C" >&6
  5465. else
  5466. if test -n "$ac_ct_AR"; then
  5467. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5468. else
  5469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5470. for as_dir in $PATH
  5471. do
  5472. IFS=$as_save_IFS
  5473. test -z "$as_dir" && as_dir=.
  5474. for ac_exec_ext in '' $ac_executable_extensions; do
  5475. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5476. ac_cv_prog_ac_ct_AR="ar"
  5477. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5478. break 2
  5479. fi
  5480. done
  5481. done
  5482. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5483. fi
  5484. fi
  5485. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5486. if test -n "$ac_ct_AR"; then
  5487. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5488. echo "${ECHO_T}$ac_ct_AR" >&6
  5489. else
  5490. echo "$as_me:$LINENO: result: no" >&5
  5491. echo "${ECHO_T}no" >&6
  5492. fi
  5493. AR=$ac_ct_AR
  5494. else
  5495. AR="$ac_cv_prog_AR"
  5496. fi
  5497. if test -n "$ac_tool_prefix"; then
  5498. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5499. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5500. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5501. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5502. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5503. echo $ECHO_N "(cached) $ECHO_C" >&6
  5504. else
  5505. if test -n "$RANLIB"; then
  5506. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5507. else
  5508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5509. for as_dir in $PATH
  5510. do
  5511. IFS=$as_save_IFS
  5512. test -z "$as_dir" && as_dir=.
  5513. for ac_exec_ext in '' $ac_executable_extensions; do
  5514. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5515. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5516. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5517. break 2
  5518. fi
  5519. done
  5520. done
  5521. fi
  5522. fi
  5523. RANLIB=$ac_cv_prog_RANLIB
  5524. if test -n "$RANLIB"; then
  5525. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5526. echo "${ECHO_T}$RANLIB" >&6
  5527. else
  5528. echo "$as_me:$LINENO: result: no" >&5
  5529. echo "${ECHO_T}no" >&6
  5530. fi
  5531. fi
  5532. if test -z "$ac_cv_prog_RANLIB"; then
  5533. ac_ct_RANLIB=$RANLIB
  5534. # Extract the first word of "ranlib", so it can be a program name with args.
  5535. set dummy ranlib; ac_word=$2
  5536. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5537. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5538. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5539. echo $ECHO_N "(cached) $ECHO_C" >&6
  5540. else
  5541. if test -n "$ac_ct_RANLIB"; then
  5542. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5543. else
  5544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5545. for as_dir in $PATH
  5546. do
  5547. IFS=$as_save_IFS
  5548. test -z "$as_dir" && as_dir=.
  5549. for ac_exec_ext in '' $ac_executable_extensions; do
  5550. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5551. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5552. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5553. break 2
  5554. fi
  5555. done
  5556. done
  5557. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5558. fi
  5559. fi
  5560. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5561. if test -n "$ac_ct_RANLIB"; then
  5562. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5563. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5564. else
  5565. echo "$as_me:$LINENO: result: no" >&5
  5566. echo "${ECHO_T}no" >&6
  5567. fi
  5568. RANLIB=$ac_ct_RANLIB
  5569. else
  5570. RANLIB="$ac_cv_prog_RANLIB"
  5571. fi
  5572. if test -n "$ac_tool_prefix"; then
  5573. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5574. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5575. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5576. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5577. if test "${ac_cv_prog_STRIP+set}" = set; then
  5578. echo $ECHO_N "(cached) $ECHO_C" >&6
  5579. else
  5580. if test -n "$STRIP"; then
  5581. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. test -z "$as_dir" && as_dir=.
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5590. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5591. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. fi
  5597. fi
  5598. STRIP=$ac_cv_prog_STRIP
  5599. if test -n "$STRIP"; then
  5600. echo "$as_me:$LINENO: result: $STRIP" >&5
  5601. echo "${ECHO_T}$STRIP" >&6
  5602. else
  5603. echo "$as_me:$LINENO: result: no" >&5
  5604. echo "${ECHO_T}no" >&6
  5605. fi
  5606. fi
  5607. if test -z "$ac_cv_prog_STRIP"; then
  5608. ac_ct_STRIP=$STRIP
  5609. # Extract the first word of "strip", so it can be a program name with args.
  5610. set dummy strip; ac_word=$2
  5611. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5612. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5613. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5614. echo $ECHO_N "(cached) $ECHO_C" >&6
  5615. else
  5616. if test -n "$ac_ct_STRIP"; then
  5617. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5618. else
  5619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5620. for as_dir in $PATH
  5621. do
  5622. IFS=$as_save_IFS
  5623. test -z "$as_dir" && as_dir=.
  5624. for ac_exec_ext in '' $ac_executable_extensions; do
  5625. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5626. ac_cv_prog_ac_ct_STRIP="strip"
  5627. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5628. break 2
  5629. fi
  5630. done
  5631. done
  5632. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5633. fi
  5634. fi
  5635. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5636. if test -n "$ac_ct_STRIP"; then
  5637. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5638. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5639. else
  5640. echo "$as_me:$LINENO: result: no" >&5
  5641. echo "${ECHO_T}no" >&6
  5642. fi
  5643. STRIP=$ac_ct_STRIP
  5644. else
  5645. STRIP="$ac_cv_prog_STRIP"
  5646. fi
  5647. old_CC="$CC"
  5648. old_CFLAGS="$CFLAGS"
  5649. # Set sane defaults for various variables
  5650. test -z "$AR" && AR=ar
  5651. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5652. test -z "$AS" && AS=as
  5653. test -z "$CC" && CC=cc
  5654. test -z "$LTCC" && LTCC=$CC
  5655. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5656. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5657. test -z "$LD" && LD=ld
  5658. test -z "$LN_S" && LN_S="ln -s"
  5659. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5660. test -z "$NM" && NM=nm
  5661. test -z "$SED" && SED=sed
  5662. test -z "$OBJDUMP" && OBJDUMP=objdump
  5663. test -z "$RANLIB" && RANLIB=:
  5664. test -z "$STRIP" && STRIP=:
  5665. test -z "$ac_objext" && ac_objext=o
  5666. # Determine commands to create old-style static archives.
  5667. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5668. old_postinstall_cmds='chmod 644 $oldlib'
  5669. old_postuninstall_cmds=
  5670. if test -n "$RANLIB"; then
  5671. case $host_os in
  5672. openbsd*)
  5673. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5674. ;;
  5675. *)
  5676. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5677. ;;
  5678. esac
  5679. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5680. fi
  5681. for cc_temp in $compiler""; do
  5682. case $cc_temp in
  5683. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5684. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5685. \-*) ;;
  5686. *) break;;
  5687. esac
  5688. done
  5689. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5690. # Only perform the check for file, if the check method requires it
  5691. case $deplibs_check_method in
  5692. file_magic*)
  5693. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5694. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5695. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5696. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5697. echo $ECHO_N "(cached) $ECHO_C" >&6
  5698. else
  5699. case $MAGIC_CMD in
  5700. [\\/*] | ?:[\\/]*)
  5701. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5702. ;;
  5703. *)
  5704. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5705. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5706. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5707. for ac_dir in $ac_dummy; do
  5708. IFS="$lt_save_ifs"
  5709. test -z "$ac_dir" && ac_dir=.
  5710. if test -f $ac_dir/${ac_tool_prefix}file; then
  5711. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5712. if test -n "$file_magic_test_file"; then
  5713. case $deplibs_check_method in
  5714. "file_magic "*)
  5715. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5716. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5717. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5718. $EGREP "$file_magic_regex" > /dev/null; then
  5719. :
  5720. else
  5721. cat <<EOF 1>&2
  5722. *** Warning: the command libtool uses to detect shared libraries,
  5723. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5724. *** The result is that libtool may fail to recognize shared libraries
  5725. *** as such. This will affect the creation of libtool libraries that
  5726. *** depend on shared libraries, but programs linked with such libtool
  5727. *** libraries will work regardless of this problem. Nevertheless, you
  5728. *** may want to report the problem to your system manager and/or to
  5729. *** [email protected]
  5730. EOF
  5731. fi ;;
  5732. esac
  5733. fi
  5734. break
  5735. fi
  5736. done
  5737. IFS="$lt_save_ifs"
  5738. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5739. ;;
  5740. esac
  5741. fi
  5742. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5743. if test -n "$MAGIC_CMD"; then
  5744. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5745. echo "${ECHO_T}$MAGIC_CMD" >&6
  5746. else
  5747. echo "$as_me:$LINENO: result: no" >&5
  5748. echo "${ECHO_T}no" >&6
  5749. fi
  5750. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5751. if test -n "$ac_tool_prefix"; then
  5752. echo "$as_me:$LINENO: checking for file" >&5
  5753. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5754. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5755. echo $ECHO_N "(cached) $ECHO_C" >&6
  5756. else
  5757. case $MAGIC_CMD in
  5758. [\\/*] | ?:[\\/]*)
  5759. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5760. ;;
  5761. *)
  5762. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5763. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5764. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5765. for ac_dir in $ac_dummy; do
  5766. IFS="$lt_save_ifs"
  5767. test -z "$ac_dir" && ac_dir=.
  5768. if test -f $ac_dir/file; then
  5769. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5770. if test -n "$file_magic_test_file"; then
  5771. case $deplibs_check_method in
  5772. "file_magic "*)
  5773. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5774. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5775. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5776. $EGREP "$file_magic_regex" > /dev/null; then
  5777. :
  5778. else
  5779. cat <<EOF 1>&2
  5780. *** Warning: the command libtool uses to detect shared libraries,
  5781. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5782. *** The result is that libtool may fail to recognize shared libraries
  5783. *** as such. This will affect the creation of libtool libraries that
  5784. *** depend on shared libraries, but programs linked with such libtool
  5785. *** libraries will work regardless of this problem. Nevertheless, you
  5786. *** may want to report the problem to your system manager and/or to
  5787. *** [email protected]
  5788. EOF
  5789. fi ;;
  5790. esac
  5791. fi
  5792. break
  5793. fi
  5794. done
  5795. IFS="$lt_save_ifs"
  5796. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5797. ;;
  5798. esac
  5799. fi
  5800. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5801. if test -n "$MAGIC_CMD"; then
  5802. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5803. echo "${ECHO_T}$MAGIC_CMD" >&6
  5804. else
  5805. echo "$as_me:$LINENO: result: no" >&5
  5806. echo "${ECHO_T}no" >&6
  5807. fi
  5808. else
  5809. MAGIC_CMD=:
  5810. fi
  5811. fi
  5812. fi
  5813. ;;
  5814. esac
  5815. enable_dlopen=no
  5816. enable_win32_dll=no
  5817. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5818. if test "${enable_libtool_lock+set}" = set; then
  5819. enableval="$enable_libtool_lock"
  5820. fi;
  5821. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5822. # Check whether --with-pic or --without-pic was given.
  5823. if test "${with_pic+set}" = set; then
  5824. withval="$with_pic"
  5825. pic_mode="$withval"
  5826. else
  5827. pic_mode=default
  5828. fi;
  5829. test -z "$pic_mode" && pic_mode=default
  5830. # Use C for the default configuration in the libtool script
  5831. tagname=
  5832. lt_save_CC="$CC"
  5833. ac_ext=c
  5834. ac_cpp='$CPP $CPPFLAGS'
  5835. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5836. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5837. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5838. # Source file extension for C test sources.
  5839. ac_ext=c
  5840. # Object file extension for compiled C test sources.
  5841. objext=o
  5842. objext=$objext
  5843. # Code to be used in simple compile tests
  5844. lt_simple_compile_test_code="int some_variable = 0;\n"
  5845. # Code to be used in simple link tests
  5846. lt_simple_link_test_code='int main(){return(0);}\n'
  5847. # If no C compiler was specified, use CC.
  5848. LTCC=${LTCC-"$CC"}
  5849. # If no C compiler flags were specified, use CFLAGS.
  5850. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5851. # Allow CC to be a program name with arguments.
  5852. compiler=$CC
  5853. # save warnings/boilerplate of simple test code
  5854. ac_outfile=conftest.$ac_objext
  5855. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5856. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5857. _lt_compiler_boilerplate=`cat conftest.err`
  5858. $rm conftest*
  5859. ac_outfile=conftest.$ac_objext
  5860. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5861. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5862. _lt_linker_boilerplate=`cat conftest.err`
  5863. $rm conftest*
  5864. lt_prog_compiler_no_builtin_flag=
  5865. if test "$GCC" = yes; then
  5866. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5867. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5868. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5869. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5870. echo $ECHO_N "(cached) $ECHO_C" >&6
  5871. else
  5872. lt_cv_prog_compiler_rtti_exceptions=no
  5873. ac_outfile=conftest.$ac_objext
  5874. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5875. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5876. # Insert the option either (1) after the last *FLAGS variable, or
  5877. # (2) before a word containing "conftest.", or (3) at the end.
  5878. # Note that $ac_compile itself does not contain backslashes and begins
  5879. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5880. # The option is referenced via a variable to avoid confusing sed.
  5881. lt_compile=`echo "$ac_compile" | $SED \
  5882. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5883. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5884. -e 's:$: $lt_compiler_flag:'`
  5885. (eval echo "\"\$as_me:6513: $lt_compile\"" >&5)
  5886. (eval "$lt_compile" 2>conftest.err)
  5887. ac_status=$?
  5888. cat conftest.err >&5
  5889. echo "$as_me:6517: \$? = $ac_status" >&5
  5890. if (exit $ac_status) && test -s "$ac_outfile"; then
  5891. # The compiler can only warn and ignore the option if not recognized
  5892. # So say no if there are warnings other than the usual output.
  5893. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5894. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5895. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5896. lt_cv_prog_compiler_rtti_exceptions=yes
  5897. fi
  5898. fi
  5899. $rm conftest*
  5900. fi
  5901. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5902. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5903. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5904. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5905. else
  5906. :
  5907. fi
  5908. fi
  5909. lt_prog_compiler_wl=
  5910. lt_prog_compiler_pic=
  5911. lt_prog_compiler_static=
  5912. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5913. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5914. if test "$GCC" = yes; then
  5915. lt_prog_compiler_wl='-Wl,'
  5916. lt_prog_compiler_static='-static'
  5917. case $host_os in
  5918. aix*)
  5919. # All AIX code is PIC.
  5920. if test "$host_cpu" = ia64; then
  5921. # AIX 5 now supports IA64 processor
  5922. lt_prog_compiler_static='-Bstatic'
  5923. fi
  5924. ;;
  5925. amigaos*)
  5926. # FIXME: we need at least 68020 code to build shared libraries, but
  5927. # adding the `-m68020' flag to GCC prevents building anything better,
  5928. # like `-m68040'.
  5929. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5930. ;;
  5931. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5932. # PIC is the default for these OSes.
  5933. ;;
  5934. mingw* | pw32* | os2*)
  5935. # This hack is so that the source file can tell whether it is being
  5936. # built for inclusion in a dll (and should export symbols for example).
  5937. lt_prog_compiler_pic='-DDLL_EXPORT'
  5938. ;;
  5939. darwin* | rhapsody*)
  5940. # PIC is the default on this platform
  5941. # Common symbols not allowed in MH_DYLIB files
  5942. lt_prog_compiler_pic='-fno-common'
  5943. ;;
  5944. interix3*)
  5945. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5946. # Instead, we relocate shared libraries at runtime.
  5947. ;;
  5948. msdosdjgpp*)
  5949. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5950. # on systems that don't support them.
  5951. lt_prog_compiler_can_build_shared=no
  5952. enable_shared=no
  5953. ;;
  5954. sysv4*MP*)
  5955. if test -d /usr/nec; then
  5956. lt_prog_compiler_pic=-Kconform_pic
  5957. fi
  5958. ;;
  5959. hpux*)
  5960. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5961. # not for PA HP-UX.
  5962. case $host_cpu in
  5963. hppa*64*|ia64*)
  5964. # +Z the default
  5965. ;;
  5966. *)
  5967. lt_prog_compiler_pic='-fPIC'
  5968. ;;
  5969. esac
  5970. ;;
  5971. *)
  5972. lt_prog_compiler_pic='-fPIC'
  5973. ;;
  5974. esac
  5975. else
  5976. # PORTME Check for flag to pass linker flags through the system compiler.
  5977. case $host_os in
  5978. aix*)
  5979. lt_prog_compiler_wl='-Wl,'
  5980. if test "$host_cpu" = ia64; then
  5981. # AIX 5 now supports IA64 processor
  5982. lt_prog_compiler_static='-Bstatic'
  5983. else
  5984. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5985. fi
  5986. ;;
  5987. darwin*)
  5988. # PIC is the default on this platform
  5989. # Common symbols not allowed in MH_DYLIB files
  5990. case $cc_basename in
  5991. xlc*)
  5992. lt_prog_compiler_pic='-qnocommon'
  5993. lt_prog_compiler_wl='-Wl,'
  5994. ;;
  5995. esac
  5996. ;;
  5997. mingw* | pw32* | os2*)
  5998. # This hack is so that the source file can tell whether it is being
  5999. # built for inclusion in a dll (and should export symbols for example).
  6000. lt_prog_compiler_pic='-DDLL_EXPORT'
  6001. ;;
  6002. hpux9* | hpux10* | hpux11*)
  6003. lt_prog_compiler_wl='-Wl,'
  6004. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6005. # not for PA HP-UX.
  6006. case $host_cpu in
  6007. hppa*64*|ia64*)
  6008. # +Z the default
  6009. ;;
  6010. *)
  6011. lt_prog_compiler_pic='+Z'
  6012. ;;
  6013. esac
  6014. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6015. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6016. ;;
  6017. irix5* | irix6* | nonstopux*)
  6018. lt_prog_compiler_wl='-Wl,'
  6019. # PIC (with -KPIC) is the default.
  6020. lt_prog_compiler_static='-non_shared'
  6021. ;;
  6022. newsos6)
  6023. lt_prog_compiler_pic='-KPIC'
  6024. lt_prog_compiler_static='-Bstatic'
  6025. ;;
  6026. linux*)
  6027. case $cc_basename in
  6028. icc* | ecc*)
  6029. lt_prog_compiler_wl='-Wl,'
  6030. lt_prog_compiler_pic='-KPIC'
  6031. lt_prog_compiler_static='-static'
  6032. ;;
  6033. pgcc* | pgf77* | pgf90* | pgf95*)
  6034. # Portland Group compilers (*not* the Pentium gcc compiler,
  6035. # which looks to be a dead project)
  6036. lt_prog_compiler_wl='-Wl,'
  6037. lt_prog_compiler_pic='-fpic'
  6038. lt_prog_compiler_static='-Bstatic'
  6039. ;;
  6040. ccc*)
  6041. lt_prog_compiler_wl='-Wl,'
  6042. # All Alpha code is PIC.
  6043. lt_prog_compiler_static='-non_shared'
  6044. ;;
  6045. esac
  6046. ;;
  6047. osf3* | osf4* | osf5*)
  6048. lt_prog_compiler_wl='-Wl,'
  6049. # All OSF/1 code is PIC.
  6050. lt_prog_compiler_static='-non_shared'
  6051. ;;
  6052. solaris*)
  6053. lt_prog_compiler_pic='-KPIC'
  6054. lt_prog_compiler_static='-Bstatic'
  6055. case $cc_basename in
  6056. f77* | f90* | f95*)
  6057. lt_prog_compiler_wl='-Qoption ld ';;
  6058. *)
  6059. lt_prog_compiler_wl='-Wl,';;
  6060. esac
  6061. ;;
  6062. sunos4*)
  6063. lt_prog_compiler_wl='-Qoption ld '
  6064. lt_prog_compiler_pic='-PIC'
  6065. lt_prog_compiler_static='-Bstatic'
  6066. ;;
  6067. sysv4 | sysv4.2uw2* | sysv4.3*)
  6068. lt_prog_compiler_wl='-Wl,'
  6069. lt_prog_compiler_pic='-KPIC'
  6070. lt_prog_compiler_static='-Bstatic'
  6071. ;;
  6072. sysv4*MP*)
  6073. if test -d /usr/nec ;then
  6074. lt_prog_compiler_pic='-Kconform_pic'
  6075. lt_prog_compiler_static='-Bstatic'
  6076. fi
  6077. ;;
  6078. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6079. lt_prog_compiler_wl='-Wl,'
  6080. lt_prog_compiler_pic='-KPIC'
  6081. lt_prog_compiler_static='-Bstatic'
  6082. ;;
  6083. unicos*)
  6084. lt_prog_compiler_wl='-Wl,'
  6085. lt_prog_compiler_can_build_shared=no
  6086. ;;
  6087. uts4*)
  6088. lt_prog_compiler_pic='-pic'
  6089. lt_prog_compiler_static='-Bstatic'
  6090. ;;
  6091. *)
  6092. lt_prog_compiler_can_build_shared=no
  6093. ;;
  6094. esac
  6095. fi
  6096. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6097. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6098. #
  6099. # Check to make sure the PIC flag actually works.
  6100. #
  6101. if test -n "$lt_prog_compiler_pic"; then
  6102. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6103. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6104. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6105. echo $ECHO_N "(cached) $ECHO_C" >&6
  6106. else
  6107. lt_prog_compiler_pic_works=no
  6108. ac_outfile=conftest.$ac_objext
  6109. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6110. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6111. # Insert the option either (1) after the last *FLAGS variable, or
  6112. # (2) before a word containing "conftest.", or (3) at the end.
  6113. # Note that $ac_compile itself does not contain backslashes and begins
  6114. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6115. # The option is referenced via a variable to avoid confusing sed.
  6116. lt_compile=`echo "$ac_compile" | $SED \
  6117. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6118. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6119. -e 's:$: $lt_compiler_flag:'`
  6120. (eval echo "\"\$as_me:6781: $lt_compile\"" >&5)
  6121. (eval "$lt_compile" 2>conftest.err)
  6122. ac_status=$?
  6123. cat conftest.err >&5
  6124. echo "$as_me:6785: \$? = $ac_status" >&5
  6125. if (exit $ac_status) && test -s "$ac_outfile"; then
  6126. # The compiler can only warn and ignore the option if not recognized
  6127. # So say no if there are warnings other than the usual output.
  6128. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6129. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6130. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6131. lt_prog_compiler_pic_works=yes
  6132. fi
  6133. fi
  6134. $rm conftest*
  6135. fi
  6136. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6137. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6138. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6139. case $lt_prog_compiler_pic in
  6140. "" | " "*) ;;
  6141. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6142. esac
  6143. else
  6144. lt_prog_compiler_pic=
  6145. lt_prog_compiler_can_build_shared=no
  6146. fi
  6147. fi
  6148. case $host_os in
  6149. # For platforms which do not support PIC, -DPIC is meaningless:
  6150. *djgpp*)
  6151. lt_prog_compiler_pic=
  6152. ;;
  6153. *)
  6154. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6155. ;;
  6156. esac
  6157. #
  6158. # Check to make sure the static flag actually works.
  6159. #
  6160. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6161. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6162. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6163. if test "${lt_prog_compiler_static_works+set}" = set; then
  6164. echo $ECHO_N "(cached) $ECHO_C" >&6
  6165. else
  6166. lt_prog_compiler_static_works=no
  6167. save_LDFLAGS="$LDFLAGS"
  6168. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6169. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6170. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6171. # The linker can only warn and ignore the option if not recognized
  6172. # So say no if there are warnings
  6173. if test -s conftest.err; then
  6174. # Append any errors to the config.log.
  6175. cat conftest.err 1>&5
  6176. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6177. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6178. if diff conftest.exp conftest.er2 >/dev/null; then
  6179. lt_prog_compiler_static_works=yes
  6180. fi
  6181. else
  6182. lt_prog_compiler_static_works=yes
  6183. fi
  6184. fi
  6185. $rm conftest*
  6186. LDFLAGS="$save_LDFLAGS"
  6187. fi
  6188. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6189. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6190. if test x"$lt_prog_compiler_static_works" = xyes; then
  6191. :
  6192. else
  6193. lt_prog_compiler_static=
  6194. fi
  6195. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6196. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6197. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6198. echo $ECHO_N "(cached) $ECHO_C" >&6
  6199. else
  6200. lt_cv_prog_compiler_c_o=no
  6201. $rm -r conftest 2>/dev/null
  6202. mkdir conftest
  6203. cd conftest
  6204. mkdir out
  6205. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6206. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6207. # Insert the option either (1) after the last *FLAGS variable, or
  6208. # (2) before a word containing "conftest.", or (3) at the end.
  6209. # Note that $ac_compile itself does not contain backslashes and begins
  6210. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6211. lt_compile=`echo "$ac_compile" | $SED \
  6212. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6213. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6214. -e 's:$: $lt_compiler_flag:'`
  6215. (eval echo "\"\$as_me:6885: $lt_compile\"" >&5)
  6216. (eval "$lt_compile" 2>out/conftest.err)
  6217. ac_status=$?
  6218. cat out/conftest.err >&5
  6219. echo "$as_me:6889: \$? = $ac_status" >&5
  6220. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6221. then
  6222. # The compiler can only warn and ignore the option if not recognized
  6223. # So say no if there are warnings
  6224. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6225. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6226. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6227. lt_cv_prog_compiler_c_o=yes
  6228. fi
  6229. fi
  6230. chmod u+w . 2>&5
  6231. $rm conftest*
  6232. # SGI C++ compiler will create directory out/ii_files/ for
  6233. # template instantiation
  6234. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6235. $rm out/* && rmdir out
  6236. cd ..
  6237. rmdir conftest
  6238. $rm conftest*
  6239. fi
  6240. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6241. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6242. hard_links="nottested"
  6243. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6244. # do not overwrite the value of need_locks provided by the user
  6245. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6246. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6247. hard_links=yes
  6248. $rm conftest*
  6249. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6250. touch conftest.a
  6251. ln conftest.a conftest.b 2>&5 || hard_links=no
  6252. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6253. echo "$as_me:$LINENO: result: $hard_links" >&5
  6254. echo "${ECHO_T}$hard_links" >&6
  6255. if test "$hard_links" = no; then
  6256. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6257. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6258. need_locks=warn
  6259. fi
  6260. else
  6261. need_locks=no
  6262. fi
  6263. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6264. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6265. runpath_var=
  6266. allow_undefined_flag=
  6267. enable_shared_with_static_runtimes=no
  6268. archive_cmds=
  6269. archive_expsym_cmds=
  6270. old_archive_From_new_cmds=
  6271. old_archive_from_expsyms_cmds=
  6272. export_dynamic_flag_spec=
  6273. whole_archive_flag_spec=
  6274. thread_safe_flag_spec=
  6275. hardcode_libdir_flag_spec=
  6276. hardcode_libdir_flag_spec_ld=
  6277. hardcode_libdir_separator=
  6278. hardcode_direct=no
  6279. hardcode_minus_L=no
  6280. hardcode_shlibpath_var=unsupported
  6281. link_all_deplibs=unknown
  6282. hardcode_automatic=no
  6283. module_cmds=
  6284. module_expsym_cmds=
  6285. always_export_symbols=no
  6286. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6287. # include_expsyms should be a list of space-separated symbols to be *always*
  6288. # included in the symbol list
  6289. include_expsyms=
  6290. # exclude_expsyms can be an extended regexp of symbols to exclude
  6291. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6292. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6293. # as well as any symbol that contains `d'.
  6294. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6295. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6296. # platforms (ab)use it in PIC code, but their linkers get confused if
  6297. # the symbol is explicitly referenced. Since portable code cannot
  6298. # rely on this symbol name, it's probably fine to never include it in
  6299. # preloaded symbol tables.
  6300. extract_expsyms_cmds=
  6301. # Just being paranoid about ensuring that cc_basename is set.
  6302. for cc_temp in $compiler""; do
  6303. case $cc_temp in
  6304. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6305. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6306. \-*) ;;
  6307. *) break;;
  6308. esac
  6309. done
  6310. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6311. case $host_os in
  6312. cygwin* | mingw* | pw32*)
  6313. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6314. # When not using gcc, we currently assume that we are using
  6315. # Microsoft Visual C++.
  6316. if test "$GCC" != yes; then
  6317. with_gnu_ld=no
  6318. fi
  6319. ;;
  6320. interix*)
  6321. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6322. with_gnu_ld=yes
  6323. ;;
  6324. openbsd*)
  6325. with_gnu_ld=no
  6326. ;;
  6327. esac
  6328. ld_shlibs=yes
  6329. if test "$with_gnu_ld" = yes; then
  6330. # If archive_cmds runs LD, not CC, wlarc should be empty
  6331. wlarc='${wl}'
  6332. # Set some defaults for GNU ld with shared library support. These
  6333. # are reset later if shared libraries are not supported. Putting them
  6334. # here allows them to be overridden if necessary.
  6335. runpath_var=LD_RUN_PATH
  6336. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6337. export_dynamic_flag_spec='${wl}--export-dynamic'
  6338. # ancient GNU ld didn't support --whole-archive et. al.
  6339. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6340. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6341. else
  6342. whole_archive_flag_spec=
  6343. fi
  6344. supports_anon_versioning=no
  6345. case `$LD -v 2>/dev/null` in
  6346. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6347. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6348. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6349. *\ 2.11.*) ;; # other 2.11 versions
  6350. *) supports_anon_versioning=yes ;;
  6351. esac
  6352. # See if GNU ld supports shared libraries.
  6353. case $host_os in
  6354. aix3* | aix4* | aix5*)
  6355. # On AIX/PPC, the GNU linker is very broken
  6356. if test "$host_cpu" != ia64; then
  6357. ld_shlibs=no
  6358. cat <<EOF 1>&2
  6359. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6360. *** to be unable to reliably create shared libraries on AIX.
  6361. *** Therefore, libtool is disabling shared libraries support. If you
  6362. *** really care for shared libraries, you may want to modify your PATH
  6363. *** so that a non-GNU linker is found, and then restart.
  6364. EOF
  6365. fi
  6366. ;;
  6367. amigaos*)
  6368. 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)'
  6369. hardcode_libdir_flag_spec='-L$libdir'
  6370. hardcode_minus_L=yes
  6371. # Samuel A. Falvo II <[email protected]> reports
  6372. # that the semantics of dynamic libraries on AmigaOS, at least up
  6373. # to version 4, is to share data among multiple programs linked
  6374. # with the same dynamic library. Since this doesn't match the
  6375. # behavior of shared libraries on other platforms, we can't use
  6376. # them.
  6377. ld_shlibs=no
  6378. ;;
  6379. beos*)
  6380. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6381. allow_undefined_flag=unsupported
  6382. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6383. # support --undefined. This deserves some investigation. FIXME
  6384. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6385. else
  6386. ld_shlibs=no
  6387. fi
  6388. ;;
  6389. cygwin* | mingw* | pw32*)
  6390. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6391. # as there is no search path for DLLs.
  6392. hardcode_libdir_flag_spec='-L$libdir'
  6393. allow_undefined_flag=unsupported
  6394. always_export_symbols=no
  6395. enable_shared_with_static_runtimes=yes
  6396. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6397. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6398. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6399. # If the export-symbols file already is a .def file (1st line
  6400. # is EXPORTS), use it as is; otherwise, prepend...
  6401. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6402. cp $export_symbols $output_objdir/$soname.def;
  6403. else
  6404. echo EXPORTS > $output_objdir/$soname.def;
  6405. cat $export_symbols >> $output_objdir/$soname.def;
  6406. fi~
  6407. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6408. else
  6409. ld_shlibs=no
  6410. fi
  6411. ;;
  6412. interix3*)
  6413. hardcode_direct=no
  6414. hardcode_shlibpath_var=no
  6415. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6416. export_dynamic_flag_spec='${wl}-E'
  6417. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6418. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6419. # default) and relocated if they conflict, which is a slow very memory
  6420. # consuming and fragmenting process. To avoid this, we pick a random,
  6421. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6422. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6423. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6424. 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'
  6425. ;;
  6426. linux*)
  6427. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6428. tmp_addflag=
  6429. case $cc_basename,$host_cpu in
  6430. pgcc*) # Portland Group C compiler
  6431. 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'
  6432. tmp_addflag=' $pic_flag'
  6433. ;;
  6434. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6435. 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'
  6436. tmp_addflag=' $pic_flag -Mnomain' ;;
  6437. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6438. tmp_addflag=' -i_dynamic' ;;
  6439. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6440. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6441. ifc* | ifort*) # Intel Fortran compiler
  6442. tmp_addflag=' -nofor_main' ;;
  6443. esac
  6444. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6445. if test $supports_anon_versioning = yes; then
  6446. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6447. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6448. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6449. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6450. fi
  6451. else
  6452. ld_shlibs=no
  6453. fi
  6454. ;;
  6455. netbsd*)
  6456. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6457. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6458. wlarc=
  6459. else
  6460. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6461. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6462. fi
  6463. ;;
  6464. solaris*)
  6465. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6466. ld_shlibs=no
  6467. cat <<EOF 1>&2
  6468. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6469. *** create shared libraries on Solaris systems. Therefore, libtool
  6470. *** is disabling shared libraries support. We urge you to upgrade GNU
  6471. *** binutils to release 2.9.1 or newer. Another option is to modify
  6472. *** your PATH or compiler configuration so that the native linker is
  6473. *** used, and then restart.
  6474. EOF
  6475. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6476. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6477. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6478. else
  6479. ld_shlibs=no
  6480. fi
  6481. ;;
  6482. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6483. case `$LD -v 2>&1` in
  6484. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6485. ld_shlibs=no
  6486. cat <<_LT_EOF 1>&2
  6487. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6488. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6489. *** is disabling shared libraries support. We urge you to upgrade GNU
  6490. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6491. *** your PATH or compiler configuration so that the native linker is
  6492. *** used, and then restart.
  6493. _LT_EOF
  6494. ;;
  6495. *)
  6496. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6497. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6498. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6499. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6500. else
  6501. ld_shlibs=no
  6502. fi
  6503. ;;
  6504. esac
  6505. ;;
  6506. sunos4*)
  6507. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6508. wlarc=
  6509. hardcode_direct=yes
  6510. hardcode_shlibpath_var=no
  6511. ;;
  6512. *)
  6513. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6514. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6515. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6516. else
  6517. ld_shlibs=no
  6518. fi
  6519. ;;
  6520. esac
  6521. if test "$ld_shlibs" = no; then
  6522. runpath_var=
  6523. hardcode_libdir_flag_spec=
  6524. export_dynamic_flag_spec=
  6525. whole_archive_flag_spec=
  6526. fi
  6527. else
  6528. # PORTME fill in a description of your system's linker (not GNU ld)
  6529. case $host_os in
  6530. aix3*)
  6531. allow_undefined_flag=unsupported
  6532. always_export_symbols=yes
  6533. 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'
  6534. # Note: this linker hardcodes the directories in LIBPATH if there
  6535. # are no directories specified by -L.
  6536. hardcode_minus_L=yes
  6537. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6538. # Neither direct hardcoding nor static linking is supported with a
  6539. # broken collect2.
  6540. hardcode_direct=unsupported
  6541. fi
  6542. ;;
  6543. aix4* | aix5*)
  6544. if test "$host_cpu" = ia64; then
  6545. # On IA64, the linker does run time linking by default, so we don't
  6546. # have to do anything special.
  6547. aix_use_runtimelinking=no
  6548. exp_sym_flag='-Bexport'
  6549. no_entry_flag=""
  6550. else
  6551. # If we're using GNU nm, then we don't want the "-C" option.
  6552. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6553. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6554. 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'
  6555. else
  6556. 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'
  6557. fi
  6558. aix_use_runtimelinking=no
  6559. # Test if we are trying to use run time linking or normal
  6560. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6561. # need to do runtime linking.
  6562. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6563. for ld_flag in $LDFLAGS; do
  6564. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6565. aix_use_runtimelinking=yes
  6566. break
  6567. fi
  6568. done
  6569. ;;
  6570. esac
  6571. exp_sym_flag='-bexport'
  6572. no_entry_flag='-bnoentry'
  6573. fi
  6574. # When large executables or shared objects are built, AIX ld can
  6575. # have problems creating the table of contents. If linking a library
  6576. # or program results in "error TOC overflow" add -mminimal-toc to
  6577. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6578. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6579. archive_cmds=''
  6580. hardcode_direct=yes
  6581. hardcode_libdir_separator=':'
  6582. link_all_deplibs=yes
  6583. if test "$GCC" = yes; then
  6584. case $host_os in aix4.[012]|aix4.[012].*)
  6585. # We only want to do this on AIX 4.2 and lower, the check
  6586. # below for broken collect2 doesn't work under 4.3+
  6587. collect2name=`${CC} -print-prog-name=collect2`
  6588. if test -f "$collect2name" && \
  6589. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6590. then
  6591. # We have reworked collect2
  6592. hardcode_direct=yes
  6593. else
  6594. # We have old collect2
  6595. hardcode_direct=unsupported
  6596. # It fails to find uninstalled libraries when the uninstalled
  6597. # path is not listed in the libpath. Setting hardcode_minus_L
  6598. # to unsupported forces relinking
  6599. hardcode_minus_L=yes
  6600. hardcode_libdir_flag_spec='-L$libdir'
  6601. hardcode_libdir_separator=
  6602. fi
  6603. ;;
  6604. esac
  6605. shared_flag='-shared'
  6606. if test "$aix_use_runtimelinking" = yes; then
  6607. shared_flag="$shared_flag "'${wl}-G'
  6608. fi
  6609. else
  6610. # not using gcc
  6611. if test "$host_cpu" = ia64; then
  6612. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6613. # chokes on -Wl,-G. The following line is correct:
  6614. shared_flag='-G'
  6615. else
  6616. if test "$aix_use_runtimelinking" = yes; then
  6617. shared_flag='${wl}-G'
  6618. else
  6619. shared_flag='${wl}-bM:SRE'
  6620. fi
  6621. fi
  6622. fi
  6623. # It seems that -bexpall does not export symbols beginning with
  6624. # underscore (_), so it is better to generate a list of symbols to export.
  6625. always_export_symbols=yes
  6626. if test "$aix_use_runtimelinking" = yes; then
  6627. # Warning - without using the other runtime loading flags (-brtl),
  6628. # -berok will link without error, but may produce a broken library.
  6629. allow_undefined_flag='-berok'
  6630. # Determine the default libpath from the value encoded in an empty executable.
  6631. cat >conftest.$ac_ext <<_ACEOF
  6632. /* confdefs.h. */
  6633. _ACEOF
  6634. cat confdefs.h >>conftest.$ac_ext
  6635. cat >>conftest.$ac_ext <<_ACEOF
  6636. /* end confdefs.h. */
  6637. int
  6638. main ()
  6639. {
  6640. ;
  6641. return 0;
  6642. }
  6643. _ACEOF
  6644. rm -f conftest.$ac_objext conftest$ac_exeext
  6645. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6646. (eval $ac_link) 2>conftest.er1
  6647. ac_status=$?
  6648. grep -v '^ *+' conftest.er1 >conftest.err
  6649. rm -f conftest.er1
  6650. cat conftest.err >&5
  6651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6652. (exit $ac_status); } &&
  6653. { ac_try='test -z "$ac_c_werror_flag"
  6654. || test ! -s conftest.err'
  6655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6656. (eval $ac_try) 2>&5
  6657. ac_status=$?
  6658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6659. (exit $ac_status); }; } &&
  6660. { ac_try='test -s conftest$ac_exeext'
  6661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6662. (eval $ac_try) 2>&5
  6663. ac_status=$?
  6664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6665. (exit $ac_status); }; }; then
  6666. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6667. }'`
  6668. # Check for a 64-bit object if we didn't find anything.
  6669. 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; }
  6670. }'`; fi
  6671. else
  6672. echo "$as_me: failed program was:" >&5
  6673. sed 's/^/| /' conftest.$ac_ext >&5
  6674. fi
  6675. rm -f conftest.err conftest.$ac_objext \
  6676. conftest$ac_exeext conftest.$ac_ext
  6677. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6678. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6679. 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"
  6680. else
  6681. if test "$host_cpu" = ia64; then
  6682. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6683. allow_undefined_flag="-z nodefs"
  6684. 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"
  6685. else
  6686. # Determine the default libpath from the value encoded in an empty executable.
  6687. cat >conftest.$ac_ext <<_ACEOF
  6688. /* confdefs.h. */
  6689. _ACEOF
  6690. cat confdefs.h >>conftest.$ac_ext
  6691. cat >>conftest.$ac_ext <<_ACEOF
  6692. /* end confdefs.h. */
  6693. int
  6694. main ()
  6695. {
  6696. ;
  6697. return 0;
  6698. }
  6699. _ACEOF
  6700. rm -f conftest.$ac_objext conftest$ac_exeext
  6701. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6702. (eval $ac_link) 2>conftest.er1
  6703. ac_status=$?
  6704. grep -v '^ *+' conftest.er1 >conftest.err
  6705. rm -f conftest.er1
  6706. cat conftest.err >&5
  6707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6708. (exit $ac_status); } &&
  6709. { ac_try='test -z "$ac_c_werror_flag"
  6710. || test ! -s conftest.err'
  6711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6712. (eval $ac_try) 2>&5
  6713. ac_status=$?
  6714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6715. (exit $ac_status); }; } &&
  6716. { ac_try='test -s conftest$ac_exeext'
  6717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6718. (eval $ac_try) 2>&5
  6719. ac_status=$?
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. (exit $ac_status); }; }; then
  6722. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6723. }'`
  6724. # Check for a 64-bit object if we didn't find anything.
  6725. 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; }
  6726. }'`; fi
  6727. else
  6728. echo "$as_me: failed program was:" >&5
  6729. sed 's/^/| /' conftest.$ac_ext >&5
  6730. fi
  6731. rm -f conftest.err conftest.$ac_objext \
  6732. conftest$ac_exeext conftest.$ac_ext
  6733. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6734. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6735. # Warning - without using the other run time loading flags,
  6736. # -berok will link without error, but may produce a broken library.
  6737. no_undefined_flag=' ${wl}-bernotok'
  6738. allow_undefined_flag=' ${wl}-berok'
  6739. # Exported symbols can be pulled into shared objects from archives
  6740. whole_archive_flag_spec='$convenience'
  6741. archive_cmds_need_lc=yes
  6742. # This is similar to how AIX traditionally builds its shared libraries.
  6743. 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'
  6744. fi
  6745. fi
  6746. ;;
  6747. amigaos*)
  6748. 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)'
  6749. hardcode_libdir_flag_spec='-L$libdir'
  6750. hardcode_minus_L=yes
  6751. # see comment about different semantics on the GNU ld section
  6752. ld_shlibs=no
  6753. ;;
  6754. bsdi[45]*)
  6755. export_dynamic_flag_spec=-rdynamic
  6756. ;;
  6757. cygwin* | mingw* | pw32*)
  6758. # When not using gcc, we currently assume that we are using
  6759. # Microsoft Visual C++.
  6760. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6761. # no search path for DLLs.
  6762. hardcode_libdir_flag_spec=' '
  6763. allow_undefined_flag=unsupported
  6764. # Tell ltmain to make .lib files, not .a files.
  6765. libext=lib
  6766. # Tell ltmain to make .dll files, not .so files.
  6767. shrext_cmds=".dll"
  6768. # FIXME: Setting linknames here is a bad hack.
  6769. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6770. # The linker will automatically build a .lib file if we build a DLL.
  6771. old_archive_From_new_cmds='true'
  6772. # FIXME: Should let the user specify the lib program.
  6773. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6774. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6775. enable_shared_with_static_runtimes=yes
  6776. ;;
  6777. darwin* | rhapsody*)
  6778. case $host_os in
  6779. rhapsody* | darwin1.[012])
  6780. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6781. ;;
  6782. *) # Darwin 1.3 on
  6783. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6784. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6785. else
  6786. case ${MACOSX_DEPLOYMENT_TARGET} in
  6787. 10.[012])
  6788. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6789. ;;
  6790. 10.*)
  6791. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6792. ;;
  6793. esac
  6794. fi
  6795. ;;
  6796. esac
  6797. archive_cmds_need_lc=no
  6798. hardcode_direct=no
  6799. hardcode_automatic=yes
  6800. hardcode_shlibpath_var=unsupported
  6801. whole_archive_flag_spec=''
  6802. link_all_deplibs=yes
  6803. if test "$GCC" = yes ; then
  6804. output_verbose_link_cmd='echo'
  6805. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6806. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6807. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6808. 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}'
  6809. 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}'
  6810. else
  6811. case $cc_basename in
  6812. xlc*)
  6813. output_verbose_link_cmd='echo'
  6814. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6815. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6816. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6817. 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}'
  6818. 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}'
  6819. ;;
  6820. *)
  6821. ld_shlibs=no
  6822. ;;
  6823. esac
  6824. fi
  6825. ;;
  6826. dgux*)
  6827. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6828. hardcode_libdir_flag_spec='-L$libdir'
  6829. hardcode_shlibpath_var=no
  6830. ;;
  6831. freebsd1*)
  6832. ld_shlibs=no
  6833. ;;
  6834. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6835. # support. Future versions do this automatically, but an explicit c++rt0.o
  6836. # does not break anything, and helps significantly (at the cost of a little
  6837. # extra space).
  6838. freebsd2.2*)
  6839. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6840. hardcode_libdir_flag_spec='-R$libdir'
  6841. hardcode_direct=yes
  6842. hardcode_shlibpath_var=no
  6843. ;;
  6844. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6845. freebsd2*)
  6846. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6847. hardcode_direct=yes
  6848. hardcode_minus_L=yes
  6849. hardcode_shlibpath_var=no
  6850. ;;
  6851. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6852. freebsd* | kfreebsd*-gnu | dragonfly*)
  6853. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6854. hardcode_libdir_flag_spec='-R$libdir'
  6855. hardcode_direct=yes
  6856. hardcode_shlibpath_var=no
  6857. ;;
  6858. hpux9*)
  6859. if test "$GCC" = yes; then
  6860. 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'
  6861. else
  6862. 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'
  6863. fi
  6864. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6865. hardcode_libdir_separator=:
  6866. hardcode_direct=yes
  6867. # hardcode_minus_L: Not really in the search PATH,
  6868. # but as the default location of the library.
  6869. hardcode_minus_L=yes
  6870. export_dynamic_flag_spec='${wl}-E'
  6871. ;;
  6872. hpux10*)
  6873. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6874. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6875. else
  6876. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6877. fi
  6878. if test "$with_gnu_ld" = no; then
  6879. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6880. hardcode_libdir_separator=:
  6881. hardcode_direct=yes
  6882. export_dynamic_flag_spec='${wl}-E'
  6883. # hardcode_minus_L: Not really in the search PATH,
  6884. # but as the default location of the library.
  6885. hardcode_minus_L=yes
  6886. fi
  6887. ;;
  6888. hpux11*)
  6889. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6890. case $host_cpu in
  6891. hppa*64*)
  6892. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6893. ;;
  6894. ia64*)
  6895. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6896. ;;
  6897. *)
  6898. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6899. ;;
  6900. esac
  6901. else
  6902. case $host_cpu in
  6903. hppa*64*)
  6904. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6905. ;;
  6906. ia64*)
  6907. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6908. ;;
  6909. *)
  6910. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6911. ;;
  6912. esac
  6913. fi
  6914. if test "$with_gnu_ld" = no; then
  6915. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6916. hardcode_libdir_separator=:
  6917. case $host_cpu in
  6918. hppa*64*|ia64*)
  6919. hardcode_libdir_flag_spec_ld='+b $libdir'
  6920. hardcode_direct=no
  6921. hardcode_shlibpath_var=no
  6922. ;;
  6923. *)
  6924. hardcode_direct=yes
  6925. export_dynamic_flag_spec='${wl}-E'
  6926. # hardcode_minus_L: Not really in the search PATH,
  6927. # but as the default location of the library.
  6928. hardcode_minus_L=yes
  6929. ;;
  6930. esac
  6931. fi
  6932. ;;
  6933. irix5* | irix6* | nonstopux*)
  6934. if test "$GCC" = yes; then
  6935. 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'
  6936. else
  6937. 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'
  6938. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6939. fi
  6940. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6941. hardcode_libdir_separator=:
  6942. link_all_deplibs=yes
  6943. ;;
  6944. netbsd*)
  6945. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6946. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6947. else
  6948. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6949. fi
  6950. hardcode_libdir_flag_spec='-R$libdir'
  6951. hardcode_direct=yes
  6952. hardcode_shlibpath_var=no
  6953. ;;
  6954. newsos6)
  6955. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6956. hardcode_direct=yes
  6957. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6958. hardcode_libdir_separator=:
  6959. hardcode_shlibpath_var=no
  6960. ;;
  6961. openbsd*)
  6962. hardcode_direct=yes
  6963. hardcode_shlibpath_var=no
  6964. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6965. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6966. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6967. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6968. export_dynamic_flag_spec='${wl}-E'
  6969. else
  6970. case $host_os in
  6971. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6972. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6973. hardcode_libdir_flag_spec='-R$libdir'
  6974. ;;
  6975. *)
  6976. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6977. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6978. ;;
  6979. esac
  6980. fi
  6981. ;;
  6982. os2*)
  6983. hardcode_libdir_flag_spec='-L$libdir'
  6984. hardcode_minus_L=yes
  6985. allow_undefined_flag=unsupported
  6986. 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'
  6987. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6988. ;;
  6989. osf3*)
  6990. if test "$GCC" = yes; then
  6991. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6992. 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'
  6993. else
  6994. allow_undefined_flag=' -expect_unresolved \*'
  6995. 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'
  6996. fi
  6997. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6998. hardcode_libdir_separator=:
  6999. ;;
  7000. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7001. if test "$GCC" = yes; then
  7002. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7003. 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'
  7004. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7005. else
  7006. allow_undefined_flag=' -expect_unresolved \*'
  7007. 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'
  7008. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7009. $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'
  7010. # Both c and cxx compiler support -rpath directly
  7011. hardcode_libdir_flag_spec='-rpath $libdir'
  7012. fi
  7013. hardcode_libdir_separator=:
  7014. ;;
  7015. solaris*)
  7016. no_undefined_flag=' -z text'
  7017. if test "$GCC" = yes; then
  7018. wlarc='${wl}'
  7019. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7020. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7021. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7022. else
  7023. wlarc=''
  7024. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7025. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7026. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7027. fi
  7028. hardcode_libdir_flag_spec='-R$libdir'
  7029. hardcode_shlibpath_var=no
  7030. case $host_os in
  7031. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7032. *)
  7033. # The compiler driver will combine linker options so we
  7034. # cannot just pass the convience library names through
  7035. # without $wl, iff we do not link with $LD.
  7036. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7037. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7038. case $wlarc in
  7039. '')
  7040. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7041. *)
  7042. 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' ;;
  7043. esac ;;
  7044. esac
  7045. link_all_deplibs=yes
  7046. ;;
  7047. sunos4*)
  7048. if test "x$host_vendor" = xsequent; then
  7049. # Use $CC to link under sequent, because it throws in some extra .o
  7050. # files that make .init and .fini sections work.
  7051. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7052. else
  7053. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7054. fi
  7055. hardcode_libdir_flag_spec='-L$libdir'
  7056. hardcode_direct=yes
  7057. hardcode_minus_L=yes
  7058. hardcode_shlibpath_var=no
  7059. ;;
  7060. sysv4)
  7061. case $host_vendor in
  7062. sni)
  7063. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7064. hardcode_direct=yes # is this really true???
  7065. ;;
  7066. siemens)
  7067. ## LD is ld it makes a PLAMLIB
  7068. ## CC just makes a GrossModule.
  7069. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7070. reload_cmds='$CC -r -o $output$reload_objs'
  7071. hardcode_direct=no
  7072. ;;
  7073. motorola)
  7074. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7075. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7076. ;;
  7077. esac
  7078. runpath_var='LD_RUN_PATH'
  7079. hardcode_shlibpath_var=no
  7080. ;;
  7081. sysv4.3*)
  7082. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7083. hardcode_shlibpath_var=no
  7084. export_dynamic_flag_spec='-Bexport'
  7085. ;;
  7086. sysv4*MP*)
  7087. if test -d /usr/nec; then
  7088. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7089. hardcode_shlibpath_var=no
  7090. runpath_var=LD_RUN_PATH
  7091. hardcode_runpath_var=yes
  7092. ld_shlibs=yes
  7093. fi
  7094. ;;
  7095. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7096. no_undefined_flag='${wl}-z,text'
  7097. archive_cmds_need_lc=no
  7098. hardcode_shlibpath_var=no
  7099. runpath_var='LD_RUN_PATH'
  7100. if test "$GCC" = yes; then
  7101. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7102. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7103. else
  7104. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7105. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7106. fi
  7107. ;;
  7108. sysv5* | sco3.2v5* | sco5v6*)
  7109. # Note: We can NOT use -z defs as we might desire, because we do not
  7110. # link with -lc, and that would cause any symbols used from libc to
  7111. # always be unresolved, which means just about no library would
  7112. # ever link correctly. If we're not using GNU ld we use -z text
  7113. # though, which does catch some bad symbols but isn't as heavy-handed
  7114. # as -z defs.
  7115. no_undefined_flag='${wl}-z,text'
  7116. allow_undefined_flag='${wl}-z,nodefs'
  7117. archive_cmds_need_lc=no
  7118. hardcode_shlibpath_var=no
  7119. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7120. hardcode_libdir_separator=':'
  7121. link_all_deplibs=yes
  7122. export_dynamic_flag_spec='${wl}-Bexport'
  7123. runpath_var='LD_RUN_PATH'
  7124. if test "$GCC" = yes; then
  7125. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7126. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7127. else
  7128. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7129. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7130. fi
  7131. ;;
  7132. uts4*)
  7133. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7134. hardcode_libdir_flag_spec='-L$libdir'
  7135. hardcode_shlibpath_var=no
  7136. ;;
  7137. *)
  7138. ld_shlibs=no
  7139. ;;
  7140. esac
  7141. fi
  7142. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7143. echo "${ECHO_T}$ld_shlibs" >&6
  7144. test "$ld_shlibs" = no && can_build_shared=no
  7145. #
  7146. # Do we need to explicitly link libc?
  7147. #
  7148. case "x$archive_cmds_need_lc" in
  7149. x|xyes)
  7150. # Assume -lc should be added
  7151. archive_cmds_need_lc=yes
  7152. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7153. case $archive_cmds in
  7154. *'~'*)
  7155. # FIXME: we may have to deal with multi-command sequences.
  7156. ;;
  7157. '$CC '*)
  7158. # Test whether the compiler implicitly links with -lc since on some
  7159. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7160. # to ld, don't add -lc before -lgcc.
  7161. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7162. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7163. $rm conftest*
  7164. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7165. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7166. (eval $ac_compile) 2>&5
  7167. ac_status=$?
  7168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7169. (exit $ac_status); } 2>conftest.err; then
  7170. soname=conftest
  7171. lib=conftest
  7172. libobjs=conftest.$ac_objext
  7173. deplibs=
  7174. wl=$lt_prog_compiler_wl
  7175. pic_flag=$lt_prog_compiler_pic
  7176. compiler_flags=-v
  7177. linker_flags=-v
  7178. verstring=
  7179. output_objdir=.
  7180. libname=conftest
  7181. lt_save_allow_undefined_flag=$allow_undefined_flag
  7182. allow_undefined_flag=
  7183. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7184. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7185. ac_status=$?
  7186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7187. (exit $ac_status); }
  7188. then
  7189. archive_cmds_need_lc=no
  7190. else
  7191. archive_cmds_need_lc=yes
  7192. fi
  7193. allow_undefined_flag=$lt_save_allow_undefined_flag
  7194. else
  7195. cat conftest.err 1>&5
  7196. fi
  7197. $rm conftest*
  7198. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7199. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7200. ;;
  7201. esac
  7202. fi
  7203. ;;
  7204. esac
  7205. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7206. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7207. library_names_spec=
  7208. libname_spec='lib$name'
  7209. soname_spec=
  7210. shrext_cmds=".so"
  7211. postinstall_cmds=
  7212. postuninstall_cmds=
  7213. finish_cmds=
  7214. finish_eval=
  7215. shlibpath_var=
  7216. shlibpath_overrides_runpath=unknown
  7217. version_type=none
  7218. dynamic_linker="$host_os ld.so"
  7219. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7220. if test "$GCC" = yes; then
  7221. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7222. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7223. # if the path contains ";" then we assume it to be the separator
  7224. # otherwise default to the standard path separator (i.e. ":") - it is
  7225. # assumed that no part of a normal pathname contains ";" but that should
  7226. # okay in the real world where ";" in dirpaths is itself problematic.
  7227. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7228. else
  7229. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7230. fi
  7231. else
  7232. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7233. fi
  7234. need_lib_prefix=unknown
  7235. hardcode_into_libs=no
  7236. # when you set need_version to no, make sure it does not cause -set_version
  7237. # flags to be left without arguments
  7238. need_version=unknown
  7239. case $host_os in
  7240. aix3*)
  7241. version_type=linux
  7242. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7243. shlibpath_var=LIBPATH
  7244. # AIX 3 has no versioning support, so we append a major version to the name.
  7245. soname_spec='${libname}${release}${shared_ext}$major'
  7246. ;;
  7247. aix4* | aix5*)
  7248. version_type=linux
  7249. need_lib_prefix=no
  7250. need_version=no
  7251. hardcode_into_libs=yes
  7252. if test "$host_cpu" = ia64; then
  7253. # AIX 5 supports IA64
  7254. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7255. shlibpath_var=LD_LIBRARY_PATH
  7256. else
  7257. # With GCC up to 2.95.x, collect2 would create an import file
  7258. # for dependence libraries. The import file would start with
  7259. # the line `#! .'. This would cause the generated library to
  7260. # depend on `.', always an invalid library. This was fixed in
  7261. # development snapshots of GCC prior to 3.0.
  7262. case $host_os in
  7263. aix4 | aix4.[01] | aix4.[01].*)
  7264. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7265. echo ' yes '
  7266. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7267. :
  7268. else
  7269. can_build_shared=no
  7270. fi
  7271. ;;
  7272. esac
  7273. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7274. # soname into executable. Probably we can add versioning support to
  7275. # collect2, so additional links can be useful in future.
  7276. if test "$aix_use_runtimelinking" = yes; then
  7277. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7278. # instead of lib<name>.a to let people know that these are not
  7279. # typical AIX shared libraries.
  7280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7281. else
  7282. # We preserve .a as extension for shared libraries through AIX4.2
  7283. # and later when we are not doing run time linking.
  7284. library_names_spec='${libname}${release}.a $libname.a'
  7285. soname_spec='${libname}${release}${shared_ext}$major'
  7286. fi
  7287. shlibpath_var=LIBPATH
  7288. fi
  7289. ;;
  7290. amigaos*)
  7291. library_names_spec='$libname.ixlibrary $libname.a'
  7292. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7293. 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'
  7294. ;;
  7295. beos*)
  7296. library_names_spec='${libname}${shared_ext}'
  7297. dynamic_linker="$host_os ld.so"
  7298. shlibpath_var=LIBRARY_PATH
  7299. ;;
  7300. bsdi[45]*)
  7301. version_type=linux
  7302. need_version=no
  7303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7304. soname_spec='${libname}${release}${shared_ext}$major'
  7305. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7306. shlibpath_var=LD_LIBRARY_PATH
  7307. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7308. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7309. # the default ld.so.conf also contains /usr/contrib/lib and
  7310. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7311. # libtool to hard-code these into programs
  7312. ;;
  7313. cygwin* | mingw* | pw32*)
  7314. version_type=windows
  7315. shrext_cmds=".dll"
  7316. need_version=no
  7317. need_lib_prefix=no
  7318. case $GCC,$host_os in
  7319. yes,cygwin* | yes,mingw* | yes,pw32*)
  7320. library_names_spec='$libname.dll.a'
  7321. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7322. postinstall_cmds='base_file=`basename \${file}`~
  7323. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7324. dldir=$destdir/`dirname \$dlpath`~
  7325. test -d \$dldir || mkdir -p \$dldir~
  7326. $install_prog $dir/$dlname \$dldir/$dlname~
  7327. chmod a+x \$dldir/$dlname'
  7328. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7329. dlpath=$dir/\$dldll~
  7330. $rm \$dlpath'
  7331. shlibpath_overrides_runpath=yes
  7332. case $host_os in
  7333. cygwin*)
  7334. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7335. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7336. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7337. ;;
  7338. mingw*)
  7339. # MinGW DLLs use traditional 'lib' prefix
  7340. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7341. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7342. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7343. # It is most probably a Windows format PATH printed by
  7344. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7345. # path with ; separators, and with drive letters. We can handle the
  7346. # drive letters (cygwin fileutils understands them), so leave them,
  7347. # especially as we might pass files found there to a mingw objdump,
  7348. # which wouldn't understand a cygwinified path. Ahh.
  7349. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7350. else
  7351. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7352. fi
  7353. ;;
  7354. pw32*)
  7355. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7356. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7357. ;;
  7358. esac
  7359. ;;
  7360. *)
  7361. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7362. ;;
  7363. esac
  7364. dynamic_linker='Win32 ld.exe'
  7365. # FIXME: first we should search . and the directory the executable is in
  7366. shlibpath_var=PATH
  7367. ;;
  7368. darwin* | rhapsody*)
  7369. dynamic_linker="$host_os dyld"
  7370. version_type=darwin
  7371. need_lib_prefix=no
  7372. need_version=no
  7373. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7374. soname_spec='${libname}${release}${major}$shared_ext'
  7375. shlibpath_overrides_runpath=yes
  7376. shlibpath_var=DYLD_LIBRARY_PATH
  7377. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7378. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7379. if test "$GCC" = yes; then
  7380. 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"`
  7381. else
  7382. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7383. fi
  7384. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7385. ;;
  7386. dgux*)
  7387. version_type=linux
  7388. need_lib_prefix=no
  7389. need_version=no
  7390. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7391. soname_spec='${libname}${release}${shared_ext}$major'
  7392. shlibpath_var=LD_LIBRARY_PATH
  7393. ;;
  7394. freebsd1*)
  7395. dynamic_linker=no
  7396. ;;
  7397. kfreebsd*-gnu)
  7398. version_type=linux
  7399. need_lib_prefix=no
  7400. need_version=no
  7401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7402. soname_spec='${libname}${release}${shared_ext}$major'
  7403. shlibpath_var=LD_LIBRARY_PATH
  7404. shlibpath_overrides_runpath=no
  7405. hardcode_into_libs=yes
  7406. dynamic_linker='GNU ld.so'
  7407. ;;
  7408. freebsd* | dragonfly*)
  7409. # DragonFly does not have aout. When/if they implement a new
  7410. # versioning mechanism, adjust this.
  7411. if test -x /usr/bin/objformat; then
  7412. objformat=`/usr/bin/objformat`
  7413. else
  7414. case $host_os in
  7415. freebsd[123]*) objformat=aout ;;
  7416. *) objformat=elf ;;
  7417. esac
  7418. fi
  7419. version_type=freebsd-$objformat
  7420. case $version_type in
  7421. freebsd-elf*)
  7422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7423. need_version=no
  7424. need_lib_prefix=no
  7425. ;;
  7426. freebsd-*)
  7427. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7428. need_version=yes
  7429. ;;
  7430. esac
  7431. shlibpath_var=LD_LIBRARY_PATH
  7432. case $host_os in
  7433. freebsd2*)
  7434. shlibpath_overrides_runpath=yes
  7435. ;;
  7436. freebsd3.[01]* | freebsdelf3.[01]*)
  7437. shlibpath_overrides_runpath=yes
  7438. hardcode_into_libs=yes
  7439. ;;
  7440. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7441. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7442. shlibpath_overrides_runpath=no
  7443. hardcode_into_libs=yes
  7444. ;;
  7445. freebsd*) # from 4.6 on
  7446. shlibpath_overrides_runpath=yes
  7447. hardcode_into_libs=yes
  7448. ;;
  7449. esac
  7450. ;;
  7451. gnu*)
  7452. version_type=linux
  7453. need_lib_prefix=no
  7454. need_version=no
  7455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7456. soname_spec='${libname}${release}${shared_ext}$major'
  7457. shlibpath_var=LD_LIBRARY_PATH
  7458. hardcode_into_libs=yes
  7459. ;;
  7460. hpux9* | hpux10* | hpux11*)
  7461. # Give a soname corresponding to the major version so that dld.sl refuses to
  7462. # link against other versions.
  7463. version_type=sunos
  7464. need_lib_prefix=no
  7465. need_version=no
  7466. case $host_cpu in
  7467. ia64*)
  7468. shrext_cmds='.so'
  7469. hardcode_into_libs=yes
  7470. dynamic_linker="$host_os dld.so"
  7471. shlibpath_var=LD_LIBRARY_PATH
  7472. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7474. soname_spec='${libname}${release}${shared_ext}$major'
  7475. if test "X$HPUX_IA64_MODE" = X32; then
  7476. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7477. else
  7478. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7479. fi
  7480. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7481. ;;
  7482. hppa*64*)
  7483. shrext_cmds='.sl'
  7484. hardcode_into_libs=yes
  7485. dynamic_linker="$host_os dld.sl"
  7486. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7491. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7492. ;;
  7493. *)
  7494. shrext_cmds='.sl'
  7495. dynamic_linker="$host_os dld.sl"
  7496. shlibpath_var=SHLIB_PATH
  7497. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7499. soname_spec='${libname}${release}${shared_ext}$major'
  7500. ;;
  7501. esac
  7502. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7503. postinstall_cmds='chmod 555 $lib'
  7504. ;;
  7505. interix3*)
  7506. version_type=linux
  7507. need_lib_prefix=no
  7508. need_version=no
  7509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7510. soname_spec='${libname}${release}${shared_ext}$major'
  7511. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7512. shlibpath_var=LD_LIBRARY_PATH
  7513. shlibpath_overrides_runpath=no
  7514. hardcode_into_libs=yes
  7515. ;;
  7516. irix5* | irix6* | nonstopux*)
  7517. case $host_os in
  7518. nonstopux*) version_type=nonstopux ;;
  7519. *)
  7520. if test "$lt_cv_prog_gnu_ld" = yes; then
  7521. version_type=linux
  7522. else
  7523. version_type=irix
  7524. fi ;;
  7525. esac
  7526. need_lib_prefix=no
  7527. need_version=no
  7528. soname_spec='${libname}${release}${shared_ext}$major'
  7529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7530. case $host_os in
  7531. irix5* | nonstopux*)
  7532. libsuff= shlibsuff=
  7533. ;;
  7534. *)
  7535. case $LD in # libtool.m4 will add one of these switches to LD
  7536. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7537. libsuff= shlibsuff= libmagic=32-bit;;
  7538. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7539. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7540. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7541. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7542. *) libsuff= shlibsuff= libmagic=never-match;;
  7543. esac
  7544. ;;
  7545. esac
  7546. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7547. shlibpath_overrides_runpath=no
  7548. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7549. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7550. hardcode_into_libs=yes
  7551. ;;
  7552. # No shared lib support for Linux oldld, aout, or coff.
  7553. linux*oldld* | linux*aout* | linux*coff*)
  7554. dynamic_linker=no
  7555. ;;
  7556. # This must be Linux ELF.
  7557. linux*)
  7558. version_type=linux
  7559. need_lib_prefix=no
  7560. need_version=no
  7561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7562. soname_spec='${libname}${release}${shared_ext}$major'
  7563. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7564. shlibpath_var=LD_LIBRARY_PATH
  7565. shlibpath_overrides_runpath=no
  7566. # This implies no fast_install, which is unacceptable.
  7567. # Some rework will be needed to allow for fast_install
  7568. # before this can be enabled.
  7569. hardcode_into_libs=yes
  7570. # find out which ABI we are using
  7571. libsuff=
  7572. case "$host_cpu" in
  7573. x86_64*|s390x*|powerpc64*)
  7574. echo '#line 8354 "configure"' > conftest.$ac_ext
  7575. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7576. (eval $ac_compile) 2>&5
  7577. ac_status=$?
  7578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7579. (exit $ac_status); }; then
  7580. case `/usr/bin/file conftest.$ac_objext` in
  7581. *64-bit*)
  7582. libsuff=64
  7583. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7584. ;;
  7585. esac
  7586. fi
  7587. rm -rf conftest*
  7588. ;;
  7589. esac
  7590. # Append ld.so.conf contents to the search path
  7591. if test -f /etc/ld.so.conf; then
  7592. 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' ' '`
  7593. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7594. fi
  7595. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7596. # powerpc, because MkLinux only supported shared libraries with the
  7597. # GNU dynamic linker. Since this was broken with cross compilers,
  7598. # most powerpc-linux boxes support dynamic linking these days and
  7599. # people can always --disable-shared, the test was removed, and we
  7600. # assume the GNU/Linux dynamic linker is in use.
  7601. dynamic_linker='GNU/Linux ld.so'
  7602. ;;
  7603. knetbsd*-gnu)
  7604. version_type=linux
  7605. need_lib_prefix=no
  7606. need_version=no
  7607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7608. soname_spec='${libname}${release}${shared_ext}$major'
  7609. shlibpath_var=LD_LIBRARY_PATH
  7610. shlibpath_overrides_runpath=no
  7611. hardcode_into_libs=yes
  7612. dynamic_linker='GNU ld.so'
  7613. ;;
  7614. netbsd*)
  7615. version_type=sunos
  7616. need_lib_prefix=no
  7617. need_version=no
  7618. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7620. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7621. dynamic_linker='NetBSD (a.out) ld.so'
  7622. else
  7623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7624. soname_spec='${libname}${release}${shared_ext}$major'
  7625. dynamic_linker='NetBSD ld.elf_so'
  7626. fi
  7627. shlibpath_var=LD_LIBRARY_PATH
  7628. shlibpath_overrides_runpath=yes
  7629. hardcode_into_libs=yes
  7630. ;;
  7631. newsos6)
  7632. version_type=linux
  7633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7634. shlibpath_var=LD_LIBRARY_PATH
  7635. shlibpath_overrides_runpath=yes
  7636. ;;
  7637. nto-qnx*)
  7638. version_type=linux
  7639. need_lib_prefix=no
  7640. need_version=no
  7641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7642. soname_spec='${libname}${release}${shared_ext}$major'
  7643. shlibpath_var=LD_LIBRARY_PATH
  7644. shlibpath_overrides_runpath=yes
  7645. ;;
  7646. openbsd*)
  7647. version_type=sunos
  7648. sys_lib_dlsearch_path_spec="/usr/lib"
  7649. need_lib_prefix=no
  7650. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7651. case $host_os in
  7652. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7653. *) need_version=no ;;
  7654. esac
  7655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7656. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7657. shlibpath_var=LD_LIBRARY_PATH
  7658. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7659. case $host_os in
  7660. openbsd2.[89] | openbsd2.[89].*)
  7661. shlibpath_overrides_runpath=no
  7662. ;;
  7663. *)
  7664. shlibpath_overrides_runpath=yes
  7665. ;;
  7666. esac
  7667. else
  7668. shlibpath_overrides_runpath=yes
  7669. fi
  7670. ;;
  7671. os2*)
  7672. libname_spec='$name'
  7673. shrext_cmds=".dll"
  7674. need_lib_prefix=no
  7675. library_names_spec='$libname${shared_ext} $libname.a'
  7676. dynamic_linker='OS/2 ld.exe'
  7677. shlibpath_var=LIBPATH
  7678. ;;
  7679. osf3* | osf4* | osf5*)
  7680. version_type=osf
  7681. need_lib_prefix=no
  7682. need_version=no
  7683. soname_spec='${libname}${release}${shared_ext}$major'
  7684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7685. shlibpath_var=LD_LIBRARY_PATH
  7686. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7687. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7688. ;;
  7689. solaris*)
  7690. version_type=linux
  7691. need_lib_prefix=no
  7692. need_version=no
  7693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7694. soname_spec='${libname}${release}${shared_ext}$major'
  7695. shlibpath_var=LD_LIBRARY_PATH
  7696. shlibpath_overrides_runpath=yes
  7697. hardcode_into_libs=yes
  7698. # ldd complains unless libraries are executable
  7699. postinstall_cmds='chmod +x $lib'
  7700. ;;
  7701. sunos4*)
  7702. version_type=sunos
  7703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7704. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7705. shlibpath_var=LD_LIBRARY_PATH
  7706. shlibpath_overrides_runpath=yes
  7707. if test "$with_gnu_ld" = yes; then
  7708. need_lib_prefix=no
  7709. fi
  7710. need_version=yes
  7711. ;;
  7712. sysv4 | sysv4.3*)
  7713. version_type=linux
  7714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7715. soname_spec='${libname}${release}${shared_ext}$major'
  7716. shlibpath_var=LD_LIBRARY_PATH
  7717. case $host_vendor in
  7718. sni)
  7719. shlibpath_overrides_runpath=no
  7720. need_lib_prefix=no
  7721. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7722. runpath_var=LD_RUN_PATH
  7723. ;;
  7724. siemens)
  7725. need_lib_prefix=no
  7726. ;;
  7727. motorola)
  7728. need_lib_prefix=no
  7729. need_version=no
  7730. shlibpath_overrides_runpath=no
  7731. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7732. ;;
  7733. esac
  7734. ;;
  7735. sysv4*MP*)
  7736. if test -d /usr/nec ;then
  7737. version_type=linux
  7738. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7739. soname_spec='$libname${shared_ext}.$major'
  7740. shlibpath_var=LD_LIBRARY_PATH
  7741. fi
  7742. ;;
  7743. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7744. version_type=freebsd-elf
  7745. need_lib_prefix=no
  7746. need_version=no
  7747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7748. soname_spec='${libname}${release}${shared_ext}$major'
  7749. shlibpath_var=LD_LIBRARY_PATH
  7750. hardcode_into_libs=yes
  7751. if test "$with_gnu_ld" = yes; then
  7752. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7753. shlibpath_overrides_runpath=no
  7754. else
  7755. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7756. shlibpath_overrides_runpath=yes
  7757. case $host_os in
  7758. sco3.2v5*)
  7759. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7760. ;;
  7761. esac
  7762. fi
  7763. sys_lib_dlsearch_path_spec='/usr/lib'
  7764. ;;
  7765. uts4*)
  7766. version_type=linux
  7767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7768. soname_spec='${libname}${release}${shared_ext}$major'
  7769. shlibpath_var=LD_LIBRARY_PATH
  7770. ;;
  7771. *)
  7772. dynamic_linker=no
  7773. ;;
  7774. esac
  7775. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7776. echo "${ECHO_T}$dynamic_linker" >&6
  7777. test "$dynamic_linker" = no && can_build_shared=no
  7778. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7779. if test "$GCC" = yes; then
  7780. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7781. fi
  7782. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7783. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7784. hardcode_action=
  7785. if test -n "$hardcode_libdir_flag_spec" || \
  7786. test -n "$runpath_var" || \
  7787. test "X$hardcode_automatic" = "Xyes" ; then
  7788. # We can hardcode non-existant directories.
  7789. if test "$hardcode_direct" != no &&
  7790. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7791. # have to relink, otherwise we might link with an installed library
  7792. # when we should be linking with a yet-to-be-installed one
  7793. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7794. test "$hardcode_minus_L" != no; then
  7795. # Linking always hardcodes the temporary library directory.
  7796. hardcode_action=relink
  7797. else
  7798. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7799. hardcode_action=immediate
  7800. fi
  7801. else
  7802. # We cannot hardcode anything, or else we can only hardcode existing
  7803. # directories.
  7804. hardcode_action=unsupported
  7805. fi
  7806. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7807. echo "${ECHO_T}$hardcode_action" >&6
  7808. if test "$hardcode_action" = relink; then
  7809. # Fast installation is not supported
  7810. enable_fast_install=no
  7811. elif test "$shlibpath_overrides_runpath" = yes ||
  7812. test "$enable_shared" = no; then
  7813. # Fast installation is not necessary
  7814. enable_fast_install=needless
  7815. fi
  7816. striplib=
  7817. old_striplib=
  7818. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7819. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7820. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7821. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7822. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7823. echo "$as_me:$LINENO: result: yes" >&5
  7824. echo "${ECHO_T}yes" >&6
  7825. else
  7826. # FIXME - insert some real tests, host_os isn't really good enough
  7827. case $host_os in
  7828. darwin*)
  7829. if test -n "$STRIP" ; then
  7830. striplib="$STRIP -x"
  7831. echo "$as_me:$LINENO: result: yes" >&5
  7832. echo "${ECHO_T}yes" >&6
  7833. else
  7834. echo "$as_me:$LINENO: result: no" >&5
  7835. echo "${ECHO_T}no" >&6
  7836. fi
  7837. ;;
  7838. *)
  7839. echo "$as_me:$LINENO: result: no" >&5
  7840. echo "${ECHO_T}no" >&6
  7841. ;;
  7842. esac
  7843. fi
  7844. if test "x$enable_dlopen" != xyes; then
  7845. enable_dlopen=unknown
  7846. enable_dlopen_self=unknown
  7847. enable_dlopen_self_static=unknown
  7848. else
  7849. lt_cv_dlopen=no
  7850. lt_cv_dlopen_libs=
  7851. case $host_os in
  7852. beos*)
  7853. lt_cv_dlopen="load_add_on"
  7854. lt_cv_dlopen_libs=
  7855. lt_cv_dlopen_self=yes
  7856. ;;
  7857. mingw* | pw32*)
  7858. lt_cv_dlopen="LoadLibrary"
  7859. lt_cv_dlopen_libs=
  7860. ;;
  7861. cygwin*)
  7862. lt_cv_dlopen="dlopen"
  7863. lt_cv_dlopen_libs=
  7864. ;;
  7865. darwin*)
  7866. # if libdl is installed we need to link against it
  7867. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7868. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7869. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7870. echo $ECHO_N "(cached) $ECHO_C" >&6
  7871. else
  7872. ac_check_lib_save_LIBS=$LIBS
  7873. LIBS="-ldl $LIBS"
  7874. cat >conftest.$ac_ext <<_ACEOF
  7875. /* confdefs.h. */
  7876. _ACEOF
  7877. cat confdefs.h >>conftest.$ac_ext
  7878. cat >>conftest.$ac_ext <<_ACEOF
  7879. /* end confdefs.h. */
  7880. /* Override any gcc2 internal prototype to avoid an error. */
  7881. #ifdef __cplusplus
  7882. extern "C"
  7883. #endif
  7884. /* We use char because int might match the return type of a gcc2
  7885. builtin and then its argument prototype would still apply. */
  7886. char dlopen ();
  7887. int
  7888. main ()
  7889. {
  7890. dlopen ();
  7891. ;
  7892. return 0;
  7893. }
  7894. _ACEOF
  7895. rm -f conftest.$ac_objext conftest$ac_exeext
  7896. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7897. (eval $ac_link) 2>conftest.er1
  7898. ac_status=$?
  7899. grep -v '^ *+' conftest.er1 >conftest.err
  7900. rm -f conftest.er1
  7901. cat conftest.err >&5
  7902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7903. (exit $ac_status); } &&
  7904. { ac_try='test -z "$ac_c_werror_flag"
  7905. || test ! -s conftest.err'
  7906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7907. (eval $ac_try) 2>&5
  7908. ac_status=$?
  7909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7910. (exit $ac_status); }; } &&
  7911. { ac_try='test -s conftest$ac_exeext'
  7912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7913. (eval $ac_try) 2>&5
  7914. ac_status=$?
  7915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7916. (exit $ac_status); }; }; then
  7917. ac_cv_lib_dl_dlopen=yes
  7918. else
  7919. echo "$as_me: failed program was:" >&5
  7920. sed 's/^/| /' conftest.$ac_ext >&5
  7921. ac_cv_lib_dl_dlopen=no
  7922. fi
  7923. rm -f conftest.err conftest.$ac_objext \
  7924. conftest$ac_exeext conftest.$ac_ext
  7925. LIBS=$ac_check_lib_save_LIBS
  7926. fi
  7927. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7928. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7929. if test $ac_cv_lib_dl_dlopen = yes; then
  7930. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7931. else
  7932. lt_cv_dlopen="dyld"
  7933. lt_cv_dlopen_libs=
  7934. lt_cv_dlopen_self=yes
  7935. fi
  7936. ;;
  7937. *)
  7938. echo "$as_me:$LINENO: checking for shl_load" >&5
  7939. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7940. if test "${ac_cv_func_shl_load+set}" = set; then
  7941. echo $ECHO_N "(cached) $ECHO_C" >&6
  7942. else
  7943. cat >conftest.$ac_ext <<_ACEOF
  7944. /* confdefs.h. */
  7945. _ACEOF
  7946. cat confdefs.h >>conftest.$ac_ext
  7947. cat >>conftest.$ac_ext <<_ACEOF
  7948. /* end confdefs.h. */
  7949. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7950. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7951. #define shl_load innocuous_shl_load
  7952. /* System header to define __stub macros and hopefully few prototypes,
  7953. which can conflict with char shl_load (); below.
  7954. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7955. <limits.h> exists even on freestanding compilers. */
  7956. #ifdef __STDC__
  7957. # include <limits.h>
  7958. #else
  7959. # include <assert.h>
  7960. #endif
  7961. #undef shl_load
  7962. /* Override any gcc2 internal prototype to avoid an error. */
  7963. #ifdef __cplusplus
  7964. extern "C"
  7965. {
  7966. #endif
  7967. /* We use char because int might match the return type of a gcc2
  7968. builtin and then its argument prototype would still apply. */
  7969. char shl_load ();
  7970. /* The GNU C library defines this for functions which it implements
  7971. to always fail with ENOSYS. Some functions are actually named
  7972. something starting with __ and the normal name is an alias. */
  7973. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7974. choke me
  7975. #else
  7976. char (*f) () = shl_load;
  7977. #endif
  7978. #ifdef __cplusplus
  7979. }
  7980. #endif
  7981. int
  7982. main ()
  7983. {
  7984. return f != shl_load;
  7985. ;
  7986. return 0;
  7987. }
  7988. _ACEOF
  7989. rm -f conftest.$ac_objext conftest$ac_exeext
  7990. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7991. (eval $ac_link) 2>conftest.er1
  7992. ac_status=$?
  7993. grep -v '^ *+' conftest.er1 >conftest.err
  7994. rm -f conftest.er1
  7995. cat conftest.err >&5
  7996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7997. (exit $ac_status); } &&
  7998. { ac_try='test -z "$ac_c_werror_flag"
  7999. || test ! -s conftest.err'
  8000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8001. (eval $ac_try) 2>&5
  8002. ac_status=$?
  8003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004. (exit $ac_status); }; } &&
  8005. { ac_try='test -s conftest$ac_exeext'
  8006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8007. (eval $ac_try) 2>&5
  8008. ac_status=$?
  8009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010. (exit $ac_status); }; }; then
  8011. ac_cv_func_shl_load=yes
  8012. else
  8013. echo "$as_me: failed program was:" >&5
  8014. sed 's/^/| /' conftest.$ac_ext >&5
  8015. ac_cv_func_shl_load=no
  8016. fi
  8017. rm -f conftest.err conftest.$ac_objext \
  8018. conftest$ac_exeext conftest.$ac_ext
  8019. fi
  8020. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8021. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8022. if test $ac_cv_func_shl_load = yes; then
  8023. lt_cv_dlopen="shl_load"
  8024. else
  8025. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8026. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8027. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8028. echo $ECHO_N "(cached) $ECHO_C" >&6
  8029. else
  8030. ac_check_lib_save_LIBS=$LIBS
  8031. LIBS="-ldld $LIBS"
  8032. cat >conftest.$ac_ext <<_ACEOF
  8033. /* confdefs.h. */
  8034. _ACEOF
  8035. cat confdefs.h >>conftest.$ac_ext
  8036. cat >>conftest.$ac_ext <<_ACEOF
  8037. /* end confdefs.h. */
  8038. /* Override any gcc2 internal prototype to avoid an error. */
  8039. #ifdef __cplusplus
  8040. extern "C"
  8041. #endif
  8042. /* We use char because int might match the return type of a gcc2
  8043. builtin and then its argument prototype would still apply. */
  8044. char shl_load ();
  8045. int
  8046. main ()
  8047. {
  8048. shl_load ();
  8049. ;
  8050. return 0;
  8051. }
  8052. _ACEOF
  8053. rm -f conftest.$ac_objext conftest$ac_exeext
  8054. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8055. (eval $ac_link) 2>conftest.er1
  8056. ac_status=$?
  8057. grep -v '^ *+' conftest.er1 >conftest.err
  8058. rm -f conftest.er1
  8059. cat conftest.err >&5
  8060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8061. (exit $ac_status); } &&
  8062. { ac_try='test -z "$ac_c_werror_flag"
  8063. || test ! -s conftest.err'
  8064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8065. (eval $ac_try) 2>&5
  8066. ac_status=$?
  8067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8068. (exit $ac_status); }; } &&
  8069. { ac_try='test -s conftest$ac_exeext'
  8070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8071. (eval $ac_try) 2>&5
  8072. ac_status=$?
  8073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8074. (exit $ac_status); }; }; then
  8075. ac_cv_lib_dld_shl_load=yes
  8076. else
  8077. echo "$as_me: failed program was:" >&5
  8078. sed 's/^/| /' conftest.$ac_ext >&5
  8079. ac_cv_lib_dld_shl_load=no
  8080. fi
  8081. rm -f conftest.err conftest.$ac_objext \
  8082. conftest$ac_exeext conftest.$ac_ext
  8083. LIBS=$ac_check_lib_save_LIBS
  8084. fi
  8085. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8086. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8087. if test $ac_cv_lib_dld_shl_load = yes; then
  8088. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8089. else
  8090. echo "$as_me:$LINENO: checking for dlopen" >&5
  8091. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8092. if test "${ac_cv_func_dlopen+set}" = set; then
  8093. echo $ECHO_N "(cached) $ECHO_C" >&6
  8094. else
  8095. cat >conftest.$ac_ext <<_ACEOF
  8096. /* confdefs.h. */
  8097. _ACEOF
  8098. cat confdefs.h >>conftest.$ac_ext
  8099. cat >>conftest.$ac_ext <<_ACEOF
  8100. /* end confdefs.h. */
  8101. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8102. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8103. #define dlopen innocuous_dlopen
  8104. /* System header to define __stub macros and hopefully few prototypes,
  8105. which can conflict with char dlopen (); below.
  8106. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8107. <limits.h> exists even on freestanding compilers. */
  8108. #ifdef __STDC__
  8109. # include <limits.h>
  8110. #else
  8111. # include <assert.h>
  8112. #endif
  8113. #undef dlopen
  8114. /* Override any gcc2 internal prototype to avoid an error. */
  8115. #ifdef __cplusplus
  8116. extern "C"
  8117. {
  8118. #endif
  8119. /* We use char because int might match the return type of a gcc2
  8120. builtin and then its argument prototype would still apply. */
  8121. char dlopen ();
  8122. /* The GNU C library defines this for functions which it implements
  8123. to always fail with ENOSYS. Some functions are actually named
  8124. something starting with __ and the normal name is an alias. */
  8125. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8126. choke me
  8127. #else
  8128. char (*f) () = dlopen;
  8129. #endif
  8130. #ifdef __cplusplus
  8131. }
  8132. #endif
  8133. int
  8134. main ()
  8135. {
  8136. return f != dlopen;
  8137. ;
  8138. return 0;
  8139. }
  8140. _ACEOF
  8141. rm -f conftest.$ac_objext conftest$ac_exeext
  8142. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8143. (eval $ac_link) 2>conftest.er1
  8144. ac_status=$?
  8145. grep -v '^ *+' conftest.er1 >conftest.err
  8146. rm -f conftest.er1
  8147. cat conftest.err >&5
  8148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8149. (exit $ac_status); } &&
  8150. { ac_try='test -z "$ac_c_werror_flag"
  8151. || test ! -s conftest.err'
  8152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8153. (eval $ac_try) 2>&5
  8154. ac_status=$?
  8155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8156. (exit $ac_status); }; } &&
  8157. { ac_try='test -s conftest$ac_exeext'
  8158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8159. (eval $ac_try) 2>&5
  8160. ac_status=$?
  8161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8162. (exit $ac_status); }; }; then
  8163. ac_cv_func_dlopen=yes
  8164. else
  8165. echo "$as_me: failed program was:" >&5
  8166. sed 's/^/| /' conftest.$ac_ext >&5
  8167. ac_cv_func_dlopen=no
  8168. fi
  8169. rm -f conftest.err conftest.$ac_objext \
  8170. conftest$ac_exeext conftest.$ac_ext
  8171. fi
  8172. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8173. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8174. if test $ac_cv_func_dlopen = yes; then
  8175. lt_cv_dlopen="dlopen"
  8176. else
  8177. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8178. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8179. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8180. echo $ECHO_N "(cached) $ECHO_C" >&6
  8181. else
  8182. ac_check_lib_save_LIBS=$LIBS
  8183. LIBS="-ldl $LIBS"
  8184. cat >conftest.$ac_ext <<_ACEOF
  8185. /* confdefs.h. */
  8186. _ACEOF
  8187. cat confdefs.h >>conftest.$ac_ext
  8188. cat >>conftest.$ac_ext <<_ACEOF
  8189. /* end confdefs.h. */
  8190. /* Override any gcc2 internal prototype to avoid an error. */
  8191. #ifdef __cplusplus
  8192. extern "C"
  8193. #endif
  8194. /* We use char because int might match the return type of a gcc2
  8195. builtin and then its argument prototype would still apply. */
  8196. char dlopen ();
  8197. int
  8198. main ()
  8199. {
  8200. dlopen ();
  8201. ;
  8202. return 0;
  8203. }
  8204. _ACEOF
  8205. rm -f conftest.$ac_objext conftest$ac_exeext
  8206. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8207. (eval $ac_link) 2>conftest.er1
  8208. ac_status=$?
  8209. grep -v '^ *+' conftest.er1 >conftest.err
  8210. rm -f conftest.er1
  8211. cat conftest.err >&5
  8212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8213. (exit $ac_status); } &&
  8214. { ac_try='test -z "$ac_c_werror_flag"
  8215. || test ! -s conftest.err'
  8216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8217. (eval $ac_try) 2>&5
  8218. ac_status=$?
  8219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8220. (exit $ac_status); }; } &&
  8221. { ac_try='test -s conftest$ac_exeext'
  8222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8223. (eval $ac_try) 2>&5
  8224. ac_status=$?
  8225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. (exit $ac_status); }; }; then
  8227. ac_cv_lib_dl_dlopen=yes
  8228. else
  8229. echo "$as_me: failed program was:" >&5
  8230. sed 's/^/| /' conftest.$ac_ext >&5
  8231. ac_cv_lib_dl_dlopen=no
  8232. fi
  8233. rm -f conftest.err conftest.$ac_objext \
  8234. conftest$ac_exeext conftest.$ac_ext
  8235. LIBS=$ac_check_lib_save_LIBS
  8236. fi
  8237. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8238. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8239. if test $ac_cv_lib_dl_dlopen = yes; then
  8240. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8241. else
  8242. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8243. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8244. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8245. echo $ECHO_N "(cached) $ECHO_C" >&6
  8246. else
  8247. ac_check_lib_save_LIBS=$LIBS
  8248. LIBS="-lsvld $LIBS"
  8249. cat >conftest.$ac_ext <<_ACEOF
  8250. /* confdefs.h. */
  8251. _ACEOF
  8252. cat confdefs.h >>conftest.$ac_ext
  8253. cat >>conftest.$ac_ext <<_ACEOF
  8254. /* end confdefs.h. */
  8255. /* Override any gcc2 internal prototype to avoid an error. */
  8256. #ifdef __cplusplus
  8257. extern "C"
  8258. #endif
  8259. /* We use char because int might match the return type of a gcc2
  8260. builtin and then its argument prototype would still apply. */
  8261. char dlopen ();
  8262. int
  8263. main ()
  8264. {
  8265. dlopen ();
  8266. ;
  8267. return 0;
  8268. }
  8269. _ACEOF
  8270. rm -f conftest.$ac_objext conftest$ac_exeext
  8271. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8272. (eval $ac_link) 2>conftest.er1
  8273. ac_status=$?
  8274. grep -v '^ *+' conftest.er1 >conftest.err
  8275. rm -f conftest.er1
  8276. cat conftest.err >&5
  8277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8278. (exit $ac_status); } &&
  8279. { ac_try='test -z "$ac_c_werror_flag"
  8280. || test ! -s conftest.err'
  8281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8282. (eval $ac_try) 2>&5
  8283. ac_status=$?
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. (exit $ac_status); }; } &&
  8286. { ac_try='test -s conftest$ac_exeext'
  8287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8288. (eval $ac_try) 2>&5
  8289. ac_status=$?
  8290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8291. (exit $ac_status); }; }; then
  8292. ac_cv_lib_svld_dlopen=yes
  8293. else
  8294. echo "$as_me: failed program was:" >&5
  8295. sed 's/^/| /' conftest.$ac_ext >&5
  8296. ac_cv_lib_svld_dlopen=no
  8297. fi
  8298. rm -f conftest.err conftest.$ac_objext \
  8299. conftest$ac_exeext conftest.$ac_ext
  8300. LIBS=$ac_check_lib_save_LIBS
  8301. fi
  8302. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8303. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8304. if test $ac_cv_lib_svld_dlopen = yes; then
  8305. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8306. else
  8307. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8308. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8309. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8310. echo $ECHO_N "(cached) $ECHO_C" >&6
  8311. else
  8312. ac_check_lib_save_LIBS=$LIBS
  8313. LIBS="-ldld $LIBS"
  8314. cat >conftest.$ac_ext <<_ACEOF
  8315. /* confdefs.h. */
  8316. _ACEOF
  8317. cat confdefs.h >>conftest.$ac_ext
  8318. cat >>conftest.$ac_ext <<_ACEOF
  8319. /* end confdefs.h. */
  8320. /* Override any gcc2 internal prototype to avoid an error. */
  8321. #ifdef __cplusplus
  8322. extern "C"
  8323. #endif
  8324. /* We use char because int might match the return type of a gcc2
  8325. builtin and then its argument prototype would still apply. */
  8326. char dld_link ();
  8327. int
  8328. main ()
  8329. {
  8330. dld_link ();
  8331. ;
  8332. return 0;
  8333. }
  8334. _ACEOF
  8335. rm -f conftest.$ac_objext conftest$ac_exeext
  8336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8337. (eval $ac_link) 2>conftest.er1
  8338. ac_status=$?
  8339. grep -v '^ *+' conftest.er1 >conftest.err
  8340. rm -f conftest.er1
  8341. cat conftest.err >&5
  8342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8343. (exit $ac_status); } &&
  8344. { ac_try='test -z "$ac_c_werror_flag"
  8345. || test ! -s conftest.err'
  8346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8347. (eval $ac_try) 2>&5
  8348. ac_status=$?
  8349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8350. (exit $ac_status); }; } &&
  8351. { ac_try='test -s conftest$ac_exeext'
  8352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8353. (eval $ac_try) 2>&5
  8354. ac_status=$?
  8355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8356. (exit $ac_status); }; }; then
  8357. ac_cv_lib_dld_dld_link=yes
  8358. else
  8359. echo "$as_me: failed program was:" >&5
  8360. sed 's/^/| /' conftest.$ac_ext >&5
  8361. ac_cv_lib_dld_dld_link=no
  8362. fi
  8363. rm -f conftest.err conftest.$ac_objext \
  8364. conftest$ac_exeext conftest.$ac_ext
  8365. LIBS=$ac_check_lib_save_LIBS
  8366. fi
  8367. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8368. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8369. if test $ac_cv_lib_dld_dld_link = yes; then
  8370. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8371. fi
  8372. fi
  8373. fi
  8374. fi
  8375. fi
  8376. fi
  8377. ;;
  8378. esac
  8379. if test "x$lt_cv_dlopen" != xno; then
  8380. enable_dlopen=yes
  8381. else
  8382. enable_dlopen=no
  8383. fi
  8384. case $lt_cv_dlopen in
  8385. dlopen)
  8386. save_CPPFLAGS="$CPPFLAGS"
  8387. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8388. save_LDFLAGS="$LDFLAGS"
  8389. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8390. save_LIBS="$LIBS"
  8391. LIBS="$lt_cv_dlopen_libs $LIBS"
  8392. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8393. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8394. if test "${lt_cv_dlopen_self+set}" = set; then
  8395. echo $ECHO_N "(cached) $ECHO_C" >&6
  8396. else
  8397. if test "$cross_compiling" = yes; then :
  8398. lt_cv_dlopen_self=cross
  8399. else
  8400. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8401. lt_status=$lt_dlunknown
  8402. cat > conftest.$ac_ext <<EOF
  8403. #line 9251 "configure"
  8404. #include "confdefs.h"
  8405. #if HAVE_DLFCN_H
  8406. #include <dlfcn.h>
  8407. #endif
  8408. #include <stdio.h>
  8409. #ifdef RTLD_GLOBAL
  8410. # define LT_DLGLOBAL RTLD_GLOBAL
  8411. #else
  8412. # ifdef DL_GLOBAL
  8413. # define LT_DLGLOBAL DL_GLOBAL
  8414. # else
  8415. # define LT_DLGLOBAL 0
  8416. # endif
  8417. #endif
  8418. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8419. find out it does not work in some platform. */
  8420. #ifndef LT_DLLAZY_OR_NOW
  8421. # ifdef RTLD_LAZY
  8422. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8423. # else
  8424. # ifdef DL_LAZY
  8425. # define LT_DLLAZY_OR_NOW DL_LAZY
  8426. # else
  8427. # ifdef RTLD_NOW
  8428. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8429. # else
  8430. # ifdef DL_NOW
  8431. # define LT_DLLAZY_OR_NOW DL_NOW
  8432. # else
  8433. # define LT_DLLAZY_OR_NOW 0
  8434. # endif
  8435. # endif
  8436. # endif
  8437. # endif
  8438. #endif
  8439. #ifdef __cplusplus
  8440. extern "C" void exit (int);
  8441. #endif
  8442. void fnord() { int i=42;}
  8443. int main ()
  8444. {
  8445. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8446. int status = $lt_dlunknown;
  8447. if (self)
  8448. {
  8449. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8450. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8451. /* dlclose (self); */
  8452. }
  8453. else
  8454. puts (dlerror ());
  8455. exit (status);
  8456. }
  8457. EOF
  8458. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8459. (eval $ac_link) 2>&5
  8460. ac_status=$?
  8461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8462. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8463. (./conftest; exit; ) >&5 2>/dev/null
  8464. lt_status=$?
  8465. case x$lt_status in
  8466. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8467. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8468. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8469. esac
  8470. else :
  8471. # compilation failed
  8472. lt_cv_dlopen_self=no
  8473. fi
  8474. fi
  8475. rm -fr conftest*
  8476. fi
  8477. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8478. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8479. if test "x$lt_cv_dlopen_self" = xyes; then
  8480. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8481. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8482. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8483. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8484. echo $ECHO_N "(cached) $ECHO_C" >&6
  8485. else
  8486. if test "$cross_compiling" = yes; then :
  8487. lt_cv_dlopen_self_static=cross
  8488. else
  8489. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8490. lt_status=$lt_dlunknown
  8491. cat > conftest.$ac_ext <<EOF
  8492. #line 9351 "configure"
  8493. #include "confdefs.h"
  8494. #if HAVE_DLFCN_H
  8495. #include <dlfcn.h>
  8496. #endif
  8497. #include <stdio.h>
  8498. #ifdef RTLD_GLOBAL
  8499. # define LT_DLGLOBAL RTLD_GLOBAL
  8500. #else
  8501. # ifdef DL_GLOBAL
  8502. # define LT_DLGLOBAL DL_GLOBAL
  8503. # else
  8504. # define LT_DLGLOBAL 0
  8505. # endif
  8506. #endif
  8507. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8508. find out it does not work in some platform. */
  8509. #ifndef LT_DLLAZY_OR_NOW
  8510. # ifdef RTLD_LAZY
  8511. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8512. # else
  8513. # ifdef DL_LAZY
  8514. # define LT_DLLAZY_OR_NOW DL_LAZY
  8515. # else
  8516. # ifdef RTLD_NOW
  8517. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8518. # else
  8519. # ifdef DL_NOW
  8520. # define LT_DLLAZY_OR_NOW DL_NOW
  8521. # else
  8522. # define LT_DLLAZY_OR_NOW 0
  8523. # endif
  8524. # endif
  8525. # endif
  8526. # endif
  8527. #endif
  8528. #ifdef __cplusplus
  8529. extern "C" void exit (int);
  8530. #endif
  8531. void fnord() { int i=42;}
  8532. int main ()
  8533. {
  8534. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8535. int status = $lt_dlunknown;
  8536. if (self)
  8537. {
  8538. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8539. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8540. /* dlclose (self); */
  8541. }
  8542. else
  8543. puts (dlerror ());
  8544. exit (status);
  8545. }
  8546. EOF
  8547. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8548. (eval $ac_link) 2>&5
  8549. ac_status=$?
  8550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8551. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8552. (./conftest; exit; ) >&5 2>/dev/null
  8553. lt_status=$?
  8554. case x$lt_status in
  8555. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8556. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8557. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8558. esac
  8559. else :
  8560. # compilation failed
  8561. lt_cv_dlopen_self_static=no
  8562. fi
  8563. fi
  8564. rm -fr conftest*
  8565. fi
  8566. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8567. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8568. fi
  8569. CPPFLAGS="$save_CPPFLAGS"
  8570. LDFLAGS="$save_LDFLAGS"
  8571. LIBS="$save_LIBS"
  8572. ;;
  8573. esac
  8574. case $lt_cv_dlopen_self in
  8575. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8576. *) enable_dlopen_self=unknown ;;
  8577. esac
  8578. case $lt_cv_dlopen_self_static in
  8579. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8580. *) enable_dlopen_self_static=unknown ;;
  8581. esac
  8582. fi
  8583. # Report which library types will actually be built
  8584. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8585. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8586. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8587. echo "${ECHO_T}$can_build_shared" >&6
  8588. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8589. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8590. test "$can_build_shared" = "no" && enable_shared=no
  8591. # On AIX, shared libraries and static libraries use the same namespace, and
  8592. # are all built from PIC.
  8593. case $host_os in
  8594. aix3*)
  8595. test "$enable_shared" = yes && enable_static=no
  8596. if test -n "$RANLIB"; then
  8597. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8598. postinstall_cmds='$RANLIB $lib'
  8599. fi
  8600. ;;
  8601. aix4* | aix5*)
  8602. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8603. test "$enable_shared" = yes && enable_static=no
  8604. fi
  8605. ;;
  8606. esac
  8607. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8608. echo "${ECHO_T}$enable_shared" >&6
  8609. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8610. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8611. # Make sure either enable_shared or enable_static is yes.
  8612. test "$enable_shared" = yes || enable_static=yes
  8613. echo "$as_me:$LINENO: result: $enable_static" >&5
  8614. echo "${ECHO_T}$enable_static" >&6
  8615. # The else clause should only fire when bootstrapping the
  8616. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8617. # with your package, and you will get complaints that there are
  8618. # no rules to generate ltmain.sh.
  8619. if test -f "$ltmain"; then
  8620. # See if we are running on zsh, and set the options which allow our commands through
  8621. # without removal of \ escapes.
  8622. if test -n "${ZSH_VERSION+set}" ; then
  8623. setopt NO_GLOB_SUBST
  8624. fi
  8625. # Now quote all the things that may contain metacharacters while being
  8626. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8627. # variables and quote the copies for generation of the libtool script.
  8628. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8629. SED SHELL STRIP \
  8630. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8631. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8632. deplibs_check_method reload_flag reload_cmds need_locks \
  8633. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8634. lt_cv_sys_global_symbol_to_c_name_address \
  8635. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8636. old_postinstall_cmds old_postuninstall_cmds \
  8637. compiler \
  8638. CC \
  8639. LD \
  8640. lt_prog_compiler_wl \
  8641. lt_prog_compiler_pic \
  8642. lt_prog_compiler_static \
  8643. lt_prog_compiler_no_builtin_flag \
  8644. export_dynamic_flag_spec \
  8645. thread_safe_flag_spec \
  8646. whole_archive_flag_spec \
  8647. enable_shared_with_static_runtimes \
  8648. old_archive_cmds \
  8649. old_archive_from_new_cmds \
  8650. predep_objects \
  8651. postdep_objects \
  8652. predeps \
  8653. postdeps \
  8654. compiler_lib_search_path \
  8655. archive_cmds \
  8656. archive_expsym_cmds \
  8657. postinstall_cmds \
  8658. postuninstall_cmds \
  8659. old_archive_from_expsyms_cmds \
  8660. allow_undefined_flag \
  8661. no_undefined_flag \
  8662. export_symbols_cmds \
  8663. hardcode_libdir_flag_spec \
  8664. hardcode_libdir_flag_spec_ld \
  8665. hardcode_libdir_separator \
  8666. hardcode_automatic \
  8667. module_cmds \
  8668. module_expsym_cmds \
  8669. lt_cv_prog_compiler_c_o \
  8670. exclude_expsyms \
  8671. include_expsyms; do
  8672. case $var in
  8673. old_archive_cmds | \
  8674. old_archive_from_new_cmds | \
  8675. archive_cmds | \
  8676. archive_expsym_cmds | \
  8677. module_cmds | \
  8678. module_expsym_cmds | \
  8679. old_archive_from_expsyms_cmds | \
  8680. export_symbols_cmds | \
  8681. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8682. postinstall_cmds | postuninstall_cmds | \
  8683. old_postinstall_cmds | old_postuninstall_cmds | \
  8684. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8685. # Double-quote double-evaled strings.
  8686. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8687. ;;
  8688. *)
  8689. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8690. ;;
  8691. esac
  8692. done
  8693. case $lt_echo in
  8694. *'\$0 --fallback-echo"')
  8695. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8696. ;;
  8697. esac
  8698. cfgfile="${ofile}T"
  8699. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8700. $rm -f "$cfgfile"
  8701. { echo "$as_me:$LINENO: creating $ofile" >&5
  8702. echo "$as_me: creating $ofile" >&6;}
  8703. cat <<__EOF__ >> "$cfgfile"
  8704. #! $SHELL
  8705. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8706. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8707. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8708. #
  8709. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8710. # Free Software Foundation, Inc.
  8711. #
  8712. # This file is part of GNU Libtool:
  8713. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8714. #
  8715. # This program is free software; you can redistribute it and/or modify
  8716. # it under the terms of the GNU General Public License as published by
  8717. # the Free Software Foundation; either version 2 of the License, or
  8718. # (at your option) any later version.
  8719. #
  8720. # This program is distributed in the hope that it will be useful, but
  8721. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8722. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8723. # General Public License for more details.
  8724. #
  8725. # You should have received a copy of the GNU General Public License
  8726. # along with this program; if not, write to the Free Software
  8727. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8728. #
  8729. # As a special exception to the GNU General Public License, if you
  8730. # distribute this file as part of a program that contains a
  8731. # configuration script generated by Autoconf, you may include it under
  8732. # the same distribution terms that you use for the rest of that program.
  8733. # A sed program that does not truncate output.
  8734. SED=$lt_SED
  8735. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8736. Xsed="$SED -e 1s/^X//"
  8737. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8738. # if CDPATH is set.
  8739. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8740. # The names of the tagged configurations supported by this script.
  8741. available_tags=
  8742. # ### BEGIN LIBTOOL CONFIG
  8743. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8744. # Shell to use when invoking shell scripts.
  8745. SHELL=$lt_SHELL
  8746. # Whether or not to build shared libraries.
  8747. build_libtool_libs=$enable_shared
  8748. # Whether or not to build static libraries.
  8749. build_old_libs=$enable_static
  8750. # Whether or not to add -lc for building shared libraries.
  8751. build_libtool_need_lc=$archive_cmds_need_lc
  8752. # Whether or not to disallow shared libs when runtime libs are static
  8753. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8754. # Whether or not to optimize for fast installation.
  8755. fast_install=$enable_fast_install
  8756. # The host system.
  8757. host_alias=$host_alias
  8758. host=$host
  8759. host_os=$host_os
  8760. # The build system.
  8761. build_alias=$build_alias
  8762. build=$build
  8763. build_os=$build_os
  8764. # An echo program that does not interpret backslashes.
  8765. echo=$lt_echo
  8766. # The archiver.
  8767. AR=$lt_AR
  8768. AR_FLAGS=$lt_AR_FLAGS
  8769. # A C compiler.
  8770. LTCC=$lt_LTCC
  8771. # LTCC compiler flags.
  8772. LTCFLAGS=$lt_LTCFLAGS
  8773. # A language-specific compiler.
  8774. CC=$lt_compiler
  8775. # Is the compiler the GNU C compiler?
  8776. with_gcc=$GCC
  8777. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  8778. gcc_ver=\`gcc -dumpversion\`
  8779. # An ERE matcher.
  8780. EGREP=$lt_EGREP
  8781. # The linker used to build libraries.
  8782. LD=$lt_LD
  8783. # Whether we need hard or soft links.
  8784. LN_S=$lt_LN_S
  8785. # A BSD-compatible nm program.
  8786. NM=$lt_NM
  8787. # A symbol stripping program
  8788. STRIP=$lt_STRIP
  8789. # Used to examine libraries when file_magic_cmd begins "file"
  8790. MAGIC_CMD=$MAGIC_CMD
  8791. # Used on cygwin: DLL creation program.
  8792. DLLTOOL="$DLLTOOL"
  8793. # Used on cygwin: object dumper.
  8794. OBJDUMP="$OBJDUMP"
  8795. # Used on cygwin: assembler.
  8796. AS="$AS"
  8797. # The name of the directory that contains temporary libtool files.
  8798. objdir=$objdir
  8799. # How to create reloadable object files.
  8800. reload_flag=$lt_reload_flag
  8801. reload_cmds=$lt_reload_cmds
  8802. # How to pass a linker flag through the compiler.
  8803. wl=$lt_lt_prog_compiler_wl
  8804. # Object file suffix (normally "o").
  8805. objext="$ac_objext"
  8806. # Old archive suffix (normally "a").
  8807. libext="$libext"
  8808. # Shared library suffix (normally ".so").
  8809. shrext_cmds='$shrext_cmds'
  8810. # Executable file suffix (normally "").
  8811. exeext="$exeext"
  8812. # Additional compiler flags for building library objects.
  8813. pic_flag=$lt_lt_prog_compiler_pic
  8814. pic_mode=$pic_mode
  8815. # What is the maximum length of a command?
  8816. max_cmd_len=$lt_cv_sys_max_cmd_len
  8817. # Does compiler simultaneously support -c and -o options?
  8818. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8819. # Must we lock files when doing compilation?
  8820. need_locks=$lt_need_locks
  8821. # Do we need the lib prefix for modules?
  8822. need_lib_prefix=$need_lib_prefix
  8823. # Do we need a version for libraries?
  8824. need_version=$need_version
  8825. # Whether dlopen is supported.
  8826. dlopen_support=$enable_dlopen
  8827. # Whether dlopen of programs is supported.
  8828. dlopen_self=$enable_dlopen_self
  8829. # Whether dlopen of statically linked programs is supported.
  8830. dlopen_self_static=$enable_dlopen_self_static
  8831. # Compiler flag to prevent dynamic linking.
  8832. link_static_flag=$lt_lt_prog_compiler_static
  8833. # Compiler flag to turn off builtin functions.
  8834. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8835. # Compiler flag to allow reflexive dlopens.
  8836. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8837. # Compiler flag to generate shared objects directly from archives.
  8838. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8839. # Compiler flag to generate thread-safe objects.
  8840. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8841. # Library versioning type.
  8842. version_type=$version_type
  8843. # Format of library name prefix.
  8844. libname_spec=$lt_libname_spec
  8845. # List of archive names. First name is the real one, the rest are links.
  8846. # The last name is the one that the linker finds with -lNAME.
  8847. library_names_spec=$lt_library_names_spec
  8848. # The coded name of the library, if different from the real name.
  8849. soname_spec=$lt_soname_spec
  8850. # Commands used to build and install an old-style archive.
  8851. RANLIB=$lt_RANLIB
  8852. old_archive_cmds=$lt_old_archive_cmds
  8853. old_postinstall_cmds=$lt_old_postinstall_cmds
  8854. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8855. # Create an old-style archive from a shared archive.
  8856. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8857. # Create a temporary old-style archive to link instead of a shared archive.
  8858. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8859. # Commands used to build and install a shared archive.
  8860. archive_cmds=$lt_archive_cmds
  8861. archive_expsym_cmds=$lt_archive_expsym_cmds
  8862. postinstall_cmds=$lt_postinstall_cmds
  8863. postuninstall_cmds=$lt_postuninstall_cmds
  8864. # Commands used to build a loadable module (assumed same as above if empty)
  8865. module_cmds=$lt_module_cmds
  8866. module_expsym_cmds=$lt_module_expsym_cmds
  8867. # Commands to strip libraries.
  8868. old_striplib=$lt_old_striplib
  8869. striplib=$lt_striplib
  8870. # Dependencies to place before the objects being linked to create a
  8871. # shared library.
  8872. predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8873. # Dependencies to place after the objects being linked to create a
  8874. # shared library.
  8875. postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8876. # Dependencies to place before the objects being linked to create a
  8877. # shared library.
  8878. predeps=$lt_predeps
  8879. # Dependencies to place after the objects being linked to create a
  8880. # shared library.
  8881. postdeps=$lt_postdeps
  8882. # The library search path used internally by the compiler when linking
  8883. # a shared library.
  8884. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8885. # Method to check whether dependent libraries are shared objects.
  8886. deplibs_check_method=$lt_deplibs_check_method
  8887. # Command to use when deplibs_check_method == file_magic.
  8888. file_magic_cmd=$lt_file_magic_cmd
  8889. # Flag that allows shared libraries with undefined symbols to be built.
  8890. allow_undefined_flag=$lt_allow_undefined_flag
  8891. # Flag that forces no undefined symbols.
  8892. no_undefined_flag=$lt_no_undefined_flag
  8893. # Commands used to finish a libtool library installation in a directory.
  8894. finish_cmds=$lt_finish_cmds
  8895. # Same as above, but a single script fragment to be evaled but not shown.
  8896. finish_eval=$lt_finish_eval
  8897. # Take the output of nm and produce a listing of raw symbols and C names.
  8898. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8899. # Transform the output of nm in a proper C declaration
  8900. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8901. # Transform the output of nm in a C name address pair
  8902. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8903. # This is the shared library runtime path variable.
  8904. runpath_var=$runpath_var
  8905. # This is the shared library path variable.
  8906. shlibpath_var=$shlibpath_var
  8907. # Is shlibpath searched before the hard-coded library search path?
  8908. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8909. # How to hardcode a shared library path into an executable.
  8910. hardcode_action=$hardcode_action
  8911. # Whether we should hardcode library paths into libraries.
  8912. hardcode_into_libs=$hardcode_into_libs
  8913. # Flag to hardcode \$libdir into a binary during linking.
  8914. # This must work even if \$libdir does not exist.
  8915. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8916. # If ld is used when linking, flag to hardcode \$libdir into
  8917. # a binary during linking. This must work even if \$libdir does
  8918. # not exist.
  8919. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8920. # Whether we need a single -rpath flag with a separated argument.
  8921. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8922. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8923. # resulting binary.
  8924. hardcode_direct=$hardcode_direct
  8925. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8926. # resulting binary.
  8927. hardcode_minus_L=$hardcode_minus_L
  8928. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8929. # the resulting binary.
  8930. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8931. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8932. # and all subsequent libraries and executables linked against it.
  8933. hardcode_automatic=$hardcode_automatic
  8934. # Variables whose values should be saved in libtool wrapper scripts and
  8935. # restored at relink time.
  8936. variables_saved_for_relink="$variables_saved_for_relink"
  8937. # Whether libtool must link a program against all its dependency libraries.
  8938. link_all_deplibs=$link_all_deplibs
  8939. # Compile-time system search path for libraries
  8940. 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"\`
  8941. # Run-time system search path for libraries
  8942. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8943. # Fix the shell variable \$srcfile for the compiler.
  8944. fix_srcfile_path="$fix_srcfile_path"
  8945. # Set to yes if exported symbols are required.
  8946. always_export_symbols=$always_export_symbols
  8947. # The commands to list exported symbols.
  8948. export_symbols_cmds=$lt_export_symbols_cmds
  8949. # The commands to extract the exported symbol list from a shared archive.
  8950. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8951. # Symbols that should not be listed in the preloaded symbols.
  8952. exclude_expsyms=$lt_exclude_expsyms
  8953. # Symbols that must always be exported.
  8954. include_expsyms=$lt_include_expsyms
  8955. # ### END LIBTOOL CONFIG
  8956. __EOF__
  8957. case $host_os in
  8958. aix3*)
  8959. cat <<\EOF >> "$cfgfile"
  8960. # AIX sometimes has problems with the GCC collect2 program. For some
  8961. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8962. # vanish in a puff of smoke.
  8963. if test "X${COLLECT_NAMES+set}" != Xset; then
  8964. COLLECT_NAMES=
  8965. export COLLECT_NAMES
  8966. fi
  8967. EOF
  8968. ;;
  8969. esac
  8970. # We use sed instead of cat because bash on DJGPP gets confused if
  8971. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8972. # text mode, it properly converts lines to CR/LF. This bash problem
  8973. # is reportedly fixed, but why not run on old versions too?
  8974. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8975. mv -f "$cfgfile" "$ofile" || \
  8976. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8977. chmod +x "$ofile"
  8978. else
  8979. # If there is no Makefile yet, we rely on a make rule to execute
  8980. # `config.status --recheck' to rerun these tests and create the
  8981. # libtool script then.
  8982. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8983. if test -f "$ltmain_in"; then
  8984. test -f Makefile && make "$ltmain"
  8985. fi
  8986. fi
  8987. ac_ext=c
  8988. ac_cpp='$CPP $CPPFLAGS'
  8989. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8990. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8991. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8992. CC="$lt_save_CC"
  8993. # Check whether --with-tags or --without-tags was given.
  8994. if test "${with_tags+set}" = set; then
  8995. withval="$with_tags"
  8996. tagnames="$withval"
  8997. fi;
  8998. if test -f "$ltmain" && test -n "$tagnames"; then
  8999. if test ! -f "${ofile}"; then
  9000. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9001. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9002. fi
  9003. if test -z "$LTCC"; then
  9004. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9005. if test -z "$LTCC"; then
  9006. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9007. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9008. else
  9009. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9010. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9011. fi
  9012. fi
  9013. if test -z "$LTCFLAGS"; then
  9014. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9015. fi
  9016. # Extract list of available tagged configurations in $ofile.
  9017. # Note that this assumes the entire list is on one line.
  9018. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9019. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9020. for tagname in $tagnames; do
  9021. IFS="$lt_save_ifs"
  9022. # Check whether tagname contains only valid characters
  9023. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9024. "") ;;
  9025. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9026. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9027. { (exit 1); exit 1; }; }
  9028. ;;
  9029. esac
  9030. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9031. then
  9032. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9033. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9034. { (exit 1); exit 1; }; }
  9035. fi
  9036. # Update the list of available tags.
  9037. if test -n "$tagname"; then
  9038. echo appending configuration tag \"$tagname\" to $ofile
  9039. case $tagname in
  9040. CXX)
  9041. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9042. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9043. (test "X$CXX" != "Xg++"))) ; then
  9044. ac_ext=cc
  9045. ac_cpp='$CXXCPP $CPPFLAGS'
  9046. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9047. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9048. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9049. archive_cmds_need_lc_CXX=no
  9050. allow_undefined_flag_CXX=
  9051. always_export_symbols_CXX=no
  9052. archive_expsym_cmds_CXX=
  9053. export_dynamic_flag_spec_CXX=
  9054. hardcode_direct_CXX=no
  9055. hardcode_libdir_flag_spec_CXX=
  9056. hardcode_libdir_flag_spec_ld_CXX=
  9057. hardcode_libdir_separator_CXX=
  9058. hardcode_minus_L_CXX=no
  9059. hardcode_shlibpath_var_CXX=unsupported
  9060. hardcode_automatic_CXX=no
  9061. module_cmds_CXX=
  9062. module_expsym_cmds_CXX=
  9063. link_all_deplibs_CXX=unknown
  9064. old_archive_cmds_CXX=$old_archive_cmds
  9065. no_undefined_flag_CXX=
  9066. whole_archive_flag_spec_CXX=
  9067. enable_shared_with_static_runtimes_CXX=no
  9068. # Dependencies to place before and after the object being linked:
  9069. predep_objects_CXX=
  9070. postdep_objects_CXX=
  9071. predeps_CXX=
  9072. postdeps_CXX=
  9073. compiler_lib_search_path_CXX=
  9074. # Source file extension for C++ test sources.
  9075. ac_ext=cpp
  9076. # Object file extension for compiled C++ test sources.
  9077. objext=o
  9078. objext_CXX=$objext
  9079. # Code to be used in simple compile tests
  9080. lt_simple_compile_test_code="int some_variable = 0;\n"
  9081. # Code to be used in simple link tests
  9082. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9083. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9084. # If no C compiler was specified, use CC.
  9085. LTCC=${LTCC-"$CC"}
  9086. # If no C compiler flags were specified, use CFLAGS.
  9087. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9088. # Allow CC to be a program name with arguments.
  9089. compiler=$CC
  9090. # save warnings/boilerplate of simple test code
  9091. ac_outfile=conftest.$ac_objext
  9092. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9093. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9094. _lt_compiler_boilerplate=`cat conftest.err`
  9095. $rm conftest*
  9096. ac_outfile=conftest.$ac_objext
  9097. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9098. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9099. _lt_linker_boilerplate=`cat conftest.err`
  9100. $rm conftest*
  9101. # Allow CC to be a program name with arguments.
  9102. lt_save_CC=$CC
  9103. lt_save_LD=$LD
  9104. lt_save_GCC=$GCC
  9105. GCC=$GXX
  9106. lt_save_with_gnu_ld=$with_gnu_ld
  9107. lt_save_path_LD=$lt_cv_path_LD
  9108. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9109. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9110. else
  9111. $as_unset lt_cv_prog_gnu_ld
  9112. fi
  9113. if test -n "${lt_cv_path_LDCXX+set}"; then
  9114. lt_cv_path_LD=$lt_cv_path_LDCXX
  9115. else
  9116. $as_unset lt_cv_path_LD
  9117. fi
  9118. test -z "${LDCXX+set}" || LD=$LDCXX
  9119. CC=${CXX-"c++"}
  9120. compiler=$CC
  9121. compiler_CXX=$CC
  9122. for cc_temp in $compiler""; do
  9123. case $cc_temp in
  9124. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9125. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9126. \-*) ;;
  9127. *) break;;
  9128. esac
  9129. done
  9130. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9131. # We don't want -fno-exception wen compiling C++ code, so set the
  9132. # no_builtin_flag separately
  9133. if test "$GXX" = yes; then
  9134. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9135. else
  9136. lt_prog_compiler_no_builtin_flag_CXX=
  9137. fi
  9138. if test "$GXX" = yes; then
  9139. # Set up default GNU C++ configuration
  9140. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9141. if test "${with_gnu_ld+set}" = set; then
  9142. withval="$with_gnu_ld"
  9143. test "$withval" = no || with_gnu_ld=yes
  9144. else
  9145. with_gnu_ld=no
  9146. fi;
  9147. ac_prog=ld
  9148. if test "$GCC" = yes; then
  9149. # Check if gcc -print-prog-name=ld gives a path.
  9150. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9151. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9152. case $host in
  9153. *-*-mingw*)
  9154. # gcc leaves a trailing carriage return which upsets mingw
  9155. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9156. *)
  9157. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9158. esac
  9159. case $ac_prog in
  9160. # Accept absolute paths.
  9161. [\\/]* | ?:[\\/]*)
  9162. re_direlt='/[^/][^/]*/\.\./'
  9163. # Canonicalize the pathname of ld
  9164. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9165. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9166. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9167. done
  9168. test -z "$LD" && LD="$ac_prog"
  9169. ;;
  9170. "")
  9171. # If it fails, then pretend we aren't using GCC.
  9172. ac_prog=ld
  9173. ;;
  9174. *)
  9175. # If it is relative, then search for the first ld in PATH.
  9176. with_gnu_ld=unknown
  9177. ;;
  9178. esac
  9179. elif test "$with_gnu_ld" = yes; then
  9180. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9181. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9182. else
  9183. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9184. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9185. fi
  9186. if test "${lt_cv_path_LD+set}" = set; then
  9187. echo $ECHO_N "(cached) $ECHO_C" >&6
  9188. else
  9189. if test -z "$LD"; then
  9190. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9191. for ac_dir in $PATH; do
  9192. IFS="$lt_save_ifs"
  9193. test -z "$ac_dir" && ac_dir=.
  9194. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9195. lt_cv_path_LD="$ac_dir/$ac_prog"
  9196. # Check to see if the program is GNU ld. I'd rather use --version,
  9197. # but apparently some variants of GNU ld only accept -v.
  9198. # Break only if it was the GNU/non-GNU ld that we prefer.
  9199. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9200. *GNU* | *'with BFD'*)
  9201. test "$with_gnu_ld" != no && break
  9202. ;;
  9203. *)
  9204. test "$with_gnu_ld" != yes && break
  9205. ;;
  9206. esac
  9207. fi
  9208. done
  9209. IFS="$lt_save_ifs"
  9210. else
  9211. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9212. fi
  9213. fi
  9214. LD="$lt_cv_path_LD"
  9215. if test -n "$LD"; then
  9216. echo "$as_me:$LINENO: result: $LD" >&5
  9217. echo "${ECHO_T}$LD" >&6
  9218. else
  9219. echo "$as_me:$LINENO: result: no" >&5
  9220. echo "${ECHO_T}no" >&6
  9221. fi
  9222. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9223. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9224. { (exit 1); exit 1; }; }
  9225. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9226. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9227. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9228. echo $ECHO_N "(cached) $ECHO_C" >&6
  9229. else
  9230. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9231. case `$LD -v 2>&1 </dev/null` in
  9232. *GNU* | *'with BFD'*)
  9233. lt_cv_prog_gnu_ld=yes
  9234. ;;
  9235. *)
  9236. lt_cv_prog_gnu_ld=no
  9237. ;;
  9238. esac
  9239. fi
  9240. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9241. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9242. with_gnu_ld=$lt_cv_prog_gnu_ld
  9243. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9244. # archiving commands below assume that GNU ld is being used.
  9245. if test "$with_gnu_ld" = yes; then
  9246. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9247. 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'
  9248. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9249. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9250. # If archive_cmds runs LD, not CC, wlarc should be empty
  9251. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9252. # investigate it a little bit more. (MM)
  9253. wlarc='${wl}'
  9254. # ancient GNU ld didn't support --whole-archive et. al.
  9255. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9256. grep 'no-whole-archive' > /dev/null; then
  9257. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9258. else
  9259. whole_archive_flag_spec_CXX=
  9260. fi
  9261. else
  9262. with_gnu_ld=no
  9263. wlarc=
  9264. # A generic and very simple default shared library creation
  9265. # command for GNU C++ for the case where it uses the native
  9266. # linker, instead of GNU ld. If possible, this setting should
  9267. # overridden to take advantage of the native linker features on
  9268. # the platform it is being used on.
  9269. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9270. fi
  9271. # Commands to make compiler produce verbose output that lists
  9272. # what "hidden" libraries, object files and flags are used when
  9273. # linking a shared library.
  9274. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9275. else
  9276. GXX=no
  9277. with_gnu_ld=no
  9278. wlarc=
  9279. fi
  9280. # PORTME: fill in a description of your system's C++ link characteristics
  9281. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9282. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9283. ld_shlibs_CXX=yes
  9284. case $host_os in
  9285. aix3*)
  9286. # FIXME: insert proper C++ library support
  9287. ld_shlibs_CXX=no
  9288. ;;
  9289. aix4* | aix5*)
  9290. if test "$host_cpu" = ia64; then
  9291. # On IA64, the linker does run time linking by default, so we don't
  9292. # have to do anything special.
  9293. aix_use_runtimelinking=no
  9294. exp_sym_flag='-Bexport'
  9295. no_entry_flag=""
  9296. else
  9297. aix_use_runtimelinking=no
  9298. # Test if we are trying to use run time linking or normal
  9299. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9300. # need to do runtime linking.
  9301. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9302. for ld_flag in $LDFLAGS; do
  9303. case $ld_flag in
  9304. *-brtl*)
  9305. aix_use_runtimelinking=yes
  9306. break
  9307. ;;
  9308. esac
  9309. done
  9310. ;;
  9311. esac
  9312. exp_sym_flag='-bexport'
  9313. no_entry_flag='-bnoentry'
  9314. fi
  9315. # When large executables or shared objects are built, AIX ld can
  9316. # have problems creating the table of contents. If linking a library
  9317. # or program results in "error TOC overflow" add -mminimal-toc to
  9318. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9319. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9320. archive_cmds_CXX=''
  9321. hardcode_direct_CXX=yes
  9322. hardcode_libdir_separator_CXX=':'
  9323. link_all_deplibs_CXX=yes
  9324. if test "$GXX" = yes; then
  9325. case $host_os in aix4.[012]|aix4.[012].*)
  9326. # We only want to do this on AIX 4.2 and lower, the check
  9327. # below for broken collect2 doesn't work under 4.3+
  9328. collect2name=`${CC} -print-prog-name=collect2`
  9329. if test -f "$collect2name" && \
  9330. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9331. then
  9332. # We have reworked collect2
  9333. hardcode_direct_CXX=yes
  9334. else
  9335. # We have old collect2
  9336. hardcode_direct_CXX=unsupported
  9337. # It fails to find uninstalled libraries when the uninstalled
  9338. # path is not listed in the libpath. Setting hardcode_minus_L
  9339. # to unsupported forces relinking
  9340. hardcode_minus_L_CXX=yes
  9341. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9342. hardcode_libdir_separator_CXX=
  9343. fi
  9344. ;;
  9345. esac
  9346. shared_flag='-shared'
  9347. if test "$aix_use_runtimelinking" = yes; then
  9348. shared_flag="$shared_flag "'${wl}-G'
  9349. fi
  9350. else
  9351. # not using gcc
  9352. if test "$host_cpu" = ia64; then
  9353. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9354. # chokes on -Wl,-G. The following line is correct:
  9355. shared_flag='-G'
  9356. else
  9357. if test "$aix_use_runtimelinking" = yes; then
  9358. shared_flag='${wl}-G'
  9359. else
  9360. shared_flag='${wl}-bM:SRE'
  9361. fi
  9362. fi
  9363. fi
  9364. # It seems that -bexpall does not export symbols beginning with
  9365. # underscore (_), so it is better to generate a list of symbols to export.
  9366. always_export_symbols_CXX=yes
  9367. if test "$aix_use_runtimelinking" = yes; then
  9368. # Warning - without using the other runtime loading flags (-brtl),
  9369. # -berok will link without error, but may produce a broken library.
  9370. allow_undefined_flag_CXX='-berok'
  9371. # Determine the default libpath from the value encoded in an empty executable.
  9372. cat >conftest.$ac_ext <<_ACEOF
  9373. /* confdefs.h. */
  9374. _ACEOF
  9375. cat confdefs.h >>conftest.$ac_ext
  9376. cat >>conftest.$ac_ext <<_ACEOF
  9377. /* end confdefs.h. */
  9378. int
  9379. main ()
  9380. {
  9381. ;
  9382. return 0;
  9383. }
  9384. _ACEOF
  9385. rm -f conftest.$ac_objext conftest$ac_exeext
  9386. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9387. (eval $ac_link) 2>conftest.er1
  9388. ac_status=$?
  9389. grep -v '^ *+' conftest.er1 >conftest.err
  9390. rm -f conftest.er1
  9391. cat conftest.err >&5
  9392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9393. (exit $ac_status); } &&
  9394. { ac_try='test -z "$ac_cxx_werror_flag"
  9395. || test ! -s conftest.err'
  9396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9397. (eval $ac_try) 2>&5
  9398. ac_status=$?
  9399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9400. (exit $ac_status); }; } &&
  9401. { ac_try='test -s conftest$ac_exeext'
  9402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9403. (eval $ac_try) 2>&5
  9404. ac_status=$?
  9405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9406. (exit $ac_status); }; }; then
  9407. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9408. }'`
  9409. # Check for a 64-bit object if we didn't find anything.
  9410. 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; }
  9411. }'`; fi
  9412. else
  9413. echo "$as_me: failed program was:" >&5
  9414. sed 's/^/| /' conftest.$ac_ext >&5
  9415. fi
  9416. rm -f conftest.err conftest.$ac_objext \
  9417. conftest$ac_exeext conftest.$ac_ext
  9418. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9419. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9420. 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"
  9421. else
  9422. if test "$host_cpu" = ia64; then
  9423. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9424. allow_undefined_flag_CXX="-z nodefs"
  9425. 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"
  9426. else
  9427. # Determine the default libpath from the value encoded in an empty executable.
  9428. cat >conftest.$ac_ext <<_ACEOF
  9429. /* confdefs.h. */
  9430. _ACEOF
  9431. cat confdefs.h >>conftest.$ac_ext
  9432. cat >>conftest.$ac_ext <<_ACEOF
  9433. /* end confdefs.h. */
  9434. int
  9435. main ()
  9436. {
  9437. ;
  9438. return 0;
  9439. }
  9440. _ACEOF
  9441. rm -f conftest.$ac_objext conftest$ac_exeext
  9442. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9443. (eval $ac_link) 2>conftest.er1
  9444. ac_status=$?
  9445. grep -v '^ *+' conftest.er1 >conftest.err
  9446. rm -f conftest.er1
  9447. cat conftest.err >&5
  9448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9449. (exit $ac_status); } &&
  9450. { ac_try='test -z "$ac_cxx_werror_flag"
  9451. || test ! -s conftest.err'
  9452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9453. (eval $ac_try) 2>&5
  9454. ac_status=$?
  9455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9456. (exit $ac_status); }; } &&
  9457. { ac_try='test -s conftest$ac_exeext'
  9458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9459. (eval $ac_try) 2>&5
  9460. ac_status=$?
  9461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9462. (exit $ac_status); }; }; then
  9463. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9464. }'`
  9465. # Check for a 64-bit object if we didn't find anything.
  9466. 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; }
  9467. }'`; fi
  9468. else
  9469. echo "$as_me: failed program was:" >&5
  9470. sed 's/^/| /' conftest.$ac_ext >&5
  9471. fi
  9472. rm -f conftest.err conftest.$ac_objext \
  9473. conftest$ac_exeext conftest.$ac_ext
  9474. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9475. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9476. # Warning - without using the other run time loading flags,
  9477. # -berok will link without error, but may produce a broken library.
  9478. no_undefined_flag_CXX=' ${wl}-bernotok'
  9479. allow_undefined_flag_CXX=' ${wl}-berok'
  9480. # Exported symbols can be pulled into shared objects from archives
  9481. whole_archive_flag_spec_CXX='$convenience'
  9482. archive_cmds_need_lc_CXX=yes
  9483. # This is similar to how AIX traditionally builds its shared libraries.
  9484. 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'
  9485. fi
  9486. fi
  9487. ;;
  9488. beos*)
  9489. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9490. allow_undefined_flag_CXX=unsupported
  9491. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9492. # support --undefined. This deserves some investigation. FIXME
  9493. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9494. else
  9495. ld_shlibs_CXX=no
  9496. fi
  9497. ;;
  9498. chorus*)
  9499. case $cc_basename in
  9500. *)
  9501. # FIXME: insert proper C++ library support
  9502. ld_shlibs_CXX=no
  9503. ;;
  9504. esac
  9505. ;;
  9506. cygwin* | mingw* | pw32*)
  9507. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9508. # as there is no search path for DLLs.
  9509. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9510. allow_undefined_flag_CXX=unsupported
  9511. always_export_symbols_CXX=no
  9512. enable_shared_with_static_runtimes_CXX=yes
  9513. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9514. 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'
  9515. # If the export-symbols file already is a .def file (1st line
  9516. # is EXPORTS), use it as is; otherwise, prepend...
  9517. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9518. cp $export_symbols $output_objdir/$soname.def;
  9519. else
  9520. echo EXPORTS > $output_objdir/$soname.def;
  9521. cat $export_symbols >> $output_objdir/$soname.def;
  9522. fi~
  9523. $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'
  9524. else
  9525. ld_shlibs_CXX=no
  9526. fi
  9527. ;;
  9528. darwin* | rhapsody*)
  9529. case $host_os in
  9530. rhapsody* | darwin1.[012])
  9531. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9532. ;;
  9533. *) # Darwin 1.3 on
  9534. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9535. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9536. else
  9537. case ${MACOSX_DEPLOYMENT_TARGET} in
  9538. 10.[012])
  9539. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9540. ;;
  9541. 10.*)
  9542. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9543. ;;
  9544. esac
  9545. fi
  9546. ;;
  9547. esac
  9548. archive_cmds_need_lc_CXX=no
  9549. hardcode_direct_CXX=no
  9550. hardcode_automatic_CXX=yes
  9551. hardcode_shlibpath_var_CXX=unsupported
  9552. whole_archive_flag_spec_CXX=''
  9553. link_all_deplibs_CXX=yes
  9554. if test "$GXX" = yes ; then
  9555. lt_int_apple_cc_single_mod=no
  9556. output_verbose_link_cmd='echo'
  9557. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9558. lt_int_apple_cc_single_mod=yes
  9559. fi
  9560. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9561. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9562. else
  9563. 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'
  9564. fi
  9565. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9566. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9567. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9568. 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}'
  9569. else
  9570. 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}'
  9571. fi
  9572. 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}'
  9573. else
  9574. case $cc_basename in
  9575. xlc*)
  9576. output_verbose_link_cmd='echo'
  9577. 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'
  9578. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9579. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9580. 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}'
  9581. 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}'
  9582. ;;
  9583. *)
  9584. ld_shlibs_CXX=no
  9585. ;;
  9586. esac
  9587. fi
  9588. ;;
  9589. dgux*)
  9590. case $cc_basename in
  9591. ec++*)
  9592. # FIXME: insert proper C++ library support
  9593. ld_shlibs_CXX=no
  9594. ;;
  9595. ghcx*)
  9596. # Green Hills C++ Compiler
  9597. # FIXME: insert proper C++ library support
  9598. ld_shlibs_CXX=no
  9599. ;;
  9600. *)
  9601. # FIXME: insert proper C++ library support
  9602. ld_shlibs_CXX=no
  9603. ;;
  9604. esac
  9605. ;;
  9606. freebsd[12]*)
  9607. # C++ shared libraries reported to be fairly broken before switch to ELF
  9608. ld_shlibs_CXX=no
  9609. ;;
  9610. freebsd-elf*)
  9611. archive_cmds_need_lc_CXX=no
  9612. ;;
  9613. freebsd* | kfreebsd*-gnu | dragonfly*)
  9614. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9615. # conventions
  9616. ld_shlibs_CXX=yes
  9617. ;;
  9618. gnu*)
  9619. ;;
  9620. hpux9*)
  9621. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9622. hardcode_libdir_separator_CXX=:
  9623. export_dynamic_flag_spec_CXX='${wl}-E'
  9624. hardcode_direct_CXX=yes
  9625. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9626. # but as the default
  9627. # location of the library.
  9628. case $cc_basename in
  9629. CC*)
  9630. # FIXME: insert proper C++ library support
  9631. ld_shlibs_CXX=no
  9632. ;;
  9633. aCC*)
  9634. 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'
  9635. # Commands to make compiler produce verbose output that lists
  9636. # what "hidden" libraries, object files and flags are used when
  9637. # linking a shared library.
  9638. #
  9639. # There doesn't appear to be a way to prevent this compiler from
  9640. # explicitly linking system object files so we need to strip them
  9641. # from the output so that they don't get included in the library
  9642. # dependencies.
  9643. 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'
  9644. ;;
  9645. *)
  9646. if test "$GXX" = yes; then
  9647. 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'
  9648. else
  9649. # FIXME: insert proper C++ library support
  9650. ld_shlibs_CXX=no
  9651. fi
  9652. ;;
  9653. esac
  9654. ;;
  9655. hpux10*|hpux11*)
  9656. if test $with_gnu_ld = no; then
  9657. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9658. hardcode_libdir_separator_CXX=:
  9659. case $host_cpu in
  9660. hppa*64*|ia64*)
  9661. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9662. ;;
  9663. *)
  9664. export_dynamic_flag_spec_CXX='${wl}-E'
  9665. ;;
  9666. esac
  9667. fi
  9668. case $host_cpu in
  9669. hppa*64*|ia64*)
  9670. hardcode_direct_CXX=no
  9671. hardcode_shlibpath_var_CXX=no
  9672. ;;
  9673. *)
  9674. hardcode_direct_CXX=yes
  9675. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9676. # but as the default
  9677. # location of the library.
  9678. ;;
  9679. esac
  9680. case $cc_basename in
  9681. CC*)
  9682. # FIXME: insert proper C++ library support
  9683. ld_shlibs_CXX=no
  9684. ;;
  9685. aCC*)
  9686. case $host_cpu in
  9687. hppa*64*)
  9688. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9689. ;;
  9690. ia64*)
  9691. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9692. ;;
  9693. *)
  9694. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9695. ;;
  9696. esac
  9697. # Commands to make compiler produce verbose output that lists
  9698. # what "hidden" libraries, object files and flags are used when
  9699. # linking a shared library.
  9700. #
  9701. # There doesn't appear to be a way to prevent this compiler from
  9702. # explicitly linking system object files so we need to strip them
  9703. # from the output so that they don't get included in the library
  9704. # dependencies.
  9705. 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'
  9706. ;;
  9707. *)
  9708. if test "$GXX" = yes; then
  9709. if test $with_gnu_ld = no; then
  9710. case $host_cpu in
  9711. hppa*64*)
  9712. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9713. ;;
  9714. ia64*)
  9715. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9716. ;;
  9717. *)
  9718. 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'
  9719. ;;
  9720. esac
  9721. fi
  9722. else
  9723. # FIXME: insert proper C++ library support
  9724. ld_shlibs_CXX=no
  9725. fi
  9726. ;;
  9727. esac
  9728. ;;
  9729. interix3*)
  9730. hardcode_direct_CXX=no
  9731. hardcode_shlibpath_var_CXX=no
  9732. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9733. export_dynamic_flag_spec_CXX='${wl}-E'
  9734. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9735. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9736. # default) and relocated if they conflict, which is a slow very memory
  9737. # consuming and fragmenting process. To avoid this, we pick a random,
  9738. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9739. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9740. 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'
  9741. 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'
  9742. ;;
  9743. irix5* | irix6*)
  9744. case $cc_basename in
  9745. CC*)
  9746. # SGI C++
  9747. 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'
  9748. # Archives containing C++ object files must be created using
  9749. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9750. # necessary to make sure instantiated templates are included
  9751. # in the archive.
  9752. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9753. ;;
  9754. *)
  9755. if test "$GXX" = yes; then
  9756. if test "$with_gnu_ld" = no; then
  9757. 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'
  9758. else
  9759. 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'
  9760. fi
  9761. fi
  9762. link_all_deplibs_CXX=yes
  9763. ;;
  9764. esac
  9765. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9766. hardcode_libdir_separator_CXX=:
  9767. ;;
  9768. linux*)
  9769. case $cc_basename in
  9770. KCC*)
  9771. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9772. # KCC will only create a shared library if the output file
  9773. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9774. # to its proper name (with version) after linking.
  9775. 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'
  9776. 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'
  9777. # Commands to make compiler produce verbose output that lists
  9778. # what "hidden" libraries, object files and flags are used when
  9779. # linking a shared library.
  9780. #
  9781. # There doesn't appear to be a way to prevent this compiler from
  9782. # explicitly linking system object files so we need to strip them
  9783. # from the output so that they don't get included in the library
  9784. # dependencies.
  9785. 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'
  9786. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9787. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9788. # Archives containing C++ object files must be created using
  9789. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9790. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9791. ;;
  9792. icpc*)
  9793. # Intel C++
  9794. with_gnu_ld=yes
  9795. # version 8.0 and above of icpc choke on multiply defined symbols
  9796. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9797. # earlier do not add the objects themselves.
  9798. case `$CC -V 2>&1` in
  9799. *"Version 7."*)
  9800. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9801. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9802. ;;
  9803. *) # Version 8.0 or newer
  9804. tmp_idyn=
  9805. case $host_cpu in
  9806. ia64*) tmp_idyn=' -i_dynamic';;
  9807. esac
  9808. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9809. 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'
  9810. ;;
  9811. esac
  9812. archive_cmds_need_lc_CXX=no
  9813. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9814. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9815. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9816. ;;
  9817. pgCC*)
  9818. # Portland Group C++ compiler
  9819. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9820. 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'
  9821. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9822. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9823. 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'
  9824. ;;
  9825. cxx*)
  9826. # Compaq C++
  9827. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9828. 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'
  9829. runpath_var=LD_RUN_PATH
  9830. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9831. hardcode_libdir_separator_CXX=:
  9832. # Commands to make compiler produce verbose output that lists
  9833. # what "hidden" libraries, object files and flags are used when
  9834. # linking a shared library.
  9835. #
  9836. # There doesn't appear to be a way to prevent this compiler from
  9837. # explicitly linking system object files so we need to strip them
  9838. # from the output so that they don't get included in the library
  9839. # dependencies.
  9840. 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'
  9841. ;;
  9842. esac
  9843. ;;
  9844. lynxos*)
  9845. # FIXME: insert proper C++ library support
  9846. ld_shlibs_CXX=no
  9847. ;;
  9848. m88k*)
  9849. # FIXME: insert proper C++ library support
  9850. ld_shlibs_CXX=no
  9851. ;;
  9852. mvs*)
  9853. case $cc_basename in
  9854. cxx*)
  9855. # FIXME: insert proper C++ library support
  9856. ld_shlibs_CXX=no
  9857. ;;
  9858. *)
  9859. # FIXME: insert proper C++ library support
  9860. ld_shlibs_CXX=no
  9861. ;;
  9862. esac
  9863. ;;
  9864. netbsd*)
  9865. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9866. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9867. wlarc=
  9868. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9869. hardcode_direct_CXX=yes
  9870. hardcode_shlibpath_var_CXX=no
  9871. fi
  9872. # Workaround some broken pre-1.5 toolchains
  9873. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9874. ;;
  9875. openbsd2*)
  9876. # C++ shared libraries are fairly broken
  9877. ld_shlibs_CXX=no
  9878. ;;
  9879. openbsd*)
  9880. hardcode_direct_CXX=yes
  9881. hardcode_shlibpath_var_CXX=no
  9882. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9883. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9884. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9885. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9886. export_dynamic_flag_spec_CXX='${wl}-E'
  9887. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9888. fi
  9889. output_verbose_link_cmd='echo'
  9890. ;;
  9891. osf3*)
  9892. case $cc_basename in
  9893. KCC*)
  9894. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9895. # KCC will only create a shared library if the output file
  9896. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9897. # to its proper name (with version) after linking.
  9898. 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'
  9899. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9900. hardcode_libdir_separator_CXX=:
  9901. # Archives containing C++ object files must be created using
  9902. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9903. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9904. ;;
  9905. RCC*)
  9906. # Rational C++ 2.4.1
  9907. # FIXME: insert proper C++ library support
  9908. ld_shlibs_CXX=no
  9909. ;;
  9910. cxx*)
  9911. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9912. 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'
  9913. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9914. hardcode_libdir_separator_CXX=:
  9915. # Commands to make compiler produce verbose output that lists
  9916. # what "hidden" libraries, object files and flags are used when
  9917. # linking a shared library.
  9918. #
  9919. # There doesn't appear to be a way to prevent this compiler from
  9920. # explicitly linking system object files so we need to strip them
  9921. # from the output so that they don't get included in the library
  9922. # dependencies.
  9923. 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'
  9924. ;;
  9925. *)
  9926. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9927. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9928. 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'
  9929. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9930. hardcode_libdir_separator_CXX=:
  9931. # Commands to make compiler produce verbose output that lists
  9932. # what "hidden" libraries, object files and flags are used when
  9933. # linking a shared library.
  9934. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9935. else
  9936. # FIXME: insert proper C++ library support
  9937. ld_shlibs_CXX=no
  9938. fi
  9939. ;;
  9940. esac
  9941. ;;
  9942. osf4* | osf5*)
  9943. case $cc_basename in
  9944. KCC*)
  9945. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9946. # KCC will only create a shared library if the output file
  9947. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9948. # to its proper name (with version) after linking.
  9949. 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'
  9950. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9951. hardcode_libdir_separator_CXX=:
  9952. # Archives containing C++ object files must be created using
  9953. # the KAI C++ compiler.
  9954. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9955. ;;
  9956. RCC*)
  9957. # Rational C++ 2.4.1
  9958. # FIXME: insert proper C++ library support
  9959. ld_shlibs_CXX=no
  9960. ;;
  9961. cxx*)
  9962. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9963. 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'
  9964. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9965. echo "-hidden">> $lib.exp~
  9966. $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~
  9967. $rm $lib.exp'
  9968. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9969. hardcode_libdir_separator_CXX=:
  9970. # Commands to make compiler produce verbose output that lists
  9971. # what "hidden" libraries, object files and flags are used when
  9972. # linking a shared library.
  9973. #
  9974. # There doesn't appear to be a way to prevent this compiler from
  9975. # explicitly linking system object files so we need to strip them
  9976. # from the output so that they don't get included in the library
  9977. # dependencies.
  9978. 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'
  9979. ;;
  9980. *)
  9981. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9982. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9983. 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'
  9984. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9985. hardcode_libdir_separator_CXX=:
  9986. # Commands to make compiler produce verbose output that lists
  9987. # what "hidden" libraries, object files and flags are used when
  9988. # linking a shared library.
  9989. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9990. else
  9991. # FIXME: insert proper C++ library support
  9992. ld_shlibs_CXX=no
  9993. fi
  9994. ;;
  9995. esac
  9996. ;;
  9997. psos*)
  9998. # FIXME: insert proper C++ library support
  9999. ld_shlibs_CXX=no
  10000. ;;
  10001. sunos4*)
  10002. case $cc_basename in
  10003. CC*)
  10004. # Sun C++ 4.x
  10005. # FIXME: insert proper C++ library support
  10006. ld_shlibs_CXX=no
  10007. ;;
  10008. lcc*)
  10009. # Lucid
  10010. # FIXME: insert proper C++ library support
  10011. ld_shlibs_CXX=no
  10012. ;;
  10013. *)
  10014. # FIXME: insert proper C++ library support
  10015. ld_shlibs_CXX=no
  10016. ;;
  10017. esac
  10018. ;;
  10019. solaris*)
  10020. case $cc_basename in
  10021. CC*)
  10022. # Sun C++ 4.2, 5.x and Centerline C++
  10023. archive_cmds_need_lc_CXX=yes
  10024. no_undefined_flag_CXX=' -zdefs'
  10025. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10026. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10027. $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'
  10028. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10029. hardcode_shlibpath_var_CXX=no
  10030. case $host_os in
  10031. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10032. *)
  10033. # The C++ compiler is used as linker so we must use $wl
  10034. # flag to pass the commands to the underlying system
  10035. # linker. We must also pass each convience library through
  10036. # to the system linker between allextract/defaultextract.
  10037. # The C++ compiler will combine linker options so we
  10038. # cannot just pass the convience library names through
  10039. # without $wl.
  10040. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10041. 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'
  10042. ;;
  10043. esac
  10044. link_all_deplibs_CXX=yes
  10045. output_verbose_link_cmd='echo'
  10046. # Archives containing C++ object files must be created using
  10047. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10048. # necessary to make sure instantiated templates are included
  10049. # in the archive.
  10050. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10051. ;;
  10052. gcx*)
  10053. # Green Hills C++ Compiler
  10054. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10055. # The C++ compiler must be used to create the archive.
  10056. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10057. ;;
  10058. *)
  10059. # GNU C++ compiler with Solaris linker
  10060. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10061. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10062. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10063. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10064. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10065. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10066. # Commands to make compiler produce verbose output that lists
  10067. # what "hidden" libraries, object files and flags are used when
  10068. # linking a shared library.
  10069. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10070. else
  10071. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10072. # platform.
  10073. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10074. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10075. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10076. # Commands to make compiler produce verbose output that lists
  10077. # what "hidden" libraries, object files and flags are used when
  10078. # linking a shared library.
  10079. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10080. fi
  10081. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10082. fi
  10083. ;;
  10084. esac
  10085. ;;
  10086. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10087. no_undefined_flag_CXX='${wl}-z,text'
  10088. archive_cmds_need_lc_CXX=no
  10089. hardcode_shlibpath_var_CXX=no
  10090. runpath_var='LD_RUN_PATH'
  10091. case $cc_basename in
  10092. CC*)
  10093. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10094. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10095. ;;
  10096. *)
  10097. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10098. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10099. ;;
  10100. esac
  10101. ;;
  10102. sysv5* | sco3.2v5* | sco5v6*)
  10103. # Note: We can NOT use -z defs as we might desire, because we do not
  10104. # link with -lc, and that would cause any symbols used from libc to
  10105. # always be unresolved, which means just about no library would
  10106. # ever link correctly. If we're not using GNU ld we use -z text
  10107. # though, which does catch some bad symbols but isn't as heavy-handed
  10108. # as -z defs.
  10109. # For security reasons, it is highly recommended that you always
  10110. # use absolute paths for naming shared libraries, and exclude the
  10111. # DT_RUNPATH tag from executables and libraries. But doing so
  10112. # requires that you compile everything twice, which is a pain.
  10113. # So that behaviour is only enabled if SCOABSPATH is set to a
  10114. # non-empty value in the environment. Most likely only useful for
  10115. # creating official distributions of packages.
  10116. # This is a hack until libtool officially supports absolute path
  10117. # names for shared libraries.
  10118. no_undefined_flag_CXX='${wl}-z,text'
  10119. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10120. archive_cmds_need_lc_CXX=no
  10121. hardcode_shlibpath_var_CXX=no
  10122. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10123. hardcode_libdir_separator_CXX=':'
  10124. link_all_deplibs_CXX=yes
  10125. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10126. runpath_var='LD_RUN_PATH'
  10127. case $cc_basename in
  10128. CC*)
  10129. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10130. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10131. ;;
  10132. *)
  10133. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10134. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10135. ;;
  10136. esac
  10137. ;;
  10138. tandem*)
  10139. case $cc_basename in
  10140. NCC*)
  10141. # NonStop-UX NCC 3.20
  10142. # FIXME: insert proper C++ library support
  10143. ld_shlibs_CXX=no
  10144. ;;
  10145. *)
  10146. # FIXME: insert proper C++ library support
  10147. ld_shlibs_CXX=no
  10148. ;;
  10149. esac
  10150. ;;
  10151. vxworks*)
  10152. # FIXME: insert proper C++ library support
  10153. ld_shlibs_CXX=no
  10154. ;;
  10155. *)
  10156. # FIXME: insert proper C++ library support
  10157. ld_shlibs_CXX=no
  10158. ;;
  10159. esac
  10160. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10161. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10162. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10163. GCC_CXX="$GXX"
  10164. LD_CXX="$LD"
  10165. cat > conftest.$ac_ext <<EOF
  10166. class Foo
  10167. {
  10168. public:
  10169. Foo (void) { a = 0; }
  10170. private:
  10171. int a;
  10172. };
  10173. EOF
  10174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10175. (eval $ac_compile) 2>&5
  10176. ac_status=$?
  10177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10178. (exit $ac_status); }; then
  10179. # Parse the compiler output and extract the necessary
  10180. # objects, libraries and library flags.
  10181. # Sentinel used to keep track of whether or not we are before
  10182. # the conftest object file.
  10183. pre_test_object_deps_done=no
  10184. # The `*' in the case matches for architectures that use `case' in
  10185. # $output_verbose_cmd can trigger glob expansion during the loop
  10186. # eval without this substitution.
  10187. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10188. for p in `eval $output_verbose_link_cmd`; do
  10189. case $p in
  10190. -L* | -R* | -l*)
  10191. # Some compilers place space between "-{L,R}" and the path.
  10192. # Remove the space.
  10193. if test $p = "-L" \
  10194. || test $p = "-R"; then
  10195. prev=$p
  10196. continue
  10197. else
  10198. prev=
  10199. fi
  10200. if test "$pre_test_object_deps_done" = no; then
  10201. case $p in
  10202. -L* | -R*)
  10203. # Internal compiler library paths should come after those
  10204. # provided the user. The postdeps already come after the
  10205. # user supplied libs so there is no need to process them.
  10206. if test -z "$compiler_lib_search_path_CXX"; then
  10207. compiler_lib_search_path_CXX="${prev}${p}"
  10208. else
  10209. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10210. fi
  10211. ;;
  10212. # The "-l" case would never come before the object being
  10213. # linked, so don't bother handling this case.
  10214. esac
  10215. else
  10216. if test -z "$postdeps_CXX"; then
  10217. postdeps_CXX="${prev}${p}"
  10218. else
  10219. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10220. fi
  10221. fi
  10222. ;;
  10223. *.$objext)
  10224. # This assumes that the test object file only shows up
  10225. # once in the compiler output.
  10226. if test "$p" = "conftest.$objext"; then
  10227. pre_test_object_deps_done=yes
  10228. continue
  10229. fi
  10230. if test "$pre_test_object_deps_done" = no; then
  10231. if test -z "$predep_objects_CXX"; then
  10232. predep_objects_CXX="$p"
  10233. else
  10234. predep_objects_CXX="$predep_objects_CXX $p"
  10235. fi
  10236. else
  10237. if test -z "$postdep_objects_CXX"; then
  10238. postdep_objects_CXX="$p"
  10239. else
  10240. postdep_objects_CXX="$postdep_objects_CXX $p"
  10241. fi
  10242. fi
  10243. ;;
  10244. *) ;; # Ignore the rest.
  10245. esac
  10246. done
  10247. # Clean up.
  10248. rm -f a.out a.exe
  10249. else
  10250. echo "libtool.m4: error: problem compiling CXX test program"
  10251. fi
  10252. $rm -f confest.$objext
  10253. # PORTME: override above test on systems where it is broken
  10254. case $host_os in
  10255. interix3*)
  10256. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10257. # hack all around it, let's just trust "g++" to DTRT.
  10258. predep_objects_CXX=
  10259. postdep_objects_CXX=
  10260. postdeps_CXX=
  10261. ;;
  10262. solaris*)
  10263. case $cc_basename in
  10264. CC*)
  10265. # Adding this requires a known-good setup of shared libraries for
  10266. # Sun compiler versions before 5.6, else PIC objects from an old
  10267. # archive will be linked into the output, leading to subtle bugs.
  10268. postdeps_CXX='-lCstd -lCrun'
  10269. ;;
  10270. esac
  10271. ;;
  10272. esac
  10273. case " $postdeps_CXX " in
  10274. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10275. esac
  10276. lt_prog_compiler_wl_CXX=
  10277. lt_prog_compiler_pic_CXX=
  10278. lt_prog_compiler_static_CXX=
  10279. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10280. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10281. # C++ specific cases for pic, static, wl, etc.
  10282. if test "$GXX" = yes; then
  10283. lt_prog_compiler_wl_CXX='-Wl,'
  10284. lt_prog_compiler_static_CXX='-static'
  10285. case $host_os in
  10286. aix*)
  10287. # All AIX code is PIC.
  10288. if test "$host_cpu" = ia64; then
  10289. # AIX 5 now supports IA64 processor
  10290. lt_prog_compiler_static_CXX='-Bstatic'
  10291. fi
  10292. ;;
  10293. amigaos*)
  10294. # FIXME: we need at least 68020 code to build shared libraries, but
  10295. # adding the `-m68020' flag to GCC prevents building anything better,
  10296. # like `-m68040'.
  10297. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10298. ;;
  10299. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10300. # PIC is the default for these OSes.
  10301. ;;
  10302. mingw* | os2* | pw32*)
  10303. # This hack is so that the source file can tell whether it is being
  10304. # built for inclusion in a dll (and should export symbols for example).
  10305. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10306. ;;
  10307. darwin* | rhapsody*)
  10308. # PIC is the default on this platform
  10309. # Common symbols not allowed in MH_DYLIB files
  10310. lt_prog_compiler_pic_CXX='-fno-common'
  10311. ;;
  10312. *djgpp*)
  10313. # DJGPP does not support shared libraries at all
  10314. lt_prog_compiler_pic_CXX=
  10315. ;;
  10316. interix3*)
  10317. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10318. # Instead, we relocate shared libraries at runtime.
  10319. ;;
  10320. sysv4*MP*)
  10321. if test -d /usr/nec; then
  10322. lt_prog_compiler_pic_CXX=-Kconform_pic
  10323. fi
  10324. ;;
  10325. hpux*)
  10326. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10327. # not for PA HP-UX.
  10328. case $host_cpu in
  10329. hppa*64*|ia64*)
  10330. ;;
  10331. *)
  10332. lt_prog_compiler_pic_CXX='-fPIC'
  10333. ;;
  10334. esac
  10335. ;;
  10336. *)
  10337. lt_prog_compiler_pic_CXX='-fPIC'
  10338. ;;
  10339. esac
  10340. else
  10341. case $host_os in
  10342. aix4* | aix5*)
  10343. # All AIX code is PIC.
  10344. if test "$host_cpu" = ia64; then
  10345. # AIX 5 now supports IA64 processor
  10346. lt_prog_compiler_static_CXX='-Bstatic'
  10347. else
  10348. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10349. fi
  10350. ;;
  10351. chorus*)
  10352. case $cc_basename in
  10353. cxch68*)
  10354. # Green Hills C++ Compiler
  10355. # _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"
  10356. ;;
  10357. esac
  10358. ;;
  10359. darwin*)
  10360. # PIC is the default on this platform
  10361. # Common symbols not allowed in MH_DYLIB files
  10362. case $cc_basename in
  10363. xlc*)
  10364. lt_prog_compiler_pic_CXX='-qnocommon'
  10365. lt_prog_compiler_wl_CXX='-Wl,'
  10366. ;;
  10367. esac
  10368. ;;
  10369. dgux*)
  10370. case $cc_basename in
  10371. ec++*)
  10372. lt_prog_compiler_pic_CXX='-KPIC'
  10373. ;;
  10374. ghcx*)
  10375. # Green Hills C++ Compiler
  10376. lt_prog_compiler_pic_CXX='-pic'
  10377. ;;
  10378. *)
  10379. ;;
  10380. esac
  10381. ;;
  10382. freebsd* | kfreebsd*-gnu | dragonfly*)
  10383. # FreeBSD uses GNU C++
  10384. ;;
  10385. hpux9* | hpux10* | hpux11*)
  10386. case $cc_basename in
  10387. CC*)
  10388. lt_prog_compiler_wl_CXX='-Wl,'
  10389. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10390. if test "$host_cpu" != ia64; then
  10391. lt_prog_compiler_pic_CXX='+Z'
  10392. fi
  10393. ;;
  10394. aCC*)
  10395. lt_prog_compiler_wl_CXX='-Wl,'
  10396. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10397. case $host_cpu in
  10398. hppa*64*|ia64*)
  10399. # +Z the default
  10400. ;;
  10401. *)
  10402. lt_prog_compiler_pic_CXX='+Z'
  10403. ;;
  10404. esac
  10405. ;;
  10406. *)
  10407. ;;
  10408. esac
  10409. ;;
  10410. interix*)
  10411. # This is c89, which is MS Visual C++ (no shared libs)
  10412. # Anyone wants to do a port?
  10413. ;;
  10414. irix5* | irix6* | nonstopux*)
  10415. case $cc_basename in
  10416. CC*)
  10417. lt_prog_compiler_wl_CXX='-Wl,'
  10418. lt_prog_compiler_static_CXX='-non_shared'
  10419. # CC pic flag -KPIC is the default.
  10420. ;;
  10421. *)
  10422. ;;
  10423. esac
  10424. ;;
  10425. linux*)
  10426. case $cc_basename in
  10427. KCC*)
  10428. # KAI C++ Compiler
  10429. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10430. lt_prog_compiler_pic_CXX='-fPIC'
  10431. ;;
  10432. icpc* | ecpc*)
  10433. # Intel C++
  10434. lt_prog_compiler_wl_CXX='-Wl,'
  10435. lt_prog_compiler_pic_CXX='-KPIC'
  10436. lt_prog_compiler_static_CXX='-static'
  10437. ;;
  10438. pgCC*)
  10439. # Portland Group C++ compiler.
  10440. lt_prog_compiler_wl_CXX='-Wl,'
  10441. lt_prog_compiler_pic_CXX='-fpic'
  10442. lt_prog_compiler_static_CXX='-Bstatic'
  10443. ;;
  10444. cxx*)
  10445. # Compaq C++
  10446. # Make sure the PIC flag is empty. It appears that all Alpha
  10447. # Linux and Compaq Tru64 Unix objects are PIC.
  10448. lt_prog_compiler_pic_CXX=
  10449. lt_prog_compiler_static_CXX='-non_shared'
  10450. ;;
  10451. *)
  10452. ;;
  10453. esac
  10454. ;;
  10455. lynxos*)
  10456. ;;
  10457. m88k*)
  10458. ;;
  10459. mvs*)
  10460. case $cc_basename in
  10461. cxx*)
  10462. lt_prog_compiler_pic_CXX='-W c,exportall'
  10463. ;;
  10464. *)
  10465. ;;
  10466. esac
  10467. ;;
  10468. netbsd*)
  10469. ;;
  10470. osf3* | osf4* | osf5*)
  10471. case $cc_basename in
  10472. KCC*)
  10473. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10474. ;;
  10475. RCC*)
  10476. # Rational C++ 2.4.1
  10477. lt_prog_compiler_pic_CXX='-pic'
  10478. ;;
  10479. cxx*)
  10480. # Digital/Compaq C++
  10481. lt_prog_compiler_wl_CXX='-Wl,'
  10482. # Make sure the PIC flag is empty. It appears that all Alpha
  10483. # Linux and Compaq Tru64 Unix objects are PIC.
  10484. lt_prog_compiler_pic_CXX=
  10485. lt_prog_compiler_static_CXX='-non_shared'
  10486. ;;
  10487. *)
  10488. ;;
  10489. esac
  10490. ;;
  10491. psos*)
  10492. ;;
  10493. solaris*)
  10494. case $cc_basename in
  10495. CC*)
  10496. # Sun C++ 4.2, 5.x and Centerline C++
  10497. lt_prog_compiler_pic_CXX='-KPIC'
  10498. lt_prog_compiler_static_CXX='-Bstatic'
  10499. lt_prog_compiler_wl_CXX='-Qoption ld '
  10500. ;;
  10501. gcx*)
  10502. # Green Hills C++ Compiler
  10503. lt_prog_compiler_pic_CXX='-PIC'
  10504. ;;
  10505. *)
  10506. ;;
  10507. esac
  10508. ;;
  10509. sunos4*)
  10510. case $cc_basename in
  10511. CC*)
  10512. # Sun C++ 4.x
  10513. lt_prog_compiler_pic_CXX='-pic'
  10514. lt_prog_compiler_static_CXX='-Bstatic'
  10515. ;;
  10516. lcc*)
  10517. # Lucid
  10518. lt_prog_compiler_pic_CXX='-pic'
  10519. ;;
  10520. *)
  10521. ;;
  10522. esac
  10523. ;;
  10524. tandem*)
  10525. case $cc_basename in
  10526. NCC*)
  10527. # NonStop-UX NCC 3.20
  10528. lt_prog_compiler_pic_CXX='-KPIC'
  10529. ;;
  10530. *)
  10531. ;;
  10532. esac
  10533. ;;
  10534. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10535. case $cc_basename in
  10536. CC*)
  10537. lt_prog_compiler_wl_CXX='-Wl,'
  10538. lt_prog_compiler_pic_CXX='-KPIC'
  10539. lt_prog_compiler_static_CXX='-Bstatic'
  10540. ;;
  10541. esac
  10542. ;;
  10543. vxworks*)
  10544. ;;
  10545. *)
  10546. lt_prog_compiler_can_build_shared_CXX=no
  10547. ;;
  10548. esac
  10549. fi
  10550. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10551. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10552. #
  10553. # Check to make sure the PIC flag actually works.
  10554. #
  10555. if test -n "$lt_prog_compiler_pic_CXX"; then
  10556. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10557. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10558. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10559. echo $ECHO_N "(cached) $ECHO_C" >&6
  10560. else
  10561. lt_prog_compiler_pic_works_CXX=no
  10562. ac_outfile=conftest.$ac_objext
  10563. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10564. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10565. # Insert the option either (1) after the last *FLAGS variable, or
  10566. # (2) before a word containing "conftest.", or (3) at the end.
  10567. # Note that $ac_compile itself does not contain backslashes and begins
  10568. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10569. # The option is referenced via a variable to avoid confusing sed.
  10570. lt_compile=`echo "$ac_compile" | $SED \
  10571. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10572. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10573. -e 's:$: $lt_compiler_flag:'`
  10574. (eval echo "\"\$as_me:11694: $lt_compile\"" >&5)
  10575. (eval "$lt_compile" 2>conftest.err)
  10576. ac_status=$?
  10577. cat conftest.err >&5
  10578. echo "$as_me:11698: \$? = $ac_status" >&5
  10579. if (exit $ac_status) && test -s "$ac_outfile"; then
  10580. # The compiler can only warn and ignore the option if not recognized
  10581. # So say no if there are warnings other than the usual output.
  10582. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10583. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10584. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10585. lt_prog_compiler_pic_works_CXX=yes
  10586. fi
  10587. fi
  10588. $rm conftest*
  10589. fi
  10590. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10591. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10592. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10593. case $lt_prog_compiler_pic_CXX in
  10594. "" | " "*) ;;
  10595. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10596. esac
  10597. else
  10598. lt_prog_compiler_pic_CXX=
  10599. lt_prog_compiler_can_build_shared_CXX=no
  10600. fi
  10601. fi
  10602. case $host_os in
  10603. # For platforms which do not support PIC, -DPIC is meaningless:
  10604. *djgpp*)
  10605. lt_prog_compiler_pic_CXX=
  10606. ;;
  10607. *)
  10608. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10609. ;;
  10610. esac
  10611. #
  10612. # Check to make sure the static flag actually works.
  10613. #
  10614. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10615. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10616. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10617. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10618. echo $ECHO_N "(cached) $ECHO_C" >&6
  10619. else
  10620. lt_prog_compiler_static_works_CXX=no
  10621. save_LDFLAGS="$LDFLAGS"
  10622. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10623. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10624. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10625. # The linker can only warn and ignore the option if not recognized
  10626. # So say no if there are warnings
  10627. if test -s conftest.err; then
  10628. # Append any errors to the config.log.
  10629. cat conftest.err 1>&5
  10630. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10631. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10632. if diff conftest.exp conftest.er2 >/dev/null; then
  10633. lt_prog_compiler_static_works_CXX=yes
  10634. fi
  10635. else
  10636. lt_prog_compiler_static_works_CXX=yes
  10637. fi
  10638. fi
  10639. $rm conftest*
  10640. LDFLAGS="$save_LDFLAGS"
  10641. fi
  10642. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10643. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10644. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10645. :
  10646. else
  10647. lt_prog_compiler_static_CXX=
  10648. fi
  10649. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10650. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10651. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10652. echo $ECHO_N "(cached) $ECHO_C" >&6
  10653. else
  10654. lt_cv_prog_compiler_c_o_CXX=no
  10655. $rm -r conftest 2>/dev/null
  10656. mkdir conftest
  10657. cd conftest
  10658. mkdir out
  10659. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10660. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10661. # Insert the option either (1) after the last *FLAGS variable, or
  10662. # (2) before a word containing "conftest.", or (3) at the end.
  10663. # Note that $ac_compile itself does not contain backslashes and begins
  10664. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10665. lt_compile=`echo "$ac_compile" | $SED \
  10666. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10667. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10668. -e 's:$: $lt_compiler_flag:'`
  10669. (eval echo "\"\$as_me:11798: $lt_compile\"" >&5)
  10670. (eval "$lt_compile" 2>out/conftest.err)
  10671. ac_status=$?
  10672. cat out/conftest.err >&5
  10673. echo "$as_me:11802: \$? = $ac_status" >&5
  10674. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10675. then
  10676. # The compiler can only warn and ignore the option if not recognized
  10677. # So say no if there are warnings
  10678. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10679. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10680. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10681. lt_cv_prog_compiler_c_o_CXX=yes
  10682. fi
  10683. fi
  10684. chmod u+w . 2>&5
  10685. $rm conftest*
  10686. # SGI C++ compiler will create directory out/ii_files/ for
  10687. # template instantiation
  10688. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10689. $rm out/* && rmdir out
  10690. cd ..
  10691. rmdir conftest
  10692. $rm conftest*
  10693. fi
  10694. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10695. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10696. hard_links="nottested"
  10697. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10698. # do not overwrite the value of need_locks provided by the user
  10699. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10700. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10701. hard_links=yes
  10702. $rm conftest*
  10703. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10704. touch conftest.a
  10705. ln conftest.a conftest.b 2>&5 || hard_links=no
  10706. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10707. echo "$as_me:$LINENO: result: $hard_links" >&5
  10708. echo "${ECHO_T}$hard_links" >&6
  10709. if test "$hard_links" = no; then
  10710. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10711. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10712. need_locks=warn
  10713. fi
  10714. else
  10715. need_locks=no
  10716. fi
  10717. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10718. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10719. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10720. case $host_os in
  10721. aix4* | aix5*)
  10722. # If we're using GNU nm, then we don't want the "-C" option.
  10723. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10724. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10725. 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'
  10726. else
  10727. 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'
  10728. fi
  10729. ;;
  10730. pw32*)
  10731. export_symbols_cmds_CXX="$ltdll_cmds"
  10732. ;;
  10733. cygwin* | mingw*)
  10734. 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'
  10735. ;;
  10736. *)
  10737. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10738. ;;
  10739. esac
  10740. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10741. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10742. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10743. #
  10744. # Do we need to explicitly link libc?
  10745. #
  10746. case "x$archive_cmds_need_lc_CXX" in
  10747. x|xyes)
  10748. # Assume -lc should be added
  10749. archive_cmds_need_lc_CXX=yes
  10750. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10751. case $archive_cmds_CXX in
  10752. *'~'*)
  10753. # FIXME: we may have to deal with multi-command sequences.
  10754. ;;
  10755. '$CC '*)
  10756. # Test whether the compiler implicitly links with -lc since on some
  10757. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10758. # to ld, don't add -lc before -lgcc.
  10759. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10760. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10761. $rm conftest*
  10762. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10764. (eval $ac_compile) 2>&5
  10765. ac_status=$?
  10766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10767. (exit $ac_status); } 2>conftest.err; then
  10768. soname=conftest
  10769. lib=conftest
  10770. libobjs=conftest.$ac_objext
  10771. deplibs=
  10772. wl=$lt_prog_compiler_wl_CXX
  10773. pic_flag=$lt_prog_compiler_pic_CXX
  10774. compiler_flags=-v
  10775. linker_flags=-v
  10776. verstring=
  10777. output_objdir=.
  10778. libname=conftest
  10779. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10780. allow_undefined_flag_CXX=
  10781. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10782. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10783. ac_status=$?
  10784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10785. (exit $ac_status); }
  10786. then
  10787. archive_cmds_need_lc_CXX=no
  10788. else
  10789. archive_cmds_need_lc_CXX=yes
  10790. fi
  10791. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10792. else
  10793. cat conftest.err 1>&5
  10794. fi
  10795. $rm conftest*
  10796. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10797. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10798. ;;
  10799. esac
  10800. fi
  10801. ;;
  10802. esac
  10803. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10804. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10805. library_names_spec=
  10806. libname_spec='lib$name'
  10807. soname_spec=
  10808. shrext_cmds=".so"
  10809. postinstall_cmds=
  10810. postuninstall_cmds=
  10811. finish_cmds=
  10812. finish_eval=
  10813. shlibpath_var=
  10814. shlibpath_overrides_runpath=unknown
  10815. version_type=none
  10816. dynamic_linker="$host_os ld.so"
  10817. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10818. if test "$GCC" = yes; then
  10819. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10820. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10821. # if the path contains ";" then we assume it to be the separator
  10822. # otherwise default to the standard path separator (i.e. ":") - it is
  10823. # assumed that no part of a normal pathname contains ";" but that should
  10824. # okay in the real world where ";" in dirpaths is itself problematic.
  10825. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10826. else
  10827. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10828. fi
  10829. else
  10830. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10831. fi
  10832. need_lib_prefix=unknown
  10833. hardcode_into_libs=no
  10834. # when you set need_version to no, make sure it does not cause -set_version
  10835. # flags to be left without arguments
  10836. need_version=unknown
  10837. case $host_os in
  10838. aix3*)
  10839. version_type=linux
  10840. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10841. shlibpath_var=LIBPATH
  10842. # AIX 3 has no versioning support, so we append a major version to the name.
  10843. soname_spec='${libname}${release}${shared_ext}$major'
  10844. ;;
  10845. aix4* | aix5*)
  10846. version_type=linux
  10847. need_lib_prefix=no
  10848. need_version=no
  10849. hardcode_into_libs=yes
  10850. if test "$host_cpu" = ia64; then
  10851. # AIX 5 supports IA64
  10852. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10853. shlibpath_var=LD_LIBRARY_PATH
  10854. else
  10855. # With GCC up to 2.95.x, collect2 would create an import file
  10856. # for dependence libraries. The import file would start with
  10857. # the line `#! .'. This would cause the generated library to
  10858. # depend on `.', always an invalid library. This was fixed in
  10859. # development snapshots of GCC prior to 3.0.
  10860. case $host_os in
  10861. aix4 | aix4.[01] | aix4.[01].*)
  10862. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10863. echo ' yes '
  10864. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10865. :
  10866. else
  10867. can_build_shared=no
  10868. fi
  10869. ;;
  10870. esac
  10871. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10872. # soname into executable. Probably we can add versioning support to
  10873. # collect2, so additional links can be useful in future.
  10874. if test "$aix_use_runtimelinking" = yes; then
  10875. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10876. # instead of lib<name>.a to let people know that these are not
  10877. # typical AIX shared libraries.
  10878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10879. else
  10880. # We preserve .a as extension for shared libraries through AIX4.2
  10881. # and later when we are not doing run time linking.
  10882. library_names_spec='${libname}${release}.a $libname.a'
  10883. soname_spec='${libname}${release}${shared_ext}$major'
  10884. fi
  10885. shlibpath_var=LIBPATH
  10886. fi
  10887. ;;
  10888. amigaos*)
  10889. library_names_spec='$libname.ixlibrary $libname.a'
  10890. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10891. 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'
  10892. ;;
  10893. beos*)
  10894. library_names_spec='${libname}${shared_ext}'
  10895. dynamic_linker="$host_os ld.so"
  10896. shlibpath_var=LIBRARY_PATH
  10897. ;;
  10898. bsdi[45]*)
  10899. version_type=linux
  10900. need_version=no
  10901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10902. soname_spec='${libname}${release}${shared_ext}$major'
  10903. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10904. shlibpath_var=LD_LIBRARY_PATH
  10905. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10906. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10907. # the default ld.so.conf also contains /usr/contrib/lib and
  10908. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10909. # libtool to hard-code these into programs
  10910. ;;
  10911. cygwin* | mingw* | pw32*)
  10912. version_type=windows
  10913. shrext_cmds=".dll"
  10914. need_version=no
  10915. need_lib_prefix=no
  10916. case $GCC,$host_os in
  10917. yes,cygwin* | yes,mingw* | yes,pw32*)
  10918. library_names_spec='$libname.dll.a'
  10919. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10920. postinstall_cmds='base_file=`basename \${file}`~
  10921. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10922. dldir=$destdir/`dirname \$dlpath`~
  10923. test -d \$dldir || mkdir -p \$dldir~
  10924. $install_prog $dir/$dlname \$dldir/$dlname~
  10925. chmod a+x \$dldir/$dlname'
  10926. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10927. dlpath=$dir/\$dldll~
  10928. $rm \$dlpath'
  10929. shlibpath_overrides_runpath=yes
  10930. case $host_os in
  10931. cygwin*)
  10932. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10933. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10934. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10935. ;;
  10936. mingw*)
  10937. # MinGW DLLs use traditional 'lib' prefix
  10938. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10939. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10940. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10941. # It is most probably a Windows format PATH printed by
  10942. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10943. # path with ; separators, and with drive letters. We can handle the
  10944. # drive letters (cygwin fileutils understands them), so leave them,
  10945. # especially as we might pass files found there to a mingw objdump,
  10946. # which wouldn't understand a cygwinified path. Ahh.
  10947. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10948. else
  10949. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10950. fi
  10951. ;;
  10952. pw32*)
  10953. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10954. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10955. ;;
  10956. esac
  10957. ;;
  10958. *)
  10959. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10960. ;;
  10961. esac
  10962. dynamic_linker='Win32 ld.exe'
  10963. # FIXME: first we should search . and the directory the executable is in
  10964. shlibpath_var=PATH
  10965. ;;
  10966. darwin* | rhapsody*)
  10967. dynamic_linker="$host_os dyld"
  10968. version_type=darwin
  10969. need_lib_prefix=no
  10970. need_version=no
  10971. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10972. soname_spec='${libname}${release}${major}$shared_ext'
  10973. shlibpath_overrides_runpath=yes
  10974. shlibpath_var=DYLD_LIBRARY_PATH
  10975. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10976. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10977. if test "$GCC" = yes; then
  10978. 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"`
  10979. else
  10980. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10981. fi
  10982. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10983. ;;
  10984. dgux*)
  10985. version_type=linux
  10986. need_lib_prefix=no
  10987. need_version=no
  10988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10989. soname_spec='${libname}${release}${shared_ext}$major'
  10990. shlibpath_var=LD_LIBRARY_PATH
  10991. ;;
  10992. freebsd1*)
  10993. dynamic_linker=no
  10994. ;;
  10995. kfreebsd*-gnu)
  10996. version_type=linux
  10997. need_lib_prefix=no
  10998. need_version=no
  10999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11000. soname_spec='${libname}${release}${shared_ext}$major'
  11001. shlibpath_var=LD_LIBRARY_PATH
  11002. shlibpath_overrides_runpath=no
  11003. hardcode_into_libs=yes
  11004. dynamic_linker='GNU ld.so'
  11005. ;;
  11006. freebsd* | dragonfly*)
  11007. # DragonFly does not have aout. When/if they implement a new
  11008. # versioning mechanism, adjust this.
  11009. if test -x /usr/bin/objformat; then
  11010. objformat=`/usr/bin/objformat`
  11011. else
  11012. case $host_os in
  11013. freebsd[123]*) objformat=aout ;;
  11014. *) objformat=elf ;;
  11015. esac
  11016. fi
  11017. version_type=freebsd-$objformat
  11018. case $version_type in
  11019. freebsd-elf*)
  11020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11021. need_version=no
  11022. need_lib_prefix=no
  11023. ;;
  11024. freebsd-*)
  11025. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11026. need_version=yes
  11027. ;;
  11028. esac
  11029. shlibpath_var=LD_LIBRARY_PATH
  11030. case $host_os in
  11031. freebsd2*)
  11032. shlibpath_overrides_runpath=yes
  11033. ;;
  11034. freebsd3.[01]* | freebsdelf3.[01]*)
  11035. shlibpath_overrides_runpath=yes
  11036. hardcode_into_libs=yes
  11037. ;;
  11038. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11039. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11040. shlibpath_overrides_runpath=no
  11041. hardcode_into_libs=yes
  11042. ;;
  11043. freebsd*) # from 4.6 on
  11044. shlibpath_overrides_runpath=yes
  11045. hardcode_into_libs=yes
  11046. ;;
  11047. esac
  11048. ;;
  11049. gnu*)
  11050. version_type=linux
  11051. need_lib_prefix=no
  11052. need_version=no
  11053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11054. soname_spec='${libname}${release}${shared_ext}$major'
  11055. shlibpath_var=LD_LIBRARY_PATH
  11056. hardcode_into_libs=yes
  11057. ;;
  11058. hpux9* | hpux10* | hpux11*)
  11059. # Give a soname corresponding to the major version so that dld.sl refuses to
  11060. # link against other versions.
  11061. version_type=sunos
  11062. need_lib_prefix=no
  11063. need_version=no
  11064. case $host_cpu in
  11065. ia64*)
  11066. shrext_cmds='.so'
  11067. hardcode_into_libs=yes
  11068. dynamic_linker="$host_os dld.so"
  11069. shlibpath_var=LD_LIBRARY_PATH
  11070. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11072. soname_spec='${libname}${release}${shared_ext}$major'
  11073. if test "X$HPUX_IA64_MODE" = X32; then
  11074. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11075. else
  11076. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11077. fi
  11078. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11079. ;;
  11080. hppa*64*)
  11081. shrext_cmds='.sl'
  11082. hardcode_into_libs=yes
  11083. dynamic_linker="$host_os dld.sl"
  11084. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11089. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11090. ;;
  11091. *)
  11092. shrext_cmds='.sl'
  11093. dynamic_linker="$host_os dld.sl"
  11094. shlibpath_var=SHLIB_PATH
  11095. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11097. soname_spec='${libname}${release}${shared_ext}$major'
  11098. ;;
  11099. esac
  11100. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11101. postinstall_cmds='chmod 555 $lib'
  11102. ;;
  11103. interix3*)
  11104. version_type=linux
  11105. need_lib_prefix=no
  11106. need_version=no
  11107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11108. soname_spec='${libname}${release}${shared_ext}$major'
  11109. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11110. shlibpath_var=LD_LIBRARY_PATH
  11111. shlibpath_overrides_runpath=no
  11112. hardcode_into_libs=yes
  11113. ;;
  11114. irix5* | irix6* | nonstopux*)
  11115. case $host_os in
  11116. nonstopux*) version_type=nonstopux ;;
  11117. *)
  11118. if test "$lt_cv_prog_gnu_ld" = yes; then
  11119. version_type=linux
  11120. else
  11121. version_type=irix
  11122. fi ;;
  11123. esac
  11124. need_lib_prefix=no
  11125. need_version=no
  11126. soname_spec='${libname}${release}${shared_ext}$major'
  11127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11128. case $host_os in
  11129. irix5* | nonstopux*)
  11130. libsuff= shlibsuff=
  11131. ;;
  11132. *)
  11133. case $LD in # libtool.m4 will add one of these switches to LD
  11134. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11135. libsuff= shlibsuff= libmagic=32-bit;;
  11136. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11137. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11138. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11139. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11140. *) libsuff= shlibsuff= libmagic=never-match;;
  11141. esac
  11142. ;;
  11143. esac
  11144. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11145. shlibpath_overrides_runpath=no
  11146. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11147. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11148. hardcode_into_libs=yes
  11149. ;;
  11150. # No shared lib support for Linux oldld, aout, or coff.
  11151. linux*oldld* | linux*aout* | linux*coff*)
  11152. dynamic_linker=no
  11153. ;;
  11154. # This must be Linux ELF.
  11155. linux*)
  11156. version_type=linux
  11157. need_lib_prefix=no
  11158. need_version=no
  11159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11160. soname_spec='${libname}${release}${shared_ext}$major'
  11161. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11162. shlibpath_var=LD_LIBRARY_PATH
  11163. shlibpath_overrides_runpath=no
  11164. # This implies no fast_install, which is unacceptable.
  11165. # Some rework will be needed to allow for fast_install
  11166. # before this can be enabled.
  11167. hardcode_into_libs=yes
  11168. # find out which ABI we are using
  11169. libsuff=
  11170. case "$host_cpu" in
  11171. x86_64*|s390x*|powerpc64*)
  11172. echo '#line 12334 "configure"' > conftest.$ac_ext
  11173. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11174. (eval $ac_compile) 2>&5
  11175. ac_status=$?
  11176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11177. (exit $ac_status); }; then
  11178. case `/usr/bin/file conftest.$ac_objext` in
  11179. *64-bit*)
  11180. libsuff=64
  11181. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  11182. ;;
  11183. esac
  11184. fi
  11185. rm -rf conftest*
  11186. ;;
  11187. esac
  11188. # Append ld.so.conf contents to the search path
  11189. if test -f /etc/ld.so.conf; then
  11190. 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' ' '`
  11191. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  11192. fi
  11193. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11194. # powerpc, because MkLinux only supported shared libraries with the
  11195. # GNU dynamic linker. Since this was broken with cross compilers,
  11196. # most powerpc-linux boxes support dynamic linking these days and
  11197. # people can always --disable-shared, the test was removed, and we
  11198. # assume the GNU/Linux dynamic linker is in use.
  11199. dynamic_linker='GNU/Linux ld.so'
  11200. ;;
  11201. knetbsd*-gnu)
  11202. version_type=linux
  11203. need_lib_prefix=no
  11204. need_version=no
  11205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11206. soname_spec='${libname}${release}${shared_ext}$major'
  11207. shlibpath_var=LD_LIBRARY_PATH
  11208. shlibpath_overrides_runpath=no
  11209. hardcode_into_libs=yes
  11210. dynamic_linker='GNU ld.so'
  11211. ;;
  11212. netbsd*)
  11213. version_type=sunos
  11214. need_lib_prefix=no
  11215. need_version=no
  11216. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11218. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11219. dynamic_linker='NetBSD (a.out) ld.so'
  11220. else
  11221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11222. soname_spec='${libname}${release}${shared_ext}$major'
  11223. dynamic_linker='NetBSD ld.elf_so'
  11224. fi
  11225. shlibpath_var=LD_LIBRARY_PATH
  11226. shlibpath_overrides_runpath=yes
  11227. hardcode_into_libs=yes
  11228. ;;
  11229. newsos6)
  11230. version_type=linux
  11231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11232. shlibpath_var=LD_LIBRARY_PATH
  11233. shlibpath_overrides_runpath=yes
  11234. ;;
  11235. nto-qnx*)
  11236. version_type=linux
  11237. need_lib_prefix=no
  11238. need_version=no
  11239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11240. soname_spec='${libname}${release}${shared_ext}$major'
  11241. shlibpath_var=LD_LIBRARY_PATH
  11242. shlibpath_overrides_runpath=yes
  11243. ;;
  11244. openbsd*)
  11245. version_type=sunos
  11246. sys_lib_dlsearch_path_spec="/usr/lib"
  11247. need_lib_prefix=no
  11248. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11249. case $host_os in
  11250. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11251. *) need_version=no ;;
  11252. esac
  11253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11254. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11255. shlibpath_var=LD_LIBRARY_PATH
  11256. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11257. case $host_os in
  11258. openbsd2.[89] | openbsd2.[89].*)
  11259. shlibpath_overrides_runpath=no
  11260. ;;
  11261. *)
  11262. shlibpath_overrides_runpath=yes
  11263. ;;
  11264. esac
  11265. else
  11266. shlibpath_overrides_runpath=yes
  11267. fi
  11268. ;;
  11269. os2*)
  11270. libname_spec='$name'
  11271. shrext_cmds=".dll"
  11272. need_lib_prefix=no
  11273. library_names_spec='$libname${shared_ext} $libname.a'
  11274. dynamic_linker='OS/2 ld.exe'
  11275. shlibpath_var=LIBPATH
  11276. ;;
  11277. osf3* | osf4* | osf5*)
  11278. version_type=osf
  11279. need_lib_prefix=no
  11280. need_version=no
  11281. soname_spec='${libname}${release}${shared_ext}$major'
  11282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11283. shlibpath_var=LD_LIBRARY_PATH
  11284. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11285. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11286. ;;
  11287. solaris*)
  11288. version_type=linux
  11289. need_lib_prefix=no
  11290. need_version=no
  11291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11292. soname_spec='${libname}${release}${shared_ext}$major'
  11293. shlibpath_var=LD_LIBRARY_PATH
  11294. shlibpath_overrides_runpath=yes
  11295. hardcode_into_libs=yes
  11296. # ldd complains unless libraries are executable
  11297. postinstall_cmds='chmod +x $lib'
  11298. ;;
  11299. sunos4*)
  11300. version_type=sunos
  11301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11302. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11303. shlibpath_var=LD_LIBRARY_PATH
  11304. shlibpath_overrides_runpath=yes
  11305. if test "$with_gnu_ld" = yes; then
  11306. need_lib_prefix=no
  11307. fi
  11308. need_version=yes
  11309. ;;
  11310. sysv4 | sysv4.3*)
  11311. version_type=linux
  11312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11313. soname_spec='${libname}${release}${shared_ext}$major'
  11314. shlibpath_var=LD_LIBRARY_PATH
  11315. case $host_vendor in
  11316. sni)
  11317. shlibpath_overrides_runpath=no
  11318. need_lib_prefix=no
  11319. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11320. runpath_var=LD_RUN_PATH
  11321. ;;
  11322. siemens)
  11323. need_lib_prefix=no
  11324. ;;
  11325. motorola)
  11326. need_lib_prefix=no
  11327. need_version=no
  11328. shlibpath_overrides_runpath=no
  11329. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11330. ;;
  11331. esac
  11332. ;;
  11333. sysv4*MP*)
  11334. if test -d /usr/nec ;then
  11335. version_type=linux
  11336. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11337. soname_spec='$libname${shared_ext}.$major'
  11338. shlibpath_var=LD_LIBRARY_PATH
  11339. fi
  11340. ;;
  11341. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11342. version_type=freebsd-elf
  11343. need_lib_prefix=no
  11344. need_version=no
  11345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11346. soname_spec='${libname}${release}${shared_ext}$major'
  11347. shlibpath_var=LD_LIBRARY_PATH
  11348. hardcode_into_libs=yes
  11349. if test "$with_gnu_ld" = yes; then
  11350. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11351. shlibpath_overrides_runpath=no
  11352. else
  11353. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11354. shlibpath_overrides_runpath=yes
  11355. case $host_os in
  11356. sco3.2v5*)
  11357. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11358. ;;
  11359. esac
  11360. fi
  11361. sys_lib_dlsearch_path_spec='/usr/lib'
  11362. ;;
  11363. uts4*)
  11364. version_type=linux
  11365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11366. soname_spec='${libname}${release}${shared_ext}$major'
  11367. shlibpath_var=LD_LIBRARY_PATH
  11368. ;;
  11369. *)
  11370. dynamic_linker=no
  11371. ;;
  11372. esac
  11373. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11374. echo "${ECHO_T}$dynamic_linker" >&6
  11375. test "$dynamic_linker" = no && can_build_shared=no
  11376. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11377. if test "$GCC" = yes; then
  11378. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11379. fi
  11380. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11381. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11382. hardcode_action_CXX=
  11383. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11384. test -n "$runpath_var_CXX" || \
  11385. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11386. # We can hardcode non-existant directories.
  11387. if test "$hardcode_direct_CXX" != no &&
  11388. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11389. # have to relink, otherwise we might link with an installed library
  11390. # when we should be linking with a yet-to-be-installed one
  11391. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11392. test "$hardcode_minus_L_CXX" != no; then
  11393. # Linking always hardcodes the temporary library directory.
  11394. hardcode_action_CXX=relink
  11395. else
  11396. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11397. hardcode_action_CXX=immediate
  11398. fi
  11399. else
  11400. # We cannot hardcode anything, or else we can only hardcode existing
  11401. # directories.
  11402. hardcode_action_CXX=unsupported
  11403. fi
  11404. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11405. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11406. if test "$hardcode_action_CXX" = relink; then
  11407. # Fast installation is not supported
  11408. enable_fast_install=no
  11409. elif test "$shlibpath_overrides_runpath" = yes ||
  11410. test "$enable_shared" = no; then
  11411. # Fast installation is not necessary
  11412. enable_fast_install=needless
  11413. fi
  11414. # The else clause should only fire when bootstrapping the
  11415. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11416. # with your package, and you will get complaints that there are
  11417. # no rules to generate ltmain.sh.
  11418. if test -f "$ltmain"; then
  11419. # See if we are running on zsh, and set the options which allow our commands through
  11420. # without removal of \ escapes.
  11421. if test -n "${ZSH_VERSION+set}" ; then
  11422. setopt NO_GLOB_SUBST
  11423. fi
  11424. # Now quote all the things that may contain metacharacters while being
  11425. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11426. # variables and quote the copies for generation of the libtool script.
  11427. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11428. SED SHELL STRIP \
  11429. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11430. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11431. deplibs_check_method reload_flag reload_cmds need_locks \
  11432. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11433. lt_cv_sys_global_symbol_to_c_name_address \
  11434. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11435. old_postinstall_cmds old_postuninstall_cmds \
  11436. compiler_CXX \
  11437. CC_CXX \
  11438. LD_CXX \
  11439. lt_prog_compiler_wl_CXX \
  11440. lt_prog_compiler_pic_CXX \
  11441. lt_prog_compiler_static_CXX \
  11442. lt_prog_compiler_no_builtin_flag_CXX \
  11443. export_dynamic_flag_spec_CXX \
  11444. thread_safe_flag_spec_CXX \
  11445. whole_archive_flag_spec_CXX \
  11446. enable_shared_with_static_runtimes_CXX \
  11447. old_archive_cmds_CXX \
  11448. old_archive_from_new_cmds_CXX \
  11449. predep_objects_CXX \
  11450. postdep_objects_CXX \
  11451. predeps_CXX \
  11452. postdeps_CXX \
  11453. compiler_lib_search_path_CXX \
  11454. archive_cmds_CXX \
  11455. archive_expsym_cmds_CXX \
  11456. postinstall_cmds_CXX \
  11457. postuninstall_cmds_CXX \
  11458. old_archive_from_expsyms_cmds_CXX \
  11459. allow_undefined_flag_CXX \
  11460. no_undefined_flag_CXX \
  11461. export_symbols_cmds_CXX \
  11462. hardcode_libdir_flag_spec_CXX \
  11463. hardcode_libdir_flag_spec_ld_CXX \
  11464. hardcode_libdir_separator_CXX \
  11465. hardcode_automatic_CXX \
  11466. module_cmds_CXX \
  11467. module_expsym_cmds_CXX \
  11468. lt_cv_prog_compiler_c_o_CXX \
  11469. exclude_expsyms_CXX \
  11470. include_expsyms_CXX; do
  11471. case $var in
  11472. old_archive_cmds_CXX | \
  11473. old_archive_from_new_cmds_CXX | \
  11474. archive_cmds_CXX | \
  11475. archive_expsym_cmds_CXX | \
  11476. module_cmds_CXX | \
  11477. module_expsym_cmds_CXX | \
  11478. old_archive_from_expsyms_cmds_CXX | \
  11479. export_symbols_cmds_CXX | \
  11480. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11481. postinstall_cmds | postuninstall_cmds | \
  11482. old_postinstall_cmds | old_postuninstall_cmds | \
  11483. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11484. # Double-quote double-evaled strings.
  11485. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11486. ;;
  11487. *)
  11488. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11489. ;;
  11490. esac
  11491. done
  11492. case $lt_echo in
  11493. *'\$0 --fallback-echo"')
  11494. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11495. ;;
  11496. esac
  11497. cfgfile="$ofile"
  11498. cat <<__EOF__ >> "$cfgfile"
  11499. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11500. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11501. # Shell to use when invoking shell scripts.
  11502. SHELL=$lt_SHELL
  11503. # Whether or not to build shared libraries.
  11504. build_libtool_libs=$enable_shared
  11505. # Whether or not to build static libraries.
  11506. build_old_libs=$enable_static
  11507. # Whether or not to add -lc for building shared libraries.
  11508. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11509. # Whether or not to disallow shared libs when runtime libs are static
  11510. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11511. # Whether or not to optimize for fast installation.
  11512. fast_install=$enable_fast_install
  11513. # The host system.
  11514. host_alias=$host_alias
  11515. host=$host
  11516. host_os=$host_os
  11517. # The build system.
  11518. build_alias=$build_alias
  11519. build=$build
  11520. build_os=$build_os
  11521. # An echo program that does not interpret backslashes.
  11522. echo=$lt_echo
  11523. # The archiver.
  11524. AR=$lt_AR
  11525. AR_FLAGS=$lt_AR_FLAGS
  11526. # A C compiler.
  11527. LTCC=$lt_LTCC
  11528. # LTCC compiler flags.
  11529. LTCFLAGS=$lt_LTCFLAGS
  11530. # A language-specific compiler.
  11531. CC=$lt_compiler_CXX
  11532. # Is the compiler the GNU C compiler?
  11533. with_gcc=$GCC_CXX
  11534. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  11535. gcc_ver=\`gcc -dumpversion\`
  11536. # An ERE matcher.
  11537. EGREP=$lt_EGREP
  11538. # The linker used to build libraries.
  11539. LD=$lt_LD_CXX
  11540. # Whether we need hard or soft links.
  11541. LN_S=$lt_LN_S
  11542. # A BSD-compatible nm program.
  11543. NM=$lt_NM
  11544. # A symbol stripping program
  11545. STRIP=$lt_STRIP
  11546. # Used to examine libraries when file_magic_cmd begins "file"
  11547. MAGIC_CMD=$MAGIC_CMD
  11548. # Used on cygwin: DLL creation program.
  11549. DLLTOOL="$DLLTOOL"
  11550. # Used on cygwin: object dumper.
  11551. OBJDUMP="$OBJDUMP"
  11552. # Used on cygwin: assembler.
  11553. AS="$AS"
  11554. # The name of the directory that contains temporary libtool files.
  11555. objdir=$objdir
  11556. # How to create reloadable object files.
  11557. reload_flag=$lt_reload_flag
  11558. reload_cmds=$lt_reload_cmds
  11559. # How to pass a linker flag through the compiler.
  11560. wl=$lt_lt_prog_compiler_wl_CXX
  11561. # Object file suffix (normally "o").
  11562. objext="$ac_objext"
  11563. # Old archive suffix (normally "a").
  11564. libext="$libext"
  11565. # Shared library suffix (normally ".so").
  11566. shrext_cmds='$shrext_cmds'
  11567. # Executable file suffix (normally "").
  11568. exeext="$exeext"
  11569. # Additional compiler flags for building library objects.
  11570. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11571. pic_mode=$pic_mode
  11572. # What is the maximum length of a command?
  11573. max_cmd_len=$lt_cv_sys_max_cmd_len
  11574. # Does compiler simultaneously support -c and -o options?
  11575. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11576. # Must we lock files when doing compilation?
  11577. need_locks=$lt_need_locks
  11578. # Do we need the lib prefix for modules?
  11579. need_lib_prefix=$need_lib_prefix
  11580. # Do we need a version for libraries?
  11581. need_version=$need_version
  11582. # Whether dlopen is supported.
  11583. dlopen_support=$enable_dlopen
  11584. # Whether dlopen of programs is supported.
  11585. dlopen_self=$enable_dlopen_self
  11586. # Whether dlopen of statically linked programs is supported.
  11587. dlopen_self_static=$enable_dlopen_self_static
  11588. # Compiler flag to prevent dynamic linking.
  11589. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11590. # Compiler flag to turn off builtin functions.
  11591. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11592. # Compiler flag to allow reflexive dlopens.
  11593. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11594. # Compiler flag to generate shared objects directly from archives.
  11595. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11596. # Compiler flag to generate thread-safe objects.
  11597. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11598. # Library versioning type.
  11599. version_type=$version_type
  11600. # Format of library name prefix.
  11601. libname_spec=$lt_libname_spec
  11602. # List of archive names. First name is the real one, the rest are links.
  11603. # The last name is the one that the linker finds with -lNAME.
  11604. library_names_spec=$lt_library_names_spec
  11605. # The coded name of the library, if different from the real name.
  11606. soname_spec=$lt_soname_spec
  11607. # Commands used to build and install an old-style archive.
  11608. RANLIB=$lt_RANLIB
  11609. old_archive_cmds=$lt_old_archive_cmds_CXX
  11610. old_postinstall_cmds=$lt_old_postinstall_cmds
  11611. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11612. # Create an old-style archive from a shared archive.
  11613. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11614. # Create a temporary old-style archive to link instead of a shared archive.
  11615. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11616. # Commands used to build and install a shared archive.
  11617. archive_cmds=$lt_archive_cmds_CXX
  11618. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11619. postinstall_cmds=$lt_postinstall_cmds
  11620. postuninstall_cmds=$lt_postuninstall_cmds
  11621. # Commands used to build a loadable module (assumed same as above if empty)
  11622. module_cmds=$lt_module_cmds_CXX
  11623. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11624. # Commands to strip libraries.
  11625. old_striplib=$lt_old_striplib
  11626. striplib=$lt_striplib
  11627. # Dependencies to place before the objects being linked to create a
  11628. # shared library.
  11629. predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11630. # Dependencies to place after the objects being linked to create a
  11631. # shared library.
  11632. postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11633. # Dependencies to place before the objects being linked to create a
  11634. # shared library.
  11635. predeps=$lt_predeps_CXX
  11636. # Dependencies to place after the objects being linked to create a
  11637. # shared library.
  11638. postdeps=$lt_postdeps_CXX
  11639. # The library search path used internally by the compiler when linking
  11640. # a shared library.
  11641. 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"\`
  11642. # Method to check whether dependent libraries are shared objects.
  11643. deplibs_check_method=$lt_deplibs_check_method
  11644. # Command to use when deplibs_check_method == file_magic.
  11645. file_magic_cmd=$lt_file_magic_cmd
  11646. # Flag that allows shared libraries with undefined symbols to be built.
  11647. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11648. # Flag that forces no undefined symbols.
  11649. no_undefined_flag=$lt_no_undefined_flag_CXX
  11650. # Commands used to finish a libtool library installation in a directory.
  11651. finish_cmds=$lt_finish_cmds
  11652. # Same as above, but a single script fragment to be evaled but not shown.
  11653. finish_eval=$lt_finish_eval
  11654. # Take the output of nm and produce a listing of raw symbols and C names.
  11655. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11656. # Transform the output of nm in a proper C declaration
  11657. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11658. # Transform the output of nm in a C name address pair
  11659. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11660. # This is the shared library runtime path variable.
  11661. runpath_var=$runpath_var
  11662. # This is the shared library path variable.
  11663. shlibpath_var=$shlibpath_var
  11664. # Is shlibpath searched before the hard-coded library search path?
  11665. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11666. # How to hardcode a shared library path into an executable.
  11667. hardcode_action=$hardcode_action_CXX
  11668. # Whether we should hardcode library paths into libraries.
  11669. hardcode_into_libs=$hardcode_into_libs
  11670. # Flag to hardcode \$libdir into a binary during linking.
  11671. # This must work even if \$libdir does not exist.
  11672. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11673. # If ld is used when linking, flag to hardcode \$libdir into
  11674. # a binary during linking. This must work even if \$libdir does
  11675. # not exist.
  11676. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11677. # Whether we need a single -rpath flag with a separated argument.
  11678. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11679. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11680. # resulting binary.
  11681. hardcode_direct=$hardcode_direct_CXX
  11682. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11683. # resulting binary.
  11684. hardcode_minus_L=$hardcode_minus_L_CXX
  11685. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11686. # the resulting binary.
  11687. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11688. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11689. # and all subsequent libraries and executables linked against it.
  11690. hardcode_automatic=$hardcode_automatic_CXX
  11691. # Variables whose values should be saved in libtool wrapper scripts and
  11692. # restored at relink time.
  11693. variables_saved_for_relink="$variables_saved_for_relink"
  11694. # Whether libtool must link a program against all its dependency libraries.
  11695. link_all_deplibs=$link_all_deplibs_CXX
  11696. # Compile-time system search path for libraries
  11697. 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"\`
  11698. # Run-time system search path for libraries
  11699. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11700. # Fix the shell variable \$srcfile for the compiler.
  11701. fix_srcfile_path="$fix_srcfile_path_CXX"
  11702. # Set to yes if exported symbols are required.
  11703. always_export_symbols=$always_export_symbols_CXX
  11704. # The commands to list exported symbols.
  11705. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11706. # The commands to extract the exported symbol list from a shared archive.
  11707. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11708. # Symbols that should not be listed in the preloaded symbols.
  11709. exclude_expsyms=$lt_exclude_expsyms_CXX
  11710. # Symbols that must always be exported.
  11711. include_expsyms=$lt_include_expsyms_CXX
  11712. # ### END LIBTOOL TAG CONFIG: $tagname
  11713. __EOF__
  11714. else
  11715. # If there is no Makefile yet, we rely on a make rule to execute
  11716. # `config.status --recheck' to rerun these tests and create the
  11717. # libtool script then.
  11718. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11719. if test -f "$ltmain_in"; then
  11720. test -f Makefile && make "$ltmain"
  11721. fi
  11722. fi
  11723. ac_ext=c
  11724. ac_cpp='$CPP $CPPFLAGS'
  11725. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11726. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11727. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11728. CC=$lt_save_CC
  11729. LDCXX=$LD
  11730. LD=$lt_save_LD
  11731. GCC=$lt_save_GCC
  11732. with_gnu_ldcxx=$with_gnu_ld
  11733. with_gnu_ld=$lt_save_with_gnu_ld
  11734. lt_cv_path_LDCXX=$lt_cv_path_LD
  11735. lt_cv_path_LD=$lt_save_path_LD
  11736. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11737. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11738. else
  11739. tagname=""
  11740. fi
  11741. ;;
  11742. F77)
  11743. if test -n "$F77" && test "X$F77" != "Xno"; then
  11744. ac_ext=f
  11745. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11746. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11747. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11748. archive_cmds_need_lc_F77=no
  11749. allow_undefined_flag_F77=
  11750. always_export_symbols_F77=no
  11751. archive_expsym_cmds_F77=
  11752. export_dynamic_flag_spec_F77=
  11753. hardcode_direct_F77=no
  11754. hardcode_libdir_flag_spec_F77=
  11755. hardcode_libdir_flag_spec_ld_F77=
  11756. hardcode_libdir_separator_F77=
  11757. hardcode_minus_L_F77=no
  11758. hardcode_automatic_F77=no
  11759. module_cmds_F77=
  11760. module_expsym_cmds_F77=
  11761. link_all_deplibs_F77=unknown
  11762. old_archive_cmds_F77=$old_archive_cmds
  11763. no_undefined_flag_F77=
  11764. whole_archive_flag_spec_F77=
  11765. enable_shared_with_static_runtimes_F77=no
  11766. # Source file extension for f77 test sources.
  11767. ac_ext=f
  11768. # Object file extension for compiled f77 test sources.
  11769. objext=o
  11770. objext_F77=$objext
  11771. # Code to be used in simple compile tests
  11772. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11773. # Code to be used in simple link tests
  11774. lt_simple_link_test_code=" program t\n end\n"
  11775. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11776. # If no C compiler was specified, use CC.
  11777. LTCC=${LTCC-"$CC"}
  11778. # If no C compiler flags were specified, use CFLAGS.
  11779. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11780. # Allow CC to be a program name with arguments.
  11781. compiler=$CC
  11782. # save warnings/boilerplate of simple test code
  11783. ac_outfile=conftest.$ac_objext
  11784. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11785. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11786. _lt_compiler_boilerplate=`cat conftest.err`
  11787. $rm conftest*
  11788. ac_outfile=conftest.$ac_objext
  11789. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11790. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11791. _lt_linker_boilerplate=`cat conftest.err`
  11792. $rm conftest*
  11793. # Allow CC to be a program name with arguments.
  11794. lt_save_CC="$CC"
  11795. CC=${F77-"f77"}
  11796. compiler=$CC
  11797. compiler_F77=$CC
  11798. for cc_temp in $compiler""; do
  11799. case $cc_temp in
  11800. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11801. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11802. \-*) ;;
  11803. *) break;;
  11804. esac
  11805. done
  11806. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11807. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11808. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11809. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11810. echo "${ECHO_T}$can_build_shared" >&6
  11811. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11812. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11813. test "$can_build_shared" = "no" && enable_shared=no
  11814. # On AIX, shared libraries and static libraries use the same namespace, and
  11815. # are all built from PIC.
  11816. case $host_os in
  11817. aix3*)
  11818. test "$enable_shared" = yes && enable_static=no
  11819. if test -n "$RANLIB"; then
  11820. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11821. postinstall_cmds='$RANLIB $lib'
  11822. fi
  11823. ;;
  11824. aix4* | aix5*)
  11825. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11826. test "$enable_shared" = yes && enable_static=no
  11827. fi
  11828. ;;
  11829. esac
  11830. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11831. echo "${ECHO_T}$enable_shared" >&6
  11832. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11833. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11834. # Make sure either enable_shared or enable_static is yes.
  11835. test "$enable_shared" = yes || enable_static=yes
  11836. echo "$as_me:$LINENO: result: $enable_static" >&5
  11837. echo "${ECHO_T}$enable_static" >&6
  11838. GCC_F77="$G77"
  11839. LD_F77="$LD"
  11840. lt_prog_compiler_wl_F77=
  11841. lt_prog_compiler_pic_F77=
  11842. lt_prog_compiler_static_F77=
  11843. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11844. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11845. if test "$GCC" = yes; then
  11846. lt_prog_compiler_wl_F77='-Wl,'
  11847. lt_prog_compiler_static_F77='-static'
  11848. case $host_os in
  11849. aix*)
  11850. # All AIX code is PIC.
  11851. if test "$host_cpu" = ia64; then
  11852. # AIX 5 now supports IA64 processor
  11853. lt_prog_compiler_static_F77='-Bstatic'
  11854. fi
  11855. ;;
  11856. amigaos*)
  11857. # FIXME: we need at least 68020 code to build shared libraries, but
  11858. # adding the `-m68020' flag to GCC prevents building anything better,
  11859. # like `-m68040'.
  11860. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11861. ;;
  11862. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11863. # PIC is the default for these OSes.
  11864. ;;
  11865. mingw* | pw32* | os2*)
  11866. # This hack is so that the source file can tell whether it is being
  11867. # built for inclusion in a dll (and should export symbols for example).
  11868. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11869. ;;
  11870. darwin* | rhapsody*)
  11871. # PIC is the default on this platform
  11872. # Common symbols not allowed in MH_DYLIB files
  11873. lt_prog_compiler_pic_F77='-fno-common'
  11874. ;;
  11875. interix3*)
  11876. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11877. # Instead, we relocate shared libraries at runtime.
  11878. ;;
  11879. msdosdjgpp*)
  11880. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11881. # on systems that don't support them.
  11882. lt_prog_compiler_can_build_shared_F77=no
  11883. enable_shared=no
  11884. ;;
  11885. sysv4*MP*)
  11886. if test -d /usr/nec; then
  11887. lt_prog_compiler_pic_F77=-Kconform_pic
  11888. fi
  11889. ;;
  11890. hpux*)
  11891. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11892. # not for PA HP-UX.
  11893. case $host_cpu in
  11894. hppa*64*|ia64*)
  11895. # +Z the default
  11896. ;;
  11897. *)
  11898. lt_prog_compiler_pic_F77='-fPIC'
  11899. ;;
  11900. esac
  11901. ;;
  11902. *)
  11903. lt_prog_compiler_pic_F77='-fPIC'
  11904. ;;
  11905. esac
  11906. else
  11907. # PORTME Check for flag to pass linker flags through the system compiler.
  11908. case $host_os in
  11909. aix*)
  11910. lt_prog_compiler_wl_F77='-Wl,'
  11911. if test "$host_cpu" = ia64; then
  11912. # AIX 5 now supports IA64 processor
  11913. lt_prog_compiler_static_F77='-Bstatic'
  11914. else
  11915. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11916. fi
  11917. ;;
  11918. darwin*)
  11919. # PIC is the default on this platform
  11920. # Common symbols not allowed in MH_DYLIB files
  11921. case $cc_basename in
  11922. xlc*)
  11923. lt_prog_compiler_pic_F77='-qnocommon'
  11924. lt_prog_compiler_wl_F77='-Wl,'
  11925. ;;
  11926. esac
  11927. ;;
  11928. mingw* | pw32* | os2*)
  11929. # This hack is so that the source file can tell whether it is being
  11930. # built for inclusion in a dll (and should export symbols for example).
  11931. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11932. ;;
  11933. hpux9* | hpux10* | hpux11*)
  11934. lt_prog_compiler_wl_F77='-Wl,'
  11935. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11936. # not for PA HP-UX.
  11937. case $host_cpu in
  11938. hppa*64*|ia64*)
  11939. # +Z the default
  11940. ;;
  11941. *)
  11942. lt_prog_compiler_pic_F77='+Z'
  11943. ;;
  11944. esac
  11945. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11946. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11947. ;;
  11948. irix5* | irix6* | nonstopux*)
  11949. lt_prog_compiler_wl_F77='-Wl,'
  11950. # PIC (with -KPIC) is the default.
  11951. lt_prog_compiler_static_F77='-non_shared'
  11952. ;;
  11953. newsos6)
  11954. lt_prog_compiler_pic_F77='-KPIC'
  11955. lt_prog_compiler_static_F77='-Bstatic'
  11956. ;;
  11957. linux*)
  11958. case $cc_basename in
  11959. icc* | ecc*)
  11960. lt_prog_compiler_wl_F77='-Wl,'
  11961. lt_prog_compiler_pic_F77='-KPIC'
  11962. lt_prog_compiler_static_F77='-static'
  11963. ;;
  11964. pgcc* | pgf77* | pgf90* | pgf95*)
  11965. # Portland Group compilers (*not* the Pentium gcc compiler,
  11966. # which looks to be a dead project)
  11967. lt_prog_compiler_wl_F77='-Wl,'
  11968. lt_prog_compiler_pic_F77='-fpic'
  11969. lt_prog_compiler_static_F77='-Bstatic'
  11970. ;;
  11971. ccc*)
  11972. lt_prog_compiler_wl_F77='-Wl,'
  11973. # All Alpha code is PIC.
  11974. lt_prog_compiler_static_F77='-non_shared'
  11975. ;;
  11976. esac
  11977. ;;
  11978. osf3* | osf4* | osf5*)
  11979. lt_prog_compiler_wl_F77='-Wl,'
  11980. # All OSF/1 code is PIC.
  11981. lt_prog_compiler_static_F77='-non_shared'
  11982. ;;
  11983. solaris*)
  11984. lt_prog_compiler_pic_F77='-KPIC'
  11985. lt_prog_compiler_static_F77='-Bstatic'
  11986. case $cc_basename in
  11987. f77* | f90* | f95*)
  11988. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11989. *)
  11990. lt_prog_compiler_wl_F77='-Wl,';;
  11991. esac
  11992. ;;
  11993. sunos4*)
  11994. lt_prog_compiler_wl_F77='-Qoption ld '
  11995. lt_prog_compiler_pic_F77='-PIC'
  11996. lt_prog_compiler_static_F77='-Bstatic'
  11997. ;;
  11998. sysv4 | sysv4.2uw2* | sysv4.3*)
  11999. lt_prog_compiler_wl_F77='-Wl,'
  12000. lt_prog_compiler_pic_F77='-KPIC'
  12001. lt_prog_compiler_static_F77='-Bstatic'
  12002. ;;
  12003. sysv4*MP*)
  12004. if test -d /usr/nec ;then
  12005. lt_prog_compiler_pic_F77='-Kconform_pic'
  12006. lt_prog_compiler_static_F77='-Bstatic'
  12007. fi
  12008. ;;
  12009. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12010. lt_prog_compiler_wl_F77='-Wl,'
  12011. lt_prog_compiler_pic_F77='-KPIC'
  12012. lt_prog_compiler_static_F77='-Bstatic'
  12013. ;;
  12014. unicos*)
  12015. lt_prog_compiler_wl_F77='-Wl,'
  12016. lt_prog_compiler_can_build_shared_F77=no
  12017. ;;
  12018. uts4*)
  12019. lt_prog_compiler_pic_F77='-pic'
  12020. lt_prog_compiler_static_F77='-Bstatic'
  12021. ;;
  12022. *)
  12023. lt_prog_compiler_can_build_shared_F77=no
  12024. ;;
  12025. esac
  12026. fi
  12027. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12028. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12029. #
  12030. # Check to make sure the PIC flag actually works.
  12031. #
  12032. if test -n "$lt_prog_compiler_pic_F77"; then
  12033. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12034. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12035. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12036. echo $ECHO_N "(cached) $ECHO_C" >&6
  12037. else
  12038. lt_prog_compiler_pic_works_F77=no
  12039. ac_outfile=conftest.$ac_objext
  12040. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12041. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12042. # Insert the option either (1) after the last *FLAGS variable, or
  12043. # (2) before a word containing "conftest.", or (3) at the end.
  12044. # Note that $ac_compile itself does not contain backslashes and begins
  12045. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12046. # The option is referenced via a variable to avoid confusing sed.
  12047. lt_compile=`echo "$ac_compile" | $SED \
  12048. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12049. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12050. -e 's:$: $lt_compiler_flag:'`
  12051. (eval echo "\"\$as_me:13392: $lt_compile\"" >&5)
  12052. (eval "$lt_compile" 2>conftest.err)
  12053. ac_status=$?
  12054. cat conftest.err >&5
  12055. echo "$as_me:13396: \$? = $ac_status" >&5
  12056. if (exit $ac_status) && test -s "$ac_outfile"; then
  12057. # The compiler can only warn and ignore the option if not recognized
  12058. # So say no if there are warnings other than the usual output.
  12059. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12060. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12061. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12062. lt_prog_compiler_pic_works_F77=yes
  12063. fi
  12064. fi
  12065. $rm conftest*
  12066. fi
  12067. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12068. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12069. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12070. case $lt_prog_compiler_pic_F77 in
  12071. "" | " "*) ;;
  12072. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12073. esac
  12074. else
  12075. lt_prog_compiler_pic_F77=
  12076. lt_prog_compiler_can_build_shared_F77=no
  12077. fi
  12078. fi
  12079. case $host_os in
  12080. # For platforms which do not support PIC, -DPIC is meaningless:
  12081. *djgpp*)
  12082. lt_prog_compiler_pic_F77=
  12083. ;;
  12084. *)
  12085. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12086. ;;
  12087. esac
  12088. #
  12089. # Check to make sure the static flag actually works.
  12090. #
  12091. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12092. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12093. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12094. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12095. echo $ECHO_N "(cached) $ECHO_C" >&6
  12096. else
  12097. lt_prog_compiler_static_works_F77=no
  12098. save_LDFLAGS="$LDFLAGS"
  12099. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12100. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12101. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12102. # The linker can only warn and ignore the option if not recognized
  12103. # So say no if there are warnings
  12104. if test -s conftest.err; then
  12105. # Append any errors to the config.log.
  12106. cat conftest.err 1>&5
  12107. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12108. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12109. if diff conftest.exp conftest.er2 >/dev/null; then
  12110. lt_prog_compiler_static_works_F77=yes
  12111. fi
  12112. else
  12113. lt_prog_compiler_static_works_F77=yes
  12114. fi
  12115. fi
  12116. $rm conftest*
  12117. LDFLAGS="$save_LDFLAGS"
  12118. fi
  12119. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12120. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12121. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12122. :
  12123. else
  12124. lt_prog_compiler_static_F77=
  12125. fi
  12126. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12127. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12128. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12129. echo $ECHO_N "(cached) $ECHO_C" >&6
  12130. else
  12131. lt_cv_prog_compiler_c_o_F77=no
  12132. $rm -r conftest 2>/dev/null
  12133. mkdir conftest
  12134. cd conftest
  12135. mkdir out
  12136. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12137. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12138. # Insert the option either (1) after the last *FLAGS variable, or
  12139. # (2) before a word containing "conftest.", or (3) at the end.
  12140. # Note that $ac_compile itself does not contain backslashes and begins
  12141. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12142. lt_compile=`echo "$ac_compile" | $SED \
  12143. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12144. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12145. -e 's:$: $lt_compiler_flag:'`
  12146. (eval echo "\"\$as_me:13496: $lt_compile\"" >&5)
  12147. (eval "$lt_compile" 2>out/conftest.err)
  12148. ac_status=$?
  12149. cat out/conftest.err >&5
  12150. echo "$as_me:13500: \$? = $ac_status" >&5
  12151. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12152. then
  12153. # The compiler can only warn and ignore the option if not recognized
  12154. # So say no if there are warnings
  12155. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12156. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12157. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12158. lt_cv_prog_compiler_c_o_F77=yes
  12159. fi
  12160. fi
  12161. chmod u+w . 2>&5
  12162. $rm conftest*
  12163. # SGI C++ compiler will create directory out/ii_files/ for
  12164. # template instantiation
  12165. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12166. $rm out/* && rmdir out
  12167. cd ..
  12168. rmdir conftest
  12169. $rm conftest*
  12170. fi
  12171. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12172. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12173. hard_links="nottested"
  12174. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12175. # do not overwrite the value of need_locks provided by the user
  12176. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12177. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12178. hard_links=yes
  12179. $rm conftest*
  12180. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12181. touch conftest.a
  12182. ln conftest.a conftest.b 2>&5 || hard_links=no
  12183. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12184. echo "$as_me:$LINENO: result: $hard_links" >&5
  12185. echo "${ECHO_T}$hard_links" >&6
  12186. if test "$hard_links" = no; then
  12187. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12188. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12189. need_locks=warn
  12190. fi
  12191. else
  12192. need_locks=no
  12193. fi
  12194. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12195. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12196. runpath_var=
  12197. allow_undefined_flag_F77=
  12198. enable_shared_with_static_runtimes_F77=no
  12199. archive_cmds_F77=
  12200. archive_expsym_cmds_F77=
  12201. old_archive_From_new_cmds_F77=
  12202. old_archive_from_expsyms_cmds_F77=
  12203. export_dynamic_flag_spec_F77=
  12204. whole_archive_flag_spec_F77=
  12205. thread_safe_flag_spec_F77=
  12206. hardcode_libdir_flag_spec_F77=
  12207. hardcode_libdir_flag_spec_ld_F77=
  12208. hardcode_libdir_separator_F77=
  12209. hardcode_direct_F77=no
  12210. hardcode_minus_L_F77=no
  12211. hardcode_shlibpath_var_F77=unsupported
  12212. link_all_deplibs_F77=unknown
  12213. hardcode_automatic_F77=no
  12214. module_cmds_F77=
  12215. module_expsym_cmds_F77=
  12216. always_export_symbols_F77=no
  12217. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12218. # include_expsyms should be a list of space-separated symbols to be *always*
  12219. # included in the symbol list
  12220. include_expsyms_F77=
  12221. # exclude_expsyms can be an extended regexp of symbols to exclude
  12222. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12223. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12224. # as well as any symbol that contains `d'.
  12225. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12226. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12227. # platforms (ab)use it in PIC code, but their linkers get confused if
  12228. # the symbol is explicitly referenced. Since portable code cannot
  12229. # rely on this symbol name, it's probably fine to never include it in
  12230. # preloaded symbol tables.
  12231. extract_expsyms_cmds=
  12232. # Just being paranoid about ensuring that cc_basename is set.
  12233. for cc_temp in $compiler""; do
  12234. case $cc_temp in
  12235. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12236. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12237. \-*) ;;
  12238. *) break;;
  12239. esac
  12240. done
  12241. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12242. case $host_os in
  12243. cygwin* | mingw* | pw32*)
  12244. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12245. # When not using gcc, we currently assume that we are using
  12246. # Microsoft Visual C++.
  12247. if test "$GCC" != yes; then
  12248. with_gnu_ld=no
  12249. fi
  12250. ;;
  12251. interix*)
  12252. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12253. with_gnu_ld=yes
  12254. ;;
  12255. openbsd*)
  12256. with_gnu_ld=no
  12257. ;;
  12258. esac
  12259. ld_shlibs_F77=yes
  12260. if test "$with_gnu_ld" = yes; then
  12261. # If archive_cmds runs LD, not CC, wlarc should be empty
  12262. wlarc='${wl}'
  12263. # Set some defaults for GNU ld with shared library support. These
  12264. # are reset later if shared libraries are not supported. Putting them
  12265. # here allows them to be overridden if necessary.
  12266. runpath_var=LD_RUN_PATH
  12267. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12268. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12269. # ancient GNU ld didn't support --whole-archive et. al.
  12270. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12271. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12272. else
  12273. whole_archive_flag_spec_F77=
  12274. fi
  12275. supports_anon_versioning=no
  12276. case `$LD -v 2>/dev/null` in
  12277. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12278. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12279. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12280. *\ 2.11.*) ;; # other 2.11 versions
  12281. *) supports_anon_versioning=yes ;;
  12282. esac
  12283. # See if GNU ld supports shared libraries.
  12284. case $host_os in
  12285. aix3* | aix4* | aix5*)
  12286. # On AIX/PPC, the GNU linker is very broken
  12287. if test "$host_cpu" != ia64; then
  12288. ld_shlibs_F77=no
  12289. cat <<EOF 1>&2
  12290. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12291. *** to be unable to reliably create shared libraries on AIX.
  12292. *** Therefore, libtool is disabling shared libraries support. If you
  12293. *** really care for shared libraries, you may want to modify your PATH
  12294. *** so that a non-GNU linker is found, and then restart.
  12295. EOF
  12296. fi
  12297. ;;
  12298. amigaos*)
  12299. 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)'
  12300. hardcode_libdir_flag_spec_F77='-L$libdir'
  12301. hardcode_minus_L_F77=yes
  12302. # Samuel A. Falvo II <[email protected]> reports
  12303. # that the semantics of dynamic libraries on AmigaOS, at least up
  12304. # to version 4, is to share data among multiple programs linked
  12305. # with the same dynamic library. Since this doesn't match the
  12306. # behavior of shared libraries on other platforms, we can't use
  12307. # them.
  12308. ld_shlibs_F77=no
  12309. ;;
  12310. beos*)
  12311. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12312. allow_undefined_flag_F77=unsupported
  12313. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12314. # support --undefined. This deserves some investigation. FIXME
  12315. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12316. else
  12317. ld_shlibs_F77=no
  12318. fi
  12319. ;;
  12320. cygwin* | mingw* | pw32*)
  12321. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12322. # as there is no search path for DLLs.
  12323. hardcode_libdir_flag_spec_F77='-L$libdir'
  12324. allow_undefined_flag_F77=unsupported
  12325. always_export_symbols_F77=no
  12326. enable_shared_with_static_runtimes_F77=yes
  12327. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12328. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12329. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12330. # If the export-symbols file already is a .def file (1st line
  12331. # is EXPORTS), use it as is; otherwise, prepend...
  12332. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12333. cp $export_symbols $output_objdir/$soname.def;
  12334. else
  12335. echo EXPORTS > $output_objdir/$soname.def;
  12336. cat $export_symbols >> $output_objdir/$soname.def;
  12337. fi~
  12338. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12339. else
  12340. ld_shlibs_F77=no
  12341. fi
  12342. ;;
  12343. interix3*)
  12344. hardcode_direct_F77=no
  12345. hardcode_shlibpath_var_F77=no
  12346. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12347. export_dynamic_flag_spec_F77='${wl}-E'
  12348. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12349. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12350. # default) and relocated if they conflict, which is a slow very memory
  12351. # consuming and fragmenting process. To avoid this, we pick a random,
  12352. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12353. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12354. 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'
  12355. 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'
  12356. ;;
  12357. linux*)
  12358. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12359. tmp_addflag=
  12360. case $cc_basename,$host_cpu in
  12361. pgcc*) # Portland Group C compiler
  12362. 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'
  12363. tmp_addflag=' $pic_flag'
  12364. ;;
  12365. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12366. 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'
  12367. tmp_addflag=' $pic_flag -Mnomain' ;;
  12368. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12369. tmp_addflag=' -i_dynamic' ;;
  12370. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12371. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12372. ifc* | ifort*) # Intel Fortran compiler
  12373. tmp_addflag=' -nofor_main' ;;
  12374. esac
  12375. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12376. if test $supports_anon_versioning = yes; then
  12377. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12378. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12379. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12380. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12381. fi
  12382. else
  12383. ld_shlibs_F77=no
  12384. fi
  12385. ;;
  12386. netbsd*)
  12387. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12388. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12389. wlarc=
  12390. else
  12391. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12392. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12393. fi
  12394. ;;
  12395. solaris*)
  12396. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12397. ld_shlibs_F77=no
  12398. cat <<EOF 1>&2
  12399. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12400. *** create shared libraries on Solaris systems. Therefore, libtool
  12401. *** is disabling shared libraries support. We urge you to upgrade GNU
  12402. *** binutils to release 2.9.1 or newer. Another option is to modify
  12403. *** your PATH or compiler configuration so that the native linker is
  12404. *** used, and then restart.
  12405. EOF
  12406. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12407. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12408. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12409. else
  12410. ld_shlibs_F77=no
  12411. fi
  12412. ;;
  12413. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12414. case `$LD -v 2>&1` in
  12415. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12416. ld_shlibs_F77=no
  12417. cat <<_LT_EOF 1>&2
  12418. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12419. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12420. *** is disabling shared libraries support. We urge you to upgrade GNU
  12421. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12422. *** your PATH or compiler configuration so that the native linker is
  12423. *** used, and then restart.
  12424. _LT_EOF
  12425. ;;
  12426. *)
  12427. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12428. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12429. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12430. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12431. else
  12432. ld_shlibs_F77=no
  12433. fi
  12434. ;;
  12435. esac
  12436. ;;
  12437. sunos4*)
  12438. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12439. wlarc=
  12440. hardcode_direct_F77=yes
  12441. hardcode_shlibpath_var_F77=no
  12442. ;;
  12443. *)
  12444. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12445. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12446. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12447. else
  12448. ld_shlibs_F77=no
  12449. fi
  12450. ;;
  12451. esac
  12452. if test "$ld_shlibs_F77" = no; then
  12453. runpath_var=
  12454. hardcode_libdir_flag_spec_F77=
  12455. export_dynamic_flag_spec_F77=
  12456. whole_archive_flag_spec_F77=
  12457. fi
  12458. else
  12459. # PORTME fill in a description of your system's linker (not GNU ld)
  12460. case $host_os in
  12461. aix3*)
  12462. allow_undefined_flag_F77=unsupported
  12463. always_export_symbols_F77=yes
  12464. 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'
  12465. # Note: this linker hardcodes the directories in LIBPATH if there
  12466. # are no directories specified by -L.
  12467. hardcode_minus_L_F77=yes
  12468. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12469. # Neither direct hardcoding nor static linking is supported with a
  12470. # broken collect2.
  12471. hardcode_direct_F77=unsupported
  12472. fi
  12473. ;;
  12474. aix4* | aix5*)
  12475. if test "$host_cpu" = ia64; then
  12476. # On IA64, the linker does run time linking by default, so we don't
  12477. # have to do anything special.
  12478. aix_use_runtimelinking=no
  12479. exp_sym_flag='-Bexport'
  12480. no_entry_flag=""
  12481. else
  12482. # If we're using GNU nm, then we don't want the "-C" option.
  12483. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12484. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12485. 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'
  12486. else
  12487. 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'
  12488. fi
  12489. aix_use_runtimelinking=no
  12490. # Test if we are trying to use run time linking or normal
  12491. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12492. # need to do runtime linking.
  12493. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12494. for ld_flag in $LDFLAGS; do
  12495. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12496. aix_use_runtimelinking=yes
  12497. break
  12498. fi
  12499. done
  12500. ;;
  12501. esac
  12502. exp_sym_flag='-bexport'
  12503. no_entry_flag='-bnoentry'
  12504. fi
  12505. # When large executables or shared objects are built, AIX ld can
  12506. # have problems creating the table of contents. If linking a library
  12507. # or program results in "error TOC overflow" add -mminimal-toc to
  12508. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12509. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12510. archive_cmds_F77=''
  12511. hardcode_direct_F77=yes
  12512. hardcode_libdir_separator_F77=':'
  12513. link_all_deplibs_F77=yes
  12514. if test "$GCC" = yes; then
  12515. case $host_os in aix4.[012]|aix4.[012].*)
  12516. # We only want to do this on AIX 4.2 and lower, the check
  12517. # below for broken collect2 doesn't work under 4.3+
  12518. collect2name=`${CC} -print-prog-name=collect2`
  12519. if test -f "$collect2name" && \
  12520. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12521. then
  12522. # We have reworked collect2
  12523. hardcode_direct_F77=yes
  12524. else
  12525. # We have old collect2
  12526. hardcode_direct_F77=unsupported
  12527. # It fails to find uninstalled libraries when the uninstalled
  12528. # path is not listed in the libpath. Setting hardcode_minus_L
  12529. # to unsupported forces relinking
  12530. hardcode_minus_L_F77=yes
  12531. hardcode_libdir_flag_spec_F77='-L$libdir'
  12532. hardcode_libdir_separator_F77=
  12533. fi
  12534. ;;
  12535. esac
  12536. shared_flag='-shared'
  12537. if test "$aix_use_runtimelinking" = yes; then
  12538. shared_flag="$shared_flag "'${wl}-G'
  12539. fi
  12540. else
  12541. # not using gcc
  12542. if test "$host_cpu" = ia64; then
  12543. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12544. # chokes on -Wl,-G. The following line is correct:
  12545. shared_flag='-G'
  12546. else
  12547. if test "$aix_use_runtimelinking" = yes; then
  12548. shared_flag='${wl}-G'
  12549. else
  12550. shared_flag='${wl}-bM:SRE'
  12551. fi
  12552. fi
  12553. fi
  12554. # It seems that -bexpall does not export symbols beginning with
  12555. # underscore (_), so it is better to generate a list of symbols to export.
  12556. always_export_symbols_F77=yes
  12557. if test "$aix_use_runtimelinking" = yes; then
  12558. # Warning - without using the other runtime loading flags (-brtl),
  12559. # -berok will link without error, but may produce a broken library.
  12560. allow_undefined_flag_F77='-berok'
  12561. # Determine the default libpath from the value encoded in an empty executable.
  12562. cat >conftest.$ac_ext <<_ACEOF
  12563. program main
  12564. end
  12565. _ACEOF
  12566. rm -f conftest.$ac_objext conftest$ac_exeext
  12567. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12568. (eval $ac_link) 2>conftest.er1
  12569. ac_status=$?
  12570. grep -v '^ *+' conftest.er1 >conftest.err
  12571. rm -f conftest.er1
  12572. cat conftest.err >&5
  12573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12574. (exit $ac_status); } &&
  12575. { ac_try='test -z "$ac_f77_werror_flag"
  12576. || test ! -s conftest.err'
  12577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12578. (eval $ac_try) 2>&5
  12579. ac_status=$?
  12580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12581. (exit $ac_status); }; } &&
  12582. { ac_try='test -s conftest$ac_exeext'
  12583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12584. (eval $ac_try) 2>&5
  12585. ac_status=$?
  12586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12587. (exit $ac_status); }; }; then
  12588. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12589. }'`
  12590. # Check for a 64-bit object if we didn't find anything.
  12591. 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; }
  12592. }'`; fi
  12593. else
  12594. echo "$as_me: failed program was:" >&5
  12595. sed 's/^/| /' conftest.$ac_ext >&5
  12596. fi
  12597. rm -f conftest.err conftest.$ac_objext \
  12598. conftest$ac_exeext conftest.$ac_ext
  12599. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12600. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12601. 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"
  12602. else
  12603. if test "$host_cpu" = ia64; then
  12604. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12605. allow_undefined_flag_F77="-z nodefs"
  12606. 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"
  12607. else
  12608. # Determine the default libpath from the value encoded in an empty executable.
  12609. cat >conftest.$ac_ext <<_ACEOF
  12610. program main
  12611. end
  12612. _ACEOF
  12613. rm -f conftest.$ac_objext conftest$ac_exeext
  12614. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12615. (eval $ac_link) 2>conftest.er1
  12616. ac_status=$?
  12617. grep -v '^ *+' conftest.er1 >conftest.err
  12618. rm -f conftest.er1
  12619. cat conftest.err >&5
  12620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12621. (exit $ac_status); } &&
  12622. { ac_try='test -z "$ac_f77_werror_flag"
  12623. || test ! -s conftest.err'
  12624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12625. (eval $ac_try) 2>&5
  12626. ac_status=$?
  12627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12628. (exit $ac_status); }; } &&
  12629. { ac_try='test -s conftest$ac_exeext'
  12630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12631. (eval $ac_try) 2>&5
  12632. ac_status=$?
  12633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12634. (exit $ac_status); }; }; then
  12635. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12636. }'`
  12637. # Check for a 64-bit object if we didn't find anything.
  12638. 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; }
  12639. }'`; fi
  12640. else
  12641. echo "$as_me: failed program was:" >&5
  12642. sed 's/^/| /' conftest.$ac_ext >&5
  12643. fi
  12644. rm -f conftest.err conftest.$ac_objext \
  12645. conftest$ac_exeext conftest.$ac_ext
  12646. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12647. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12648. # Warning - without using the other run time loading flags,
  12649. # -berok will link without error, but may produce a broken library.
  12650. no_undefined_flag_F77=' ${wl}-bernotok'
  12651. allow_undefined_flag_F77=' ${wl}-berok'
  12652. # Exported symbols can be pulled into shared objects from archives
  12653. whole_archive_flag_spec_F77='$convenience'
  12654. archive_cmds_need_lc_F77=yes
  12655. # This is similar to how AIX traditionally builds its shared libraries.
  12656. 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'
  12657. fi
  12658. fi
  12659. ;;
  12660. amigaos*)
  12661. 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)'
  12662. hardcode_libdir_flag_spec_F77='-L$libdir'
  12663. hardcode_minus_L_F77=yes
  12664. # see comment about different semantics on the GNU ld section
  12665. ld_shlibs_F77=no
  12666. ;;
  12667. bsdi[45]*)
  12668. export_dynamic_flag_spec_F77=-rdynamic
  12669. ;;
  12670. cygwin* | mingw* | pw32*)
  12671. # When not using gcc, we currently assume that we are using
  12672. # Microsoft Visual C++.
  12673. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12674. # no search path for DLLs.
  12675. hardcode_libdir_flag_spec_F77=' '
  12676. allow_undefined_flag_F77=unsupported
  12677. # Tell ltmain to make .lib files, not .a files.
  12678. libext=lib
  12679. # Tell ltmain to make .dll files, not .so files.
  12680. shrext_cmds=".dll"
  12681. # FIXME: Setting linknames here is a bad hack.
  12682. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12683. # The linker will automatically build a .lib file if we build a DLL.
  12684. old_archive_From_new_cmds_F77='true'
  12685. # FIXME: Should let the user specify the lib program.
  12686. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12687. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12688. enable_shared_with_static_runtimes_F77=yes
  12689. ;;
  12690. darwin* | rhapsody*)
  12691. case $host_os in
  12692. rhapsody* | darwin1.[012])
  12693. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12694. ;;
  12695. *) # Darwin 1.3 on
  12696. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12697. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12698. else
  12699. case ${MACOSX_DEPLOYMENT_TARGET} in
  12700. 10.[012])
  12701. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12702. ;;
  12703. 10.*)
  12704. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12705. ;;
  12706. esac
  12707. fi
  12708. ;;
  12709. esac
  12710. archive_cmds_need_lc_F77=no
  12711. hardcode_direct_F77=no
  12712. hardcode_automatic_F77=yes
  12713. hardcode_shlibpath_var_F77=unsupported
  12714. whole_archive_flag_spec_F77=''
  12715. link_all_deplibs_F77=yes
  12716. if test "$GCC" = yes ; then
  12717. output_verbose_link_cmd='echo'
  12718. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12719. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12720. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12721. 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}'
  12722. 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}'
  12723. else
  12724. case $cc_basename in
  12725. xlc*)
  12726. output_verbose_link_cmd='echo'
  12727. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12728. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12729. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12730. 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}'
  12731. 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}'
  12732. ;;
  12733. *)
  12734. ld_shlibs_F77=no
  12735. ;;
  12736. esac
  12737. fi
  12738. ;;
  12739. dgux*)
  12740. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12741. hardcode_libdir_flag_spec_F77='-L$libdir'
  12742. hardcode_shlibpath_var_F77=no
  12743. ;;
  12744. freebsd1*)
  12745. ld_shlibs_F77=no
  12746. ;;
  12747. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12748. # support. Future versions do this automatically, but an explicit c++rt0.o
  12749. # does not break anything, and helps significantly (at the cost of a little
  12750. # extra space).
  12751. freebsd2.2*)
  12752. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12753. hardcode_libdir_flag_spec_F77='-R$libdir'
  12754. hardcode_direct_F77=yes
  12755. hardcode_shlibpath_var_F77=no
  12756. ;;
  12757. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12758. freebsd2*)
  12759. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12760. hardcode_direct_F77=yes
  12761. hardcode_minus_L_F77=yes
  12762. hardcode_shlibpath_var_F77=no
  12763. ;;
  12764. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12765. freebsd* | kfreebsd*-gnu | dragonfly*)
  12766. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12767. hardcode_libdir_flag_spec_F77='-R$libdir'
  12768. hardcode_direct_F77=yes
  12769. hardcode_shlibpath_var_F77=no
  12770. ;;
  12771. hpux9*)
  12772. if test "$GCC" = yes; then
  12773. 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'
  12774. else
  12775. 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'
  12776. fi
  12777. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12778. hardcode_libdir_separator_F77=:
  12779. hardcode_direct_F77=yes
  12780. # hardcode_minus_L: Not really in the search PATH,
  12781. # but as the default location of the library.
  12782. hardcode_minus_L_F77=yes
  12783. export_dynamic_flag_spec_F77='${wl}-E'
  12784. ;;
  12785. hpux10*)
  12786. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12787. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12788. else
  12789. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12790. fi
  12791. if test "$with_gnu_ld" = no; then
  12792. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12793. hardcode_libdir_separator_F77=:
  12794. hardcode_direct_F77=yes
  12795. export_dynamic_flag_spec_F77='${wl}-E'
  12796. # hardcode_minus_L: Not really in the search PATH,
  12797. # but as the default location of the library.
  12798. hardcode_minus_L_F77=yes
  12799. fi
  12800. ;;
  12801. hpux11*)
  12802. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12803. case $host_cpu in
  12804. hppa*64*)
  12805. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12806. ;;
  12807. ia64*)
  12808. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12809. ;;
  12810. *)
  12811. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12812. ;;
  12813. esac
  12814. else
  12815. case $host_cpu in
  12816. hppa*64*)
  12817. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12818. ;;
  12819. ia64*)
  12820. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12821. ;;
  12822. *)
  12823. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12824. ;;
  12825. esac
  12826. fi
  12827. if test "$with_gnu_ld" = no; then
  12828. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12829. hardcode_libdir_separator_F77=:
  12830. case $host_cpu in
  12831. hppa*64*|ia64*)
  12832. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12833. hardcode_direct_F77=no
  12834. hardcode_shlibpath_var_F77=no
  12835. ;;
  12836. *)
  12837. hardcode_direct_F77=yes
  12838. export_dynamic_flag_spec_F77='${wl}-E'
  12839. # hardcode_minus_L: Not really in the search PATH,
  12840. # but as the default location of the library.
  12841. hardcode_minus_L_F77=yes
  12842. ;;
  12843. esac
  12844. fi
  12845. ;;
  12846. irix5* | irix6* | nonstopux*)
  12847. if test "$GCC" = yes; then
  12848. 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'
  12849. else
  12850. 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'
  12851. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12852. fi
  12853. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12854. hardcode_libdir_separator_F77=:
  12855. link_all_deplibs_F77=yes
  12856. ;;
  12857. netbsd*)
  12858. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12859. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12860. else
  12861. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12862. fi
  12863. hardcode_libdir_flag_spec_F77='-R$libdir'
  12864. hardcode_direct_F77=yes
  12865. hardcode_shlibpath_var_F77=no
  12866. ;;
  12867. newsos6)
  12868. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12869. hardcode_direct_F77=yes
  12870. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12871. hardcode_libdir_separator_F77=:
  12872. hardcode_shlibpath_var_F77=no
  12873. ;;
  12874. openbsd*)
  12875. hardcode_direct_F77=yes
  12876. hardcode_shlibpath_var_F77=no
  12877. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12878. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12879. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12880. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12881. export_dynamic_flag_spec_F77='${wl}-E'
  12882. else
  12883. case $host_os in
  12884. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12885. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12886. hardcode_libdir_flag_spec_F77='-R$libdir'
  12887. ;;
  12888. *)
  12889. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12890. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12891. ;;
  12892. esac
  12893. fi
  12894. ;;
  12895. os2*)
  12896. hardcode_libdir_flag_spec_F77='-L$libdir'
  12897. hardcode_minus_L_F77=yes
  12898. allow_undefined_flag_F77=unsupported
  12899. 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'
  12900. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12901. ;;
  12902. osf3*)
  12903. if test "$GCC" = yes; then
  12904. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12905. 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'
  12906. else
  12907. allow_undefined_flag_F77=' -expect_unresolved \*'
  12908. 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'
  12909. fi
  12910. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12911. hardcode_libdir_separator_F77=:
  12912. ;;
  12913. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12914. if test "$GCC" = yes; then
  12915. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12916. 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'
  12917. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12918. else
  12919. allow_undefined_flag_F77=' -expect_unresolved \*'
  12920. 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'
  12921. 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~
  12922. $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'
  12923. # Both c and cxx compiler support -rpath directly
  12924. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12925. fi
  12926. hardcode_libdir_separator_F77=:
  12927. ;;
  12928. solaris*)
  12929. no_undefined_flag_F77=' -z text'
  12930. if test "$GCC" = yes; then
  12931. wlarc='${wl}'
  12932. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12933. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12934. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12935. else
  12936. wlarc=''
  12937. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12938. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12939. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12940. fi
  12941. hardcode_libdir_flag_spec_F77='-R$libdir'
  12942. hardcode_shlibpath_var_F77=no
  12943. case $host_os in
  12944. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12945. *)
  12946. # The compiler driver will combine linker options so we
  12947. # cannot just pass the convience library names through
  12948. # without $wl, iff we do not link with $LD.
  12949. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12950. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12951. case $wlarc in
  12952. '')
  12953. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12954. *)
  12955. 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' ;;
  12956. esac ;;
  12957. esac
  12958. link_all_deplibs_F77=yes
  12959. ;;
  12960. sunos4*)
  12961. if test "x$host_vendor" = xsequent; then
  12962. # Use $CC to link under sequent, because it throws in some extra .o
  12963. # files that make .init and .fini sections work.
  12964. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12965. else
  12966. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12967. fi
  12968. hardcode_libdir_flag_spec_F77='-L$libdir'
  12969. hardcode_direct_F77=yes
  12970. hardcode_minus_L_F77=yes
  12971. hardcode_shlibpath_var_F77=no
  12972. ;;
  12973. sysv4)
  12974. case $host_vendor in
  12975. sni)
  12976. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12977. hardcode_direct_F77=yes # is this really true???
  12978. ;;
  12979. siemens)
  12980. ## LD is ld it makes a PLAMLIB
  12981. ## CC just makes a GrossModule.
  12982. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12983. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12984. hardcode_direct_F77=no
  12985. ;;
  12986. motorola)
  12987. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12988. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12989. ;;
  12990. esac
  12991. runpath_var='LD_RUN_PATH'
  12992. hardcode_shlibpath_var_F77=no
  12993. ;;
  12994. sysv4.3*)
  12995. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12996. hardcode_shlibpath_var_F77=no
  12997. export_dynamic_flag_spec_F77='-Bexport'
  12998. ;;
  12999. sysv4*MP*)
  13000. if test -d /usr/nec; then
  13001. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13002. hardcode_shlibpath_var_F77=no
  13003. runpath_var=LD_RUN_PATH
  13004. hardcode_runpath_var=yes
  13005. ld_shlibs_F77=yes
  13006. fi
  13007. ;;
  13008. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13009. no_undefined_flag_F77='${wl}-z,text'
  13010. archive_cmds_need_lc_F77=no
  13011. hardcode_shlibpath_var_F77=no
  13012. runpath_var='LD_RUN_PATH'
  13013. if test "$GCC" = yes; then
  13014. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13015. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13016. else
  13017. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13018. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13019. fi
  13020. ;;
  13021. sysv5* | sco3.2v5* | sco5v6*)
  13022. # Note: We can NOT use -z defs as we might desire, because we do not
  13023. # link with -lc, and that would cause any symbols used from libc to
  13024. # always be unresolved, which means just about no library would
  13025. # ever link correctly. If we're not using GNU ld we use -z text
  13026. # though, which does catch some bad symbols but isn't as heavy-handed
  13027. # as -z defs.
  13028. no_undefined_flag_F77='${wl}-z,text'
  13029. allow_undefined_flag_F77='${wl}-z,nodefs'
  13030. archive_cmds_need_lc_F77=no
  13031. hardcode_shlibpath_var_F77=no
  13032. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13033. hardcode_libdir_separator_F77=':'
  13034. link_all_deplibs_F77=yes
  13035. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13036. runpath_var='LD_RUN_PATH'
  13037. if test "$GCC" = yes; then
  13038. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13039. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13040. else
  13041. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13042. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13043. fi
  13044. ;;
  13045. uts4*)
  13046. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13047. hardcode_libdir_flag_spec_F77='-L$libdir'
  13048. hardcode_shlibpath_var_F77=no
  13049. ;;
  13050. *)
  13051. ld_shlibs_F77=no
  13052. ;;
  13053. esac
  13054. fi
  13055. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13056. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13057. test "$ld_shlibs_F77" = no && can_build_shared=no
  13058. #
  13059. # Do we need to explicitly link libc?
  13060. #
  13061. case "x$archive_cmds_need_lc_F77" in
  13062. x|xyes)
  13063. # Assume -lc should be added
  13064. archive_cmds_need_lc_F77=yes
  13065. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13066. case $archive_cmds_F77 in
  13067. *'~'*)
  13068. # FIXME: we may have to deal with multi-command sequences.
  13069. ;;
  13070. '$CC '*)
  13071. # Test whether the compiler implicitly links with -lc since on some
  13072. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13073. # to ld, don't add -lc before -lgcc.
  13074. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13075. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13076. $rm conftest*
  13077. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13079. (eval $ac_compile) 2>&5
  13080. ac_status=$?
  13081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13082. (exit $ac_status); } 2>conftest.err; then
  13083. soname=conftest
  13084. lib=conftest
  13085. libobjs=conftest.$ac_objext
  13086. deplibs=
  13087. wl=$lt_prog_compiler_wl_F77
  13088. pic_flag=$lt_prog_compiler_pic_F77
  13089. compiler_flags=-v
  13090. linker_flags=-v
  13091. verstring=
  13092. output_objdir=.
  13093. libname=conftest
  13094. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13095. allow_undefined_flag_F77=
  13096. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13097. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13098. ac_status=$?
  13099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13100. (exit $ac_status); }
  13101. then
  13102. archive_cmds_need_lc_F77=no
  13103. else
  13104. archive_cmds_need_lc_F77=yes
  13105. fi
  13106. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13107. else
  13108. cat conftest.err 1>&5
  13109. fi
  13110. $rm conftest*
  13111. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13112. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13113. ;;
  13114. esac
  13115. fi
  13116. ;;
  13117. esac
  13118. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13119. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13120. library_names_spec=
  13121. libname_spec='lib$name'
  13122. soname_spec=
  13123. shrext_cmds=".so"
  13124. postinstall_cmds=
  13125. postuninstall_cmds=
  13126. finish_cmds=
  13127. finish_eval=
  13128. shlibpath_var=
  13129. shlibpath_overrides_runpath=unknown
  13130. version_type=none
  13131. dynamic_linker="$host_os ld.so"
  13132. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13133. if test "$GCC" = yes; then
  13134. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13135. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13136. # if the path contains ";" then we assume it to be the separator
  13137. # otherwise default to the standard path separator (i.e. ":") - it is
  13138. # assumed that no part of a normal pathname contains ";" but that should
  13139. # okay in the real world where ";" in dirpaths is itself problematic.
  13140. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13141. else
  13142. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13143. fi
  13144. else
  13145. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13146. fi
  13147. need_lib_prefix=unknown
  13148. hardcode_into_libs=no
  13149. # when you set need_version to no, make sure it does not cause -set_version
  13150. # flags to be left without arguments
  13151. need_version=unknown
  13152. case $host_os in
  13153. aix3*)
  13154. version_type=linux
  13155. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13156. shlibpath_var=LIBPATH
  13157. # AIX 3 has no versioning support, so we append a major version to the name.
  13158. soname_spec='${libname}${release}${shared_ext}$major'
  13159. ;;
  13160. aix4* | aix5*)
  13161. version_type=linux
  13162. need_lib_prefix=no
  13163. need_version=no
  13164. hardcode_into_libs=yes
  13165. if test "$host_cpu" = ia64; then
  13166. # AIX 5 supports IA64
  13167. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13168. shlibpath_var=LD_LIBRARY_PATH
  13169. else
  13170. # With GCC up to 2.95.x, collect2 would create an import file
  13171. # for dependence libraries. The import file would start with
  13172. # the line `#! .'. This would cause the generated library to
  13173. # depend on `.', always an invalid library. This was fixed in
  13174. # development snapshots of GCC prior to 3.0.
  13175. case $host_os in
  13176. aix4 | aix4.[01] | aix4.[01].*)
  13177. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13178. echo ' yes '
  13179. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13180. :
  13181. else
  13182. can_build_shared=no
  13183. fi
  13184. ;;
  13185. esac
  13186. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13187. # soname into executable. Probably we can add versioning support to
  13188. # collect2, so additional links can be useful in future.
  13189. if test "$aix_use_runtimelinking" = yes; then
  13190. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13191. # instead of lib<name>.a to let people know that these are not
  13192. # typical AIX shared libraries.
  13193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13194. else
  13195. # We preserve .a as extension for shared libraries through AIX4.2
  13196. # and later when we are not doing run time linking.
  13197. library_names_spec='${libname}${release}.a $libname.a'
  13198. soname_spec='${libname}${release}${shared_ext}$major'
  13199. fi
  13200. shlibpath_var=LIBPATH
  13201. fi
  13202. ;;
  13203. amigaos*)
  13204. library_names_spec='$libname.ixlibrary $libname.a'
  13205. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13206. 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'
  13207. ;;
  13208. beos*)
  13209. library_names_spec='${libname}${shared_ext}'
  13210. dynamic_linker="$host_os ld.so"
  13211. shlibpath_var=LIBRARY_PATH
  13212. ;;
  13213. bsdi[45]*)
  13214. version_type=linux
  13215. need_version=no
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13217. soname_spec='${libname}${release}${shared_ext}$major'
  13218. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13219. shlibpath_var=LD_LIBRARY_PATH
  13220. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13221. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13222. # the default ld.so.conf also contains /usr/contrib/lib and
  13223. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13224. # libtool to hard-code these into programs
  13225. ;;
  13226. cygwin* | mingw* | pw32*)
  13227. version_type=windows
  13228. shrext_cmds=".dll"
  13229. need_version=no
  13230. need_lib_prefix=no
  13231. case $GCC,$host_os in
  13232. yes,cygwin* | yes,mingw* | yes,pw32*)
  13233. library_names_spec='$libname.dll.a'
  13234. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13235. postinstall_cmds='base_file=`basename \${file}`~
  13236. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13237. dldir=$destdir/`dirname \$dlpath`~
  13238. test -d \$dldir || mkdir -p \$dldir~
  13239. $install_prog $dir/$dlname \$dldir/$dlname~
  13240. chmod a+x \$dldir/$dlname'
  13241. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13242. dlpath=$dir/\$dldll~
  13243. $rm \$dlpath'
  13244. shlibpath_overrides_runpath=yes
  13245. case $host_os in
  13246. cygwin*)
  13247. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13248. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13249. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13250. ;;
  13251. mingw*)
  13252. # MinGW DLLs use traditional 'lib' prefix
  13253. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13254. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13255. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13256. # It is most probably a Windows format PATH printed by
  13257. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13258. # path with ; separators, and with drive letters. We can handle the
  13259. # drive letters (cygwin fileutils understands them), so leave them,
  13260. # especially as we might pass files found there to a mingw objdump,
  13261. # which wouldn't understand a cygwinified path. Ahh.
  13262. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13263. else
  13264. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13265. fi
  13266. ;;
  13267. pw32*)
  13268. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13269. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13270. ;;
  13271. esac
  13272. ;;
  13273. *)
  13274. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13275. ;;
  13276. esac
  13277. dynamic_linker='Win32 ld.exe'
  13278. # FIXME: first we should search . and the directory the executable is in
  13279. shlibpath_var=PATH
  13280. ;;
  13281. darwin* | rhapsody*)
  13282. dynamic_linker="$host_os dyld"
  13283. version_type=darwin
  13284. need_lib_prefix=no
  13285. need_version=no
  13286. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13287. soname_spec='${libname}${release}${major}$shared_ext'
  13288. shlibpath_overrides_runpath=yes
  13289. shlibpath_var=DYLD_LIBRARY_PATH
  13290. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13291. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13292. if test "$GCC" = yes; then
  13293. 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"`
  13294. else
  13295. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13296. fi
  13297. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13298. ;;
  13299. dgux*)
  13300. version_type=linux
  13301. need_lib_prefix=no
  13302. need_version=no
  13303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13304. soname_spec='${libname}${release}${shared_ext}$major'
  13305. shlibpath_var=LD_LIBRARY_PATH
  13306. ;;
  13307. freebsd1*)
  13308. dynamic_linker=no
  13309. ;;
  13310. kfreebsd*-gnu)
  13311. version_type=linux
  13312. need_lib_prefix=no
  13313. need_version=no
  13314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13315. soname_spec='${libname}${release}${shared_ext}$major'
  13316. shlibpath_var=LD_LIBRARY_PATH
  13317. shlibpath_overrides_runpath=no
  13318. hardcode_into_libs=yes
  13319. dynamic_linker='GNU ld.so'
  13320. ;;
  13321. freebsd* | dragonfly*)
  13322. # DragonFly does not have aout. When/if they implement a new
  13323. # versioning mechanism, adjust this.
  13324. if test -x /usr/bin/objformat; then
  13325. objformat=`/usr/bin/objformat`
  13326. else
  13327. case $host_os in
  13328. freebsd[123]*) objformat=aout ;;
  13329. *) objformat=elf ;;
  13330. esac
  13331. fi
  13332. version_type=freebsd-$objformat
  13333. case $version_type in
  13334. freebsd-elf*)
  13335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13336. need_version=no
  13337. need_lib_prefix=no
  13338. ;;
  13339. freebsd-*)
  13340. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13341. need_version=yes
  13342. ;;
  13343. esac
  13344. shlibpath_var=LD_LIBRARY_PATH
  13345. case $host_os in
  13346. freebsd2*)
  13347. shlibpath_overrides_runpath=yes
  13348. ;;
  13349. freebsd3.[01]* | freebsdelf3.[01]*)
  13350. shlibpath_overrides_runpath=yes
  13351. hardcode_into_libs=yes
  13352. ;;
  13353. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13354. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13355. shlibpath_overrides_runpath=no
  13356. hardcode_into_libs=yes
  13357. ;;
  13358. freebsd*) # from 4.6 on
  13359. shlibpath_overrides_runpath=yes
  13360. hardcode_into_libs=yes
  13361. ;;
  13362. esac
  13363. ;;
  13364. gnu*)
  13365. version_type=linux
  13366. need_lib_prefix=no
  13367. need_version=no
  13368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13369. soname_spec='${libname}${release}${shared_ext}$major'
  13370. shlibpath_var=LD_LIBRARY_PATH
  13371. hardcode_into_libs=yes
  13372. ;;
  13373. hpux9* | hpux10* | hpux11*)
  13374. # Give a soname corresponding to the major version so that dld.sl refuses to
  13375. # link against other versions.
  13376. version_type=sunos
  13377. need_lib_prefix=no
  13378. need_version=no
  13379. case $host_cpu in
  13380. ia64*)
  13381. shrext_cmds='.so'
  13382. hardcode_into_libs=yes
  13383. dynamic_linker="$host_os dld.so"
  13384. shlibpath_var=LD_LIBRARY_PATH
  13385. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13387. soname_spec='${libname}${release}${shared_ext}$major'
  13388. if test "X$HPUX_IA64_MODE" = X32; then
  13389. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13390. else
  13391. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13392. fi
  13393. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13394. ;;
  13395. hppa*64*)
  13396. shrext_cmds='.sl'
  13397. hardcode_into_libs=yes
  13398. dynamic_linker="$host_os dld.sl"
  13399. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13404. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13405. ;;
  13406. *)
  13407. shrext_cmds='.sl'
  13408. dynamic_linker="$host_os dld.sl"
  13409. shlibpath_var=SHLIB_PATH
  13410. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13412. soname_spec='${libname}${release}${shared_ext}$major'
  13413. ;;
  13414. esac
  13415. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13416. postinstall_cmds='chmod 555 $lib'
  13417. ;;
  13418. interix3*)
  13419. version_type=linux
  13420. need_lib_prefix=no
  13421. need_version=no
  13422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13423. soname_spec='${libname}${release}${shared_ext}$major'
  13424. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13425. shlibpath_var=LD_LIBRARY_PATH
  13426. shlibpath_overrides_runpath=no
  13427. hardcode_into_libs=yes
  13428. ;;
  13429. irix5* | irix6* | nonstopux*)
  13430. case $host_os in
  13431. nonstopux*) version_type=nonstopux ;;
  13432. *)
  13433. if test "$lt_cv_prog_gnu_ld" = yes; then
  13434. version_type=linux
  13435. else
  13436. version_type=irix
  13437. fi ;;
  13438. esac
  13439. need_lib_prefix=no
  13440. need_version=no
  13441. soname_spec='${libname}${release}${shared_ext}$major'
  13442. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13443. case $host_os in
  13444. irix5* | nonstopux*)
  13445. libsuff= shlibsuff=
  13446. ;;
  13447. *)
  13448. case $LD in # libtool.m4 will add one of these switches to LD
  13449. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13450. libsuff= shlibsuff= libmagic=32-bit;;
  13451. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13452. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13453. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13454. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13455. *) libsuff= shlibsuff= libmagic=never-match;;
  13456. esac
  13457. ;;
  13458. esac
  13459. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13460. shlibpath_overrides_runpath=no
  13461. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13462. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13463. hardcode_into_libs=yes
  13464. ;;
  13465. # No shared lib support for Linux oldld, aout, or coff.
  13466. linux*oldld* | linux*aout* | linux*coff*)
  13467. dynamic_linker=no
  13468. ;;
  13469. # This must be Linux ELF.
  13470. linux*)
  13471. version_type=linux
  13472. need_lib_prefix=no
  13473. need_version=no
  13474. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13475. soname_spec='${libname}${release}${shared_ext}$major'
  13476. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13477. shlibpath_var=LD_LIBRARY_PATH
  13478. shlibpath_overrides_runpath=no
  13479. # This implies no fast_install, which is unacceptable.
  13480. # Some rework will be needed to allow for fast_install
  13481. # before this can be enabled.
  13482. hardcode_into_libs=yes
  13483. # find out which ABI we are using
  13484. libsuff=
  13485. case "$host_cpu" in
  13486. x86_64*|s390x*|powerpc64*)
  13487. echo '#line 14945 "configure"' > conftest.$ac_ext
  13488. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13489. (eval $ac_compile) 2>&5
  13490. ac_status=$?
  13491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13492. (exit $ac_status); }; then
  13493. case `/usr/bin/file conftest.$ac_objext` in
  13494. *64-bit*)
  13495. libsuff=64
  13496. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13497. ;;
  13498. esac
  13499. fi
  13500. rm -rf conftest*
  13501. ;;
  13502. esac
  13503. # Append ld.so.conf contents to the search path
  13504. if test -f /etc/ld.so.conf; then
  13505. 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' ' '`
  13506. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13507. fi
  13508. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13509. # powerpc, because MkLinux only supported shared libraries with the
  13510. # GNU dynamic linker. Since this was broken with cross compilers,
  13511. # most powerpc-linux boxes support dynamic linking these days and
  13512. # people can always --disable-shared, the test was removed, and we
  13513. # assume the GNU/Linux dynamic linker is in use.
  13514. dynamic_linker='GNU/Linux ld.so'
  13515. ;;
  13516. knetbsd*-gnu)
  13517. version_type=linux
  13518. need_lib_prefix=no
  13519. need_version=no
  13520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13521. soname_spec='${libname}${release}${shared_ext}$major'
  13522. shlibpath_var=LD_LIBRARY_PATH
  13523. shlibpath_overrides_runpath=no
  13524. hardcode_into_libs=yes
  13525. dynamic_linker='GNU ld.so'
  13526. ;;
  13527. netbsd*)
  13528. version_type=sunos
  13529. need_lib_prefix=no
  13530. need_version=no
  13531. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13533. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13534. dynamic_linker='NetBSD (a.out) ld.so'
  13535. else
  13536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13537. soname_spec='${libname}${release}${shared_ext}$major'
  13538. dynamic_linker='NetBSD ld.elf_so'
  13539. fi
  13540. shlibpath_var=LD_LIBRARY_PATH
  13541. shlibpath_overrides_runpath=yes
  13542. hardcode_into_libs=yes
  13543. ;;
  13544. newsos6)
  13545. version_type=linux
  13546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13547. shlibpath_var=LD_LIBRARY_PATH
  13548. shlibpath_overrides_runpath=yes
  13549. ;;
  13550. nto-qnx*)
  13551. version_type=linux
  13552. need_lib_prefix=no
  13553. need_version=no
  13554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13555. soname_spec='${libname}${release}${shared_ext}$major'
  13556. shlibpath_var=LD_LIBRARY_PATH
  13557. shlibpath_overrides_runpath=yes
  13558. ;;
  13559. openbsd*)
  13560. version_type=sunos
  13561. sys_lib_dlsearch_path_spec="/usr/lib"
  13562. need_lib_prefix=no
  13563. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13564. case $host_os in
  13565. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13566. *) need_version=no ;;
  13567. esac
  13568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13569. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13570. shlibpath_var=LD_LIBRARY_PATH
  13571. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13572. case $host_os in
  13573. openbsd2.[89] | openbsd2.[89].*)
  13574. shlibpath_overrides_runpath=no
  13575. ;;
  13576. *)
  13577. shlibpath_overrides_runpath=yes
  13578. ;;
  13579. esac
  13580. else
  13581. shlibpath_overrides_runpath=yes
  13582. fi
  13583. ;;
  13584. os2*)
  13585. libname_spec='$name'
  13586. shrext_cmds=".dll"
  13587. need_lib_prefix=no
  13588. library_names_spec='$libname${shared_ext} $libname.a'
  13589. dynamic_linker='OS/2 ld.exe'
  13590. shlibpath_var=LIBPATH
  13591. ;;
  13592. osf3* | osf4* | osf5*)
  13593. version_type=osf
  13594. need_lib_prefix=no
  13595. need_version=no
  13596. soname_spec='${libname}${release}${shared_ext}$major'
  13597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13598. shlibpath_var=LD_LIBRARY_PATH
  13599. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13600. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13601. ;;
  13602. solaris*)
  13603. version_type=linux
  13604. need_lib_prefix=no
  13605. need_version=no
  13606. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13607. soname_spec='${libname}${release}${shared_ext}$major'
  13608. shlibpath_var=LD_LIBRARY_PATH
  13609. shlibpath_overrides_runpath=yes
  13610. hardcode_into_libs=yes
  13611. # ldd complains unless libraries are executable
  13612. postinstall_cmds='chmod +x $lib'
  13613. ;;
  13614. sunos4*)
  13615. version_type=sunos
  13616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13617. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13618. shlibpath_var=LD_LIBRARY_PATH
  13619. shlibpath_overrides_runpath=yes
  13620. if test "$with_gnu_ld" = yes; then
  13621. need_lib_prefix=no
  13622. fi
  13623. need_version=yes
  13624. ;;
  13625. sysv4 | sysv4.3*)
  13626. version_type=linux
  13627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13628. soname_spec='${libname}${release}${shared_ext}$major'
  13629. shlibpath_var=LD_LIBRARY_PATH
  13630. case $host_vendor in
  13631. sni)
  13632. shlibpath_overrides_runpath=no
  13633. need_lib_prefix=no
  13634. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13635. runpath_var=LD_RUN_PATH
  13636. ;;
  13637. siemens)
  13638. need_lib_prefix=no
  13639. ;;
  13640. motorola)
  13641. need_lib_prefix=no
  13642. need_version=no
  13643. shlibpath_overrides_runpath=no
  13644. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13645. ;;
  13646. esac
  13647. ;;
  13648. sysv4*MP*)
  13649. if test -d /usr/nec ;then
  13650. version_type=linux
  13651. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13652. soname_spec='$libname${shared_ext}.$major'
  13653. shlibpath_var=LD_LIBRARY_PATH
  13654. fi
  13655. ;;
  13656. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13657. version_type=freebsd-elf
  13658. need_lib_prefix=no
  13659. need_version=no
  13660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13661. soname_spec='${libname}${release}${shared_ext}$major'
  13662. shlibpath_var=LD_LIBRARY_PATH
  13663. hardcode_into_libs=yes
  13664. if test "$with_gnu_ld" = yes; then
  13665. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13666. shlibpath_overrides_runpath=no
  13667. else
  13668. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13669. shlibpath_overrides_runpath=yes
  13670. case $host_os in
  13671. sco3.2v5*)
  13672. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13673. ;;
  13674. esac
  13675. fi
  13676. sys_lib_dlsearch_path_spec='/usr/lib'
  13677. ;;
  13678. uts4*)
  13679. version_type=linux
  13680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13681. soname_spec='${libname}${release}${shared_ext}$major'
  13682. shlibpath_var=LD_LIBRARY_PATH
  13683. ;;
  13684. *)
  13685. dynamic_linker=no
  13686. ;;
  13687. esac
  13688. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13689. echo "${ECHO_T}$dynamic_linker" >&6
  13690. test "$dynamic_linker" = no && can_build_shared=no
  13691. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13692. if test "$GCC" = yes; then
  13693. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13694. fi
  13695. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13696. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13697. hardcode_action_F77=
  13698. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13699. test -n "$runpath_var_F77" || \
  13700. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13701. # We can hardcode non-existant directories.
  13702. if test "$hardcode_direct_F77" != no &&
  13703. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13704. # have to relink, otherwise we might link with an installed library
  13705. # when we should be linking with a yet-to-be-installed one
  13706. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13707. test "$hardcode_minus_L_F77" != no; then
  13708. # Linking always hardcodes the temporary library directory.
  13709. hardcode_action_F77=relink
  13710. else
  13711. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13712. hardcode_action_F77=immediate
  13713. fi
  13714. else
  13715. # We cannot hardcode anything, or else we can only hardcode existing
  13716. # directories.
  13717. hardcode_action_F77=unsupported
  13718. fi
  13719. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13720. echo "${ECHO_T}$hardcode_action_F77" >&6
  13721. if test "$hardcode_action_F77" = relink; then
  13722. # Fast installation is not supported
  13723. enable_fast_install=no
  13724. elif test "$shlibpath_overrides_runpath" = yes ||
  13725. test "$enable_shared" = no; then
  13726. # Fast installation is not necessary
  13727. enable_fast_install=needless
  13728. fi
  13729. # The else clause should only fire when bootstrapping the
  13730. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13731. # with your package, and you will get complaints that there are
  13732. # no rules to generate ltmain.sh.
  13733. if test -f "$ltmain"; then
  13734. # See if we are running on zsh, and set the options which allow our commands through
  13735. # without removal of \ escapes.
  13736. if test -n "${ZSH_VERSION+set}" ; then
  13737. setopt NO_GLOB_SUBST
  13738. fi
  13739. # Now quote all the things that may contain metacharacters while being
  13740. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13741. # variables and quote the copies for generation of the libtool script.
  13742. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13743. SED SHELL STRIP \
  13744. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13745. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13746. deplibs_check_method reload_flag reload_cmds need_locks \
  13747. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13748. lt_cv_sys_global_symbol_to_c_name_address \
  13749. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13750. old_postinstall_cmds old_postuninstall_cmds \
  13751. compiler_F77 \
  13752. CC_F77 \
  13753. LD_F77 \
  13754. lt_prog_compiler_wl_F77 \
  13755. lt_prog_compiler_pic_F77 \
  13756. lt_prog_compiler_static_F77 \
  13757. lt_prog_compiler_no_builtin_flag_F77 \
  13758. export_dynamic_flag_spec_F77 \
  13759. thread_safe_flag_spec_F77 \
  13760. whole_archive_flag_spec_F77 \
  13761. enable_shared_with_static_runtimes_F77 \
  13762. old_archive_cmds_F77 \
  13763. old_archive_from_new_cmds_F77 \
  13764. predep_objects_F77 \
  13765. postdep_objects_F77 \
  13766. predeps_F77 \
  13767. postdeps_F77 \
  13768. compiler_lib_search_path_F77 \
  13769. archive_cmds_F77 \
  13770. archive_expsym_cmds_F77 \
  13771. postinstall_cmds_F77 \
  13772. postuninstall_cmds_F77 \
  13773. old_archive_from_expsyms_cmds_F77 \
  13774. allow_undefined_flag_F77 \
  13775. no_undefined_flag_F77 \
  13776. export_symbols_cmds_F77 \
  13777. hardcode_libdir_flag_spec_F77 \
  13778. hardcode_libdir_flag_spec_ld_F77 \
  13779. hardcode_libdir_separator_F77 \
  13780. hardcode_automatic_F77 \
  13781. module_cmds_F77 \
  13782. module_expsym_cmds_F77 \
  13783. lt_cv_prog_compiler_c_o_F77 \
  13784. exclude_expsyms_F77 \
  13785. include_expsyms_F77; do
  13786. case $var in
  13787. old_archive_cmds_F77 | \
  13788. old_archive_from_new_cmds_F77 | \
  13789. archive_cmds_F77 | \
  13790. archive_expsym_cmds_F77 | \
  13791. module_cmds_F77 | \
  13792. module_expsym_cmds_F77 | \
  13793. old_archive_from_expsyms_cmds_F77 | \
  13794. export_symbols_cmds_F77 | \
  13795. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13796. postinstall_cmds | postuninstall_cmds | \
  13797. old_postinstall_cmds | old_postuninstall_cmds | \
  13798. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13799. # Double-quote double-evaled strings.
  13800. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13801. ;;
  13802. *)
  13803. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13804. ;;
  13805. esac
  13806. done
  13807. case $lt_echo in
  13808. *'\$0 --fallback-echo"')
  13809. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13810. ;;
  13811. esac
  13812. cfgfile="$ofile"
  13813. cat <<__EOF__ >> "$cfgfile"
  13814. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13815. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13816. # Shell to use when invoking shell scripts.
  13817. SHELL=$lt_SHELL
  13818. # Whether or not to build shared libraries.
  13819. build_libtool_libs=$enable_shared
  13820. # Whether or not to build static libraries.
  13821. build_old_libs=$enable_static
  13822. # Whether or not to add -lc for building shared libraries.
  13823. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13824. # Whether or not to disallow shared libs when runtime libs are static
  13825. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13826. # Whether or not to optimize for fast installation.
  13827. fast_install=$enable_fast_install
  13828. # The host system.
  13829. host_alias=$host_alias
  13830. host=$host
  13831. host_os=$host_os
  13832. # The build system.
  13833. build_alias=$build_alias
  13834. build=$build
  13835. build_os=$build_os
  13836. # An echo program that does not interpret backslashes.
  13837. echo=$lt_echo
  13838. # The archiver.
  13839. AR=$lt_AR
  13840. AR_FLAGS=$lt_AR_FLAGS
  13841. # A C compiler.
  13842. LTCC=$lt_LTCC
  13843. # LTCC compiler flags.
  13844. LTCFLAGS=$lt_LTCFLAGS
  13845. # A language-specific compiler.
  13846. CC=$lt_compiler_F77
  13847. # Is the compiler the GNU C compiler?
  13848. with_gcc=$GCC_F77
  13849. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  13850. gcc_ver=\`gcc -dumpversion\`
  13851. # An ERE matcher.
  13852. EGREP=$lt_EGREP
  13853. # The linker used to build libraries.
  13854. LD=$lt_LD_F77
  13855. # Whether we need hard or soft links.
  13856. LN_S=$lt_LN_S
  13857. # A BSD-compatible nm program.
  13858. NM=$lt_NM
  13859. # A symbol stripping program
  13860. STRIP=$lt_STRIP
  13861. # Used to examine libraries when file_magic_cmd begins "file"
  13862. MAGIC_CMD=$MAGIC_CMD
  13863. # Used on cygwin: DLL creation program.
  13864. DLLTOOL="$DLLTOOL"
  13865. # Used on cygwin: object dumper.
  13866. OBJDUMP="$OBJDUMP"
  13867. # Used on cygwin: assembler.
  13868. AS="$AS"
  13869. # The name of the directory that contains temporary libtool files.
  13870. objdir=$objdir
  13871. # How to create reloadable object files.
  13872. reload_flag=$lt_reload_flag
  13873. reload_cmds=$lt_reload_cmds
  13874. # How to pass a linker flag through the compiler.
  13875. wl=$lt_lt_prog_compiler_wl_F77
  13876. # Object file suffix (normally "o").
  13877. objext="$ac_objext"
  13878. # Old archive suffix (normally "a").
  13879. libext="$libext"
  13880. # Shared library suffix (normally ".so").
  13881. shrext_cmds='$shrext_cmds'
  13882. # Executable file suffix (normally "").
  13883. exeext="$exeext"
  13884. # Additional compiler flags for building library objects.
  13885. pic_flag=$lt_lt_prog_compiler_pic_F77
  13886. pic_mode=$pic_mode
  13887. # What is the maximum length of a command?
  13888. max_cmd_len=$lt_cv_sys_max_cmd_len
  13889. # Does compiler simultaneously support -c and -o options?
  13890. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13891. # Must we lock files when doing compilation?
  13892. need_locks=$lt_need_locks
  13893. # Do we need the lib prefix for modules?
  13894. need_lib_prefix=$need_lib_prefix
  13895. # Do we need a version for libraries?
  13896. need_version=$need_version
  13897. # Whether dlopen is supported.
  13898. dlopen_support=$enable_dlopen
  13899. # Whether dlopen of programs is supported.
  13900. dlopen_self=$enable_dlopen_self
  13901. # Whether dlopen of statically linked programs is supported.
  13902. dlopen_self_static=$enable_dlopen_self_static
  13903. # Compiler flag to prevent dynamic linking.
  13904. link_static_flag=$lt_lt_prog_compiler_static_F77
  13905. # Compiler flag to turn off builtin functions.
  13906. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13907. # Compiler flag to allow reflexive dlopens.
  13908. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13909. # Compiler flag to generate shared objects directly from archives.
  13910. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13911. # Compiler flag to generate thread-safe objects.
  13912. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13913. # Library versioning type.
  13914. version_type=$version_type
  13915. # Format of library name prefix.
  13916. libname_spec=$lt_libname_spec
  13917. # List of archive names. First name is the real one, the rest are links.
  13918. # The last name is the one that the linker finds with -lNAME.
  13919. library_names_spec=$lt_library_names_spec
  13920. # The coded name of the library, if different from the real name.
  13921. soname_spec=$lt_soname_spec
  13922. # Commands used to build and install an old-style archive.
  13923. RANLIB=$lt_RANLIB
  13924. old_archive_cmds=$lt_old_archive_cmds_F77
  13925. old_postinstall_cmds=$lt_old_postinstall_cmds
  13926. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13927. # Create an old-style archive from a shared archive.
  13928. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13929. # Create a temporary old-style archive to link instead of a shared archive.
  13930. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13931. # Commands used to build and install a shared archive.
  13932. archive_cmds=$lt_archive_cmds_F77
  13933. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13934. postinstall_cmds=$lt_postinstall_cmds
  13935. postuninstall_cmds=$lt_postuninstall_cmds
  13936. # Commands used to build a loadable module (assumed same as above if empty)
  13937. module_cmds=$lt_module_cmds_F77
  13938. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13939. # Commands to strip libraries.
  13940. old_striplib=$lt_old_striplib
  13941. striplib=$lt_striplib
  13942. # Dependencies to place before the objects being linked to create a
  13943. # shared library.
  13944. predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13945. # Dependencies to place after the objects being linked to create a
  13946. # shared library.
  13947. postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13948. # Dependencies to place before the objects being linked to create a
  13949. # shared library.
  13950. predeps=$lt_predeps_F77
  13951. # Dependencies to place after the objects being linked to create a
  13952. # shared library.
  13953. postdeps=$lt_postdeps_F77
  13954. # The library search path used internally by the compiler when linking
  13955. # a shared library.
  13956. 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"\`
  13957. # Method to check whether dependent libraries are shared objects.
  13958. deplibs_check_method=$lt_deplibs_check_method
  13959. # Command to use when deplibs_check_method == file_magic.
  13960. file_magic_cmd=$lt_file_magic_cmd
  13961. # Flag that allows shared libraries with undefined symbols to be built.
  13962. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13963. # Flag that forces no undefined symbols.
  13964. no_undefined_flag=$lt_no_undefined_flag_F77
  13965. # Commands used to finish a libtool library installation in a directory.
  13966. finish_cmds=$lt_finish_cmds
  13967. # Same as above, but a single script fragment to be evaled but not shown.
  13968. finish_eval=$lt_finish_eval
  13969. # Take the output of nm and produce a listing of raw symbols and C names.
  13970. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13971. # Transform the output of nm in a proper C declaration
  13972. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13973. # Transform the output of nm in a C name address pair
  13974. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13975. # This is the shared library runtime path variable.
  13976. runpath_var=$runpath_var
  13977. # This is the shared library path variable.
  13978. shlibpath_var=$shlibpath_var
  13979. # Is shlibpath searched before the hard-coded library search path?
  13980. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13981. # How to hardcode a shared library path into an executable.
  13982. hardcode_action=$hardcode_action_F77
  13983. # Whether we should hardcode library paths into libraries.
  13984. hardcode_into_libs=$hardcode_into_libs
  13985. # Flag to hardcode \$libdir into a binary during linking.
  13986. # This must work even if \$libdir does not exist.
  13987. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13988. # If ld is used when linking, flag to hardcode \$libdir into
  13989. # a binary during linking. This must work even if \$libdir does
  13990. # not exist.
  13991. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13992. # Whether we need a single -rpath flag with a separated argument.
  13993. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13994. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13995. # resulting binary.
  13996. hardcode_direct=$hardcode_direct_F77
  13997. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13998. # resulting binary.
  13999. hardcode_minus_L=$hardcode_minus_L_F77
  14000. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14001. # the resulting binary.
  14002. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14003. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14004. # and all subsequent libraries and executables linked against it.
  14005. hardcode_automatic=$hardcode_automatic_F77
  14006. # Variables whose values should be saved in libtool wrapper scripts and
  14007. # restored at relink time.
  14008. variables_saved_for_relink="$variables_saved_for_relink"
  14009. # Whether libtool must link a program against all its dependency libraries.
  14010. link_all_deplibs=$link_all_deplibs_F77
  14011. # Compile-time system search path for libraries
  14012. 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"\`
  14013. # Run-time system search path for libraries
  14014. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14015. # Fix the shell variable \$srcfile for the compiler.
  14016. fix_srcfile_path="$fix_srcfile_path_F77"
  14017. # Set to yes if exported symbols are required.
  14018. always_export_symbols=$always_export_symbols_F77
  14019. # The commands to list exported symbols.
  14020. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14021. # The commands to extract the exported symbol list from a shared archive.
  14022. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14023. # Symbols that should not be listed in the preloaded symbols.
  14024. exclude_expsyms=$lt_exclude_expsyms_F77
  14025. # Symbols that must always be exported.
  14026. include_expsyms=$lt_include_expsyms_F77
  14027. # ### END LIBTOOL TAG CONFIG: $tagname
  14028. __EOF__
  14029. else
  14030. # If there is no Makefile yet, we rely on a make rule to execute
  14031. # `config.status --recheck' to rerun these tests and create the
  14032. # libtool script then.
  14033. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14034. if test -f "$ltmain_in"; then
  14035. test -f Makefile && make "$ltmain"
  14036. fi
  14037. fi
  14038. ac_ext=c
  14039. ac_cpp='$CPP $CPPFLAGS'
  14040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14043. CC="$lt_save_CC"
  14044. else
  14045. tagname=""
  14046. fi
  14047. ;;
  14048. GCJ)
  14049. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14050. # Source file extension for Java test sources.
  14051. ac_ext=java
  14052. # Object file extension for compiled Java test sources.
  14053. objext=o
  14054. objext_GCJ=$objext
  14055. # Code to be used in simple compile tests
  14056. lt_simple_compile_test_code="class foo {}\n"
  14057. # Code to be used in simple link tests
  14058. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14059. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14060. # If no C compiler was specified, use CC.
  14061. LTCC=${LTCC-"$CC"}
  14062. # If no C compiler flags were specified, use CFLAGS.
  14063. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14064. # Allow CC to be a program name with arguments.
  14065. compiler=$CC
  14066. # save warnings/boilerplate of simple test code
  14067. ac_outfile=conftest.$ac_objext
  14068. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14069. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14070. _lt_compiler_boilerplate=`cat conftest.err`
  14071. $rm conftest*
  14072. ac_outfile=conftest.$ac_objext
  14073. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14074. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14075. _lt_linker_boilerplate=`cat conftest.err`
  14076. $rm conftest*
  14077. # Allow CC to be a program name with arguments.
  14078. lt_save_CC="$CC"
  14079. CC=${GCJ-"gcj"}
  14080. compiler=$CC
  14081. compiler_GCJ=$CC
  14082. for cc_temp in $compiler""; do
  14083. case $cc_temp in
  14084. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14085. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14086. \-*) ;;
  14087. *) break;;
  14088. esac
  14089. done
  14090. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14091. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14092. archive_cmds_need_lc_GCJ=no
  14093. old_archive_cmds_GCJ=$old_archive_cmds
  14094. lt_prog_compiler_no_builtin_flag_GCJ=
  14095. if test "$GCC" = yes; then
  14096. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14097. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14098. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14099. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14100. echo $ECHO_N "(cached) $ECHO_C" >&6
  14101. else
  14102. lt_cv_prog_compiler_rtti_exceptions=no
  14103. ac_outfile=conftest.$ac_objext
  14104. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14105. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14106. # Insert the option either (1) after the last *FLAGS variable, or
  14107. # (2) before a word containing "conftest.", or (3) at the end.
  14108. # Note that $ac_compile itself does not contain backslashes and begins
  14109. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14110. # The option is referenced via a variable to avoid confusing sed.
  14111. lt_compile=`echo "$ac_compile" | $SED \
  14112. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14113. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14114. -e 's:$: $lt_compiler_flag:'`
  14115. (eval echo "\"\$as_me:15723: $lt_compile\"" >&5)
  14116. (eval "$lt_compile" 2>conftest.err)
  14117. ac_status=$?
  14118. cat conftest.err >&5
  14119. echo "$as_me:15727: \$? = $ac_status" >&5
  14120. if (exit $ac_status) && test -s "$ac_outfile"; then
  14121. # The compiler can only warn and ignore the option if not recognized
  14122. # So say no if there are warnings other than the usual output.
  14123. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14124. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14125. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14126. lt_cv_prog_compiler_rtti_exceptions=yes
  14127. fi
  14128. fi
  14129. $rm conftest*
  14130. fi
  14131. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14132. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14133. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14134. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14135. else
  14136. :
  14137. fi
  14138. fi
  14139. lt_prog_compiler_wl_GCJ=
  14140. lt_prog_compiler_pic_GCJ=
  14141. lt_prog_compiler_static_GCJ=
  14142. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14143. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14144. if test "$GCC" = yes; then
  14145. lt_prog_compiler_wl_GCJ='-Wl,'
  14146. lt_prog_compiler_static_GCJ='-static'
  14147. case $host_os in
  14148. aix*)
  14149. # All AIX code is PIC.
  14150. if test "$host_cpu" = ia64; then
  14151. # AIX 5 now supports IA64 processor
  14152. lt_prog_compiler_static_GCJ='-Bstatic'
  14153. fi
  14154. ;;
  14155. amigaos*)
  14156. # FIXME: we need at least 68020 code to build shared libraries, but
  14157. # adding the `-m68020' flag to GCC prevents building anything better,
  14158. # like `-m68040'.
  14159. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14160. ;;
  14161. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14162. # PIC is the default for these OSes.
  14163. ;;
  14164. mingw* | pw32* | os2*)
  14165. # This hack is so that the source file can tell whether it is being
  14166. # built for inclusion in a dll (and should export symbols for example).
  14167. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14168. ;;
  14169. darwin* | rhapsody*)
  14170. # PIC is the default on this platform
  14171. # Common symbols not allowed in MH_DYLIB files
  14172. lt_prog_compiler_pic_GCJ='-fno-common'
  14173. ;;
  14174. interix3*)
  14175. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14176. # Instead, we relocate shared libraries at runtime.
  14177. ;;
  14178. msdosdjgpp*)
  14179. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14180. # on systems that don't support them.
  14181. lt_prog_compiler_can_build_shared_GCJ=no
  14182. enable_shared=no
  14183. ;;
  14184. sysv4*MP*)
  14185. if test -d /usr/nec; then
  14186. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14187. fi
  14188. ;;
  14189. hpux*)
  14190. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14191. # not for PA HP-UX.
  14192. case $host_cpu in
  14193. hppa*64*|ia64*)
  14194. # +Z the default
  14195. ;;
  14196. *)
  14197. lt_prog_compiler_pic_GCJ='-fPIC'
  14198. ;;
  14199. esac
  14200. ;;
  14201. *)
  14202. lt_prog_compiler_pic_GCJ='-fPIC'
  14203. ;;
  14204. esac
  14205. else
  14206. # PORTME Check for flag to pass linker flags through the system compiler.
  14207. case $host_os in
  14208. aix*)
  14209. lt_prog_compiler_wl_GCJ='-Wl,'
  14210. if test "$host_cpu" = ia64; then
  14211. # AIX 5 now supports IA64 processor
  14212. lt_prog_compiler_static_GCJ='-Bstatic'
  14213. else
  14214. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14215. fi
  14216. ;;
  14217. darwin*)
  14218. # PIC is the default on this platform
  14219. # Common symbols not allowed in MH_DYLIB files
  14220. case $cc_basename in
  14221. xlc*)
  14222. lt_prog_compiler_pic_GCJ='-qnocommon'
  14223. lt_prog_compiler_wl_GCJ='-Wl,'
  14224. ;;
  14225. esac
  14226. ;;
  14227. mingw* | pw32* | os2*)
  14228. # This hack is so that the source file can tell whether it is being
  14229. # built for inclusion in a dll (and should export symbols for example).
  14230. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14231. ;;
  14232. hpux9* | hpux10* | hpux11*)
  14233. lt_prog_compiler_wl_GCJ='-Wl,'
  14234. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14235. # not for PA HP-UX.
  14236. case $host_cpu in
  14237. hppa*64*|ia64*)
  14238. # +Z the default
  14239. ;;
  14240. *)
  14241. lt_prog_compiler_pic_GCJ='+Z'
  14242. ;;
  14243. esac
  14244. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14245. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14246. ;;
  14247. irix5* | irix6* | nonstopux*)
  14248. lt_prog_compiler_wl_GCJ='-Wl,'
  14249. # PIC (with -KPIC) is the default.
  14250. lt_prog_compiler_static_GCJ='-non_shared'
  14251. ;;
  14252. newsos6)
  14253. lt_prog_compiler_pic_GCJ='-KPIC'
  14254. lt_prog_compiler_static_GCJ='-Bstatic'
  14255. ;;
  14256. linux*)
  14257. case $cc_basename in
  14258. icc* | ecc*)
  14259. lt_prog_compiler_wl_GCJ='-Wl,'
  14260. lt_prog_compiler_pic_GCJ='-KPIC'
  14261. lt_prog_compiler_static_GCJ='-static'
  14262. ;;
  14263. pgcc* | pgf77* | pgf90* | pgf95*)
  14264. # Portland Group compilers (*not* the Pentium gcc compiler,
  14265. # which looks to be a dead project)
  14266. lt_prog_compiler_wl_GCJ='-Wl,'
  14267. lt_prog_compiler_pic_GCJ='-fpic'
  14268. lt_prog_compiler_static_GCJ='-Bstatic'
  14269. ;;
  14270. ccc*)
  14271. lt_prog_compiler_wl_GCJ='-Wl,'
  14272. # All Alpha code is PIC.
  14273. lt_prog_compiler_static_GCJ='-non_shared'
  14274. ;;
  14275. esac
  14276. ;;
  14277. osf3* | osf4* | osf5*)
  14278. lt_prog_compiler_wl_GCJ='-Wl,'
  14279. # All OSF/1 code is PIC.
  14280. lt_prog_compiler_static_GCJ='-non_shared'
  14281. ;;
  14282. solaris*)
  14283. lt_prog_compiler_pic_GCJ='-KPIC'
  14284. lt_prog_compiler_static_GCJ='-Bstatic'
  14285. case $cc_basename in
  14286. f77* | f90* | f95*)
  14287. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14288. *)
  14289. lt_prog_compiler_wl_GCJ='-Wl,';;
  14290. esac
  14291. ;;
  14292. sunos4*)
  14293. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14294. lt_prog_compiler_pic_GCJ='-PIC'
  14295. lt_prog_compiler_static_GCJ='-Bstatic'
  14296. ;;
  14297. sysv4 | sysv4.2uw2* | sysv4.3*)
  14298. lt_prog_compiler_wl_GCJ='-Wl,'
  14299. lt_prog_compiler_pic_GCJ='-KPIC'
  14300. lt_prog_compiler_static_GCJ='-Bstatic'
  14301. ;;
  14302. sysv4*MP*)
  14303. if test -d /usr/nec ;then
  14304. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14305. lt_prog_compiler_static_GCJ='-Bstatic'
  14306. fi
  14307. ;;
  14308. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14309. lt_prog_compiler_wl_GCJ='-Wl,'
  14310. lt_prog_compiler_pic_GCJ='-KPIC'
  14311. lt_prog_compiler_static_GCJ='-Bstatic'
  14312. ;;
  14313. unicos*)
  14314. lt_prog_compiler_wl_GCJ='-Wl,'
  14315. lt_prog_compiler_can_build_shared_GCJ=no
  14316. ;;
  14317. uts4*)
  14318. lt_prog_compiler_pic_GCJ='-pic'
  14319. lt_prog_compiler_static_GCJ='-Bstatic'
  14320. ;;
  14321. *)
  14322. lt_prog_compiler_can_build_shared_GCJ=no
  14323. ;;
  14324. esac
  14325. fi
  14326. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14327. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14328. #
  14329. # Check to make sure the PIC flag actually works.
  14330. #
  14331. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14332. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14333. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14334. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14335. echo $ECHO_N "(cached) $ECHO_C" >&6
  14336. else
  14337. lt_prog_compiler_pic_works_GCJ=no
  14338. ac_outfile=conftest.$ac_objext
  14339. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14340. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14341. # Insert the option either (1) after the last *FLAGS variable, or
  14342. # (2) before a word containing "conftest.", or (3) at the end.
  14343. # Note that $ac_compile itself does not contain backslashes and begins
  14344. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14345. # The option is referenced via a variable to avoid confusing sed.
  14346. lt_compile=`echo "$ac_compile" | $SED \
  14347. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14348. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14349. -e 's:$: $lt_compiler_flag:'`
  14350. (eval echo "\"\$as_me:15991: $lt_compile\"" >&5)
  14351. (eval "$lt_compile" 2>conftest.err)
  14352. ac_status=$?
  14353. cat conftest.err >&5
  14354. echo "$as_me:15995: \$? = $ac_status" >&5
  14355. if (exit $ac_status) && test -s "$ac_outfile"; then
  14356. # The compiler can only warn and ignore the option if not recognized
  14357. # So say no if there are warnings other than the usual output.
  14358. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14359. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14360. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14361. lt_prog_compiler_pic_works_GCJ=yes
  14362. fi
  14363. fi
  14364. $rm conftest*
  14365. fi
  14366. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14367. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14368. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14369. case $lt_prog_compiler_pic_GCJ in
  14370. "" | " "*) ;;
  14371. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14372. esac
  14373. else
  14374. lt_prog_compiler_pic_GCJ=
  14375. lt_prog_compiler_can_build_shared_GCJ=no
  14376. fi
  14377. fi
  14378. case $host_os in
  14379. # For platforms which do not support PIC, -DPIC is meaningless:
  14380. *djgpp*)
  14381. lt_prog_compiler_pic_GCJ=
  14382. ;;
  14383. *)
  14384. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14385. ;;
  14386. esac
  14387. #
  14388. # Check to make sure the static flag actually works.
  14389. #
  14390. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14391. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14392. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14393. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14394. echo $ECHO_N "(cached) $ECHO_C" >&6
  14395. else
  14396. lt_prog_compiler_static_works_GCJ=no
  14397. save_LDFLAGS="$LDFLAGS"
  14398. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14399. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14400. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14401. # The linker can only warn and ignore the option if not recognized
  14402. # So say no if there are warnings
  14403. if test -s conftest.err; then
  14404. # Append any errors to the config.log.
  14405. cat conftest.err 1>&5
  14406. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14407. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14408. if diff conftest.exp conftest.er2 >/dev/null; then
  14409. lt_prog_compiler_static_works_GCJ=yes
  14410. fi
  14411. else
  14412. lt_prog_compiler_static_works_GCJ=yes
  14413. fi
  14414. fi
  14415. $rm conftest*
  14416. LDFLAGS="$save_LDFLAGS"
  14417. fi
  14418. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14419. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14420. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14421. :
  14422. else
  14423. lt_prog_compiler_static_GCJ=
  14424. fi
  14425. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14426. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14427. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14428. echo $ECHO_N "(cached) $ECHO_C" >&6
  14429. else
  14430. lt_cv_prog_compiler_c_o_GCJ=no
  14431. $rm -r conftest 2>/dev/null
  14432. mkdir conftest
  14433. cd conftest
  14434. mkdir out
  14435. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14436. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14437. # Insert the option either (1) after the last *FLAGS variable, or
  14438. # (2) before a word containing "conftest.", or (3) at the end.
  14439. # Note that $ac_compile itself does not contain backslashes and begins
  14440. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14441. lt_compile=`echo "$ac_compile" | $SED \
  14442. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14443. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14444. -e 's:$: $lt_compiler_flag:'`
  14445. (eval echo "\"\$as_me:16095: $lt_compile\"" >&5)
  14446. (eval "$lt_compile" 2>out/conftest.err)
  14447. ac_status=$?
  14448. cat out/conftest.err >&5
  14449. echo "$as_me:16099: \$? = $ac_status" >&5
  14450. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14451. then
  14452. # The compiler can only warn and ignore the option if not recognized
  14453. # So say no if there are warnings
  14454. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14455. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14456. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14457. lt_cv_prog_compiler_c_o_GCJ=yes
  14458. fi
  14459. fi
  14460. chmod u+w . 2>&5
  14461. $rm conftest*
  14462. # SGI C++ compiler will create directory out/ii_files/ for
  14463. # template instantiation
  14464. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14465. $rm out/* && rmdir out
  14466. cd ..
  14467. rmdir conftest
  14468. $rm conftest*
  14469. fi
  14470. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14471. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14472. hard_links="nottested"
  14473. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14474. # do not overwrite the value of need_locks provided by the user
  14475. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14476. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14477. hard_links=yes
  14478. $rm conftest*
  14479. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14480. touch conftest.a
  14481. ln conftest.a conftest.b 2>&5 || hard_links=no
  14482. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14483. echo "$as_me:$LINENO: result: $hard_links" >&5
  14484. echo "${ECHO_T}$hard_links" >&6
  14485. if test "$hard_links" = no; then
  14486. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14487. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14488. need_locks=warn
  14489. fi
  14490. else
  14491. need_locks=no
  14492. fi
  14493. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14494. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14495. runpath_var=
  14496. allow_undefined_flag_GCJ=
  14497. enable_shared_with_static_runtimes_GCJ=no
  14498. archive_cmds_GCJ=
  14499. archive_expsym_cmds_GCJ=
  14500. old_archive_From_new_cmds_GCJ=
  14501. old_archive_from_expsyms_cmds_GCJ=
  14502. export_dynamic_flag_spec_GCJ=
  14503. whole_archive_flag_spec_GCJ=
  14504. thread_safe_flag_spec_GCJ=
  14505. hardcode_libdir_flag_spec_GCJ=
  14506. hardcode_libdir_flag_spec_ld_GCJ=
  14507. hardcode_libdir_separator_GCJ=
  14508. hardcode_direct_GCJ=no
  14509. hardcode_minus_L_GCJ=no
  14510. hardcode_shlibpath_var_GCJ=unsupported
  14511. link_all_deplibs_GCJ=unknown
  14512. hardcode_automatic_GCJ=no
  14513. module_cmds_GCJ=
  14514. module_expsym_cmds_GCJ=
  14515. always_export_symbols_GCJ=no
  14516. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14517. # include_expsyms should be a list of space-separated symbols to be *always*
  14518. # included in the symbol list
  14519. include_expsyms_GCJ=
  14520. # exclude_expsyms can be an extended regexp of symbols to exclude
  14521. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14522. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14523. # as well as any symbol that contains `d'.
  14524. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14525. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14526. # platforms (ab)use it in PIC code, but their linkers get confused if
  14527. # the symbol is explicitly referenced. Since portable code cannot
  14528. # rely on this symbol name, it's probably fine to never include it in
  14529. # preloaded symbol tables.
  14530. extract_expsyms_cmds=
  14531. # Just being paranoid about ensuring that cc_basename is set.
  14532. for cc_temp in $compiler""; do
  14533. case $cc_temp in
  14534. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14535. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14536. \-*) ;;
  14537. *) break;;
  14538. esac
  14539. done
  14540. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14541. case $host_os in
  14542. cygwin* | mingw* | pw32*)
  14543. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14544. # When not using gcc, we currently assume that we are using
  14545. # Microsoft Visual C++.
  14546. if test "$GCC" != yes; then
  14547. with_gnu_ld=no
  14548. fi
  14549. ;;
  14550. interix*)
  14551. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14552. with_gnu_ld=yes
  14553. ;;
  14554. openbsd*)
  14555. with_gnu_ld=no
  14556. ;;
  14557. esac
  14558. ld_shlibs_GCJ=yes
  14559. if test "$with_gnu_ld" = yes; then
  14560. # If archive_cmds runs LD, not CC, wlarc should be empty
  14561. wlarc='${wl}'
  14562. # Set some defaults for GNU ld with shared library support. These
  14563. # are reset later if shared libraries are not supported. Putting them
  14564. # here allows them to be overridden if necessary.
  14565. runpath_var=LD_RUN_PATH
  14566. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14567. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14568. # ancient GNU ld didn't support --whole-archive et. al.
  14569. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14570. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14571. else
  14572. whole_archive_flag_spec_GCJ=
  14573. fi
  14574. supports_anon_versioning=no
  14575. case `$LD -v 2>/dev/null` in
  14576. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14577. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14578. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14579. *\ 2.11.*) ;; # other 2.11 versions
  14580. *) supports_anon_versioning=yes ;;
  14581. esac
  14582. # See if GNU ld supports shared libraries.
  14583. case $host_os in
  14584. aix3* | aix4* | aix5*)
  14585. # On AIX/PPC, the GNU linker is very broken
  14586. if test "$host_cpu" != ia64; then
  14587. ld_shlibs_GCJ=no
  14588. cat <<EOF 1>&2
  14589. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14590. *** to be unable to reliably create shared libraries on AIX.
  14591. *** Therefore, libtool is disabling shared libraries support. If you
  14592. *** really care for shared libraries, you may want to modify your PATH
  14593. *** so that a non-GNU linker is found, and then restart.
  14594. EOF
  14595. fi
  14596. ;;
  14597. amigaos*)
  14598. 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)'
  14599. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14600. hardcode_minus_L_GCJ=yes
  14601. # Samuel A. Falvo II <[email protected]> reports
  14602. # that the semantics of dynamic libraries on AmigaOS, at least up
  14603. # to version 4, is to share data among multiple programs linked
  14604. # with the same dynamic library. Since this doesn't match the
  14605. # behavior of shared libraries on other platforms, we can't use
  14606. # them.
  14607. ld_shlibs_GCJ=no
  14608. ;;
  14609. beos*)
  14610. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14611. allow_undefined_flag_GCJ=unsupported
  14612. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14613. # support --undefined. This deserves some investigation. FIXME
  14614. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14615. else
  14616. ld_shlibs_GCJ=no
  14617. fi
  14618. ;;
  14619. cygwin* | mingw* | pw32*)
  14620. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14621. # as there is no search path for DLLs.
  14622. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14623. allow_undefined_flag_GCJ=unsupported
  14624. always_export_symbols_GCJ=no
  14625. enable_shared_with_static_runtimes_GCJ=yes
  14626. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14627. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14628. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14629. # If the export-symbols file already is a .def file (1st line
  14630. # is EXPORTS), use it as is; otherwise, prepend...
  14631. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14632. cp $export_symbols $output_objdir/$soname.def;
  14633. else
  14634. echo EXPORTS > $output_objdir/$soname.def;
  14635. cat $export_symbols >> $output_objdir/$soname.def;
  14636. fi~
  14637. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14638. else
  14639. ld_shlibs_GCJ=no
  14640. fi
  14641. ;;
  14642. interix3*)
  14643. hardcode_direct_GCJ=no
  14644. hardcode_shlibpath_var_GCJ=no
  14645. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14646. export_dynamic_flag_spec_GCJ='${wl}-E'
  14647. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14648. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14649. # default) and relocated if they conflict, which is a slow very memory
  14650. # consuming and fragmenting process. To avoid this, we pick a random,
  14651. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14652. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14653. 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'
  14654. 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'
  14655. ;;
  14656. linux*)
  14657. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14658. tmp_addflag=
  14659. case $cc_basename,$host_cpu in
  14660. pgcc*) # Portland Group C compiler
  14661. 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'
  14662. tmp_addflag=' $pic_flag'
  14663. ;;
  14664. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14665. 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'
  14666. tmp_addflag=' $pic_flag -Mnomain' ;;
  14667. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14668. tmp_addflag=' -i_dynamic' ;;
  14669. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14670. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14671. ifc* | ifort*) # Intel Fortran compiler
  14672. tmp_addflag=' -nofor_main' ;;
  14673. esac
  14674. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14675. if test $supports_anon_versioning = yes; then
  14676. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14677. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14678. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14679. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14680. fi
  14681. else
  14682. ld_shlibs_GCJ=no
  14683. fi
  14684. ;;
  14685. netbsd*)
  14686. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14687. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14688. wlarc=
  14689. else
  14690. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14691. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14692. fi
  14693. ;;
  14694. solaris*)
  14695. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14696. ld_shlibs_GCJ=no
  14697. cat <<EOF 1>&2
  14698. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14699. *** create shared libraries on Solaris systems. Therefore, libtool
  14700. *** is disabling shared libraries support. We urge you to upgrade GNU
  14701. *** binutils to release 2.9.1 or newer. Another option is to modify
  14702. *** your PATH or compiler configuration so that the native linker is
  14703. *** used, and then restart.
  14704. EOF
  14705. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14706. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14707. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14708. else
  14709. ld_shlibs_GCJ=no
  14710. fi
  14711. ;;
  14712. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14713. case `$LD -v 2>&1` in
  14714. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14715. ld_shlibs_GCJ=no
  14716. cat <<_LT_EOF 1>&2
  14717. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14718. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14719. *** is disabling shared libraries support. We urge you to upgrade GNU
  14720. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14721. *** your PATH or compiler configuration so that the native linker is
  14722. *** used, and then restart.
  14723. _LT_EOF
  14724. ;;
  14725. *)
  14726. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14727. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14728. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14729. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14730. else
  14731. ld_shlibs_GCJ=no
  14732. fi
  14733. ;;
  14734. esac
  14735. ;;
  14736. sunos4*)
  14737. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14738. wlarc=
  14739. hardcode_direct_GCJ=yes
  14740. hardcode_shlibpath_var_GCJ=no
  14741. ;;
  14742. *)
  14743. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14744. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14745. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14746. else
  14747. ld_shlibs_GCJ=no
  14748. fi
  14749. ;;
  14750. esac
  14751. if test "$ld_shlibs_GCJ" = no; then
  14752. runpath_var=
  14753. hardcode_libdir_flag_spec_GCJ=
  14754. export_dynamic_flag_spec_GCJ=
  14755. whole_archive_flag_spec_GCJ=
  14756. fi
  14757. else
  14758. # PORTME fill in a description of your system's linker (not GNU ld)
  14759. case $host_os in
  14760. aix3*)
  14761. allow_undefined_flag_GCJ=unsupported
  14762. always_export_symbols_GCJ=yes
  14763. 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'
  14764. # Note: this linker hardcodes the directories in LIBPATH if there
  14765. # are no directories specified by -L.
  14766. hardcode_minus_L_GCJ=yes
  14767. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14768. # Neither direct hardcoding nor static linking is supported with a
  14769. # broken collect2.
  14770. hardcode_direct_GCJ=unsupported
  14771. fi
  14772. ;;
  14773. aix4* | aix5*)
  14774. if test "$host_cpu" = ia64; then
  14775. # On IA64, the linker does run time linking by default, so we don't
  14776. # have to do anything special.
  14777. aix_use_runtimelinking=no
  14778. exp_sym_flag='-Bexport'
  14779. no_entry_flag=""
  14780. else
  14781. # If we're using GNU nm, then we don't want the "-C" option.
  14782. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14783. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14784. 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'
  14785. else
  14786. 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'
  14787. fi
  14788. aix_use_runtimelinking=no
  14789. # Test if we are trying to use run time linking or normal
  14790. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14791. # need to do runtime linking.
  14792. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14793. for ld_flag in $LDFLAGS; do
  14794. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14795. aix_use_runtimelinking=yes
  14796. break
  14797. fi
  14798. done
  14799. ;;
  14800. esac
  14801. exp_sym_flag='-bexport'
  14802. no_entry_flag='-bnoentry'
  14803. fi
  14804. # When large executables or shared objects are built, AIX ld can
  14805. # have problems creating the table of contents. If linking a library
  14806. # or program results in "error TOC overflow" add -mminimal-toc to
  14807. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14808. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14809. archive_cmds_GCJ=''
  14810. hardcode_direct_GCJ=yes
  14811. hardcode_libdir_separator_GCJ=':'
  14812. link_all_deplibs_GCJ=yes
  14813. if test "$GCC" = yes; then
  14814. case $host_os in aix4.[012]|aix4.[012].*)
  14815. # We only want to do this on AIX 4.2 and lower, the check
  14816. # below for broken collect2 doesn't work under 4.3+
  14817. collect2name=`${CC} -print-prog-name=collect2`
  14818. if test -f "$collect2name" && \
  14819. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14820. then
  14821. # We have reworked collect2
  14822. hardcode_direct_GCJ=yes
  14823. else
  14824. # We have old collect2
  14825. hardcode_direct_GCJ=unsupported
  14826. # It fails to find uninstalled libraries when the uninstalled
  14827. # path is not listed in the libpath. Setting hardcode_minus_L
  14828. # to unsupported forces relinking
  14829. hardcode_minus_L_GCJ=yes
  14830. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14831. hardcode_libdir_separator_GCJ=
  14832. fi
  14833. ;;
  14834. esac
  14835. shared_flag='-shared'
  14836. if test "$aix_use_runtimelinking" = yes; then
  14837. shared_flag="$shared_flag "'${wl}-G'
  14838. fi
  14839. else
  14840. # not using gcc
  14841. if test "$host_cpu" = ia64; then
  14842. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14843. # chokes on -Wl,-G. The following line is correct:
  14844. shared_flag='-G'
  14845. else
  14846. if test "$aix_use_runtimelinking" = yes; then
  14847. shared_flag='${wl}-G'
  14848. else
  14849. shared_flag='${wl}-bM:SRE'
  14850. fi
  14851. fi
  14852. fi
  14853. # It seems that -bexpall does not export symbols beginning with
  14854. # underscore (_), so it is better to generate a list of symbols to export.
  14855. always_export_symbols_GCJ=yes
  14856. if test "$aix_use_runtimelinking" = yes; then
  14857. # Warning - without using the other runtime loading flags (-brtl),
  14858. # -berok will link without error, but may produce a broken library.
  14859. allow_undefined_flag_GCJ='-berok'
  14860. # Determine the default libpath from the value encoded in an empty executable.
  14861. cat >conftest.$ac_ext <<_ACEOF
  14862. /* confdefs.h. */
  14863. _ACEOF
  14864. cat confdefs.h >>conftest.$ac_ext
  14865. cat >>conftest.$ac_ext <<_ACEOF
  14866. /* end confdefs.h. */
  14867. int
  14868. main ()
  14869. {
  14870. ;
  14871. return 0;
  14872. }
  14873. _ACEOF
  14874. rm -f conftest.$ac_objext conftest$ac_exeext
  14875. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14876. (eval $ac_link) 2>conftest.er1
  14877. ac_status=$?
  14878. grep -v '^ *+' conftest.er1 >conftest.err
  14879. rm -f conftest.er1
  14880. cat conftest.err >&5
  14881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14882. (exit $ac_status); } &&
  14883. { ac_try='test -z "$ac_c_werror_flag"
  14884. || test ! -s conftest.err'
  14885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14886. (eval $ac_try) 2>&5
  14887. ac_status=$?
  14888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14889. (exit $ac_status); }; } &&
  14890. { ac_try='test -s conftest$ac_exeext'
  14891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14892. (eval $ac_try) 2>&5
  14893. ac_status=$?
  14894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14895. (exit $ac_status); }; }; then
  14896. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14897. }'`
  14898. # Check for a 64-bit object if we didn't find anything.
  14899. 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; }
  14900. }'`; fi
  14901. else
  14902. echo "$as_me: failed program was:" >&5
  14903. sed 's/^/| /' conftest.$ac_ext >&5
  14904. fi
  14905. rm -f conftest.err conftest.$ac_objext \
  14906. conftest$ac_exeext conftest.$ac_ext
  14907. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14908. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14909. 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"
  14910. else
  14911. if test "$host_cpu" = ia64; then
  14912. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14913. allow_undefined_flag_GCJ="-z nodefs"
  14914. 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"
  14915. else
  14916. # Determine the default libpath from the value encoded in an empty executable.
  14917. cat >conftest.$ac_ext <<_ACEOF
  14918. /* confdefs.h. */
  14919. _ACEOF
  14920. cat confdefs.h >>conftest.$ac_ext
  14921. cat >>conftest.$ac_ext <<_ACEOF
  14922. /* end confdefs.h. */
  14923. int
  14924. main ()
  14925. {
  14926. ;
  14927. return 0;
  14928. }
  14929. _ACEOF
  14930. rm -f conftest.$ac_objext conftest$ac_exeext
  14931. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14932. (eval $ac_link) 2>conftest.er1
  14933. ac_status=$?
  14934. grep -v '^ *+' conftest.er1 >conftest.err
  14935. rm -f conftest.er1
  14936. cat conftest.err >&5
  14937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14938. (exit $ac_status); } &&
  14939. { ac_try='test -z "$ac_c_werror_flag"
  14940. || test ! -s conftest.err'
  14941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14942. (eval $ac_try) 2>&5
  14943. ac_status=$?
  14944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14945. (exit $ac_status); }; } &&
  14946. { ac_try='test -s conftest$ac_exeext'
  14947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14948. (eval $ac_try) 2>&5
  14949. ac_status=$?
  14950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14951. (exit $ac_status); }; }; then
  14952. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14953. }'`
  14954. # Check for a 64-bit object if we didn't find anything.
  14955. 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; }
  14956. }'`; fi
  14957. else
  14958. echo "$as_me: failed program was:" >&5
  14959. sed 's/^/| /' conftest.$ac_ext >&5
  14960. fi
  14961. rm -f conftest.err conftest.$ac_objext \
  14962. conftest$ac_exeext conftest.$ac_ext
  14963. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14964. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14965. # Warning - without using the other run time loading flags,
  14966. # -berok will link without error, but may produce a broken library.
  14967. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14968. allow_undefined_flag_GCJ=' ${wl}-berok'
  14969. # Exported symbols can be pulled into shared objects from archives
  14970. whole_archive_flag_spec_GCJ='$convenience'
  14971. archive_cmds_need_lc_GCJ=yes
  14972. # This is similar to how AIX traditionally builds its shared libraries.
  14973. 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'
  14974. fi
  14975. fi
  14976. ;;
  14977. amigaos*)
  14978. 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)'
  14979. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14980. hardcode_minus_L_GCJ=yes
  14981. # see comment about different semantics on the GNU ld section
  14982. ld_shlibs_GCJ=no
  14983. ;;
  14984. bsdi[45]*)
  14985. export_dynamic_flag_spec_GCJ=-rdynamic
  14986. ;;
  14987. cygwin* | mingw* | pw32*)
  14988. # When not using gcc, we currently assume that we are using
  14989. # Microsoft Visual C++.
  14990. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14991. # no search path for DLLs.
  14992. hardcode_libdir_flag_spec_GCJ=' '
  14993. allow_undefined_flag_GCJ=unsupported
  14994. # Tell ltmain to make .lib files, not .a files.
  14995. libext=lib
  14996. # Tell ltmain to make .dll files, not .so files.
  14997. shrext_cmds=".dll"
  14998. # FIXME: Setting linknames here is a bad hack.
  14999. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15000. # The linker will automatically build a .lib file if we build a DLL.
  15001. old_archive_From_new_cmds_GCJ='true'
  15002. # FIXME: Should let the user specify the lib program.
  15003. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15004. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15005. enable_shared_with_static_runtimes_GCJ=yes
  15006. ;;
  15007. darwin* | rhapsody*)
  15008. case $host_os in
  15009. rhapsody* | darwin1.[012])
  15010. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15011. ;;
  15012. *) # Darwin 1.3 on
  15013. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15014. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15015. else
  15016. case ${MACOSX_DEPLOYMENT_TARGET} in
  15017. 10.[012])
  15018. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15019. ;;
  15020. 10.*)
  15021. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15022. ;;
  15023. esac
  15024. fi
  15025. ;;
  15026. esac
  15027. archive_cmds_need_lc_GCJ=no
  15028. hardcode_direct_GCJ=no
  15029. hardcode_automatic_GCJ=yes
  15030. hardcode_shlibpath_var_GCJ=unsupported
  15031. whole_archive_flag_spec_GCJ=''
  15032. link_all_deplibs_GCJ=yes
  15033. if test "$GCC" = yes ; then
  15034. output_verbose_link_cmd='echo'
  15035. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15036. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15037. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15038. 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}'
  15039. 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}'
  15040. else
  15041. case $cc_basename in
  15042. xlc*)
  15043. output_verbose_link_cmd='echo'
  15044. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15045. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15046. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15047. 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}'
  15048. 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}'
  15049. ;;
  15050. *)
  15051. ld_shlibs_GCJ=no
  15052. ;;
  15053. esac
  15054. fi
  15055. ;;
  15056. dgux*)
  15057. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15058. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15059. hardcode_shlibpath_var_GCJ=no
  15060. ;;
  15061. freebsd1*)
  15062. ld_shlibs_GCJ=no
  15063. ;;
  15064. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15065. # support. Future versions do this automatically, but an explicit c++rt0.o
  15066. # does not break anything, and helps significantly (at the cost of a little
  15067. # extra space).
  15068. freebsd2.2*)
  15069. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15070. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15071. hardcode_direct_GCJ=yes
  15072. hardcode_shlibpath_var_GCJ=no
  15073. ;;
  15074. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15075. freebsd2*)
  15076. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15077. hardcode_direct_GCJ=yes
  15078. hardcode_minus_L_GCJ=yes
  15079. hardcode_shlibpath_var_GCJ=no
  15080. ;;
  15081. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15082. freebsd* | kfreebsd*-gnu | dragonfly*)
  15083. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15084. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15085. hardcode_direct_GCJ=yes
  15086. hardcode_shlibpath_var_GCJ=no
  15087. ;;
  15088. hpux9*)
  15089. if test "$GCC" = yes; then
  15090. 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'
  15091. else
  15092. 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'
  15093. fi
  15094. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15095. hardcode_libdir_separator_GCJ=:
  15096. hardcode_direct_GCJ=yes
  15097. # hardcode_minus_L: Not really in the search PATH,
  15098. # but as the default location of the library.
  15099. hardcode_minus_L_GCJ=yes
  15100. export_dynamic_flag_spec_GCJ='${wl}-E'
  15101. ;;
  15102. hpux10*)
  15103. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15104. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15105. else
  15106. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15107. fi
  15108. if test "$with_gnu_ld" = no; then
  15109. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15110. hardcode_libdir_separator_GCJ=:
  15111. hardcode_direct_GCJ=yes
  15112. export_dynamic_flag_spec_GCJ='${wl}-E'
  15113. # hardcode_minus_L: Not really in the search PATH,
  15114. # but as the default location of the library.
  15115. hardcode_minus_L_GCJ=yes
  15116. fi
  15117. ;;
  15118. hpux11*)
  15119. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15120. case $host_cpu in
  15121. hppa*64*)
  15122. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15123. ;;
  15124. ia64*)
  15125. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15126. ;;
  15127. *)
  15128. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15129. ;;
  15130. esac
  15131. else
  15132. case $host_cpu in
  15133. hppa*64*)
  15134. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15135. ;;
  15136. ia64*)
  15137. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15138. ;;
  15139. *)
  15140. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15141. ;;
  15142. esac
  15143. fi
  15144. if test "$with_gnu_ld" = no; then
  15145. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15146. hardcode_libdir_separator_GCJ=:
  15147. case $host_cpu in
  15148. hppa*64*|ia64*)
  15149. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15150. hardcode_direct_GCJ=no
  15151. hardcode_shlibpath_var_GCJ=no
  15152. ;;
  15153. *)
  15154. hardcode_direct_GCJ=yes
  15155. export_dynamic_flag_spec_GCJ='${wl}-E'
  15156. # hardcode_minus_L: Not really in the search PATH,
  15157. # but as the default location of the library.
  15158. hardcode_minus_L_GCJ=yes
  15159. ;;
  15160. esac
  15161. fi
  15162. ;;
  15163. irix5* | irix6* | nonstopux*)
  15164. if test "$GCC" = yes; then
  15165. 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'
  15166. else
  15167. 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'
  15168. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15169. fi
  15170. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15171. hardcode_libdir_separator_GCJ=:
  15172. link_all_deplibs_GCJ=yes
  15173. ;;
  15174. netbsd*)
  15175. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15176. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15177. else
  15178. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15179. fi
  15180. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15181. hardcode_direct_GCJ=yes
  15182. hardcode_shlibpath_var_GCJ=no
  15183. ;;
  15184. newsos6)
  15185. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15186. hardcode_direct_GCJ=yes
  15187. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15188. hardcode_libdir_separator_GCJ=:
  15189. hardcode_shlibpath_var_GCJ=no
  15190. ;;
  15191. openbsd*)
  15192. hardcode_direct_GCJ=yes
  15193. hardcode_shlibpath_var_GCJ=no
  15194. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15195. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15196. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15197. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15198. export_dynamic_flag_spec_GCJ='${wl}-E'
  15199. else
  15200. case $host_os in
  15201. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15202. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15203. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15204. ;;
  15205. *)
  15206. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15207. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15208. ;;
  15209. esac
  15210. fi
  15211. ;;
  15212. os2*)
  15213. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15214. hardcode_minus_L_GCJ=yes
  15215. allow_undefined_flag_GCJ=unsupported
  15216. 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'
  15217. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15218. ;;
  15219. osf3*)
  15220. if test "$GCC" = yes; then
  15221. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15222. 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'
  15223. else
  15224. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15225. 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'
  15226. fi
  15227. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15228. hardcode_libdir_separator_GCJ=:
  15229. ;;
  15230. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15231. if test "$GCC" = yes; then
  15232. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15233. 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'
  15234. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15235. else
  15236. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15237. 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'
  15238. 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~
  15239. $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'
  15240. # Both c and cxx compiler support -rpath directly
  15241. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15242. fi
  15243. hardcode_libdir_separator_GCJ=:
  15244. ;;
  15245. solaris*)
  15246. no_undefined_flag_GCJ=' -z text'
  15247. if test "$GCC" = yes; then
  15248. wlarc='${wl}'
  15249. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15250. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15251. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15252. else
  15253. wlarc=''
  15254. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15255. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15256. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15257. fi
  15258. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15259. hardcode_shlibpath_var_GCJ=no
  15260. case $host_os in
  15261. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15262. *)
  15263. # The compiler driver will combine linker options so we
  15264. # cannot just pass the convience library names through
  15265. # without $wl, iff we do not link with $LD.
  15266. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15267. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15268. case $wlarc in
  15269. '')
  15270. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15271. *)
  15272. 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' ;;
  15273. esac ;;
  15274. esac
  15275. link_all_deplibs_GCJ=yes
  15276. ;;
  15277. sunos4*)
  15278. if test "x$host_vendor" = xsequent; then
  15279. # Use $CC to link under sequent, because it throws in some extra .o
  15280. # files that make .init and .fini sections work.
  15281. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15282. else
  15283. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15284. fi
  15285. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15286. hardcode_direct_GCJ=yes
  15287. hardcode_minus_L_GCJ=yes
  15288. hardcode_shlibpath_var_GCJ=no
  15289. ;;
  15290. sysv4)
  15291. case $host_vendor in
  15292. sni)
  15293. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15294. hardcode_direct_GCJ=yes # is this really true???
  15295. ;;
  15296. siemens)
  15297. ## LD is ld it makes a PLAMLIB
  15298. ## CC just makes a GrossModule.
  15299. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15300. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15301. hardcode_direct_GCJ=no
  15302. ;;
  15303. motorola)
  15304. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15305. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15306. ;;
  15307. esac
  15308. runpath_var='LD_RUN_PATH'
  15309. hardcode_shlibpath_var_GCJ=no
  15310. ;;
  15311. sysv4.3*)
  15312. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15313. hardcode_shlibpath_var_GCJ=no
  15314. export_dynamic_flag_spec_GCJ='-Bexport'
  15315. ;;
  15316. sysv4*MP*)
  15317. if test -d /usr/nec; then
  15318. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15319. hardcode_shlibpath_var_GCJ=no
  15320. runpath_var=LD_RUN_PATH
  15321. hardcode_runpath_var=yes
  15322. ld_shlibs_GCJ=yes
  15323. fi
  15324. ;;
  15325. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15326. no_undefined_flag_GCJ='${wl}-z,text'
  15327. archive_cmds_need_lc_GCJ=no
  15328. hardcode_shlibpath_var_GCJ=no
  15329. runpath_var='LD_RUN_PATH'
  15330. if test "$GCC" = yes; then
  15331. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15332. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15333. else
  15334. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15335. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15336. fi
  15337. ;;
  15338. sysv5* | sco3.2v5* | sco5v6*)
  15339. # Note: We can NOT use -z defs as we might desire, because we do not
  15340. # link with -lc, and that would cause any symbols used from libc to
  15341. # always be unresolved, which means just about no library would
  15342. # ever link correctly. If we're not using GNU ld we use -z text
  15343. # though, which does catch some bad symbols but isn't as heavy-handed
  15344. # as -z defs.
  15345. no_undefined_flag_GCJ='${wl}-z,text'
  15346. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15347. archive_cmds_need_lc_GCJ=no
  15348. hardcode_shlibpath_var_GCJ=no
  15349. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15350. hardcode_libdir_separator_GCJ=':'
  15351. link_all_deplibs_GCJ=yes
  15352. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15353. runpath_var='LD_RUN_PATH'
  15354. if test "$GCC" = yes; then
  15355. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15356. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15357. else
  15358. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15359. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15360. fi
  15361. ;;
  15362. uts4*)
  15363. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15364. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15365. hardcode_shlibpath_var_GCJ=no
  15366. ;;
  15367. *)
  15368. ld_shlibs_GCJ=no
  15369. ;;
  15370. esac
  15371. fi
  15372. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15373. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15374. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15375. #
  15376. # Do we need to explicitly link libc?
  15377. #
  15378. case "x$archive_cmds_need_lc_GCJ" in
  15379. x|xyes)
  15380. # Assume -lc should be added
  15381. archive_cmds_need_lc_GCJ=yes
  15382. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15383. case $archive_cmds_GCJ in
  15384. *'~'*)
  15385. # FIXME: we may have to deal with multi-command sequences.
  15386. ;;
  15387. '$CC '*)
  15388. # Test whether the compiler implicitly links with -lc since on some
  15389. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15390. # to ld, don't add -lc before -lgcc.
  15391. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15392. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15393. $rm conftest*
  15394. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15395. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15396. (eval $ac_compile) 2>&5
  15397. ac_status=$?
  15398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15399. (exit $ac_status); } 2>conftest.err; then
  15400. soname=conftest
  15401. lib=conftest
  15402. libobjs=conftest.$ac_objext
  15403. deplibs=
  15404. wl=$lt_prog_compiler_wl_GCJ
  15405. pic_flag=$lt_prog_compiler_pic_GCJ
  15406. compiler_flags=-v
  15407. linker_flags=-v
  15408. verstring=
  15409. output_objdir=.
  15410. libname=conftest
  15411. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15412. allow_undefined_flag_GCJ=
  15413. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15414. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15415. ac_status=$?
  15416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15417. (exit $ac_status); }
  15418. then
  15419. archive_cmds_need_lc_GCJ=no
  15420. else
  15421. archive_cmds_need_lc_GCJ=yes
  15422. fi
  15423. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15424. else
  15425. cat conftest.err 1>&5
  15426. fi
  15427. $rm conftest*
  15428. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15429. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15430. ;;
  15431. esac
  15432. fi
  15433. ;;
  15434. esac
  15435. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15436. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15437. library_names_spec=
  15438. libname_spec='lib$name'
  15439. soname_spec=
  15440. shrext_cmds=".so"
  15441. postinstall_cmds=
  15442. postuninstall_cmds=
  15443. finish_cmds=
  15444. finish_eval=
  15445. shlibpath_var=
  15446. shlibpath_overrides_runpath=unknown
  15447. version_type=none
  15448. dynamic_linker="$host_os ld.so"
  15449. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15450. if test "$GCC" = yes; then
  15451. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15452. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15453. # if the path contains ";" then we assume it to be the separator
  15454. # otherwise default to the standard path separator (i.e. ":") - it is
  15455. # assumed that no part of a normal pathname contains ";" but that should
  15456. # okay in the real world where ";" in dirpaths is itself problematic.
  15457. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15458. else
  15459. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15460. fi
  15461. else
  15462. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15463. fi
  15464. need_lib_prefix=unknown
  15465. hardcode_into_libs=no
  15466. # when you set need_version to no, make sure it does not cause -set_version
  15467. # flags to be left without arguments
  15468. need_version=unknown
  15469. case $host_os in
  15470. aix3*)
  15471. version_type=linux
  15472. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15473. shlibpath_var=LIBPATH
  15474. # AIX 3 has no versioning support, so we append a major version to the name.
  15475. soname_spec='${libname}${release}${shared_ext}$major'
  15476. ;;
  15477. aix4* | aix5*)
  15478. version_type=linux
  15479. need_lib_prefix=no
  15480. need_version=no
  15481. hardcode_into_libs=yes
  15482. if test "$host_cpu" = ia64; then
  15483. # AIX 5 supports IA64
  15484. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15485. shlibpath_var=LD_LIBRARY_PATH
  15486. else
  15487. # With GCC up to 2.95.x, collect2 would create an import file
  15488. # for dependence libraries. The import file would start with
  15489. # the line `#! .'. This would cause the generated library to
  15490. # depend on `.', always an invalid library. This was fixed in
  15491. # development snapshots of GCC prior to 3.0.
  15492. case $host_os in
  15493. aix4 | aix4.[01] | aix4.[01].*)
  15494. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15495. echo ' yes '
  15496. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15497. :
  15498. else
  15499. can_build_shared=no
  15500. fi
  15501. ;;
  15502. esac
  15503. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15504. # soname into executable. Probably we can add versioning support to
  15505. # collect2, so additional links can be useful in future.
  15506. if test "$aix_use_runtimelinking" = yes; then
  15507. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15508. # instead of lib<name>.a to let people know that these are not
  15509. # typical AIX shared libraries.
  15510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15511. else
  15512. # We preserve .a as extension for shared libraries through AIX4.2
  15513. # and later when we are not doing run time linking.
  15514. library_names_spec='${libname}${release}.a $libname.a'
  15515. soname_spec='${libname}${release}${shared_ext}$major'
  15516. fi
  15517. shlibpath_var=LIBPATH
  15518. fi
  15519. ;;
  15520. amigaos*)
  15521. library_names_spec='$libname.ixlibrary $libname.a'
  15522. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15523. 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'
  15524. ;;
  15525. beos*)
  15526. library_names_spec='${libname}${shared_ext}'
  15527. dynamic_linker="$host_os ld.so"
  15528. shlibpath_var=LIBRARY_PATH
  15529. ;;
  15530. bsdi[45]*)
  15531. version_type=linux
  15532. need_version=no
  15533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15534. soname_spec='${libname}${release}${shared_ext}$major'
  15535. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15536. shlibpath_var=LD_LIBRARY_PATH
  15537. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15538. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15539. # the default ld.so.conf also contains /usr/contrib/lib and
  15540. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15541. # libtool to hard-code these into programs
  15542. ;;
  15543. cygwin* | mingw* | pw32*)
  15544. version_type=windows
  15545. shrext_cmds=".dll"
  15546. need_version=no
  15547. need_lib_prefix=no
  15548. case $GCC,$host_os in
  15549. yes,cygwin* | yes,mingw* | yes,pw32*)
  15550. library_names_spec='$libname.dll.a'
  15551. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15552. postinstall_cmds='base_file=`basename \${file}`~
  15553. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15554. dldir=$destdir/`dirname \$dlpath`~
  15555. test -d \$dldir || mkdir -p \$dldir~
  15556. $install_prog $dir/$dlname \$dldir/$dlname~
  15557. chmod a+x \$dldir/$dlname'
  15558. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15559. dlpath=$dir/\$dldll~
  15560. $rm \$dlpath'
  15561. shlibpath_overrides_runpath=yes
  15562. case $host_os in
  15563. cygwin*)
  15564. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15565. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15566. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15567. ;;
  15568. mingw*)
  15569. # MinGW DLLs use traditional 'lib' prefix
  15570. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15571. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15572. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15573. # It is most probably a Windows format PATH printed by
  15574. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15575. # path with ; separators, and with drive letters. We can handle the
  15576. # drive letters (cygwin fileutils understands them), so leave them,
  15577. # especially as we might pass files found there to a mingw objdump,
  15578. # which wouldn't understand a cygwinified path. Ahh.
  15579. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15580. else
  15581. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15582. fi
  15583. ;;
  15584. pw32*)
  15585. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15586. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15587. ;;
  15588. esac
  15589. ;;
  15590. *)
  15591. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15592. ;;
  15593. esac
  15594. dynamic_linker='Win32 ld.exe'
  15595. # FIXME: first we should search . and the directory the executable is in
  15596. shlibpath_var=PATH
  15597. ;;
  15598. darwin* | rhapsody*)
  15599. dynamic_linker="$host_os dyld"
  15600. version_type=darwin
  15601. need_lib_prefix=no
  15602. need_version=no
  15603. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15604. soname_spec='${libname}${release}${major}$shared_ext'
  15605. shlibpath_overrides_runpath=yes
  15606. shlibpath_var=DYLD_LIBRARY_PATH
  15607. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15608. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15609. if test "$GCC" = yes; then
  15610. 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"`
  15611. else
  15612. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15613. fi
  15614. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15615. ;;
  15616. dgux*)
  15617. version_type=linux
  15618. need_lib_prefix=no
  15619. need_version=no
  15620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15621. soname_spec='${libname}${release}${shared_ext}$major'
  15622. shlibpath_var=LD_LIBRARY_PATH
  15623. ;;
  15624. freebsd1*)
  15625. dynamic_linker=no
  15626. ;;
  15627. kfreebsd*-gnu)
  15628. version_type=linux
  15629. need_lib_prefix=no
  15630. need_version=no
  15631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15632. soname_spec='${libname}${release}${shared_ext}$major'
  15633. shlibpath_var=LD_LIBRARY_PATH
  15634. shlibpath_overrides_runpath=no
  15635. hardcode_into_libs=yes
  15636. dynamic_linker='GNU ld.so'
  15637. ;;
  15638. freebsd* | dragonfly*)
  15639. # DragonFly does not have aout. When/if they implement a new
  15640. # versioning mechanism, adjust this.
  15641. if test -x /usr/bin/objformat; then
  15642. objformat=`/usr/bin/objformat`
  15643. else
  15644. case $host_os in
  15645. freebsd[123]*) objformat=aout ;;
  15646. *) objformat=elf ;;
  15647. esac
  15648. fi
  15649. version_type=freebsd-$objformat
  15650. case $version_type in
  15651. freebsd-elf*)
  15652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15653. need_version=no
  15654. need_lib_prefix=no
  15655. ;;
  15656. freebsd-*)
  15657. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15658. need_version=yes
  15659. ;;
  15660. esac
  15661. shlibpath_var=LD_LIBRARY_PATH
  15662. case $host_os in
  15663. freebsd2*)
  15664. shlibpath_overrides_runpath=yes
  15665. ;;
  15666. freebsd3.[01]* | freebsdelf3.[01]*)
  15667. shlibpath_overrides_runpath=yes
  15668. hardcode_into_libs=yes
  15669. ;;
  15670. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15671. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15672. shlibpath_overrides_runpath=no
  15673. hardcode_into_libs=yes
  15674. ;;
  15675. freebsd*) # from 4.6 on
  15676. shlibpath_overrides_runpath=yes
  15677. hardcode_into_libs=yes
  15678. ;;
  15679. esac
  15680. ;;
  15681. gnu*)
  15682. version_type=linux
  15683. need_lib_prefix=no
  15684. need_version=no
  15685. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15686. soname_spec='${libname}${release}${shared_ext}$major'
  15687. shlibpath_var=LD_LIBRARY_PATH
  15688. hardcode_into_libs=yes
  15689. ;;
  15690. hpux9* | hpux10* | hpux11*)
  15691. # Give a soname corresponding to the major version so that dld.sl refuses to
  15692. # link against other versions.
  15693. version_type=sunos
  15694. need_lib_prefix=no
  15695. need_version=no
  15696. case $host_cpu in
  15697. ia64*)
  15698. shrext_cmds='.so'
  15699. hardcode_into_libs=yes
  15700. dynamic_linker="$host_os dld.so"
  15701. shlibpath_var=LD_LIBRARY_PATH
  15702. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15704. soname_spec='${libname}${release}${shared_ext}$major'
  15705. if test "X$HPUX_IA64_MODE" = X32; then
  15706. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15707. else
  15708. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15709. fi
  15710. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15711. ;;
  15712. hppa*64*)
  15713. shrext_cmds='.sl'
  15714. hardcode_into_libs=yes
  15715. dynamic_linker="$host_os dld.sl"
  15716. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15721. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15722. ;;
  15723. *)
  15724. shrext_cmds='.sl'
  15725. dynamic_linker="$host_os dld.sl"
  15726. shlibpath_var=SHLIB_PATH
  15727. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15729. soname_spec='${libname}${release}${shared_ext}$major'
  15730. ;;
  15731. esac
  15732. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15733. postinstall_cmds='chmod 555 $lib'
  15734. ;;
  15735. interix3*)
  15736. version_type=linux
  15737. need_lib_prefix=no
  15738. need_version=no
  15739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15740. soname_spec='${libname}${release}${shared_ext}$major'
  15741. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15742. shlibpath_var=LD_LIBRARY_PATH
  15743. shlibpath_overrides_runpath=no
  15744. hardcode_into_libs=yes
  15745. ;;
  15746. irix5* | irix6* | nonstopux*)
  15747. case $host_os in
  15748. nonstopux*) version_type=nonstopux ;;
  15749. *)
  15750. if test "$lt_cv_prog_gnu_ld" = yes; then
  15751. version_type=linux
  15752. else
  15753. version_type=irix
  15754. fi ;;
  15755. esac
  15756. need_lib_prefix=no
  15757. need_version=no
  15758. soname_spec='${libname}${release}${shared_ext}$major'
  15759. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15760. case $host_os in
  15761. irix5* | nonstopux*)
  15762. libsuff= shlibsuff=
  15763. ;;
  15764. *)
  15765. case $LD in # libtool.m4 will add one of these switches to LD
  15766. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15767. libsuff= shlibsuff= libmagic=32-bit;;
  15768. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15769. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15770. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15771. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15772. *) libsuff= shlibsuff= libmagic=never-match;;
  15773. esac
  15774. ;;
  15775. esac
  15776. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15777. shlibpath_overrides_runpath=no
  15778. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15779. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15780. hardcode_into_libs=yes
  15781. ;;
  15782. # No shared lib support for Linux oldld, aout, or coff.
  15783. linux*oldld* | linux*aout* | linux*coff*)
  15784. dynamic_linker=no
  15785. ;;
  15786. # This must be Linux ELF.
  15787. linux*)
  15788. version_type=linux
  15789. need_lib_prefix=no
  15790. need_version=no
  15791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15792. soname_spec='${libname}${release}${shared_ext}$major'
  15793. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15794. shlibpath_var=LD_LIBRARY_PATH
  15795. shlibpath_overrides_runpath=no
  15796. # This implies no fast_install, which is unacceptable.
  15797. # Some rework will be needed to allow for fast_install
  15798. # before this can be enabled.
  15799. hardcode_into_libs=yes
  15800. # find out which ABI we are using
  15801. libsuff=
  15802. case "$host_cpu" in
  15803. x86_64*|s390x*|powerpc64*)
  15804. echo '#line 17564 "configure"' > conftest.$ac_ext
  15805. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15806. (eval $ac_compile) 2>&5
  15807. ac_status=$?
  15808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15809. (exit $ac_status); }; then
  15810. case `/usr/bin/file conftest.$ac_objext` in
  15811. *64-bit*)
  15812. libsuff=64
  15813. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15814. ;;
  15815. esac
  15816. fi
  15817. rm -rf conftest*
  15818. ;;
  15819. esac
  15820. # Append ld.so.conf contents to the search path
  15821. if test -f /etc/ld.so.conf; then
  15822. 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' ' '`
  15823. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15824. fi
  15825. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15826. # powerpc, because MkLinux only supported shared libraries with the
  15827. # GNU dynamic linker. Since this was broken with cross compilers,
  15828. # most powerpc-linux boxes support dynamic linking these days and
  15829. # people can always --disable-shared, the test was removed, and we
  15830. # assume the GNU/Linux dynamic linker is in use.
  15831. dynamic_linker='GNU/Linux ld.so'
  15832. ;;
  15833. knetbsd*-gnu)
  15834. version_type=linux
  15835. need_lib_prefix=no
  15836. need_version=no
  15837. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15838. soname_spec='${libname}${release}${shared_ext}$major'
  15839. shlibpath_var=LD_LIBRARY_PATH
  15840. shlibpath_overrides_runpath=no
  15841. hardcode_into_libs=yes
  15842. dynamic_linker='GNU ld.so'
  15843. ;;
  15844. netbsd*)
  15845. version_type=sunos
  15846. need_lib_prefix=no
  15847. need_version=no
  15848. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15850. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15851. dynamic_linker='NetBSD (a.out) ld.so'
  15852. else
  15853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15854. soname_spec='${libname}${release}${shared_ext}$major'
  15855. dynamic_linker='NetBSD ld.elf_so'
  15856. fi
  15857. shlibpath_var=LD_LIBRARY_PATH
  15858. shlibpath_overrides_runpath=yes
  15859. hardcode_into_libs=yes
  15860. ;;
  15861. newsos6)
  15862. version_type=linux
  15863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15864. shlibpath_var=LD_LIBRARY_PATH
  15865. shlibpath_overrides_runpath=yes
  15866. ;;
  15867. nto-qnx*)
  15868. version_type=linux
  15869. need_lib_prefix=no
  15870. need_version=no
  15871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15872. soname_spec='${libname}${release}${shared_ext}$major'
  15873. shlibpath_var=LD_LIBRARY_PATH
  15874. shlibpath_overrides_runpath=yes
  15875. ;;
  15876. openbsd*)
  15877. version_type=sunos
  15878. sys_lib_dlsearch_path_spec="/usr/lib"
  15879. need_lib_prefix=no
  15880. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15881. case $host_os in
  15882. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15883. *) need_version=no ;;
  15884. esac
  15885. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15886. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15887. shlibpath_var=LD_LIBRARY_PATH
  15888. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15889. case $host_os in
  15890. openbsd2.[89] | openbsd2.[89].*)
  15891. shlibpath_overrides_runpath=no
  15892. ;;
  15893. *)
  15894. shlibpath_overrides_runpath=yes
  15895. ;;
  15896. esac
  15897. else
  15898. shlibpath_overrides_runpath=yes
  15899. fi
  15900. ;;
  15901. os2*)
  15902. libname_spec='$name'
  15903. shrext_cmds=".dll"
  15904. need_lib_prefix=no
  15905. library_names_spec='$libname${shared_ext} $libname.a'
  15906. dynamic_linker='OS/2 ld.exe'
  15907. shlibpath_var=LIBPATH
  15908. ;;
  15909. osf3* | osf4* | osf5*)
  15910. version_type=osf
  15911. need_lib_prefix=no
  15912. need_version=no
  15913. soname_spec='${libname}${release}${shared_ext}$major'
  15914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15915. shlibpath_var=LD_LIBRARY_PATH
  15916. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15917. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15918. ;;
  15919. solaris*)
  15920. version_type=linux
  15921. need_lib_prefix=no
  15922. need_version=no
  15923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15924. soname_spec='${libname}${release}${shared_ext}$major'
  15925. shlibpath_var=LD_LIBRARY_PATH
  15926. shlibpath_overrides_runpath=yes
  15927. hardcode_into_libs=yes
  15928. # ldd complains unless libraries are executable
  15929. postinstall_cmds='chmod +x $lib'
  15930. ;;
  15931. sunos4*)
  15932. version_type=sunos
  15933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15934. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15935. shlibpath_var=LD_LIBRARY_PATH
  15936. shlibpath_overrides_runpath=yes
  15937. if test "$with_gnu_ld" = yes; then
  15938. need_lib_prefix=no
  15939. fi
  15940. need_version=yes
  15941. ;;
  15942. sysv4 | sysv4.3*)
  15943. version_type=linux
  15944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15945. soname_spec='${libname}${release}${shared_ext}$major'
  15946. shlibpath_var=LD_LIBRARY_PATH
  15947. case $host_vendor in
  15948. sni)
  15949. shlibpath_overrides_runpath=no
  15950. need_lib_prefix=no
  15951. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15952. runpath_var=LD_RUN_PATH
  15953. ;;
  15954. siemens)
  15955. need_lib_prefix=no
  15956. ;;
  15957. motorola)
  15958. need_lib_prefix=no
  15959. need_version=no
  15960. shlibpath_overrides_runpath=no
  15961. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15962. ;;
  15963. esac
  15964. ;;
  15965. sysv4*MP*)
  15966. if test -d /usr/nec ;then
  15967. version_type=linux
  15968. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15969. soname_spec='$libname${shared_ext}.$major'
  15970. shlibpath_var=LD_LIBRARY_PATH
  15971. fi
  15972. ;;
  15973. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15974. version_type=freebsd-elf
  15975. need_lib_prefix=no
  15976. need_version=no
  15977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15978. soname_spec='${libname}${release}${shared_ext}$major'
  15979. shlibpath_var=LD_LIBRARY_PATH
  15980. hardcode_into_libs=yes
  15981. if test "$with_gnu_ld" = yes; then
  15982. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15983. shlibpath_overrides_runpath=no
  15984. else
  15985. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15986. shlibpath_overrides_runpath=yes
  15987. case $host_os in
  15988. sco3.2v5*)
  15989. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15990. ;;
  15991. esac
  15992. fi
  15993. sys_lib_dlsearch_path_spec='/usr/lib'
  15994. ;;
  15995. uts4*)
  15996. version_type=linux
  15997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15998. soname_spec='${libname}${release}${shared_ext}$major'
  15999. shlibpath_var=LD_LIBRARY_PATH
  16000. ;;
  16001. *)
  16002. dynamic_linker=no
  16003. ;;
  16004. esac
  16005. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16006. echo "${ECHO_T}$dynamic_linker" >&6
  16007. test "$dynamic_linker" = no && can_build_shared=no
  16008. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16009. if test "$GCC" = yes; then
  16010. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16011. fi
  16012. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16013. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16014. hardcode_action_GCJ=
  16015. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16016. test -n "$runpath_var_GCJ" || \
  16017. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16018. # We can hardcode non-existant directories.
  16019. if test "$hardcode_direct_GCJ" != no &&
  16020. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16021. # have to relink, otherwise we might link with an installed library
  16022. # when we should be linking with a yet-to-be-installed one
  16023. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16024. test "$hardcode_minus_L_GCJ" != no; then
  16025. # Linking always hardcodes the temporary library directory.
  16026. hardcode_action_GCJ=relink
  16027. else
  16028. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16029. hardcode_action_GCJ=immediate
  16030. fi
  16031. else
  16032. # We cannot hardcode anything, or else we can only hardcode existing
  16033. # directories.
  16034. hardcode_action_GCJ=unsupported
  16035. fi
  16036. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16037. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16038. if test "$hardcode_action_GCJ" = relink; then
  16039. # Fast installation is not supported
  16040. enable_fast_install=no
  16041. elif test "$shlibpath_overrides_runpath" = yes ||
  16042. test "$enable_shared" = no; then
  16043. # Fast installation is not necessary
  16044. enable_fast_install=needless
  16045. fi
  16046. # The else clause should only fire when bootstrapping the
  16047. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16048. # with your package, and you will get complaints that there are
  16049. # no rules to generate ltmain.sh.
  16050. if test -f "$ltmain"; then
  16051. # See if we are running on zsh, and set the options which allow our commands through
  16052. # without removal of \ escapes.
  16053. if test -n "${ZSH_VERSION+set}" ; then
  16054. setopt NO_GLOB_SUBST
  16055. fi
  16056. # Now quote all the things that may contain metacharacters while being
  16057. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16058. # variables and quote the copies for generation of the libtool script.
  16059. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16060. SED SHELL STRIP \
  16061. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16062. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16063. deplibs_check_method reload_flag reload_cmds need_locks \
  16064. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16065. lt_cv_sys_global_symbol_to_c_name_address \
  16066. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16067. old_postinstall_cmds old_postuninstall_cmds \
  16068. compiler_GCJ \
  16069. CC_GCJ \
  16070. LD_GCJ \
  16071. lt_prog_compiler_wl_GCJ \
  16072. lt_prog_compiler_pic_GCJ \
  16073. lt_prog_compiler_static_GCJ \
  16074. lt_prog_compiler_no_builtin_flag_GCJ \
  16075. export_dynamic_flag_spec_GCJ \
  16076. thread_safe_flag_spec_GCJ \
  16077. whole_archive_flag_spec_GCJ \
  16078. enable_shared_with_static_runtimes_GCJ \
  16079. old_archive_cmds_GCJ \
  16080. old_archive_from_new_cmds_GCJ \
  16081. predep_objects_GCJ \
  16082. postdep_objects_GCJ \
  16083. predeps_GCJ \
  16084. postdeps_GCJ \
  16085. compiler_lib_search_path_GCJ \
  16086. archive_cmds_GCJ \
  16087. archive_expsym_cmds_GCJ \
  16088. postinstall_cmds_GCJ \
  16089. postuninstall_cmds_GCJ \
  16090. old_archive_from_expsyms_cmds_GCJ \
  16091. allow_undefined_flag_GCJ \
  16092. no_undefined_flag_GCJ \
  16093. export_symbols_cmds_GCJ \
  16094. hardcode_libdir_flag_spec_GCJ \
  16095. hardcode_libdir_flag_spec_ld_GCJ \
  16096. hardcode_libdir_separator_GCJ \
  16097. hardcode_automatic_GCJ \
  16098. module_cmds_GCJ \
  16099. module_expsym_cmds_GCJ \
  16100. lt_cv_prog_compiler_c_o_GCJ \
  16101. exclude_expsyms_GCJ \
  16102. include_expsyms_GCJ; do
  16103. case $var in
  16104. old_archive_cmds_GCJ | \
  16105. old_archive_from_new_cmds_GCJ | \
  16106. archive_cmds_GCJ | \
  16107. archive_expsym_cmds_GCJ | \
  16108. module_cmds_GCJ | \
  16109. module_expsym_cmds_GCJ | \
  16110. old_archive_from_expsyms_cmds_GCJ | \
  16111. export_symbols_cmds_GCJ | \
  16112. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16113. postinstall_cmds | postuninstall_cmds | \
  16114. old_postinstall_cmds | old_postuninstall_cmds | \
  16115. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16116. # Double-quote double-evaled strings.
  16117. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16118. ;;
  16119. *)
  16120. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16121. ;;
  16122. esac
  16123. done
  16124. case $lt_echo in
  16125. *'\$0 --fallback-echo"')
  16126. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16127. ;;
  16128. esac
  16129. cfgfile="$ofile"
  16130. cat <<__EOF__ >> "$cfgfile"
  16131. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16132. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16133. # Shell to use when invoking shell scripts.
  16134. SHELL=$lt_SHELL
  16135. # Whether or not to build shared libraries.
  16136. build_libtool_libs=$enable_shared
  16137. # Whether or not to build static libraries.
  16138. build_old_libs=$enable_static
  16139. # Whether or not to add -lc for building shared libraries.
  16140. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16141. # Whether or not to disallow shared libs when runtime libs are static
  16142. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16143. # Whether or not to optimize for fast installation.
  16144. fast_install=$enable_fast_install
  16145. # The host system.
  16146. host_alias=$host_alias
  16147. host=$host
  16148. host_os=$host_os
  16149. # The build system.
  16150. build_alias=$build_alias
  16151. build=$build
  16152. build_os=$build_os
  16153. # An echo program that does not interpret backslashes.
  16154. echo=$lt_echo
  16155. # The archiver.
  16156. AR=$lt_AR
  16157. AR_FLAGS=$lt_AR_FLAGS
  16158. # A C compiler.
  16159. LTCC=$lt_LTCC
  16160. # LTCC compiler flags.
  16161. LTCFLAGS=$lt_LTCFLAGS
  16162. # A language-specific compiler.
  16163. CC=$lt_compiler_GCJ
  16164. # Is the compiler the GNU C compiler?
  16165. with_gcc=$GCC_GCJ
  16166. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16167. gcc_ver=\`gcc -dumpversion\`
  16168. # An ERE matcher.
  16169. EGREP=$lt_EGREP
  16170. # The linker used to build libraries.
  16171. LD=$lt_LD_GCJ
  16172. # Whether we need hard or soft links.
  16173. LN_S=$lt_LN_S
  16174. # A BSD-compatible nm program.
  16175. NM=$lt_NM
  16176. # A symbol stripping program
  16177. STRIP=$lt_STRIP
  16178. # Used to examine libraries when file_magic_cmd begins "file"
  16179. MAGIC_CMD=$MAGIC_CMD
  16180. # Used on cygwin: DLL creation program.
  16181. DLLTOOL="$DLLTOOL"
  16182. # Used on cygwin: object dumper.
  16183. OBJDUMP="$OBJDUMP"
  16184. # Used on cygwin: assembler.
  16185. AS="$AS"
  16186. # The name of the directory that contains temporary libtool files.
  16187. objdir=$objdir
  16188. # How to create reloadable object files.
  16189. reload_flag=$lt_reload_flag
  16190. reload_cmds=$lt_reload_cmds
  16191. # How to pass a linker flag through the compiler.
  16192. wl=$lt_lt_prog_compiler_wl_GCJ
  16193. # Object file suffix (normally "o").
  16194. objext="$ac_objext"
  16195. # Old archive suffix (normally "a").
  16196. libext="$libext"
  16197. # Shared library suffix (normally ".so").
  16198. shrext_cmds='$shrext_cmds'
  16199. # Executable file suffix (normally "").
  16200. exeext="$exeext"
  16201. # Additional compiler flags for building library objects.
  16202. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16203. pic_mode=$pic_mode
  16204. # What is the maximum length of a command?
  16205. max_cmd_len=$lt_cv_sys_max_cmd_len
  16206. # Does compiler simultaneously support -c and -o options?
  16207. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16208. # Must we lock files when doing compilation?
  16209. need_locks=$lt_need_locks
  16210. # Do we need the lib prefix for modules?
  16211. need_lib_prefix=$need_lib_prefix
  16212. # Do we need a version for libraries?
  16213. need_version=$need_version
  16214. # Whether dlopen is supported.
  16215. dlopen_support=$enable_dlopen
  16216. # Whether dlopen of programs is supported.
  16217. dlopen_self=$enable_dlopen_self
  16218. # Whether dlopen of statically linked programs is supported.
  16219. dlopen_self_static=$enable_dlopen_self_static
  16220. # Compiler flag to prevent dynamic linking.
  16221. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16222. # Compiler flag to turn off builtin functions.
  16223. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16224. # Compiler flag to allow reflexive dlopens.
  16225. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16226. # Compiler flag to generate shared objects directly from archives.
  16227. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16228. # Compiler flag to generate thread-safe objects.
  16229. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16230. # Library versioning type.
  16231. version_type=$version_type
  16232. # Format of library name prefix.
  16233. libname_spec=$lt_libname_spec
  16234. # List of archive names. First name is the real one, the rest are links.
  16235. # The last name is the one that the linker finds with -lNAME.
  16236. library_names_spec=$lt_library_names_spec
  16237. # The coded name of the library, if different from the real name.
  16238. soname_spec=$lt_soname_spec
  16239. # Commands used to build and install an old-style archive.
  16240. RANLIB=$lt_RANLIB
  16241. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16242. old_postinstall_cmds=$lt_old_postinstall_cmds
  16243. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16244. # Create an old-style archive from a shared archive.
  16245. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16246. # Create a temporary old-style archive to link instead of a shared archive.
  16247. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16248. # Commands used to build and install a shared archive.
  16249. archive_cmds=$lt_archive_cmds_GCJ
  16250. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16251. postinstall_cmds=$lt_postinstall_cmds
  16252. postuninstall_cmds=$lt_postuninstall_cmds
  16253. # Commands used to build a loadable module (assumed same as above if empty)
  16254. module_cmds=$lt_module_cmds_GCJ
  16255. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16256. # Commands to strip libraries.
  16257. old_striplib=$lt_old_striplib
  16258. striplib=$lt_striplib
  16259. # Dependencies to place before the objects being linked to create a
  16260. # shared library.
  16261. predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16262. # Dependencies to place after the objects being linked to create a
  16263. # shared library.
  16264. postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16265. # Dependencies to place before the objects being linked to create a
  16266. # shared library.
  16267. predeps=$lt_predeps_GCJ
  16268. # Dependencies to place after the objects being linked to create a
  16269. # shared library.
  16270. postdeps=$lt_postdeps_GCJ
  16271. # The library search path used internally by the compiler when linking
  16272. # a shared library.
  16273. 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"\`
  16274. # Method to check whether dependent libraries are shared objects.
  16275. deplibs_check_method=$lt_deplibs_check_method
  16276. # Command to use when deplibs_check_method == file_magic.
  16277. file_magic_cmd=$lt_file_magic_cmd
  16278. # Flag that allows shared libraries with undefined symbols to be built.
  16279. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16280. # Flag that forces no undefined symbols.
  16281. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16282. # Commands used to finish a libtool library installation in a directory.
  16283. finish_cmds=$lt_finish_cmds
  16284. # Same as above, but a single script fragment to be evaled but not shown.
  16285. finish_eval=$lt_finish_eval
  16286. # Take the output of nm and produce a listing of raw symbols and C names.
  16287. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16288. # Transform the output of nm in a proper C declaration
  16289. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16290. # Transform the output of nm in a C name address pair
  16291. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16292. # This is the shared library runtime path variable.
  16293. runpath_var=$runpath_var
  16294. # This is the shared library path variable.
  16295. shlibpath_var=$shlibpath_var
  16296. # Is shlibpath searched before the hard-coded library search path?
  16297. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16298. # How to hardcode a shared library path into an executable.
  16299. hardcode_action=$hardcode_action_GCJ
  16300. # Whether we should hardcode library paths into libraries.
  16301. hardcode_into_libs=$hardcode_into_libs
  16302. # Flag to hardcode \$libdir into a binary during linking.
  16303. # This must work even if \$libdir does not exist.
  16304. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16305. # If ld is used when linking, flag to hardcode \$libdir into
  16306. # a binary during linking. This must work even if \$libdir does
  16307. # not exist.
  16308. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16309. # Whether we need a single -rpath flag with a separated argument.
  16310. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16311. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16312. # resulting binary.
  16313. hardcode_direct=$hardcode_direct_GCJ
  16314. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16315. # resulting binary.
  16316. hardcode_minus_L=$hardcode_minus_L_GCJ
  16317. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16318. # the resulting binary.
  16319. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16320. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16321. # and all subsequent libraries and executables linked against it.
  16322. hardcode_automatic=$hardcode_automatic_GCJ
  16323. # Variables whose values should be saved in libtool wrapper scripts and
  16324. # restored at relink time.
  16325. variables_saved_for_relink="$variables_saved_for_relink"
  16326. # Whether libtool must link a program against all its dependency libraries.
  16327. link_all_deplibs=$link_all_deplibs_GCJ
  16328. # Compile-time system search path for libraries
  16329. 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"\`
  16330. # Run-time system search path for libraries
  16331. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16332. # Fix the shell variable \$srcfile for the compiler.
  16333. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16334. # Set to yes if exported symbols are required.
  16335. always_export_symbols=$always_export_symbols_GCJ
  16336. # The commands to list exported symbols.
  16337. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16338. # The commands to extract the exported symbol list from a shared archive.
  16339. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16340. # Symbols that should not be listed in the preloaded symbols.
  16341. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16342. # Symbols that must always be exported.
  16343. include_expsyms=$lt_include_expsyms_GCJ
  16344. # ### END LIBTOOL TAG CONFIG: $tagname
  16345. __EOF__
  16346. else
  16347. # If there is no Makefile yet, we rely on a make rule to execute
  16348. # `config.status --recheck' to rerun these tests and create the
  16349. # libtool script then.
  16350. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16351. if test -f "$ltmain_in"; then
  16352. test -f Makefile && make "$ltmain"
  16353. fi
  16354. fi
  16355. ac_ext=c
  16356. ac_cpp='$CPP $CPPFLAGS'
  16357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16360. CC="$lt_save_CC"
  16361. else
  16362. tagname=""
  16363. fi
  16364. ;;
  16365. RC)
  16366. # Source file extension for RC test sources.
  16367. ac_ext=rc
  16368. # Object file extension for compiled RC test sources.
  16369. objext=o
  16370. objext_RC=$objext
  16371. # Code to be used in simple compile tests
  16372. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16373. # Code to be used in simple link tests
  16374. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16375. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16376. # If no C compiler was specified, use CC.
  16377. LTCC=${LTCC-"$CC"}
  16378. # If no C compiler flags were specified, use CFLAGS.
  16379. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16380. # Allow CC to be a program name with arguments.
  16381. compiler=$CC
  16382. # save warnings/boilerplate of simple test code
  16383. ac_outfile=conftest.$ac_objext
  16384. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16385. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16386. _lt_compiler_boilerplate=`cat conftest.err`
  16387. $rm conftest*
  16388. ac_outfile=conftest.$ac_objext
  16389. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16390. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16391. _lt_linker_boilerplate=`cat conftest.err`
  16392. $rm conftest*
  16393. # Allow CC to be a program name with arguments.
  16394. lt_save_CC="$CC"
  16395. CC=${RC-"windres"}
  16396. compiler=$CC
  16397. compiler_RC=$CC
  16398. for cc_temp in $compiler""; do
  16399. case $cc_temp in
  16400. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16401. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16402. \-*) ;;
  16403. *) break;;
  16404. esac
  16405. done
  16406. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16407. lt_cv_prog_compiler_c_o_RC=yes
  16408. # The else clause should only fire when bootstrapping the
  16409. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16410. # with your package, and you will get complaints that there are
  16411. # no rules to generate ltmain.sh.
  16412. if test -f "$ltmain"; then
  16413. # See if we are running on zsh, and set the options which allow our commands through
  16414. # without removal of \ escapes.
  16415. if test -n "${ZSH_VERSION+set}" ; then
  16416. setopt NO_GLOB_SUBST
  16417. fi
  16418. # Now quote all the things that may contain metacharacters while being
  16419. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16420. # variables and quote the copies for generation of the libtool script.
  16421. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16422. SED SHELL STRIP \
  16423. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16424. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16425. deplibs_check_method reload_flag reload_cmds need_locks \
  16426. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16427. lt_cv_sys_global_symbol_to_c_name_address \
  16428. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16429. old_postinstall_cmds old_postuninstall_cmds \
  16430. compiler_RC \
  16431. CC_RC \
  16432. LD_RC \
  16433. lt_prog_compiler_wl_RC \
  16434. lt_prog_compiler_pic_RC \
  16435. lt_prog_compiler_static_RC \
  16436. lt_prog_compiler_no_builtin_flag_RC \
  16437. export_dynamic_flag_spec_RC \
  16438. thread_safe_flag_spec_RC \
  16439. whole_archive_flag_spec_RC \
  16440. enable_shared_with_static_runtimes_RC \
  16441. old_archive_cmds_RC \
  16442. old_archive_from_new_cmds_RC \
  16443. predep_objects_RC \
  16444. postdep_objects_RC \
  16445. predeps_RC \
  16446. postdeps_RC \
  16447. compiler_lib_search_path_RC \
  16448. archive_cmds_RC \
  16449. archive_expsym_cmds_RC \
  16450. postinstall_cmds_RC \
  16451. postuninstall_cmds_RC \
  16452. old_archive_from_expsyms_cmds_RC \
  16453. allow_undefined_flag_RC \
  16454. no_undefined_flag_RC \
  16455. export_symbols_cmds_RC \
  16456. hardcode_libdir_flag_spec_RC \
  16457. hardcode_libdir_flag_spec_ld_RC \
  16458. hardcode_libdir_separator_RC \
  16459. hardcode_automatic_RC \
  16460. module_cmds_RC \
  16461. module_expsym_cmds_RC \
  16462. lt_cv_prog_compiler_c_o_RC \
  16463. exclude_expsyms_RC \
  16464. include_expsyms_RC; do
  16465. case $var in
  16466. old_archive_cmds_RC | \
  16467. old_archive_from_new_cmds_RC | \
  16468. archive_cmds_RC | \
  16469. archive_expsym_cmds_RC | \
  16470. module_cmds_RC | \
  16471. module_expsym_cmds_RC | \
  16472. old_archive_from_expsyms_cmds_RC | \
  16473. export_symbols_cmds_RC | \
  16474. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16475. postinstall_cmds | postuninstall_cmds | \
  16476. old_postinstall_cmds | old_postuninstall_cmds | \
  16477. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16478. # Double-quote double-evaled strings.
  16479. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16480. ;;
  16481. *)
  16482. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16483. ;;
  16484. esac
  16485. done
  16486. case $lt_echo in
  16487. *'\$0 --fallback-echo"')
  16488. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16489. ;;
  16490. esac
  16491. cfgfile="$ofile"
  16492. cat <<__EOF__ >> "$cfgfile"
  16493. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16494. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16495. # Shell to use when invoking shell scripts.
  16496. SHELL=$lt_SHELL
  16497. # Whether or not to build shared libraries.
  16498. build_libtool_libs=$enable_shared
  16499. # Whether or not to build static libraries.
  16500. build_old_libs=$enable_static
  16501. # Whether or not to add -lc for building shared libraries.
  16502. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16503. # Whether or not to disallow shared libs when runtime libs are static
  16504. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16505. # Whether or not to optimize for fast installation.
  16506. fast_install=$enable_fast_install
  16507. # The host system.
  16508. host_alias=$host_alias
  16509. host=$host
  16510. host_os=$host_os
  16511. # The build system.
  16512. build_alias=$build_alias
  16513. build=$build
  16514. build_os=$build_os
  16515. # An echo program that does not interpret backslashes.
  16516. echo=$lt_echo
  16517. # The archiver.
  16518. AR=$lt_AR
  16519. AR_FLAGS=$lt_AR_FLAGS
  16520. # A C compiler.
  16521. LTCC=$lt_LTCC
  16522. # LTCC compiler flags.
  16523. LTCFLAGS=$lt_LTCFLAGS
  16524. # A language-specific compiler.
  16525. CC=$lt_compiler_RC
  16526. # Is the compiler the GNU C compiler?
  16527. with_gcc=$GCC_RC
  16528. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16529. gcc_ver=\`gcc -dumpversion\`
  16530. # An ERE matcher.
  16531. EGREP=$lt_EGREP
  16532. # The linker used to build libraries.
  16533. LD=$lt_LD_RC
  16534. # Whether we need hard or soft links.
  16535. LN_S=$lt_LN_S
  16536. # A BSD-compatible nm program.
  16537. NM=$lt_NM
  16538. # A symbol stripping program
  16539. STRIP=$lt_STRIP
  16540. # Used to examine libraries when file_magic_cmd begins "file"
  16541. MAGIC_CMD=$MAGIC_CMD
  16542. # Used on cygwin: DLL creation program.
  16543. DLLTOOL="$DLLTOOL"
  16544. # Used on cygwin: object dumper.
  16545. OBJDUMP="$OBJDUMP"
  16546. # Used on cygwin: assembler.
  16547. AS="$AS"
  16548. # The name of the directory that contains temporary libtool files.
  16549. objdir=$objdir
  16550. # How to create reloadable object files.
  16551. reload_flag=$lt_reload_flag
  16552. reload_cmds=$lt_reload_cmds
  16553. # How to pass a linker flag through the compiler.
  16554. wl=$lt_lt_prog_compiler_wl_RC
  16555. # Object file suffix (normally "o").
  16556. objext="$ac_objext"
  16557. # Old archive suffix (normally "a").
  16558. libext="$libext"
  16559. # Shared library suffix (normally ".so").
  16560. shrext_cmds='$shrext_cmds'
  16561. # Executable file suffix (normally "").
  16562. exeext="$exeext"
  16563. # Additional compiler flags for building library objects.
  16564. pic_flag=$lt_lt_prog_compiler_pic_RC
  16565. pic_mode=$pic_mode
  16566. # What is the maximum length of a command?
  16567. max_cmd_len=$lt_cv_sys_max_cmd_len
  16568. # Does compiler simultaneously support -c and -o options?
  16569. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16570. # Must we lock files when doing compilation?
  16571. need_locks=$lt_need_locks
  16572. # Do we need the lib prefix for modules?
  16573. need_lib_prefix=$need_lib_prefix
  16574. # Do we need a version for libraries?
  16575. need_version=$need_version
  16576. # Whether dlopen is supported.
  16577. dlopen_support=$enable_dlopen
  16578. # Whether dlopen of programs is supported.
  16579. dlopen_self=$enable_dlopen_self
  16580. # Whether dlopen of statically linked programs is supported.
  16581. dlopen_self_static=$enable_dlopen_self_static
  16582. # Compiler flag to prevent dynamic linking.
  16583. link_static_flag=$lt_lt_prog_compiler_static_RC
  16584. # Compiler flag to turn off builtin functions.
  16585. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16586. # Compiler flag to allow reflexive dlopens.
  16587. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16588. # Compiler flag to generate shared objects directly from archives.
  16589. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16590. # Compiler flag to generate thread-safe objects.
  16591. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16592. # Library versioning type.
  16593. version_type=$version_type
  16594. # Format of library name prefix.
  16595. libname_spec=$lt_libname_spec
  16596. # List of archive names. First name is the real one, the rest are links.
  16597. # The last name is the one that the linker finds with -lNAME.
  16598. library_names_spec=$lt_library_names_spec
  16599. # The coded name of the library, if different from the real name.
  16600. soname_spec=$lt_soname_spec
  16601. # Commands used to build and install an old-style archive.
  16602. RANLIB=$lt_RANLIB
  16603. old_archive_cmds=$lt_old_archive_cmds_RC
  16604. old_postinstall_cmds=$lt_old_postinstall_cmds
  16605. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16606. # Create an old-style archive from a shared archive.
  16607. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16608. # Create a temporary old-style archive to link instead of a shared archive.
  16609. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16610. # Commands used to build and install a shared archive.
  16611. archive_cmds=$lt_archive_cmds_RC
  16612. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16613. postinstall_cmds=$lt_postinstall_cmds
  16614. postuninstall_cmds=$lt_postuninstall_cmds
  16615. # Commands used to build a loadable module (assumed same as above if empty)
  16616. module_cmds=$lt_module_cmds_RC
  16617. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16618. # Commands to strip libraries.
  16619. old_striplib=$lt_old_striplib
  16620. striplib=$lt_striplib
  16621. # Dependencies to place before the objects being linked to create a
  16622. # shared library.
  16623. predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16624. # Dependencies to place after the objects being linked to create a
  16625. # shared library.
  16626. postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16627. # Dependencies to place before the objects being linked to create a
  16628. # shared library.
  16629. predeps=$lt_predeps_RC
  16630. # Dependencies to place after the objects being linked to create a
  16631. # shared library.
  16632. postdeps=$lt_postdeps_RC
  16633. # The library search path used internally by the compiler when linking
  16634. # a shared library.
  16635. 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"\`
  16636. # Method to check whether dependent libraries are shared objects.
  16637. deplibs_check_method=$lt_deplibs_check_method
  16638. # Command to use when deplibs_check_method == file_magic.
  16639. file_magic_cmd=$lt_file_magic_cmd
  16640. # Flag that allows shared libraries with undefined symbols to be built.
  16641. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16642. # Flag that forces no undefined symbols.
  16643. no_undefined_flag=$lt_no_undefined_flag_RC
  16644. # Commands used to finish a libtool library installation in a directory.
  16645. finish_cmds=$lt_finish_cmds
  16646. # Same as above, but a single script fragment to be evaled but not shown.
  16647. finish_eval=$lt_finish_eval
  16648. # Take the output of nm and produce a listing of raw symbols and C names.
  16649. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16650. # Transform the output of nm in a proper C declaration
  16651. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16652. # Transform the output of nm in a C name address pair
  16653. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16654. # This is the shared library runtime path variable.
  16655. runpath_var=$runpath_var
  16656. # This is the shared library path variable.
  16657. shlibpath_var=$shlibpath_var
  16658. # Is shlibpath searched before the hard-coded library search path?
  16659. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16660. # How to hardcode a shared library path into an executable.
  16661. hardcode_action=$hardcode_action_RC
  16662. # Whether we should hardcode library paths into libraries.
  16663. hardcode_into_libs=$hardcode_into_libs
  16664. # Flag to hardcode \$libdir into a binary during linking.
  16665. # This must work even if \$libdir does not exist.
  16666. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16667. # If ld is used when linking, flag to hardcode \$libdir into
  16668. # a binary during linking. This must work even if \$libdir does
  16669. # not exist.
  16670. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16671. # Whether we need a single -rpath flag with a separated argument.
  16672. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16673. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16674. # resulting binary.
  16675. hardcode_direct=$hardcode_direct_RC
  16676. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16677. # resulting binary.
  16678. hardcode_minus_L=$hardcode_minus_L_RC
  16679. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16680. # the resulting binary.
  16681. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16682. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16683. # and all subsequent libraries and executables linked against it.
  16684. hardcode_automatic=$hardcode_automatic_RC
  16685. # Variables whose values should be saved in libtool wrapper scripts and
  16686. # restored at relink time.
  16687. variables_saved_for_relink="$variables_saved_for_relink"
  16688. # Whether libtool must link a program against all its dependency libraries.
  16689. link_all_deplibs=$link_all_deplibs_RC
  16690. # Compile-time system search path for libraries
  16691. 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"\`
  16692. # Run-time system search path for libraries
  16693. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16694. # Fix the shell variable \$srcfile for the compiler.
  16695. fix_srcfile_path="$fix_srcfile_path_RC"
  16696. # Set to yes if exported symbols are required.
  16697. always_export_symbols=$always_export_symbols_RC
  16698. # The commands to list exported symbols.
  16699. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16700. # The commands to extract the exported symbol list from a shared archive.
  16701. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16702. # Symbols that should not be listed in the preloaded symbols.
  16703. exclude_expsyms=$lt_exclude_expsyms_RC
  16704. # Symbols that must always be exported.
  16705. include_expsyms=$lt_include_expsyms_RC
  16706. # ### END LIBTOOL TAG CONFIG: $tagname
  16707. __EOF__
  16708. else
  16709. # If there is no Makefile yet, we rely on a make rule to execute
  16710. # `config.status --recheck' to rerun these tests and create the
  16711. # libtool script then.
  16712. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16713. if test -f "$ltmain_in"; then
  16714. test -f Makefile && make "$ltmain"
  16715. fi
  16716. fi
  16717. ac_ext=c
  16718. ac_cpp='$CPP $CPPFLAGS'
  16719. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16720. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16721. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16722. CC="$lt_save_CC"
  16723. ;;
  16724. *)
  16725. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16726. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16727. { (exit 1); exit 1; }; }
  16728. ;;
  16729. esac
  16730. # Append the new tag name to the list of available tags.
  16731. if test -n "$tagname" ; then
  16732. available_tags="$available_tags $tagname"
  16733. fi
  16734. fi
  16735. done
  16736. IFS="$lt_save_ifs"
  16737. # Now substitute the updated list of available tags.
  16738. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16739. mv "${ofile}T" "$ofile"
  16740. chmod +x "$ofile"
  16741. else
  16742. rm -f "${ofile}T"
  16743. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16744. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16745. { (exit 1); exit 1; }; }
  16746. fi
  16747. fi
  16748. # This can be used to rebuild libtool when needed
  16749. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16750. # Always use our own libtool.
  16751. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16752. # Prevent multiple expansion
  16753. # Checks for header files.
  16754. ac_header_dirent=no
  16755. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16756. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16757. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16758. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16759. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16760. echo $ECHO_N "(cached) $ECHO_C" >&6
  16761. else
  16762. cat >conftest.$ac_ext <<_ACEOF
  16763. /* confdefs.h. */
  16764. _ACEOF
  16765. cat confdefs.h >>conftest.$ac_ext
  16766. cat >>conftest.$ac_ext <<_ACEOF
  16767. /* end confdefs.h. */
  16768. #include <sys/types.h>
  16769. #include <$ac_hdr>
  16770. int
  16771. main ()
  16772. {
  16773. if ((DIR *) 0)
  16774. return 0;
  16775. ;
  16776. return 0;
  16777. }
  16778. _ACEOF
  16779. rm -f conftest.$ac_objext
  16780. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16781. (eval $ac_compile) 2>conftest.er1
  16782. ac_status=$?
  16783. grep -v '^ *+' conftest.er1 >conftest.err
  16784. rm -f conftest.er1
  16785. cat conftest.err >&5
  16786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16787. (exit $ac_status); } &&
  16788. { ac_try='test -z "$ac_c_werror_flag"
  16789. || test ! -s conftest.err'
  16790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16791. (eval $ac_try) 2>&5
  16792. ac_status=$?
  16793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16794. (exit $ac_status); }; } &&
  16795. { ac_try='test -s conftest.$ac_objext'
  16796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16797. (eval $ac_try) 2>&5
  16798. ac_status=$?
  16799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16800. (exit $ac_status); }; }; then
  16801. eval "$as_ac_Header=yes"
  16802. else
  16803. echo "$as_me: failed program was:" >&5
  16804. sed 's/^/| /' conftest.$ac_ext >&5
  16805. eval "$as_ac_Header=no"
  16806. fi
  16807. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16808. fi
  16809. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16810. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16811. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16812. cat >>confdefs.h <<_ACEOF
  16813. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16814. _ACEOF
  16815. ac_header_dirent=$ac_hdr; break
  16816. fi
  16817. done
  16818. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16819. if test $ac_header_dirent = dirent.h; then
  16820. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16821. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16822. if test "${ac_cv_search_opendir+set}" = set; then
  16823. echo $ECHO_N "(cached) $ECHO_C" >&6
  16824. else
  16825. ac_func_search_save_LIBS=$LIBS
  16826. ac_cv_search_opendir=no
  16827. cat >conftest.$ac_ext <<_ACEOF
  16828. /* confdefs.h. */
  16829. _ACEOF
  16830. cat confdefs.h >>conftest.$ac_ext
  16831. cat >>conftest.$ac_ext <<_ACEOF
  16832. /* end confdefs.h. */
  16833. /* Override any gcc2 internal prototype to avoid an error. */
  16834. #ifdef __cplusplus
  16835. extern "C"
  16836. #endif
  16837. /* We use char because int might match the return type of a gcc2
  16838. builtin and then its argument prototype would still apply. */
  16839. char opendir ();
  16840. int
  16841. main ()
  16842. {
  16843. opendir ();
  16844. ;
  16845. return 0;
  16846. }
  16847. _ACEOF
  16848. rm -f conftest.$ac_objext conftest$ac_exeext
  16849. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16850. (eval $ac_link) 2>conftest.er1
  16851. ac_status=$?
  16852. grep -v '^ *+' conftest.er1 >conftest.err
  16853. rm -f conftest.er1
  16854. cat conftest.err >&5
  16855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16856. (exit $ac_status); } &&
  16857. { ac_try='test -z "$ac_c_werror_flag"
  16858. || test ! -s conftest.err'
  16859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16860. (eval $ac_try) 2>&5
  16861. ac_status=$?
  16862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16863. (exit $ac_status); }; } &&
  16864. { ac_try='test -s conftest$ac_exeext'
  16865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16866. (eval $ac_try) 2>&5
  16867. ac_status=$?
  16868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16869. (exit $ac_status); }; }; then
  16870. ac_cv_search_opendir="none required"
  16871. else
  16872. echo "$as_me: failed program was:" >&5
  16873. sed 's/^/| /' conftest.$ac_ext >&5
  16874. fi
  16875. rm -f conftest.err conftest.$ac_objext \
  16876. conftest$ac_exeext conftest.$ac_ext
  16877. if test "$ac_cv_search_opendir" = no; then
  16878. for ac_lib in dir; do
  16879. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16880. cat >conftest.$ac_ext <<_ACEOF
  16881. /* confdefs.h. */
  16882. _ACEOF
  16883. cat confdefs.h >>conftest.$ac_ext
  16884. cat >>conftest.$ac_ext <<_ACEOF
  16885. /* end confdefs.h. */
  16886. /* Override any gcc2 internal prototype to avoid an error. */
  16887. #ifdef __cplusplus
  16888. extern "C"
  16889. #endif
  16890. /* We use char because int might match the return type of a gcc2
  16891. builtin and then its argument prototype would still apply. */
  16892. char opendir ();
  16893. int
  16894. main ()
  16895. {
  16896. opendir ();
  16897. ;
  16898. return 0;
  16899. }
  16900. _ACEOF
  16901. rm -f conftest.$ac_objext conftest$ac_exeext
  16902. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16903. (eval $ac_link) 2>conftest.er1
  16904. ac_status=$?
  16905. grep -v '^ *+' conftest.er1 >conftest.err
  16906. rm -f conftest.er1
  16907. cat conftest.err >&5
  16908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16909. (exit $ac_status); } &&
  16910. { ac_try='test -z "$ac_c_werror_flag"
  16911. || test ! -s conftest.err'
  16912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16913. (eval $ac_try) 2>&5
  16914. ac_status=$?
  16915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16916. (exit $ac_status); }; } &&
  16917. { ac_try='test -s conftest$ac_exeext'
  16918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16919. (eval $ac_try) 2>&5
  16920. ac_status=$?
  16921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16922. (exit $ac_status); }; }; then
  16923. ac_cv_search_opendir="-l$ac_lib"
  16924. break
  16925. else
  16926. echo "$as_me: failed program was:" >&5
  16927. sed 's/^/| /' conftest.$ac_ext >&5
  16928. fi
  16929. rm -f conftest.err conftest.$ac_objext \
  16930. conftest$ac_exeext conftest.$ac_ext
  16931. done
  16932. fi
  16933. LIBS=$ac_func_search_save_LIBS
  16934. fi
  16935. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16936. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16937. if test "$ac_cv_search_opendir" != no; then
  16938. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16939. fi
  16940. else
  16941. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16942. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16943. if test "${ac_cv_search_opendir+set}" = set; then
  16944. echo $ECHO_N "(cached) $ECHO_C" >&6
  16945. else
  16946. ac_func_search_save_LIBS=$LIBS
  16947. ac_cv_search_opendir=no
  16948. cat >conftest.$ac_ext <<_ACEOF
  16949. /* confdefs.h. */
  16950. _ACEOF
  16951. cat confdefs.h >>conftest.$ac_ext
  16952. cat >>conftest.$ac_ext <<_ACEOF
  16953. /* end confdefs.h. */
  16954. /* Override any gcc2 internal prototype to avoid an error. */
  16955. #ifdef __cplusplus
  16956. extern "C"
  16957. #endif
  16958. /* We use char because int might match the return type of a gcc2
  16959. builtin and then its argument prototype would still apply. */
  16960. char opendir ();
  16961. int
  16962. main ()
  16963. {
  16964. opendir ();
  16965. ;
  16966. return 0;
  16967. }
  16968. _ACEOF
  16969. rm -f conftest.$ac_objext conftest$ac_exeext
  16970. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16971. (eval $ac_link) 2>conftest.er1
  16972. ac_status=$?
  16973. grep -v '^ *+' conftest.er1 >conftest.err
  16974. rm -f conftest.er1
  16975. cat conftest.err >&5
  16976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16977. (exit $ac_status); } &&
  16978. { ac_try='test -z "$ac_c_werror_flag"
  16979. || test ! -s conftest.err'
  16980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16981. (eval $ac_try) 2>&5
  16982. ac_status=$?
  16983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16984. (exit $ac_status); }; } &&
  16985. { ac_try='test -s conftest$ac_exeext'
  16986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16987. (eval $ac_try) 2>&5
  16988. ac_status=$?
  16989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16990. (exit $ac_status); }; }; then
  16991. ac_cv_search_opendir="none required"
  16992. else
  16993. echo "$as_me: failed program was:" >&5
  16994. sed 's/^/| /' conftest.$ac_ext >&5
  16995. fi
  16996. rm -f conftest.err conftest.$ac_objext \
  16997. conftest$ac_exeext conftest.$ac_ext
  16998. if test "$ac_cv_search_opendir" = no; then
  16999. for ac_lib in x; do
  17000. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17001. cat >conftest.$ac_ext <<_ACEOF
  17002. /* confdefs.h. */
  17003. _ACEOF
  17004. cat confdefs.h >>conftest.$ac_ext
  17005. cat >>conftest.$ac_ext <<_ACEOF
  17006. /* end confdefs.h. */
  17007. /* Override any gcc2 internal prototype to avoid an error. */
  17008. #ifdef __cplusplus
  17009. extern "C"
  17010. #endif
  17011. /* We use char because int might match the return type of a gcc2
  17012. builtin and then its argument prototype would still apply. */
  17013. char opendir ();
  17014. int
  17015. main ()
  17016. {
  17017. opendir ();
  17018. ;
  17019. return 0;
  17020. }
  17021. _ACEOF
  17022. rm -f conftest.$ac_objext conftest$ac_exeext
  17023. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17024. (eval $ac_link) 2>conftest.er1
  17025. ac_status=$?
  17026. grep -v '^ *+' conftest.er1 >conftest.err
  17027. rm -f conftest.er1
  17028. cat conftest.err >&5
  17029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17030. (exit $ac_status); } &&
  17031. { ac_try='test -z "$ac_c_werror_flag"
  17032. || test ! -s conftest.err'
  17033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17034. (eval $ac_try) 2>&5
  17035. ac_status=$?
  17036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17037. (exit $ac_status); }; } &&
  17038. { ac_try='test -s conftest$ac_exeext'
  17039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17040. (eval $ac_try) 2>&5
  17041. ac_status=$?
  17042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17043. (exit $ac_status); }; }; then
  17044. ac_cv_search_opendir="-l$ac_lib"
  17045. break
  17046. else
  17047. echo "$as_me: failed program was:" >&5
  17048. sed 's/^/| /' conftest.$ac_ext >&5
  17049. fi
  17050. rm -f conftest.err conftest.$ac_objext \
  17051. conftest$ac_exeext conftest.$ac_ext
  17052. done
  17053. fi
  17054. LIBS=$ac_func_search_save_LIBS
  17055. fi
  17056. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17057. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17058. if test "$ac_cv_search_opendir" != no; then
  17059. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17060. fi
  17061. fi
  17062. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17063. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17064. if test "${ac_cv_header_stdc+set}" = set; then
  17065. echo $ECHO_N "(cached) $ECHO_C" >&6
  17066. else
  17067. cat >conftest.$ac_ext <<_ACEOF
  17068. /* confdefs.h. */
  17069. _ACEOF
  17070. cat confdefs.h >>conftest.$ac_ext
  17071. cat >>conftest.$ac_ext <<_ACEOF
  17072. /* end confdefs.h. */
  17073. #include <stdlib.h>
  17074. #include <stdarg.h>
  17075. #include <string.h>
  17076. #include <float.h>
  17077. int
  17078. main ()
  17079. {
  17080. ;
  17081. return 0;
  17082. }
  17083. _ACEOF
  17084. rm -f conftest.$ac_objext
  17085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17086. (eval $ac_compile) 2>conftest.er1
  17087. ac_status=$?
  17088. grep -v '^ *+' conftest.er1 >conftest.err
  17089. rm -f conftest.er1
  17090. cat conftest.err >&5
  17091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17092. (exit $ac_status); } &&
  17093. { ac_try='test -z "$ac_c_werror_flag"
  17094. || test ! -s conftest.err'
  17095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17096. (eval $ac_try) 2>&5
  17097. ac_status=$?
  17098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17099. (exit $ac_status); }; } &&
  17100. { ac_try='test -s conftest.$ac_objext'
  17101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17102. (eval $ac_try) 2>&5
  17103. ac_status=$?
  17104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17105. (exit $ac_status); }; }; then
  17106. ac_cv_header_stdc=yes
  17107. else
  17108. echo "$as_me: failed program was:" >&5
  17109. sed 's/^/| /' conftest.$ac_ext >&5
  17110. ac_cv_header_stdc=no
  17111. fi
  17112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17113. if test $ac_cv_header_stdc = yes; then
  17114. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17115. cat >conftest.$ac_ext <<_ACEOF
  17116. /* confdefs.h. */
  17117. _ACEOF
  17118. cat confdefs.h >>conftest.$ac_ext
  17119. cat >>conftest.$ac_ext <<_ACEOF
  17120. /* end confdefs.h. */
  17121. #include <string.h>
  17122. _ACEOF
  17123. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17124. $EGREP "memchr" >/dev/null 2>&1; then
  17125. :
  17126. else
  17127. ac_cv_header_stdc=no
  17128. fi
  17129. rm -f conftest*
  17130. fi
  17131. if test $ac_cv_header_stdc = yes; then
  17132. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17133. cat >conftest.$ac_ext <<_ACEOF
  17134. /* confdefs.h. */
  17135. _ACEOF
  17136. cat confdefs.h >>conftest.$ac_ext
  17137. cat >>conftest.$ac_ext <<_ACEOF
  17138. /* end confdefs.h. */
  17139. #include <stdlib.h>
  17140. _ACEOF
  17141. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17142. $EGREP "free" >/dev/null 2>&1; then
  17143. :
  17144. else
  17145. ac_cv_header_stdc=no
  17146. fi
  17147. rm -f conftest*
  17148. fi
  17149. if test $ac_cv_header_stdc = yes; then
  17150. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17151. if test "$cross_compiling" = yes; then
  17152. :
  17153. else
  17154. cat >conftest.$ac_ext <<_ACEOF
  17155. /* confdefs.h. */
  17156. _ACEOF
  17157. cat confdefs.h >>conftest.$ac_ext
  17158. cat >>conftest.$ac_ext <<_ACEOF
  17159. /* end confdefs.h. */
  17160. #include <ctype.h>
  17161. #if ((' ' & 0x0FF) == 0x020)
  17162. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17163. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17164. #else
  17165. # define ISLOWER(c) \
  17166. (('a' <= (c) && (c) <= 'i') \
  17167. || ('j' <= (c) && (c) <= 'r') \
  17168. || ('s' <= (c) && (c) <= 'z'))
  17169. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17170. #endif
  17171. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17172. int
  17173. main ()
  17174. {
  17175. int i;
  17176. for (i = 0; i < 256; i++)
  17177. if (XOR (islower (i), ISLOWER (i))
  17178. || toupper (i) != TOUPPER (i))
  17179. exit(2);
  17180. exit (0);
  17181. }
  17182. _ACEOF
  17183. rm -f conftest$ac_exeext
  17184. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17185. (eval $ac_link) 2>&5
  17186. ac_status=$?
  17187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17188. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17190. (eval $ac_try) 2>&5
  17191. ac_status=$?
  17192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17193. (exit $ac_status); }; }; then
  17194. :
  17195. else
  17196. echo "$as_me: program exited with status $ac_status" >&5
  17197. echo "$as_me: failed program was:" >&5
  17198. sed 's/^/| /' conftest.$ac_ext >&5
  17199. ( exit $ac_status )
  17200. ac_cv_header_stdc=no
  17201. fi
  17202. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17203. fi
  17204. fi
  17205. fi
  17206. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17207. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17208. if test $ac_cv_header_stdc = yes; then
  17209. cat >>confdefs.h <<\_ACEOF
  17210. #define STDC_HEADERS 1
  17211. _ACEOF
  17212. fi
  17213. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17214. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17215. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17216. echo $ECHO_N "(cached) $ECHO_C" >&6
  17217. else
  17218. cat >conftest.$ac_ext <<_ACEOF
  17219. /* confdefs.h. */
  17220. _ACEOF
  17221. cat confdefs.h >>conftest.$ac_ext
  17222. cat >>conftest.$ac_ext <<_ACEOF
  17223. /* end confdefs.h. */
  17224. #include <sys/types.h>
  17225. #include <sys/wait.h>
  17226. #ifndef WEXITSTATUS
  17227. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17228. #endif
  17229. #ifndef WIFEXITED
  17230. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17231. #endif
  17232. int
  17233. main ()
  17234. {
  17235. int s;
  17236. wait (&s);
  17237. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17238. ;
  17239. return 0;
  17240. }
  17241. _ACEOF
  17242. rm -f conftest.$ac_objext
  17243. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17244. (eval $ac_compile) 2>conftest.er1
  17245. ac_status=$?
  17246. grep -v '^ *+' conftest.er1 >conftest.err
  17247. rm -f conftest.er1
  17248. cat conftest.err >&5
  17249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17250. (exit $ac_status); } &&
  17251. { ac_try='test -z "$ac_c_werror_flag"
  17252. || test ! -s conftest.err'
  17253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17254. (eval $ac_try) 2>&5
  17255. ac_status=$?
  17256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17257. (exit $ac_status); }; } &&
  17258. { ac_try='test -s conftest.$ac_objext'
  17259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17260. (eval $ac_try) 2>&5
  17261. ac_status=$?
  17262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17263. (exit $ac_status); }; }; then
  17264. ac_cv_header_sys_wait_h=yes
  17265. else
  17266. echo "$as_me: failed program was:" >&5
  17267. sed 's/^/| /' conftest.$ac_ext >&5
  17268. ac_cv_header_sys_wait_h=no
  17269. fi
  17270. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17271. fi
  17272. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17273. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17274. if test $ac_cv_header_sys_wait_h = yes; then
  17275. cat >>confdefs.h <<\_ACEOF
  17276. #define HAVE_SYS_WAIT_H 1
  17277. _ACEOF
  17278. fi
  17279. 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
  17280. do
  17281. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17282. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17283. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17285. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17286. echo $ECHO_N "(cached) $ECHO_C" >&6
  17287. fi
  17288. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17289. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17290. else
  17291. # Is the header compilable?
  17292. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17293. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17294. cat >conftest.$ac_ext <<_ACEOF
  17295. /* confdefs.h. */
  17296. _ACEOF
  17297. cat confdefs.h >>conftest.$ac_ext
  17298. cat >>conftest.$ac_ext <<_ACEOF
  17299. /* end confdefs.h. */
  17300. $ac_includes_default
  17301. #include <$ac_header>
  17302. _ACEOF
  17303. rm -f conftest.$ac_objext
  17304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17305. (eval $ac_compile) 2>conftest.er1
  17306. ac_status=$?
  17307. grep -v '^ *+' conftest.er1 >conftest.err
  17308. rm -f conftest.er1
  17309. cat conftest.err >&5
  17310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17311. (exit $ac_status); } &&
  17312. { ac_try='test -z "$ac_c_werror_flag"
  17313. || test ! -s conftest.err'
  17314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17315. (eval $ac_try) 2>&5
  17316. ac_status=$?
  17317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17318. (exit $ac_status); }; } &&
  17319. { ac_try='test -s conftest.$ac_objext'
  17320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17321. (eval $ac_try) 2>&5
  17322. ac_status=$?
  17323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17324. (exit $ac_status); }; }; then
  17325. ac_header_compiler=yes
  17326. else
  17327. echo "$as_me: failed program was:" >&5
  17328. sed 's/^/| /' conftest.$ac_ext >&5
  17329. ac_header_compiler=no
  17330. fi
  17331. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17332. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17333. echo "${ECHO_T}$ac_header_compiler" >&6
  17334. # Is the header present?
  17335. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17336. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17337. cat >conftest.$ac_ext <<_ACEOF
  17338. /* confdefs.h. */
  17339. _ACEOF
  17340. cat confdefs.h >>conftest.$ac_ext
  17341. cat >>conftest.$ac_ext <<_ACEOF
  17342. /* end confdefs.h. */
  17343. #include <$ac_header>
  17344. _ACEOF
  17345. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17346. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17347. ac_status=$?
  17348. grep -v '^ *+' conftest.er1 >conftest.err
  17349. rm -f conftest.er1
  17350. cat conftest.err >&5
  17351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17352. (exit $ac_status); } >/dev/null; then
  17353. if test -s conftest.err; then
  17354. ac_cpp_err=$ac_c_preproc_warn_flag
  17355. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17356. else
  17357. ac_cpp_err=
  17358. fi
  17359. else
  17360. ac_cpp_err=yes
  17361. fi
  17362. if test -z "$ac_cpp_err"; then
  17363. ac_header_preproc=yes
  17364. else
  17365. echo "$as_me: failed program was:" >&5
  17366. sed 's/^/| /' conftest.$ac_ext >&5
  17367. ac_header_preproc=no
  17368. fi
  17369. rm -f conftest.err conftest.$ac_ext
  17370. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17371. echo "${ECHO_T}$ac_header_preproc" >&6
  17372. # So? What about this header?
  17373. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17374. yes:no: )
  17375. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17376. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17377. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17378. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17379. ac_header_preproc=yes
  17380. ;;
  17381. no:yes:* )
  17382. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17383. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17384. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17385. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17386. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17387. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17388. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17389. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17390. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17391. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17392. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17393. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17394. (
  17395. cat <<\_ASBOX
  17396. ## ------------------------------------------ ##
  17397. ## Report this to http://bugzilla.redhat.com/ ##
  17398. ## ------------------------------------------ ##
  17399. _ASBOX
  17400. ) |
  17401. sed "s/^/$as_me: WARNING: /" >&2
  17402. ;;
  17403. esac
  17404. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17405. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17406. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17407. echo $ECHO_N "(cached) $ECHO_C" >&6
  17408. else
  17409. eval "$as_ac_Header=\$ac_header_preproc"
  17410. fi
  17411. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17412. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17413. fi
  17414. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17415. cat >>confdefs.h <<_ACEOF
  17416. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17417. _ACEOF
  17418. fi
  17419. done
  17420. # Checks for typedefs, structures, and compiler characteristics.
  17421. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17422. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17423. if test "${ac_cv_header_stat_broken+set}" = set; then
  17424. echo $ECHO_N "(cached) $ECHO_C" >&6
  17425. else
  17426. cat >conftest.$ac_ext <<_ACEOF
  17427. /* confdefs.h. */
  17428. _ACEOF
  17429. cat confdefs.h >>conftest.$ac_ext
  17430. cat >>conftest.$ac_ext <<_ACEOF
  17431. /* end confdefs.h. */
  17432. #include <sys/types.h>
  17433. #include <sys/stat.h>
  17434. #if defined(S_ISBLK) && defined(S_IFDIR)
  17435. # if S_ISBLK (S_IFDIR)
  17436. You lose.
  17437. # endif
  17438. #endif
  17439. #if defined(S_ISBLK) && defined(S_IFCHR)
  17440. # if S_ISBLK (S_IFCHR)
  17441. You lose.
  17442. # endif
  17443. #endif
  17444. #if defined(S_ISLNK) && defined(S_IFREG)
  17445. # if S_ISLNK (S_IFREG)
  17446. You lose.
  17447. # endif
  17448. #endif
  17449. #if defined(S_ISSOCK) && defined(S_IFREG)
  17450. # if S_ISSOCK (S_IFREG)
  17451. You lose.
  17452. # endif
  17453. #endif
  17454. _ACEOF
  17455. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17456. $EGREP "You lose" >/dev/null 2>&1; then
  17457. ac_cv_header_stat_broken=yes
  17458. else
  17459. ac_cv_header_stat_broken=no
  17460. fi
  17461. rm -f conftest*
  17462. fi
  17463. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17464. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17465. if test $ac_cv_header_stat_broken = yes; then
  17466. cat >>confdefs.h <<\_ACEOF
  17467. #define STAT_MACROS_BROKEN 1
  17468. _ACEOF
  17469. fi
  17470. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17471. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17472. if test "${ac_cv_c_const+set}" = set; then
  17473. echo $ECHO_N "(cached) $ECHO_C" >&6
  17474. else
  17475. cat >conftest.$ac_ext <<_ACEOF
  17476. /* confdefs.h. */
  17477. _ACEOF
  17478. cat confdefs.h >>conftest.$ac_ext
  17479. cat >>conftest.$ac_ext <<_ACEOF
  17480. /* end confdefs.h. */
  17481. int
  17482. main ()
  17483. {
  17484. /* FIXME: Include the comments suggested by Paul. */
  17485. #ifndef __cplusplus
  17486. /* Ultrix mips cc rejects this. */
  17487. typedef int charset[2];
  17488. const charset x;
  17489. /* SunOS 4.1.1 cc rejects this. */
  17490. char const *const *ccp;
  17491. char **p;
  17492. /* NEC SVR4.0.2 mips cc rejects this. */
  17493. struct point {int x, y;};
  17494. static struct point const zero = {0,0};
  17495. /* AIX XL C 1.02.0.0 rejects this.
  17496. It does not let you subtract one const X* pointer from another in
  17497. an arm of an if-expression whose if-part is not a constant
  17498. expression */
  17499. const char *g = "string";
  17500. ccp = &g + (g ? g-g : 0);
  17501. /* HPUX 7.0 cc rejects these. */
  17502. ++ccp;
  17503. p = (char**) ccp;
  17504. ccp = (char const *const *) p;
  17505. { /* SCO 3.2v4 cc rejects this. */
  17506. char *t;
  17507. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17508. *t++ = 0;
  17509. }
  17510. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17511. int x[] = {25, 17};
  17512. const int *foo = &x[0];
  17513. ++foo;
  17514. }
  17515. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17516. typedef const int *iptr;
  17517. iptr p = 0;
  17518. ++p;
  17519. }
  17520. { /* AIX XL C 1.02.0.0 rejects this saying
  17521. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17522. struct s { int j; const int *ap[3]; };
  17523. struct s *b; b->j = 5;
  17524. }
  17525. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17526. const int foo = 10;
  17527. }
  17528. #endif
  17529. ;
  17530. return 0;
  17531. }
  17532. _ACEOF
  17533. rm -f conftest.$ac_objext
  17534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17535. (eval $ac_compile) 2>conftest.er1
  17536. ac_status=$?
  17537. grep -v '^ *+' conftest.er1 >conftest.err
  17538. rm -f conftest.er1
  17539. cat conftest.err >&5
  17540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17541. (exit $ac_status); } &&
  17542. { ac_try='test -z "$ac_c_werror_flag"
  17543. || test ! -s conftest.err'
  17544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17545. (eval $ac_try) 2>&5
  17546. ac_status=$?
  17547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17548. (exit $ac_status); }; } &&
  17549. { ac_try='test -s conftest.$ac_objext'
  17550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17551. (eval $ac_try) 2>&5
  17552. ac_status=$?
  17553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17554. (exit $ac_status); }; }; then
  17555. ac_cv_c_const=yes
  17556. else
  17557. echo "$as_me: failed program was:" >&5
  17558. sed 's/^/| /' conftest.$ac_ext >&5
  17559. ac_cv_c_const=no
  17560. fi
  17561. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17562. fi
  17563. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17564. echo "${ECHO_T}$ac_cv_c_const" >&6
  17565. if test $ac_cv_c_const = no; then
  17566. cat >>confdefs.h <<\_ACEOF
  17567. #define const
  17568. _ACEOF
  17569. fi
  17570. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17571. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17572. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17573. echo $ECHO_N "(cached) $ECHO_C" >&6
  17574. else
  17575. cat >conftest.$ac_ext <<_ACEOF
  17576. /* confdefs.h. */
  17577. _ACEOF
  17578. cat confdefs.h >>conftest.$ac_ext
  17579. cat >>conftest.$ac_ext <<_ACEOF
  17580. /* end confdefs.h. */
  17581. #include <stdbool.h>
  17582. #ifndef bool
  17583. # error bool is not defined
  17584. #endif
  17585. #ifndef false
  17586. # error false is not defined
  17587. #endif
  17588. #if false
  17589. # error false is not 0
  17590. #endif
  17591. #ifndef true
  17592. # error true is not defined
  17593. #endif
  17594. #if true != 1
  17595. # error true is not 1
  17596. #endif
  17597. #ifndef __bool_true_false_are_defined
  17598. # error __bool_true_false_are_defined is not defined
  17599. #endif
  17600. struct s { _Bool s: 1; _Bool t; } s;
  17601. char a[true == 1 ? 1 : -1];
  17602. char b[false == 0 ? 1 : -1];
  17603. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17604. char d[(bool) -0.5 == true ? 1 : -1];
  17605. bool e = &s;
  17606. char f[(_Bool) -0.0 == false ? 1 : -1];
  17607. char g[true];
  17608. char h[sizeof (_Bool)];
  17609. char i[sizeof s.t];
  17610. int
  17611. main ()
  17612. {
  17613. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17614. ;
  17615. return 0;
  17616. }
  17617. _ACEOF
  17618. rm -f conftest.$ac_objext
  17619. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17620. (eval $ac_compile) 2>conftest.er1
  17621. ac_status=$?
  17622. grep -v '^ *+' conftest.er1 >conftest.err
  17623. rm -f conftest.er1
  17624. cat conftest.err >&5
  17625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17626. (exit $ac_status); } &&
  17627. { ac_try='test -z "$ac_c_werror_flag"
  17628. || test ! -s conftest.err'
  17629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17630. (eval $ac_try) 2>&5
  17631. ac_status=$?
  17632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17633. (exit $ac_status); }; } &&
  17634. { ac_try='test -s conftest.$ac_objext'
  17635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17636. (eval $ac_try) 2>&5
  17637. ac_status=$?
  17638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17639. (exit $ac_status); }; }; then
  17640. ac_cv_header_stdbool_h=yes
  17641. else
  17642. echo "$as_me: failed program was:" >&5
  17643. sed 's/^/| /' conftest.$ac_ext >&5
  17644. ac_cv_header_stdbool_h=no
  17645. fi
  17646. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17647. fi
  17648. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17649. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17650. echo "$as_me:$LINENO: checking for _Bool" >&5
  17651. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17652. if test "${ac_cv_type__Bool+set}" = set; then
  17653. echo $ECHO_N "(cached) $ECHO_C" >&6
  17654. else
  17655. cat >conftest.$ac_ext <<_ACEOF
  17656. /* confdefs.h. */
  17657. _ACEOF
  17658. cat confdefs.h >>conftest.$ac_ext
  17659. cat >>conftest.$ac_ext <<_ACEOF
  17660. /* end confdefs.h. */
  17661. $ac_includes_default
  17662. int
  17663. main ()
  17664. {
  17665. if ((_Bool *) 0)
  17666. return 0;
  17667. if (sizeof (_Bool))
  17668. return 0;
  17669. ;
  17670. return 0;
  17671. }
  17672. _ACEOF
  17673. rm -f conftest.$ac_objext
  17674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17675. (eval $ac_compile) 2>conftest.er1
  17676. ac_status=$?
  17677. grep -v '^ *+' conftest.er1 >conftest.err
  17678. rm -f conftest.er1
  17679. cat conftest.err >&5
  17680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17681. (exit $ac_status); } &&
  17682. { ac_try='test -z "$ac_c_werror_flag"
  17683. || test ! -s conftest.err'
  17684. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17685. (eval $ac_try) 2>&5
  17686. ac_status=$?
  17687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17688. (exit $ac_status); }; } &&
  17689. { ac_try='test -s conftest.$ac_objext'
  17690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17691. (eval $ac_try) 2>&5
  17692. ac_status=$?
  17693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17694. (exit $ac_status); }; }; then
  17695. ac_cv_type__Bool=yes
  17696. else
  17697. echo "$as_me: failed program was:" >&5
  17698. sed 's/^/| /' conftest.$ac_ext >&5
  17699. ac_cv_type__Bool=no
  17700. fi
  17701. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17702. fi
  17703. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17704. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17705. if test $ac_cv_type__Bool = yes; then
  17706. cat >>confdefs.h <<_ACEOF
  17707. #define HAVE__BOOL 1
  17708. _ACEOF
  17709. fi
  17710. if test $ac_cv_header_stdbool_h = yes; then
  17711. cat >>confdefs.h <<\_ACEOF
  17712. #define HAVE_STDBOOL_H 1
  17713. _ACEOF
  17714. fi
  17715. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17716. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17717. if test "${ac_cv_type_uid_t+set}" = set; then
  17718. echo $ECHO_N "(cached) $ECHO_C" >&6
  17719. else
  17720. cat >conftest.$ac_ext <<_ACEOF
  17721. /* confdefs.h. */
  17722. _ACEOF
  17723. cat confdefs.h >>conftest.$ac_ext
  17724. cat >>conftest.$ac_ext <<_ACEOF
  17725. /* end confdefs.h. */
  17726. #include <sys/types.h>
  17727. _ACEOF
  17728. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17729. $EGREP "uid_t" >/dev/null 2>&1; then
  17730. ac_cv_type_uid_t=yes
  17731. else
  17732. ac_cv_type_uid_t=no
  17733. fi
  17734. rm -f conftest*
  17735. fi
  17736. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17737. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17738. if test $ac_cv_type_uid_t = no; then
  17739. cat >>confdefs.h <<\_ACEOF
  17740. #define uid_t int
  17741. _ACEOF
  17742. cat >>confdefs.h <<\_ACEOF
  17743. #define gid_t int
  17744. _ACEOF
  17745. fi
  17746. echo "$as_me:$LINENO: checking for pid_t" >&5
  17747. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17748. if test "${ac_cv_type_pid_t+set}" = set; then
  17749. echo $ECHO_N "(cached) $ECHO_C" >&6
  17750. else
  17751. cat >conftest.$ac_ext <<_ACEOF
  17752. /* confdefs.h. */
  17753. _ACEOF
  17754. cat confdefs.h >>conftest.$ac_ext
  17755. cat >>conftest.$ac_ext <<_ACEOF
  17756. /* end confdefs.h. */
  17757. $ac_includes_default
  17758. int
  17759. main ()
  17760. {
  17761. if ((pid_t *) 0)
  17762. return 0;
  17763. if (sizeof (pid_t))
  17764. return 0;
  17765. ;
  17766. return 0;
  17767. }
  17768. _ACEOF
  17769. rm -f conftest.$ac_objext
  17770. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17771. (eval $ac_compile) 2>conftest.er1
  17772. ac_status=$?
  17773. grep -v '^ *+' conftest.er1 >conftest.err
  17774. rm -f conftest.er1
  17775. cat conftest.err >&5
  17776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17777. (exit $ac_status); } &&
  17778. { ac_try='test -z "$ac_c_werror_flag"
  17779. || test ! -s conftest.err'
  17780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17781. (eval $ac_try) 2>&5
  17782. ac_status=$?
  17783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17784. (exit $ac_status); }; } &&
  17785. { ac_try='test -s conftest.$ac_objext'
  17786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17787. (eval $ac_try) 2>&5
  17788. ac_status=$?
  17789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17790. (exit $ac_status); }; }; then
  17791. ac_cv_type_pid_t=yes
  17792. else
  17793. echo "$as_me: failed program was:" >&5
  17794. sed 's/^/| /' conftest.$ac_ext >&5
  17795. ac_cv_type_pid_t=no
  17796. fi
  17797. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17798. fi
  17799. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17800. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17801. if test $ac_cv_type_pid_t = yes; then
  17802. :
  17803. else
  17804. cat >>confdefs.h <<_ACEOF
  17805. #define pid_t int
  17806. _ACEOF
  17807. fi
  17808. echo "$as_me:$LINENO: checking for size_t" >&5
  17809. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17810. if test "${ac_cv_type_size_t+set}" = set; then
  17811. echo $ECHO_N "(cached) $ECHO_C" >&6
  17812. else
  17813. cat >conftest.$ac_ext <<_ACEOF
  17814. /* confdefs.h. */
  17815. _ACEOF
  17816. cat confdefs.h >>conftest.$ac_ext
  17817. cat >>conftest.$ac_ext <<_ACEOF
  17818. /* end confdefs.h. */
  17819. $ac_includes_default
  17820. int
  17821. main ()
  17822. {
  17823. if ((size_t *) 0)
  17824. return 0;
  17825. if (sizeof (size_t))
  17826. return 0;
  17827. ;
  17828. return 0;
  17829. }
  17830. _ACEOF
  17831. rm -f conftest.$ac_objext
  17832. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17833. (eval $ac_compile) 2>conftest.er1
  17834. ac_status=$?
  17835. grep -v '^ *+' conftest.er1 >conftest.err
  17836. rm -f conftest.er1
  17837. cat conftest.err >&5
  17838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17839. (exit $ac_status); } &&
  17840. { ac_try='test -z "$ac_c_werror_flag"
  17841. || test ! -s conftest.err'
  17842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17843. (eval $ac_try) 2>&5
  17844. ac_status=$?
  17845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17846. (exit $ac_status); }; } &&
  17847. { ac_try='test -s conftest.$ac_objext'
  17848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17849. (eval $ac_try) 2>&5
  17850. ac_status=$?
  17851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17852. (exit $ac_status); }; }; then
  17853. ac_cv_type_size_t=yes
  17854. else
  17855. echo "$as_me: failed program was:" >&5
  17856. sed 's/^/| /' conftest.$ac_ext >&5
  17857. ac_cv_type_size_t=no
  17858. fi
  17859. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17860. fi
  17861. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17862. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17863. if test $ac_cv_type_size_t = yes; then
  17864. :
  17865. else
  17866. cat >>confdefs.h <<_ACEOF
  17867. #define size_t unsigned
  17868. _ACEOF
  17869. fi
  17870. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17871. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17872. if test "${ac_cv_header_time+set}" = set; then
  17873. echo $ECHO_N "(cached) $ECHO_C" >&6
  17874. else
  17875. cat >conftest.$ac_ext <<_ACEOF
  17876. /* confdefs.h. */
  17877. _ACEOF
  17878. cat confdefs.h >>conftest.$ac_ext
  17879. cat >>conftest.$ac_ext <<_ACEOF
  17880. /* end confdefs.h. */
  17881. #include <sys/types.h>
  17882. #include <sys/time.h>
  17883. #include <time.h>
  17884. int
  17885. main ()
  17886. {
  17887. if ((struct tm *) 0)
  17888. return 0;
  17889. ;
  17890. return 0;
  17891. }
  17892. _ACEOF
  17893. rm -f conftest.$ac_objext
  17894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17895. (eval $ac_compile) 2>conftest.er1
  17896. ac_status=$?
  17897. grep -v '^ *+' conftest.er1 >conftest.err
  17898. rm -f conftest.er1
  17899. cat conftest.err >&5
  17900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17901. (exit $ac_status); } &&
  17902. { ac_try='test -z "$ac_c_werror_flag"
  17903. || test ! -s conftest.err'
  17904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17905. (eval $ac_try) 2>&5
  17906. ac_status=$?
  17907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17908. (exit $ac_status); }; } &&
  17909. { ac_try='test -s conftest.$ac_objext'
  17910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17911. (eval $ac_try) 2>&5
  17912. ac_status=$?
  17913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17914. (exit $ac_status); }; }; then
  17915. ac_cv_header_time=yes
  17916. else
  17917. echo "$as_me: failed program was:" >&5
  17918. sed 's/^/| /' conftest.$ac_ext >&5
  17919. ac_cv_header_time=no
  17920. fi
  17921. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17922. fi
  17923. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17924. echo "${ECHO_T}$ac_cv_header_time" >&6
  17925. if test $ac_cv_header_time = yes; then
  17926. cat >>confdefs.h <<\_ACEOF
  17927. #define TIME_WITH_SYS_TIME 1
  17928. _ACEOF
  17929. fi
  17930. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17931. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17932. if test "${ac_cv_struct_tm+set}" = set; then
  17933. echo $ECHO_N "(cached) $ECHO_C" >&6
  17934. else
  17935. cat >conftest.$ac_ext <<_ACEOF
  17936. /* confdefs.h. */
  17937. _ACEOF
  17938. cat confdefs.h >>conftest.$ac_ext
  17939. cat >>conftest.$ac_ext <<_ACEOF
  17940. /* end confdefs.h. */
  17941. #include <sys/types.h>
  17942. #include <time.h>
  17943. int
  17944. main ()
  17945. {
  17946. struct tm *tp; tp->tm_sec;
  17947. ;
  17948. return 0;
  17949. }
  17950. _ACEOF
  17951. rm -f conftest.$ac_objext
  17952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17953. (eval $ac_compile) 2>conftest.er1
  17954. ac_status=$?
  17955. grep -v '^ *+' conftest.er1 >conftest.err
  17956. rm -f conftest.er1
  17957. cat conftest.err >&5
  17958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17959. (exit $ac_status); } &&
  17960. { ac_try='test -z "$ac_c_werror_flag"
  17961. || test ! -s conftest.err'
  17962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17963. (eval $ac_try) 2>&5
  17964. ac_status=$?
  17965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17966. (exit $ac_status); }; } &&
  17967. { ac_try='test -s conftest.$ac_objext'
  17968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17969. (eval $ac_try) 2>&5
  17970. ac_status=$?
  17971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17972. (exit $ac_status); }; }; then
  17973. ac_cv_struct_tm=time.h
  17974. else
  17975. echo "$as_me: failed program was:" >&5
  17976. sed 's/^/| /' conftest.$ac_ext >&5
  17977. ac_cv_struct_tm=sys/time.h
  17978. fi
  17979. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17980. fi
  17981. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  17982. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  17983. if test $ac_cv_struct_tm = sys/time.h; then
  17984. cat >>confdefs.h <<\_ACEOF
  17985. #define TM_IN_SYS_TIME 1
  17986. _ACEOF
  17987. fi
  17988. # Checks for library functions.
  17989. for ac_header in unistd.h
  17990. do
  17991. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17992. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17993. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17994. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17995. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17996. echo $ECHO_N "(cached) $ECHO_C" >&6
  17997. fi
  17998. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17999. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18000. else
  18001. # Is the header compilable?
  18002. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18003. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18004. cat >conftest.$ac_ext <<_ACEOF
  18005. /* confdefs.h. */
  18006. _ACEOF
  18007. cat confdefs.h >>conftest.$ac_ext
  18008. cat >>conftest.$ac_ext <<_ACEOF
  18009. /* end confdefs.h. */
  18010. $ac_includes_default
  18011. #include <$ac_header>
  18012. _ACEOF
  18013. rm -f conftest.$ac_objext
  18014. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18015. (eval $ac_compile) 2>conftest.er1
  18016. ac_status=$?
  18017. grep -v '^ *+' conftest.er1 >conftest.err
  18018. rm -f conftest.er1
  18019. cat conftest.err >&5
  18020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18021. (exit $ac_status); } &&
  18022. { ac_try='test -z "$ac_c_werror_flag"
  18023. || test ! -s conftest.err'
  18024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18025. (eval $ac_try) 2>&5
  18026. ac_status=$?
  18027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18028. (exit $ac_status); }; } &&
  18029. { ac_try='test -s conftest.$ac_objext'
  18030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18031. (eval $ac_try) 2>&5
  18032. ac_status=$?
  18033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18034. (exit $ac_status); }; }; then
  18035. ac_header_compiler=yes
  18036. else
  18037. echo "$as_me: failed program was:" >&5
  18038. sed 's/^/| /' conftest.$ac_ext >&5
  18039. ac_header_compiler=no
  18040. fi
  18041. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18042. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18043. echo "${ECHO_T}$ac_header_compiler" >&6
  18044. # Is the header present?
  18045. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18046. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18047. cat >conftest.$ac_ext <<_ACEOF
  18048. /* confdefs.h. */
  18049. _ACEOF
  18050. cat confdefs.h >>conftest.$ac_ext
  18051. cat >>conftest.$ac_ext <<_ACEOF
  18052. /* end confdefs.h. */
  18053. #include <$ac_header>
  18054. _ACEOF
  18055. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18056. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18057. ac_status=$?
  18058. grep -v '^ *+' conftest.er1 >conftest.err
  18059. rm -f conftest.er1
  18060. cat conftest.err >&5
  18061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18062. (exit $ac_status); } >/dev/null; then
  18063. if test -s conftest.err; then
  18064. ac_cpp_err=$ac_c_preproc_warn_flag
  18065. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18066. else
  18067. ac_cpp_err=
  18068. fi
  18069. else
  18070. ac_cpp_err=yes
  18071. fi
  18072. if test -z "$ac_cpp_err"; then
  18073. ac_header_preproc=yes
  18074. else
  18075. echo "$as_me: failed program was:" >&5
  18076. sed 's/^/| /' conftest.$ac_ext >&5
  18077. ac_header_preproc=no
  18078. fi
  18079. rm -f conftest.err conftest.$ac_ext
  18080. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18081. echo "${ECHO_T}$ac_header_preproc" >&6
  18082. # So? What about this header?
  18083. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18084. yes:no: )
  18085. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18086. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18087. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18088. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18089. ac_header_preproc=yes
  18090. ;;
  18091. no:yes:* )
  18092. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18093. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18094. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18095. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18096. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18097. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18098. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18099. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18100. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18101. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18102. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18103. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18104. (
  18105. cat <<\_ASBOX
  18106. ## ------------------------------------------ ##
  18107. ## Report this to http://bugzilla.redhat.com/ ##
  18108. ## ------------------------------------------ ##
  18109. _ASBOX
  18110. ) |
  18111. sed "s/^/$as_me: WARNING: /" >&2
  18112. ;;
  18113. esac
  18114. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18115. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18116. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18117. echo $ECHO_N "(cached) $ECHO_C" >&6
  18118. else
  18119. eval "$as_ac_Header=\$ac_header_preproc"
  18120. fi
  18121. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18122. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18123. fi
  18124. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18125. cat >>confdefs.h <<_ACEOF
  18126. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18127. _ACEOF
  18128. fi
  18129. done
  18130. echo "$as_me:$LINENO: checking for working chown" >&5
  18131. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18132. if test "${ac_cv_func_chown_works+set}" = set; then
  18133. echo $ECHO_N "(cached) $ECHO_C" >&6
  18134. else
  18135. if test "$cross_compiling" = yes; then
  18136. ac_cv_func_chown_works=no
  18137. else
  18138. cat >conftest.$ac_ext <<_ACEOF
  18139. /* confdefs.h. */
  18140. _ACEOF
  18141. cat confdefs.h >>conftest.$ac_ext
  18142. cat >>conftest.$ac_ext <<_ACEOF
  18143. /* end confdefs.h. */
  18144. $ac_includes_default
  18145. #include <fcntl.h>
  18146. int
  18147. main ()
  18148. {
  18149. char *f = "conftest.chown";
  18150. struct stat before, after;
  18151. if (creat (f, 0600) < 0)
  18152. exit (1);
  18153. if (stat (f, &before) < 0)
  18154. exit (1);
  18155. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18156. exit (1);
  18157. if (stat (f, &after) < 0)
  18158. exit (1);
  18159. exit ((before.st_uid == after.st_uid
  18160. && before.st_gid == after.st_gid) ? 0 : 1);
  18161. ;
  18162. return 0;
  18163. }
  18164. _ACEOF
  18165. rm -f conftest$ac_exeext
  18166. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18167. (eval $ac_link) 2>&5
  18168. ac_status=$?
  18169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18170. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18171. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18172. (eval $ac_try) 2>&5
  18173. ac_status=$?
  18174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18175. (exit $ac_status); }; }; then
  18176. ac_cv_func_chown_works=yes
  18177. else
  18178. echo "$as_me: program exited with status $ac_status" >&5
  18179. echo "$as_me: failed program was:" >&5
  18180. sed 's/^/| /' conftest.$ac_ext >&5
  18181. ( exit $ac_status )
  18182. ac_cv_func_chown_works=no
  18183. fi
  18184. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18185. fi
  18186. rm -f conftest.chown
  18187. fi
  18188. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18189. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18190. if test $ac_cv_func_chown_works = yes; then
  18191. cat >>confdefs.h <<\_ACEOF
  18192. #define HAVE_CHOWN 1
  18193. _ACEOF
  18194. fi
  18195. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18196. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18197. if test "${ac_cv_func_closedir_void+set}" = set; then
  18198. echo $ECHO_N "(cached) $ECHO_C" >&6
  18199. else
  18200. if test "$cross_compiling" = yes; then
  18201. ac_cv_func_closedir_void=yes
  18202. else
  18203. cat >conftest.$ac_ext <<_ACEOF
  18204. /* confdefs.h. */
  18205. _ACEOF
  18206. cat confdefs.h >>conftest.$ac_ext
  18207. cat >>conftest.$ac_ext <<_ACEOF
  18208. /* end confdefs.h. */
  18209. $ac_includes_default
  18210. #include <$ac_header_dirent>
  18211. #ifndef __cplusplus
  18212. int closedir ();
  18213. #endif
  18214. int
  18215. main ()
  18216. {
  18217. exit (closedir (opendir (".")) != 0);
  18218. ;
  18219. return 0;
  18220. }
  18221. _ACEOF
  18222. rm -f conftest$ac_exeext
  18223. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18224. (eval $ac_link) 2>&5
  18225. ac_status=$?
  18226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18227. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18229. (eval $ac_try) 2>&5
  18230. ac_status=$?
  18231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18232. (exit $ac_status); }; }; then
  18233. ac_cv_func_closedir_void=no
  18234. else
  18235. echo "$as_me: program exited with status $ac_status" >&5
  18236. echo "$as_me: failed program was:" >&5
  18237. sed 's/^/| /' conftest.$ac_ext >&5
  18238. ( exit $ac_status )
  18239. ac_cv_func_closedir_void=yes
  18240. fi
  18241. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18242. fi
  18243. fi
  18244. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18245. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18246. if test $ac_cv_func_closedir_void = yes; then
  18247. cat >>confdefs.h <<\_ACEOF
  18248. #define CLOSEDIR_VOID 1
  18249. _ACEOF
  18250. fi
  18251. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18252. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18253. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18254. echo $ECHO_N "(cached) $ECHO_C" >&6
  18255. else
  18256. cat >conftest.$ac_ext <<_ACEOF
  18257. /* confdefs.h. */
  18258. _ACEOF
  18259. cat confdefs.h >>conftest.$ac_ext
  18260. cat >>conftest.$ac_ext <<_ACEOF
  18261. /* end confdefs.h. */
  18262. $ac_includes_default
  18263. int
  18264. main ()
  18265. {
  18266. error_at_line (0, 0, "", 0, "");
  18267. ;
  18268. return 0;
  18269. }
  18270. _ACEOF
  18271. rm -f conftest.$ac_objext conftest$ac_exeext
  18272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18273. (eval $ac_link) 2>conftest.er1
  18274. ac_status=$?
  18275. grep -v '^ *+' conftest.er1 >conftest.err
  18276. rm -f conftest.er1
  18277. cat conftest.err >&5
  18278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18279. (exit $ac_status); } &&
  18280. { ac_try='test -z "$ac_c_werror_flag"
  18281. || test ! -s conftest.err'
  18282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18283. (eval $ac_try) 2>&5
  18284. ac_status=$?
  18285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18286. (exit $ac_status); }; } &&
  18287. { ac_try='test -s conftest$ac_exeext'
  18288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18289. (eval $ac_try) 2>&5
  18290. ac_status=$?
  18291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18292. (exit $ac_status); }; }; then
  18293. ac_cv_lib_error_at_line=yes
  18294. else
  18295. echo "$as_me: failed program was:" >&5
  18296. sed 's/^/| /' conftest.$ac_ext >&5
  18297. ac_cv_lib_error_at_line=no
  18298. fi
  18299. rm -f conftest.err conftest.$ac_objext \
  18300. conftest$ac_exeext conftest.$ac_ext
  18301. fi
  18302. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18303. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18304. if test $ac_cv_lib_error_at_line = no; then
  18305. case $LIBOBJS in
  18306. "error.$ac_objext" | \
  18307. *" error.$ac_objext" | \
  18308. "error.$ac_objext "* | \
  18309. *" error.$ac_objext "* ) ;;
  18310. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18311. esac
  18312. fi
  18313. for ac_header in unistd.h vfork.h
  18314. do
  18315. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18316. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18317. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18318. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18319. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18320. echo $ECHO_N "(cached) $ECHO_C" >&6
  18321. fi
  18322. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18323. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18324. else
  18325. # Is the header compilable?
  18326. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18327. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18328. cat >conftest.$ac_ext <<_ACEOF
  18329. /* confdefs.h. */
  18330. _ACEOF
  18331. cat confdefs.h >>conftest.$ac_ext
  18332. cat >>conftest.$ac_ext <<_ACEOF
  18333. /* end confdefs.h. */
  18334. $ac_includes_default
  18335. #include <$ac_header>
  18336. _ACEOF
  18337. rm -f conftest.$ac_objext
  18338. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18339. (eval $ac_compile) 2>conftest.er1
  18340. ac_status=$?
  18341. grep -v '^ *+' conftest.er1 >conftest.err
  18342. rm -f conftest.er1
  18343. cat conftest.err >&5
  18344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18345. (exit $ac_status); } &&
  18346. { ac_try='test -z "$ac_c_werror_flag"
  18347. || test ! -s conftest.err'
  18348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18349. (eval $ac_try) 2>&5
  18350. ac_status=$?
  18351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18352. (exit $ac_status); }; } &&
  18353. { ac_try='test -s conftest.$ac_objext'
  18354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18355. (eval $ac_try) 2>&5
  18356. ac_status=$?
  18357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18358. (exit $ac_status); }; }; then
  18359. ac_header_compiler=yes
  18360. else
  18361. echo "$as_me: failed program was:" >&5
  18362. sed 's/^/| /' conftest.$ac_ext >&5
  18363. ac_header_compiler=no
  18364. fi
  18365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18366. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18367. echo "${ECHO_T}$ac_header_compiler" >&6
  18368. # Is the header present?
  18369. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18370. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18371. cat >conftest.$ac_ext <<_ACEOF
  18372. /* confdefs.h. */
  18373. _ACEOF
  18374. cat confdefs.h >>conftest.$ac_ext
  18375. cat >>conftest.$ac_ext <<_ACEOF
  18376. /* end confdefs.h. */
  18377. #include <$ac_header>
  18378. _ACEOF
  18379. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18380. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18381. ac_status=$?
  18382. grep -v '^ *+' conftest.er1 >conftest.err
  18383. rm -f conftest.er1
  18384. cat conftest.err >&5
  18385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18386. (exit $ac_status); } >/dev/null; then
  18387. if test -s conftest.err; then
  18388. ac_cpp_err=$ac_c_preproc_warn_flag
  18389. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18390. else
  18391. ac_cpp_err=
  18392. fi
  18393. else
  18394. ac_cpp_err=yes
  18395. fi
  18396. if test -z "$ac_cpp_err"; then
  18397. ac_header_preproc=yes
  18398. else
  18399. echo "$as_me: failed program was:" >&5
  18400. sed 's/^/| /' conftest.$ac_ext >&5
  18401. ac_header_preproc=no
  18402. fi
  18403. rm -f conftest.err conftest.$ac_ext
  18404. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18405. echo "${ECHO_T}$ac_header_preproc" >&6
  18406. # So? What about this header?
  18407. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18408. yes:no: )
  18409. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18410. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18411. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18412. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18413. ac_header_preproc=yes
  18414. ;;
  18415. no:yes:* )
  18416. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18417. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18418. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18419. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18420. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18421. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18422. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18423. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18424. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18425. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18426. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18427. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18428. (
  18429. cat <<\_ASBOX
  18430. ## ------------------------------------------ ##
  18431. ## Report this to http://bugzilla.redhat.com/ ##
  18432. ## ------------------------------------------ ##
  18433. _ASBOX
  18434. ) |
  18435. sed "s/^/$as_me: WARNING: /" >&2
  18436. ;;
  18437. esac
  18438. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18439. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18440. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18441. echo $ECHO_N "(cached) $ECHO_C" >&6
  18442. else
  18443. eval "$as_ac_Header=\$ac_header_preproc"
  18444. fi
  18445. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18446. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18447. fi
  18448. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18449. cat >>confdefs.h <<_ACEOF
  18450. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18451. _ACEOF
  18452. fi
  18453. done
  18454. for ac_func in fork vfork
  18455. do
  18456. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18457. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18458. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18459. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18460. echo $ECHO_N "(cached) $ECHO_C" >&6
  18461. else
  18462. cat >conftest.$ac_ext <<_ACEOF
  18463. /* confdefs.h. */
  18464. _ACEOF
  18465. cat confdefs.h >>conftest.$ac_ext
  18466. cat >>conftest.$ac_ext <<_ACEOF
  18467. /* end confdefs.h. */
  18468. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18469. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18470. #define $ac_func innocuous_$ac_func
  18471. /* System header to define __stub macros and hopefully few prototypes,
  18472. which can conflict with char $ac_func (); below.
  18473. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18474. <limits.h> exists even on freestanding compilers. */
  18475. #ifdef __STDC__
  18476. # include <limits.h>
  18477. #else
  18478. # include <assert.h>
  18479. #endif
  18480. #undef $ac_func
  18481. /* Override any gcc2 internal prototype to avoid an error. */
  18482. #ifdef __cplusplus
  18483. extern "C"
  18484. {
  18485. #endif
  18486. /* We use char because int might match the return type of a gcc2
  18487. builtin and then its argument prototype would still apply. */
  18488. char $ac_func ();
  18489. /* The GNU C library defines this for functions which it implements
  18490. to always fail with ENOSYS. Some functions are actually named
  18491. something starting with __ and the normal name is an alias. */
  18492. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18493. choke me
  18494. #else
  18495. char (*f) () = $ac_func;
  18496. #endif
  18497. #ifdef __cplusplus
  18498. }
  18499. #endif
  18500. int
  18501. main ()
  18502. {
  18503. return f != $ac_func;
  18504. ;
  18505. return 0;
  18506. }
  18507. _ACEOF
  18508. rm -f conftest.$ac_objext conftest$ac_exeext
  18509. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18510. (eval $ac_link) 2>conftest.er1
  18511. ac_status=$?
  18512. grep -v '^ *+' conftest.er1 >conftest.err
  18513. rm -f conftest.er1
  18514. cat conftest.err >&5
  18515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18516. (exit $ac_status); } &&
  18517. { ac_try='test -z "$ac_c_werror_flag"
  18518. || test ! -s conftest.err'
  18519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18520. (eval $ac_try) 2>&5
  18521. ac_status=$?
  18522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18523. (exit $ac_status); }; } &&
  18524. { ac_try='test -s conftest$ac_exeext'
  18525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18526. (eval $ac_try) 2>&5
  18527. ac_status=$?
  18528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18529. (exit $ac_status); }; }; then
  18530. eval "$as_ac_var=yes"
  18531. else
  18532. echo "$as_me: failed program was:" >&5
  18533. sed 's/^/| /' conftest.$ac_ext >&5
  18534. eval "$as_ac_var=no"
  18535. fi
  18536. rm -f conftest.err conftest.$ac_objext \
  18537. conftest$ac_exeext conftest.$ac_ext
  18538. fi
  18539. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18540. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18541. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18542. cat >>confdefs.h <<_ACEOF
  18543. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18544. _ACEOF
  18545. fi
  18546. done
  18547. if test "x$ac_cv_func_fork" = xyes; then
  18548. echo "$as_me:$LINENO: checking for working fork" >&5
  18549. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18550. if test "${ac_cv_func_fork_works+set}" = set; then
  18551. echo $ECHO_N "(cached) $ECHO_C" >&6
  18552. else
  18553. if test "$cross_compiling" = yes; then
  18554. ac_cv_func_fork_works=cross
  18555. else
  18556. cat >conftest.$ac_ext <<_ACEOF
  18557. /* By Ruediger Kuhlmann. */
  18558. #include <sys/types.h>
  18559. #if HAVE_UNISTD_H
  18560. # include <unistd.h>
  18561. #endif
  18562. /* Some systems only have a dummy stub for fork() */
  18563. int main ()
  18564. {
  18565. if (fork() < 0)
  18566. exit (1);
  18567. exit (0);
  18568. }
  18569. _ACEOF
  18570. rm -f conftest$ac_exeext
  18571. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18572. (eval $ac_link) 2>&5
  18573. ac_status=$?
  18574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18575. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18577. (eval $ac_try) 2>&5
  18578. ac_status=$?
  18579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18580. (exit $ac_status); }; }; then
  18581. ac_cv_func_fork_works=yes
  18582. else
  18583. echo "$as_me: program exited with status $ac_status" >&5
  18584. echo "$as_me: failed program was:" >&5
  18585. sed 's/^/| /' conftest.$ac_ext >&5
  18586. ( exit $ac_status )
  18587. ac_cv_func_fork_works=no
  18588. fi
  18589. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18590. fi
  18591. fi
  18592. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18593. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18594. else
  18595. ac_cv_func_fork_works=$ac_cv_func_fork
  18596. fi
  18597. if test "x$ac_cv_func_fork_works" = xcross; then
  18598. case $host in
  18599. *-*-amigaos* | *-*-msdosdjgpp*)
  18600. # Override, as these systems have only a dummy fork() stub
  18601. ac_cv_func_fork_works=no
  18602. ;;
  18603. *)
  18604. ac_cv_func_fork_works=yes
  18605. ;;
  18606. esac
  18607. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18608. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18609. fi
  18610. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18611. if test "x$ac_cv_func_vfork" = xyes; then
  18612. echo "$as_me:$LINENO: checking for working vfork" >&5
  18613. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18614. if test "${ac_cv_func_vfork_works+set}" = set; then
  18615. echo $ECHO_N "(cached) $ECHO_C" >&6
  18616. else
  18617. if test "$cross_compiling" = yes; then
  18618. ac_cv_func_vfork_works=cross
  18619. else
  18620. cat >conftest.$ac_ext <<_ACEOF
  18621. /* confdefs.h. */
  18622. _ACEOF
  18623. cat confdefs.h >>conftest.$ac_ext
  18624. cat >>conftest.$ac_ext <<_ACEOF
  18625. /* end confdefs.h. */
  18626. /* Thanks to Paul Eggert for this test. */
  18627. #include <stdio.h>
  18628. #include <stdlib.h>
  18629. #include <sys/types.h>
  18630. #include <sys/stat.h>
  18631. #include <sys/wait.h>
  18632. #if HAVE_UNISTD_H
  18633. # include <unistd.h>
  18634. #endif
  18635. #if HAVE_VFORK_H
  18636. # include <vfork.h>
  18637. #endif
  18638. /* On some sparc systems, changes by the child to local and incoming
  18639. argument registers are propagated back to the parent. The compiler
  18640. is told about this with #include <vfork.h>, but some compilers
  18641. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18642. static variable whose address is put into a register that is
  18643. clobbered by the vfork. */
  18644. static void
  18645. #ifdef __cplusplus
  18646. sparc_address_test (int arg)
  18647. # else
  18648. sparc_address_test (arg) int arg;
  18649. #endif
  18650. {
  18651. static pid_t child;
  18652. if (!child) {
  18653. child = vfork ();
  18654. if (child < 0) {
  18655. perror ("vfork");
  18656. _exit(2);
  18657. }
  18658. if (!child) {
  18659. arg = getpid();
  18660. write(-1, "", 0);
  18661. _exit (arg);
  18662. }
  18663. }
  18664. }
  18665. int
  18666. main ()
  18667. {
  18668. pid_t parent = getpid ();
  18669. pid_t child;
  18670. sparc_address_test (0);
  18671. child = vfork ();
  18672. if (child == 0) {
  18673. /* Here is another test for sparc vfork register problems. This
  18674. test uses lots of local variables, at least as many local
  18675. variables as main has allocated so far including compiler
  18676. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18677. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18678. reuse the register of parent for one of the local variables,
  18679. since it will think that parent can't possibly be used any more
  18680. in this routine. Assigning to the local variable will thus
  18681. munge parent in the parent process. */
  18682. pid_t
  18683. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18684. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18685. /* Convince the compiler that p..p7 are live; otherwise, it might
  18686. use the same hardware register for all 8 local variables. */
  18687. if (p != p1 || p != p2 || p != p3 || p != p4
  18688. || p != p5 || p != p6 || p != p7)
  18689. _exit(1);
  18690. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18691. from child file descriptors. If the child closes a descriptor
  18692. before it execs or exits, this munges the parent's descriptor
  18693. as well. Test for this by closing stdout in the child. */
  18694. _exit(close(fileno(stdout)) != 0);
  18695. } else {
  18696. int status;
  18697. struct stat st;
  18698. while (wait(&status) != child)
  18699. ;
  18700. exit(
  18701. /* Was there some problem with vforking? */
  18702. child < 0
  18703. /* Did the child fail? (This shouldn't happen.) */
  18704. || status
  18705. /* Did the vfork/compiler bug occur? */
  18706. || parent != getpid()
  18707. /* Did the file descriptor bug occur? */
  18708. || fstat(fileno(stdout), &st) != 0
  18709. );
  18710. }
  18711. }
  18712. _ACEOF
  18713. rm -f conftest$ac_exeext
  18714. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18715. (eval $ac_link) 2>&5
  18716. ac_status=$?
  18717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18718. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18720. (eval $ac_try) 2>&5
  18721. ac_status=$?
  18722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18723. (exit $ac_status); }; }; then
  18724. ac_cv_func_vfork_works=yes
  18725. else
  18726. echo "$as_me: program exited with status $ac_status" >&5
  18727. echo "$as_me: failed program was:" >&5
  18728. sed 's/^/| /' conftest.$ac_ext >&5
  18729. ( exit $ac_status )
  18730. ac_cv_func_vfork_works=no
  18731. fi
  18732. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18733. fi
  18734. fi
  18735. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18736. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18737. fi;
  18738. if test "x$ac_cv_func_fork_works" = xcross; then
  18739. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18740. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18741. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18742. fi
  18743. if test "x$ac_cv_func_vfork_works" = xyes; then
  18744. cat >>confdefs.h <<\_ACEOF
  18745. #define HAVE_WORKING_VFORK 1
  18746. _ACEOF
  18747. else
  18748. cat >>confdefs.h <<\_ACEOF
  18749. #define vfork fork
  18750. _ACEOF
  18751. fi
  18752. if test "x$ac_cv_func_fork_works" = xyes; then
  18753. cat >>confdefs.h <<\_ACEOF
  18754. #define HAVE_WORKING_FORK 1
  18755. _ACEOF
  18756. fi
  18757. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18758. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18759. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18760. echo $ECHO_N "(cached) $ECHO_C" >&6
  18761. else
  18762. rm -f conftest.sym conftest.file
  18763. echo >conftest.file
  18764. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18765. if test "$cross_compiling" = yes; then
  18766. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18767. else
  18768. cat >conftest.$ac_ext <<_ACEOF
  18769. /* confdefs.h. */
  18770. _ACEOF
  18771. cat confdefs.h >>conftest.$ac_ext
  18772. cat >>conftest.$ac_ext <<_ACEOF
  18773. /* end confdefs.h. */
  18774. $ac_includes_default
  18775. int
  18776. main ()
  18777. {
  18778. struct stat sbuf;
  18779. /* Linux will dereference the symlink and fail.
  18780. That is better in the sense that it means we will not
  18781. have to compile and use the lstat wrapper. */
  18782. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18783. ;
  18784. return 0;
  18785. }
  18786. _ACEOF
  18787. rm -f conftest$ac_exeext
  18788. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18789. (eval $ac_link) 2>&5
  18790. ac_status=$?
  18791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18792. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18794. (eval $ac_try) 2>&5
  18795. ac_status=$?
  18796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18797. (exit $ac_status); }; }; then
  18798. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18799. else
  18800. echo "$as_me: program exited with status $ac_status" >&5
  18801. echo "$as_me: failed program was:" >&5
  18802. sed 's/^/| /' conftest.$ac_ext >&5
  18803. ( exit $ac_status )
  18804. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18805. fi
  18806. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18807. fi
  18808. else
  18809. # If the `ln -s' command failed, then we probably don't even
  18810. # have an lstat function.
  18811. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18812. fi
  18813. rm -f conftest.sym conftest.file
  18814. fi
  18815. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18816. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18817. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18818. cat >>confdefs.h <<_ACEOF
  18819. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18820. _ACEOF
  18821. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18822. case $LIBOBJS in
  18823. "lstat.$ac_objext" | \
  18824. *" lstat.$ac_objext" | \
  18825. "lstat.$ac_objext "* | \
  18826. *" lstat.$ac_objext "* ) ;;
  18827. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18828. esac
  18829. fi
  18830. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18831. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18832. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18833. echo $ECHO_N "(cached) $ECHO_C" >&6
  18834. else
  18835. if test "$cross_compiling" = yes; then
  18836. ac_cv_func_lstat_empty_string_bug=yes
  18837. else
  18838. cat >conftest.$ac_ext <<_ACEOF
  18839. /* confdefs.h. */
  18840. _ACEOF
  18841. cat confdefs.h >>conftest.$ac_ext
  18842. cat >>conftest.$ac_ext <<_ACEOF
  18843. /* end confdefs.h. */
  18844. $ac_includes_default
  18845. int
  18846. main ()
  18847. {
  18848. struct stat sbuf;
  18849. exit (lstat ("", &sbuf) ? 1 : 0);
  18850. ;
  18851. return 0;
  18852. }
  18853. _ACEOF
  18854. rm -f conftest$ac_exeext
  18855. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18856. (eval $ac_link) 2>&5
  18857. ac_status=$?
  18858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18859. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18861. (eval $ac_try) 2>&5
  18862. ac_status=$?
  18863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18864. (exit $ac_status); }; }; then
  18865. ac_cv_func_lstat_empty_string_bug=yes
  18866. else
  18867. echo "$as_me: program exited with status $ac_status" >&5
  18868. echo "$as_me: failed program was:" >&5
  18869. sed 's/^/| /' conftest.$ac_ext >&5
  18870. ( exit $ac_status )
  18871. ac_cv_func_lstat_empty_string_bug=no
  18872. fi
  18873. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18874. fi
  18875. fi
  18876. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18877. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18878. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18879. case $LIBOBJS in
  18880. "lstat.$ac_objext" | \
  18881. *" lstat.$ac_objext" | \
  18882. "lstat.$ac_objext "* | \
  18883. *" lstat.$ac_objext "* ) ;;
  18884. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18885. esac
  18886. cat >>confdefs.h <<_ACEOF
  18887. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18888. _ACEOF
  18889. fi
  18890. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18891. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18892. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18893. echo $ECHO_N "(cached) $ECHO_C" >&6
  18894. else
  18895. rm -f conftest.sym conftest.file
  18896. echo >conftest.file
  18897. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18898. if test "$cross_compiling" = yes; then
  18899. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18900. else
  18901. cat >conftest.$ac_ext <<_ACEOF
  18902. /* confdefs.h. */
  18903. _ACEOF
  18904. cat confdefs.h >>conftest.$ac_ext
  18905. cat >>conftest.$ac_ext <<_ACEOF
  18906. /* end confdefs.h. */
  18907. $ac_includes_default
  18908. int
  18909. main ()
  18910. {
  18911. struct stat sbuf;
  18912. /* Linux will dereference the symlink and fail.
  18913. That is better in the sense that it means we will not
  18914. have to compile and use the lstat wrapper. */
  18915. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18916. ;
  18917. return 0;
  18918. }
  18919. _ACEOF
  18920. rm -f conftest$ac_exeext
  18921. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18922. (eval $ac_link) 2>&5
  18923. ac_status=$?
  18924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18925. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18927. (eval $ac_try) 2>&5
  18928. ac_status=$?
  18929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18930. (exit $ac_status); }; }; then
  18931. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18932. else
  18933. echo "$as_me: program exited with status $ac_status" >&5
  18934. echo "$as_me: failed program was:" >&5
  18935. sed 's/^/| /' conftest.$ac_ext >&5
  18936. ( exit $ac_status )
  18937. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18938. fi
  18939. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18940. fi
  18941. else
  18942. # If the `ln -s' command failed, then we probably don't even
  18943. # have an lstat function.
  18944. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18945. fi
  18946. rm -f conftest.sym conftest.file
  18947. fi
  18948. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18949. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18950. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18951. cat >>confdefs.h <<_ACEOF
  18952. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18953. _ACEOF
  18954. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18955. case $LIBOBJS in
  18956. "lstat.$ac_objext" | \
  18957. *" lstat.$ac_objext" | \
  18958. "lstat.$ac_objext "* | \
  18959. *" lstat.$ac_objext "* ) ;;
  18960. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18961. esac
  18962. fi
  18963. for ac_header in stdlib.h
  18964. do
  18965. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18966. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18967. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18968. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18969. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18970. echo $ECHO_N "(cached) $ECHO_C" >&6
  18971. fi
  18972. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18973. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18974. else
  18975. # Is the header compilable?
  18976. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18977. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18978. cat >conftest.$ac_ext <<_ACEOF
  18979. /* confdefs.h. */
  18980. _ACEOF
  18981. cat confdefs.h >>conftest.$ac_ext
  18982. cat >>conftest.$ac_ext <<_ACEOF
  18983. /* end confdefs.h. */
  18984. $ac_includes_default
  18985. #include <$ac_header>
  18986. _ACEOF
  18987. rm -f conftest.$ac_objext
  18988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18989. (eval $ac_compile) 2>conftest.er1
  18990. ac_status=$?
  18991. grep -v '^ *+' conftest.er1 >conftest.err
  18992. rm -f conftest.er1
  18993. cat conftest.err >&5
  18994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18995. (exit $ac_status); } &&
  18996. { ac_try='test -z "$ac_c_werror_flag"
  18997. || test ! -s conftest.err'
  18998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18999. (eval $ac_try) 2>&5
  19000. ac_status=$?
  19001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19002. (exit $ac_status); }; } &&
  19003. { ac_try='test -s conftest.$ac_objext'
  19004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19005. (eval $ac_try) 2>&5
  19006. ac_status=$?
  19007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19008. (exit $ac_status); }; }; then
  19009. ac_header_compiler=yes
  19010. else
  19011. echo "$as_me: failed program was:" >&5
  19012. sed 's/^/| /' conftest.$ac_ext >&5
  19013. ac_header_compiler=no
  19014. fi
  19015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19016. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19017. echo "${ECHO_T}$ac_header_compiler" >&6
  19018. # Is the header present?
  19019. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19020. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19021. cat >conftest.$ac_ext <<_ACEOF
  19022. /* confdefs.h. */
  19023. _ACEOF
  19024. cat confdefs.h >>conftest.$ac_ext
  19025. cat >>conftest.$ac_ext <<_ACEOF
  19026. /* end confdefs.h. */
  19027. #include <$ac_header>
  19028. _ACEOF
  19029. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19030. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19031. ac_status=$?
  19032. grep -v '^ *+' conftest.er1 >conftest.err
  19033. rm -f conftest.er1
  19034. cat conftest.err >&5
  19035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19036. (exit $ac_status); } >/dev/null; then
  19037. if test -s conftest.err; then
  19038. ac_cpp_err=$ac_c_preproc_warn_flag
  19039. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19040. else
  19041. ac_cpp_err=
  19042. fi
  19043. else
  19044. ac_cpp_err=yes
  19045. fi
  19046. if test -z "$ac_cpp_err"; then
  19047. ac_header_preproc=yes
  19048. else
  19049. echo "$as_me: failed program was:" >&5
  19050. sed 's/^/| /' conftest.$ac_ext >&5
  19051. ac_header_preproc=no
  19052. fi
  19053. rm -f conftest.err conftest.$ac_ext
  19054. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19055. echo "${ECHO_T}$ac_header_preproc" >&6
  19056. # So? What about this header?
  19057. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19058. yes:no: )
  19059. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19060. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19061. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19062. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19063. ac_header_preproc=yes
  19064. ;;
  19065. no:yes:* )
  19066. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19067. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19068. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19069. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19070. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19071. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19072. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19073. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19074. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19075. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19076. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19077. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19078. (
  19079. cat <<\_ASBOX
  19080. ## ------------------------------------------ ##
  19081. ## Report this to http://bugzilla.redhat.com/ ##
  19082. ## ------------------------------------------ ##
  19083. _ASBOX
  19084. ) |
  19085. sed "s/^/$as_me: WARNING: /" >&2
  19086. ;;
  19087. esac
  19088. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19089. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19090. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19091. echo $ECHO_N "(cached) $ECHO_C" >&6
  19092. else
  19093. eval "$as_ac_Header=\$ac_header_preproc"
  19094. fi
  19095. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19096. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19097. fi
  19098. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19099. cat >>confdefs.h <<_ACEOF
  19100. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19101. _ACEOF
  19102. fi
  19103. done
  19104. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19105. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19106. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19107. echo $ECHO_N "(cached) $ECHO_C" >&6
  19108. else
  19109. if test "$cross_compiling" = yes; then
  19110. ac_cv_func_malloc_0_nonnull=no
  19111. else
  19112. cat >conftest.$ac_ext <<_ACEOF
  19113. /* confdefs.h. */
  19114. _ACEOF
  19115. cat confdefs.h >>conftest.$ac_ext
  19116. cat >>conftest.$ac_ext <<_ACEOF
  19117. /* end confdefs.h. */
  19118. #if STDC_HEADERS || HAVE_STDLIB_H
  19119. # include <stdlib.h>
  19120. #else
  19121. char *malloc ();
  19122. #endif
  19123. int
  19124. main ()
  19125. {
  19126. exit (malloc (0) ? 0 : 1);
  19127. ;
  19128. return 0;
  19129. }
  19130. _ACEOF
  19131. rm -f conftest$ac_exeext
  19132. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19133. (eval $ac_link) 2>&5
  19134. ac_status=$?
  19135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19136. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19138. (eval $ac_try) 2>&5
  19139. ac_status=$?
  19140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19141. (exit $ac_status); }; }; then
  19142. ac_cv_func_malloc_0_nonnull=yes
  19143. else
  19144. echo "$as_me: program exited with status $ac_status" >&5
  19145. echo "$as_me: failed program was:" >&5
  19146. sed 's/^/| /' conftest.$ac_ext >&5
  19147. ( exit $ac_status )
  19148. ac_cv_func_malloc_0_nonnull=no
  19149. fi
  19150. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19151. fi
  19152. fi
  19153. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19154. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19155. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19156. cat >>confdefs.h <<\_ACEOF
  19157. #define HAVE_MALLOC 1
  19158. _ACEOF
  19159. else
  19160. cat >>confdefs.h <<\_ACEOF
  19161. #define HAVE_MALLOC 0
  19162. _ACEOF
  19163. case $LIBOBJS in
  19164. "malloc.$ac_objext" | \
  19165. *" malloc.$ac_objext" | \
  19166. "malloc.$ac_objext "* | \
  19167. *" malloc.$ac_objext "* ) ;;
  19168. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19169. esac
  19170. cat >>confdefs.h <<\_ACEOF
  19171. #define malloc rpl_malloc
  19172. _ACEOF
  19173. fi
  19174. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19175. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19176. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19177. echo $ECHO_N "(cached) $ECHO_C" >&6
  19178. else
  19179. if test "$cross_compiling" = yes; then
  19180. ac_cv_func_memcmp_working=no
  19181. else
  19182. cat >conftest.$ac_ext <<_ACEOF
  19183. /* confdefs.h. */
  19184. _ACEOF
  19185. cat confdefs.h >>conftest.$ac_ext
  19186. cat >>conftest.$ac_ext <<_ACEOF
  19187. /* end confdefs.h. */
  19188. $ac_includes_default
  19189. int
  19190. main ()
  19191. {
  19192. /* Some versions of memcmp are not 8-bit clean. */
  19193. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19194. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19195. exit (1);
  19196. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19197. or more and with at least one buffer not starting on a 4-byte boundary.
  19198. William Lewis provided this test program. */
  19199. {
  19200. char foo[21];
  19201. char bar[21];
  19202. int i;
  19203. for (i = 0; i < 4; i++)
  19204. {
  19205. char *a = foo + i;
  19206. char *b = bar + i;
  19207. strcpy (a, "--------01111111");
  19208. strcpy (b, "--------10000000");
  19209. if (memcmp (a, b, 16) >= 0)
  19210. exit (1);
  19211. }
  19212. exit (0);
  19213. }
  19214. ;
  19215. return 0;
  19216. }
  19217. _ACEOF
  19218. rm -f conftest$ac_exeext
  19219. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19220. (eval $ac_link) 2>&5
  19221. ac_status=$?
  19222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19223. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19225. (eval $ac_try) 2>&5
  19226. ac_status=$?
  19227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19228. (exit $ac_status); }; }; then
  19229. ac_cv_func_memcmp_working=yes
  19230. else
  19231. echo "$as_me: program exited with status $ac_status" >&5
  19232. echo "$as_me: failed program was:" >&5
  19233. sed 's/^/| /' conftest.$ac_ext >&5
  19234. ( exit $ac_status )
  19235. ac_cv_func_memcmp_working=no
  19236. fi
  19237. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19238. fi
  19239. fi
  19240. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19241. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19242. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19243. "memcmp.$ac_objext" | \
  19244. *" memcmp.$ac_objext" | \
  19245. "memcmp.$ac_objext "* | \
  19246. *" memcmp.$ac_objext "* ) ;;
  19247. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19248. esac
  19249. for ac_header in stdlib.h unistd.h
  19250. do
  19251. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19252. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19253. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19254. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19255. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19256. echo $ECHO_N "(cached) $ECHO_C" >&6
  19257. fi
  19258. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19259. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19260. else
  19261. # Is the header compilable?
  19262. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19263. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19264. cat >conftest.$ac_ext <<_ACEOF
  19265. /* confdefs.h. */
  19266. _ACEOF
  19267. cat confdefs.h >>conftest.$ac_ext
  19268. cat >>conftest.$ac_ext <<_ACEOF
  19269. /* end confdefs.h. */
  19270. $ac_includes_default
  19271. #include <$ac_header>
  19272. _ACEOF
  19273. rm -f conftest.$ac_objext
  19274. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19275. (eval $ac_compile) 2>conftest.er1
  19276. ac_status=$?
  19277. grep -v '^ *+' conftest.er1 >conftest.err
  19278. rm -f conftest.er1
  19279. cat conftest.err >&5
  19280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19281. (exit $ac_status); } &&
  19282. { ac_try='test -z "$ac_c_werror_flag"
  19283. || test ! -s conftest.err'
  19284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19285. (eval $ac_try) 2>&5
  19286. ac_status=$?
  19287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19288. (exit $ac_status); }; } &&
  19289. { ac_try='test -s conftest.$ac_objext'
  19290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19291. (eval $ac_try) 2>&5
  19292. ac_status=$?
  19293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19294. (exit $ac_status); }; }; then
  19295. ac_header_compiler=yes
  19296. else
  19297. echo "$as_me: failed program was:" >&5
  19298. sed 's/^/| /' conftest.$ac_ext >&5
  19299. ac_header_compiler=no
  19300. fi
  19301. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19302. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19303. echo "${ECHO_T}$ac_header_compiler" >&6
  19304. # Is the header present?
  19305. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19306. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19307. cat >conftest.$ac_ext <<_ACEOF
  19308. /* confdefs.h. */
  19309. _ACEOF
  19310. cat confdefs.h >>conftest.$ac_ext
  19311. cat >>conftest.$ac_ext <<_ACEOF
  19312. /* end confdefs.h. */
  19313. #include <$ac_header>
  19314. _ACEOF
  19315. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19316. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19317. ac_status=$?
  19318. grep -v '^ *+' conftest.er1 >conftest.err
  19319. rm -f conftest.er1
  19320. cat conftest.err >&5
  19321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19322. (exit $ac_status); } >/dev/null; then
  19323. if test -s conftest.err; then
  19324. ac_cpp_err=$ac_c_preproc_warn_flag
  19325. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19326. else
  19327. ac_cpp_err=
  19328. fi
  19329. else
  19330. ac_cpp_err=yes
  19331. fi
  19332. if test -z "$ac_cpp_err"; then
  19333. ac_header_preproc=yes
  19334. else
  19335. echo "$as_me: failed program was:" >&5
  19336. sed 's/^/| /' conftest.$ac_ext >&5
  19337. ac_header_preproc=no
  19338. fi
  19339. rm -f conftest.err conftest.$ac_ext
  19340. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19341. echo "${ECHO_T}$ac_header_preproc" >&6
  19342. # So? What about this header?
  19343. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19344. yes:no: )
  19345. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19346. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19347. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19348. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19349. ac_header_preproc=yes
  19350. ;;
  19351. no:yes:* )
  19352. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19353. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19354. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19355. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19356. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19357. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19358. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19359. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19360. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19361. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19362. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19363. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19364. (
  19365. cat <<\_ASBOX
  19366. ## ------------------------------------------ ##
  19367. ## Report this to http://bugzilla.redhat.com/ ##
  19368. ## ------------------------------------------ ##
  19369. _ASBOX
  19370. ) |
  19371. sed "s/^/$as_me: WARNING: /" >&2
  19372. ;;
  19373. esac
  19374. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19375. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19376. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19377. echo $ECHO_N "(cached) $ECHO_C" >&6
  19378. else
  19379. eval "$as_ac_Header=\$ac_header_preproc"
  19380. fi
  19381. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19382. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19383. fi
  19384. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19385. cat >>confdefs.h <<_ACEOF
  19386. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19387. _ACEOF
  19388. fi
  19389. done
  19390. for ac_func in getpagesize
  19391. do
  19392. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19393. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19394. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19395. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19396. echo $ECHO_N "(cached) $ECHO_C" >&6
  19397. else
  19398. cat >conftest.$ac_ext <<_ACEOF
  19399. /* confdefs.h. */
  19400. _ACEOF
  19401. cat confdefs.h >>conftest.$ac_ext
  19402. cat >>conftest.$ac_ext <<_ACEOF
  19403. /* end confdefs.h. */
  19404. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19405. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19406. #define $ac_func innocuous_$ac_func
  19407. /* System header to define __stub macros and hopefully few prototypes,
  19408. which can conflict with char $ac_func (); below.
  19409. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19410. <limits.h> exists even on freestanding compilers. */
  19411. #ifdef __STDC__
  19412. # include <limits.h>
  19413. #else
  19414. # include <assert.h>
  19415. #endif
  19416. #undef $ac_func
  19417. /* Override any gcc2 internal prototype to avoid an error. */
  19418. #ifdef __cplusplus
  19419. extern "C"
  19420. {
  19421. #endif
  19422. /* We use char because int might match the return type of a gcc2
  19423. builtin and then its argument prototype would still apply. */
  19424. char $ac_func ();
  19425. /* The GNU C library defines this for functions which it implements
  19426. to always fail with ENOSYS. Some functions are actually named
  19427. something starting with __ and the normal name is an alias. */
  19428. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19429. choke me
  19430. #else
  19431. char (*f) () = $ac_func;
  19432. #endif
  19433. #ifdef __cplusplus
  19434. }
  19435. #endif
  19436. int
  19437. main ()
  19438. {
  19439. return f != $ac_func;
  19440. ;
  19441. return 0;
  19442. }
  19443. _ACEOF
  19444. rm -f conftest.$ac_objext conftest$ac_exeext
  19445. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19446. (eval $ac_link) 2>conftest.er1
  19447. ac_status=$?
  19448. grep -v '^ *+' conftest.er1 >conftest.err
  19449. rm -f conftest.er1
  19450. cat conftest.err >&5
  19451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19452. (exit $ac_status); } &&
  19453. { ac_try='test -z "$ac_c_werror_flag"
  19454. || test ! -s conftest.err'
  19455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19456. (eval $ac_try) 2>&5
  19457. ac_status=$?
  19458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19459. (exit $ac_status); }; } &&
  19460. { ac_try='test -s conftest$ac_exeext'
  19461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19462. (eval $ac_try) 2>&5
  19463. ac_status=$?
  19464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19465. (exit $ac_status); }; }; then
  19466. eval "$as_ac_var=yes"
  19467. else
  19468. echo "$as_me: failed program was:" >&5
  19469. sed 's/^/| /' conftest.$ac_ext >&5
  19470. eval "$as_ac_var=no"
  19471. fi
  19472. rm -f conftest.err conftest.$ac_objext \
  19473. conftest$ac_exeext conftest.$ac_ext
  19474. fi
  19475. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19476. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19477. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19478. cat >>confdefs.h <<_ACEOF
  19479. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19480. _ACEOF
  19481. fi
  19482. done
  19483. echo "$as_me:$LINENO: checking for working mmap" >&5
  19484. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19485. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19486. echo $ECHO_N "(cached) $ECHO_C" >&6
  19487. else
  19488. if test "$cross_compiling" = yes; then
  19489. ac_cv_func_mmap_fixed_mapped=no
  19490. else
  19491. cat >conftest.$ac_ext <<_ACEOF
  19492. /* confdefs.h. */
  19493. _ACEOF
  19494. cat confdefs.h >>conftest.$ac_ext
  19495. cat >>conftest.$ac_ext <<_ACEOF
  19496. /* end confdefs.h. */
  19497. $ac_includes_default
  19498. /* malloc might have been renamed as rpl_malloc. */
  19499. #undef malloc
  19500. /* Thanks to Mike Haertel and Jim Avera for this test.
  19501. Here is a matrix of mmap possibilities:
  19502. mmap private not fixed
  19503. mmap private fixed at somewhere currently unmapped
  19504. mmap private fixed at somewhere already mapped
  19505. mmap shared not fixed
  19506. mmap shared fixed at somewhere currently unmapped
  19507. mmap shared fixed at somewhere already mapped
  19508. For private mappings, we should verify that changes cannot be read()
  19509. back from the file, nor mmap's back from the file at a different
  19510. address. (There have been systems where private was not correctly
  19511. implemented like the infamous i386 svr4.0, and systems where the
  19512. VM page cache was not coherent with the file system buffer cache
  19513. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19514. For shared mappings, we should conversely verify that changes get
  19515. propagated back to all the places they're supposed to be.
  19516. Grep wants private fixed already mapped.
  19517. The main things grep needs to know about mmap are:
  19518. * does it exist and is it safe to write into the mmap'd area
  19519. * how to use it (BSD variants) */
  19520. #include <fcntl.h>
  19521. #include <sys/mman.h>
  19522. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19523. char *malloc ();
  19524. #endif
  19525. /* This mess was copied from the GNU getpagesize.h. */
  19526. #if !HAVE_GETPAGESIZE
  19527. /* Assume that all systems that can run configure have sys/param.h. */
  19528. # if !HAVE_SYS_PARAM_H
  19529. # define HAVE_SYS_PARAM_H 1
  19530. # endif
  19531. # ifdef _SC_PAGESIZE
  19532. # define getpagesize() sysconf(_SC_PAGESIZE)
  19533. # else /* no _SC_PAGESIZE */
  19534. # if HAVE_SYS_PARAM_H
  19535. # include <sys/param.h>
  19536. # ifdef EXEC_PAGESIZE
  19537. # define getpagesize() EXEC_PAGESIZE
  19538. # else /* no EXEC_PAGESIZE */
  19539. # ifdef NBPG
  19540. # define getpagesize() NBPG * CLSIZE
  19541. # ifndef CLSIZE
  19542. # define CLSIZE 1
  19543. # endif /* no CLSIZE */
  19544. # else /* no NBPG */
  19545. # ifdef NBPC
  19546. # define getpagesize() NBPC
  19547. # else /* no NBPC */
  19548. # ifdef PAGESIZE
  19549. # define getpagesize() PAGESIZE
  19550. # endif /* PAGESIZE */
  19551. # endif /* no NBPC */
  19552. # endif /* no NBPG */
  19553. # endif /* no EXEC_PAGESIZE */
  19554. # else /* no HAVE_SYS_PARAM_H */
  19555. # define getpagesize() 8192 /* punt totally */
  19556. # endif /* no HAVE_SYS_PARAM_H */
  19557. # endif /* no _SC_PAGESIZE */
  19558. #endif /* no HAVE_GETPAGESIZE */
  19559. int
  19560. main ()
  19561. {
  19562. char *data, *data2, *data3;
  19563. int i, pagesize;
  19564. int fd;
  19565. pagesize = getpagesize ();
  19566. /* First, make a file with some known garbage in it. */
  19567. data = (char *) malloc (pagesize);
  19568. if (!data)
  19569. exit (1);
  19570. for (i = 0; i < pagesize; ++i)
  19571. *(data + i) = rand ();
  19572. umask (0);
  19573. fd = creat ("conftest.mmap", 0600);
  19574. if (fd < 0)
  19575. exit (1);
  19576. if (write (fd, data, pagesize) != pagesize)
  19577. exit (1);
  19578. close (fd);
  19579. /* Next, try to mmap the file at a fixed address which already has
  19580. something else allocated at it. If we can, also make sure that
  19581. we see the same garbage. */
  19582. fd = open ("conftest.mmap", O_RDWR);
  19583. if (fd < 0)
  19584. exit (1);
  19585. data2 = (char *) malloc (2 * pagesize);
  19586. if (!data2)
  19587. exit (1);
  19588. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19589. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19590. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19591. exit (1);
  19592. for (i = 0; i < pagesize; ++i)
  19593. if (*(data + i) != *(data2 + i))
  19594. exit (1);
  19595. /* Finally, make sure that changes to the mapped area do not
  19596. percolate back to the file as seen by read(). (This is a bug on
  19597. some variants of i386 svr4.0.) */
  19598. for (i = 0; i < pagesize; ++i)
  19599. *(data2 + i) = *(data2 + i) + 1;
  19600. data3 = (char *) malloc (pagesize);
  19601. if (!data3)
  19602. exit (1);
  19603. if (read (fd, data3, pagesize) != pagesize)
  19604. exit (1);
  19605. for (i = 0; i < pagesize; ++i)
  19606. if (*(data + i) != *(data3 + i))
  19607. exit (1);
  19608. close (fd);
  19609. exit (0);
  19610. }
  19611. _ACEOF
  19612. rm -f conftest$ac_exeext
  19613. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19614. (eval $ac_link) 2>&5
  19615. ac_status=$?
  19616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19617. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19619. (eval $ac_try) 2>&5
  19620. ac_status=$?
  19621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19622. (exit $ac_status); }; }; then
  19623. ac_cv_func_mmap_fixed_mapped=yes
  19624. else
  19625. echo "$as_me: program exited with status $ac_status" >&5
  19626. echo "$as_me: failed program was:" >&5
  19627. sed 's/^/| /' conftest.$ac_ext >&5
  19628. ( exit $ac_status )
  19629. ac_cv_func_mmap_fixed_mapped=no
  19630. fi
  19631. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19632. fi
  19633. fi
  19634. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19635. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19636. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19637. cat >>confdefs.h <<\_ACEOF
  19638. #define HAVE_MMAP 1
  19639. _ACEOF
  19640. fi
  19641. rm -f conftest.mmap
  19642. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19643. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19644. if test "${ac_cv_type_signal+set}" = set; then
  19645. echo $ECHO_N "(cached) $ECHO_C" >&6
  19646. else
  19647. cat >conftest.$ac_ext <<_ACEOF
  19648. /* confdefs.h. */
  19649. _ACEOF
  19650. cat confdefs.h >>conftest.$ac_ext
  19651. cat >>conftest.$ac_ext <<_ACEOF
  19652. /* end confdefs.h. */
  19653. #include <sys/types.h>
  19654. #include <signal.h>
  19655. #ifdef signal
  19656. # undef signal
  19657. #endif
  19658. #ifdef __cplusplus
  19659. extern "C" void (*signal (int, void (*)(int)))(int);
  19660. #else
  19661. void (*signal ()) ();
  19662. #endif
  19663. int
  19664. main ()
  19665. {
  19666. int i;
  19667. ;
  19668. return 0;
  19669. }
  19670. _ACEOF
  19671. rm -f conftest.$ac_objext
  19672. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19673. (eval $ac_compile) 2>conftest.er1
  19674. ac_status=$?
  19675. grep -v '^ *+' conftest.er1 >conftest.err
  19676. rm -f conftest.er1
  19677. cat conftest.err >&5
  19678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19679. (exit $ac_status); } &&
  19680. { ac_try='test -z "$ac_c_werror_flag"
  19681. || test ! -s conftest.err'
  19682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19683. (eval $ac_try) 2>&5
  19684. ac_status=$?
  19685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19686. (exit $ac_status); }; } &&
  19687. { ac_try='test -s conftest.$ac_objext'
  19688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19689. (eval $ac_try) 2>&5
  19690. ac_status=$?
  19691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19692. (exit $ac_status); }; }; then
  19693. ac_cv_type_signal=void
  19694. else
  19695. echo "$as_me: failed program was:" >&5
  19696. sed 's/^/| /' conftest.$ac_ext >&5
  19697. ac_cv_type_signal=int
  19698. fi
  19699. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19700. fi
  19701. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19702. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19703. cat >>confdefs.h <<_ACEOF
  19704. #define RETSIGTYPE $ac_cv_type_signal
  19705. _ACEOF
  19706. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19707. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19708. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19709. echo $ECHO_N "(cached) $ECHO_C" >&6
  19710. else
  19711. if test "$cross_compiling" = yes; then
  19712. ac_cv_func_stat_empty_string_bug=yes
  19713. else
  19714. cat >conftest.$ac_ext <<_ACEOF
  19715. /* confdefs.h. */
  19716. _ACEOF
  19717. cat confdefs.h >>conftest.$ac_ext
  19718. cat >>conftest.$ac_ext <<_ACEOF
  19719. /* end confdefs.h. */
  19720. $ac_includes_default
  19721. int
  19722. main ()
  19723. {
  19724. struct stat sbuf;
  19725. exit (stat ("", &sbuf) ? 1 : 0);
  19726. ;
  19727. return 0;
  19728. }
  19729. _ACEOF
  19730. rm -f conftest$ac_exeext
  19731. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19732. (eval $ac_link) 2>&5
  19733. ac_status=$?
  19734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19735. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19737. (eval $ac_try) 2>&5
  19738. ac_status=$?
  19739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19740. (exit $ac_status); }; }; then
  19741. ac_cv_func_stat_empty_string_bug=yes
  19742. else
  19743. echo "$as_me: program exited with status $ac_status" >&5
  19744. echo "$as_me: failed program was:" >&5
  19745. sed 's/^/| /' conftest.$ac_ext >&5
  19746. ( exit $ac_status )
  19747. ac_cv_func_stat_empty_string_bug=no
  19748. fi
  19749. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19750. fi
  19751. fi
  19752. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19753. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19754. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19755. case $LIBOBJS in
  19756. "stat.$ac_objext" | \
  19757. *" stat.$ac_objext" | \
  19758. "stat.$ac_objext "* | \
  19759. *" stat.$ac_objext "* ) ;;
  19760. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19761. esac
  19762. cat >>confdefs.h <<_ACEOF
  19763. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19764. _ACEOF
  19765. fi
  19766. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19767. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19768. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19769. echo $ECHO_N "(cached) $ECHO_C" >&6
  19770. else
  19771. cat >conftest.$ac_ext <<_ACEOF
  19772. /* confdefs.h. */
  19773. _ACEOF
  19774. cat confdefs.h >>conftest.$ac_ext
  19775. cat >>conftest.$ac_ext <<_ACEOF
  19776. /* end confdefs.h. */
  19777. $ac_includes_default
  19778. int
  19779. main ()
  19780. {
  19781. #ifndef strerror_r
  19782. char *p = (char *) strerror_r;
  19783. #endif
  19784. ;
  19785. return 0;
  19786. }
  19787. _ACEOF
  19788. rm -f conftest.$ac_objext
  19789. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19790. (eval $ac_compile) 2>conftest.er1
  19791. ac_status=$?
  19792. grep -v '^ *+' conftest.er1 >conftest.err
  19793. rm -f conftest.er1
  19794. cat conftest.err >&5
  19795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19796. (exit $ac_status); } &&
  19797. { ac_try='test -z "$ac_c_werror_flag"
  19798. || test ! -s conftest.err'
  19799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19800. (eval $ac_try) 2>&5
  19801. ac_status=$?
  19802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19803. (exit $ac_status); }; } &&
  19804. { ac_try='test -s conftest.$ac_objext'
  19805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19806. (eval $ac_try) 2>&5
  19807. ac_status=$?
  19808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19809. (exit $ac_status); }; }; then
  19810. ac_cv_have_decl_strerror_r=yes
  19811. else
  19812. echo "$as_me: failed program was:" >&5
  19813. sed 's/^/| /' conftest.$ac_ext >&5
  19814. ac_cv_have_decl_strerror_r=no
  19815. fi
  19816. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19817. fi
  19818. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19819. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19820. if test $ac_cv_have_decl_strerror_r = yes; then
  19821. cat >>confdefs.h <<_ACEOF
  19822. #define HAVE_DECL_STRERROR_R 1
  19823. _ACEOF
  19824. else
  19825. cat >>confdefs.h <<_ACEOF
  19826. #define HAVE_DECL_STRERROR_R 0
  19827. _ACEOF
  19828. fi
  19829. for ac_func in strerror_r
  19830. do
  19831. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19832. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19833. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19834. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19835. echo $ECHO_N "(cached) $ECHO_C" >&6
  19836. else
  19837. cat >conftest.$ac_ext <<_ACEOF
  19838. /* confdefs.h. */
  19839. _ACEOF
  19840. cat confdefs.h >>conftest.$ac_ext
  19841. cat >>conftest.$ac_ext <<_ACEOF
  19842. /* end confdefs.h. */
  19843. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19844. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19845. #define $ac_func innocuous_$ac_func
  19846. /* System header to define __stub macros and hopefully few prototypes,
  19847. which can conflict with char $ac_func (); below.
  19848. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19849. <limits.h> exists even on freestanding compilers. */
  19850. #ifdef __STDC__
  19851. # include <limits.h>
  19852. #else
  19853. # include <assert.h>
  19854. #endif
  19855. #undef $ac_func
  19856. /* Override any gcc2 internal prototype to avoid an error. */
  19857. #ifdef __cplusplus
  19858. extern "C"
  19859. {
  19860. #endif
  19861. /* We use char because int might match the return type of a gcc2
  19862. builtin and then its argument prototype would still apply. */
  19863. char $ac_func ();
  19864. /* The GNU C library defines this for functions which it implements
  19865. to always fail with ENOSYS. Some functions are actually named
  19866. something starting with __ and the normal name is an alias. */
  19867. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19868. choke me
  19869. #else
  19870. char (*f) () = $ac_func;
  19871. #endif
  19872. #ifdef __cplusplus
  19873. }
  19874. #endif
  19875. int
  19876. main ()
  19877. {
  19878. return f != $ac_func;
  19879. ;
  19880. return 0;
  19881. }
  19882. _ACEOF
  19883. rm -f conftest.$ac_objext conftest$ac_exeext
  19884. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19885. (eval $ac_link) 2>conftest.er1
  19886. ac_status=$?
  19887. grep -v '^ *+' conftest.er1 >conftest.err
  19888. rm -f conftest.er1
  19889. cat conftest.err >&5
  19890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19891. (exit $ac_status); } &&
  19892. { ac_try='test -z "$ac_c_werror_flag"
  19893. || test ! -s conftest.err'
  19894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19895. (eval $ac_try) 2>&5
  19896. ac_status=$?
  19897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19898. (exit $ac_status); }; } &&
  19899. { ac_try='test -s conftest$ac_exeext'
  19900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19901. (eval $ac_try) 2>&5
  19902. ac_status=$?
  19903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19904. (exit $ac_status); }; }; then
  19905. eval "$as_ac_var=yes"
  19906. else
  19907. echo "$as_me: failed program was:" >&5
  19908. sed 's/^/| /' conftest.$ac_ext >&5
  19909. eval "$as_ac_var=no"
  19910. fi
  19911. rm -f conftest.err conftest.$ac_objext \
  19912. conftest$ac_exeext conftest.$ac_ext
  19913. fi
  19914. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19915. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19916. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19917. cat >>confdefs.h <<_ACEOF
  19918. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19919. _ACEOF
  19920. fi
  19921. done
  19922. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19923. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19924. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19925. echo $ECHO_N "(cached) $ECHO_C" >&6
  19926. else
  19927. ac_cv_func_strerror_r_char_p=no
  19928. if test $ac_cv_have_decl_strerror_r = yes; then
  19929. cat >conftest.$ac_ext <<_ACEOF
  19930. /* confdefs.h. */
  19931. _ACEOF
  19932. cat confdefs.h >>conftest.$ac_ext
  19933. cat >>conftest.$ac_ext <<_ACEOF
  19934. /* end confdefs.h. */
  19935. $ac_includes_default
  19936. int
  19937. main ()
  19938. {
  19939. char buf[100];
  19940. char x = *strerror_r (0, buf, sizeof buf);
  19941. char *p = strerror_r (0, buf, sizeof buf);
  19942. ;
  19943. return 0;
  19944. }
  19945. _ACEOF
  19946. rm -f conftest.$ac_objext
  19947. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19948. (eval $ac_compile) 2>conftest.er1
  19949. ac_status=$?
  19950. grep -v '^ *+' conftest.er1 >conftest.err
  19951. rm -f conftest.er1
  19952. cat conftest.err >&5
  19953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19954. (exit $ac_status); } &&
  19955. { ac_try='test -z "$ac_c_werror_flag"
  19956. || test ! -s conftest.err'
  19957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19958. (eval $ac_try) 2>&5
  19959. ac_status=$?
  19960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19961. (exit $ac_status); }; } &&
  19962. { ac_try='test -s conftest.$ac_objext'
  19963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19964. (eval $ac_try) 2>&5
  19965. ac_status=$?
  19966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19967. (exit $ac_status); }; }; then
  19968. ac_cv_func_strerror_r_char_p=yes
  19969. else
  19970. echo "$as_me: failed program was:" >&5
  19971. sed 's/^/| /' conftest.$ac_ext >&5
  19972. fi
  19973. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19974. else
  19975. # strerror_r is not declared. Choose between
  19976. # systems that have relatively inaccessible declarations for the
  19977. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  19978. # former has a strerror_r that returns char*, while the latter
  19979. # has a strerror_r that returns `int'.
  19980. # This test should segfault on the DEC system.
  19981. if test "$cross_compiling" = yes; then
  19982. :
  19983. else
  19984. cat >conftest.$ac_ext <<_ACEOF
  19985. /* confdefs.h. */
  19986. _ACEOF
  19987. cat confdefs.h >>conftest.$ac_ext
  19988. cat >>conftest.$ac_ext <<_ACEOF
  19989. /* end confdefs.h. */
  19990. $ac_includes_default
  19991. extern char *strerror_r ();
  19992. int
  19993. main ()
  19994. {
  19995. char buf[100];
  19996. char x = *strerror_r (0, buf, sizeof buf);
  19997. exit (!isalpha (x));
  19998. ;
  19999. return 0;
  20000. }
  20001. _ACEOF
  20002. rm -f conftest$ac_exeext
  20003. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20004. (eval $ac_link) 2>&5
  20005. ac_status=$?
  20006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20007. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20009. (eval $ac_try) 2>&5
  20010. ac_status=$?
  20011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20012. (exit $ac_status); }; }; then
  20013. ac_cv_func_strerror_r_char_p=yes
  20014. else
  20015. echo "$as_me: program exited with status $ac_status" >&5
  20016. echo "$as_me: failed program was:" >&5
  20017. sed 's/^/| /' conftest.$ac_ext >&5
  20018. fi
  20019. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20020. fi
  20021. fi
  20022. fi
  20023. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20024. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  20025. if test $ac_cv_func_strerror_r_char_p = yes; then
  20026. cat >>confdefs.h <<\_ACEOF
  20027. #define STRERROR_R_CHAR_P 1
  20028. _ACEOF
  20029. fi
  20030. for ac_func in strftime
  20031. do
  20032. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20033. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20034. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20035. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20036. echo $ECHO_N "(cached) $ECHO_C" >&6
  20037. else
  20038. cat >conftest.$ac_ext <<_ACEOF
  20039. /* confdefs.h. */
  20040. _ACEOF
  20041. cat confdefs.h >>conftest.$ac_ext
  20042. cat >>conftest.$ac_ext <<_ACEOF
  20043. /* end confdefs.h. */
  20044. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20045. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20046. #define $ac_func innocuous_$ac_func
  20047. /* System header to define __stub macros and hopefully few prototypes,
  20048. which can conflict with char $ac_func (); below.
  20049. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20050. <limits.h> exists even on freestanding compilers. */
  20051. #ifdef __STDC__
  20052. # include <limits.h>
  20053. #else
  20054. # include <assert.h>
  20055. #endif
  20056. #undef $ac_func
  20057. /* Override any gcc2 internal prototype to avoid an error. */
  20058. #ifdef __cplusplus
  20059. extern "C"
  20060. {
  20061. #endif
  20062. /* We use char because int might match the return type of a gcc2
  20063. builtin and then its argument prototype would still apply. */
  20064. char $ac_func ();
  20065. /* The GNU C library defines this for functions which it implements
  20066. to always fail with ENOSYS. Some functions are actually named
  20067. something starting with __ and the normal name is an alias. */
  20068. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20069. choke me
  20070. #else
  20071. char (*f) () = $ac_func;
  20072. #endif
  20073. #ifdef __cplusplus
  20074. }
  20075. #endif
  20076. int
  20077. main ()
  20078. {
  20079. return f != $ac_func;
  20080. ;
  20081. return 0;
  20082. }
  20083. _ACEOF
  20084. rm -f conftest.$ac_objext conftest$ac_exeext
  20085. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20086. (eval $ac_link) 2>conftest.er1
  20087. ac_status=$?
  20088. grep -v '^ *+' conftest.er1 >conftest.err
  20089. rm -f conftest.er1
  20090. cat conftest.err >&5
  20091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20092. (exit $ac_status); } &&
  20093. { ac_try='test -z "$ac_c_werror_flag"
  20094. || test ! -s conftest.err'
  20095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20096. (eval $ac_try) 2>&5
  20097. ac_status=$?
  20098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20099. (exit $ac_status); }; } &&
  20100. { ac_try='test -s conftest$ac_exeext'
  20101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20102. (eval $ac_try) 2>&5
  20103. ac_status=$?
  20104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20105. (exit $ac_status); }; }; then
  20106. eval "$as_ac_var=yes"
  20107. else
  20108. echo "$as_me: failed program was:" >&5
  20109. sed 's/^/| /' conftest.$ac_ext >&5
  20110. eval "$as_ac_var=no"
  20111. fi
  20112. rm -f conftest.err conftest.$ac_objext \
  20113. conftest$ac_exeext conftest.$ac_ext
  20114. fi
  20115. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20116. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20117. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20118. cat >>confdefs.h <<_ACEOF
  20119. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20120. _ACEOF
  20121. else
  20122. # strftime is in -lintl on SCO UNIX.
  20123. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20124. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20125. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20126. echo $ECHO_N "(cached) $ECHO_C" >&6
  20127. else
  20128. ac_check_lib_save_LIBS=$LIBS
  20129. LIBS="-lintl $LIBS"
  20130. cat >conftest.$ac_ext <<_ACEOF
  20131. /* confdefs.h. */
  20132. _ACEOF
  20133. cat confdefs.h >>conftest.$ac_ext
  20134. cat >>conftest.$ac_ext <<_ACEOF
  20135. /* end confdefs.h. */
  20136. /* Override any gcc2 internal prototype to avoid an error. */
  20137. #ifdef __cplusplus
  20138. extern "C"
  20139. #endif
  20140. /* We use char because int might match the return type of a gcc2
  20141. builtin and then its argument prototype would still apply. */
  20142. char strftime ();
  20143. int
  20144. main ()
  20145. {
  20146. strftime ();
  20147. ;
  20148. return 0;
  20149. }
  20150. _ACEOF
  20151. rm -f conftest.$ac_objext conftest$ac_exeext
  20152. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20153. (eval $ac_link) 2>conftest.er1
  20154. ac_status=$?
  20155. grep -v '^ *+' conftest.er1 >conftest.err
  20156. rm -f conftest.er1
  20157. cat conftest.err >&5
  20158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20159. (exit $ac_status); } &&
  20160. { ac_try='test -z "$ac_c_werror_flag"
  20161. || test ! -s conftest.err'
  20162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20163. (eval $ac_try) 2>&5
  20164. ac_status=$?
  20165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20166. (exit $ac_status); }; } &&
  20167. { ac_try='test -s conftest$ac_exeext'
  20168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20169. (eval $ac_try) 2>&5
  20170. ac_status=$?
  20171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20172. (exit $ac_status); }; }; then
  20173. ac_cv_lib_intl_strftime=yes
  20174. else
  20175. echo "$as_me: failed program was:" >&5
  20176. sed 's/^/| /' conftest.$ac_ext >&5
  20177. ac_cv_lib_intl_strftime=no
  20178. fi
  20179. rm -f conftest.err conftest.$ac_objext \
  20180. conftest$ac_exeext conftest.$ac_ext
  20181. LIBS=$ac_check_lib_save_LIBS
  20182. fi
  20183. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20184. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20185. if test $ac_cv_lib_intl_strftime = yes; then
  20186. cat >>confdefs.h <<\_ACEOF
  20187. #define HAVE_STRFTIME 1
  20188. _ACEOF
  20189. LIBS="-lintl $LIBS"
  20190. fi
  20191. fi
  20192. done
  20193. for ac_func in vprintf
  20194. do
  20195. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20196. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20197. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20198. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20199. echo $ECHO_N "(cached) $ECHO_C" >&6
  20200. else
  20201. cat >conftest.$ac_ext <<_ACEOF
  20202. /* confdefs.h. */
  20203. _ACEOF
  20204. cat confdefs.h >>conftest.$ac_ext
  20205. cat >>conftest.$ac_ext <<_ACEOF
  20206. /* end confdefs.h. */
  20207. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20208. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20209. #define $ac_func innocuous_$ac_func
  20210. /* System header to define __stub macros and hopefully few prototypes,
  20211. which can conflict with char $ac_func (); below.
  20212. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20213. <limits.h> exists even on freestanding compilers. */
  20214. #ifdef __STDC__
  20215. # include <limits.h>
  20216. #else
  20217. # include <assert.h>
  20218. #endif
  20219. #undef $ac_func
  20220. /* Override any gcc2 internal prototype to avoid an error. */
  20221. #ifdef __cplusplus
  20222. extern "C"
  20223. {
  20224. #endif
  20225. /* We use char because int might match the return type of a gcc2
  20226. builtin and then its argument prototype would still apply. */
  20227. char $ac_func ();
  20228. /* The GNU C library defines this for functions which it implements
  20229. to always fail with ENOSYS. Some functions are actually named
  20230. something starting with __ and the normal name is an alias. */
  20231. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20232. choke me
  20233. #else
  20234. char (*f) () = $ac_func;
  20235. #endif
  20236. #ifdef __cplusplus
  20237. }
  20238. #endif
  20239. int
  20240. main ()
  20241. {
  20242. return f != $ac_func;
  20243. ;
  20244. return 0;
  20245. }
  20246. _ACEOF
  20247. rm -f conftest.$ac_objext conftest$ac_exeext
  20248. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20249. (eval $ac_link) 2>conftest.er1
  20250. ac_status=$?
  20251. grep -v '^ *+' conftest.er1 >conftest.err
  20252. rm -f conftest.er1
  20253. cat conftest.err >&5
  20254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20255. (exit $ac_status); } &&
  20256. { ac_try='test -z "$ac_c_werror_flag"
  20257. || test ! -s conftest.err'
  20258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20259. (eval $ac_try) 2>&5
  20260. ac_status=$?
  20261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20262. (exit $ac_status); }; } &&
  20263. { ac_try='test -s conftest$ac_exeext'
  20264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20265. (eval $ac_try) 2>&5
  20266. ac_status=$?
  20267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20268. (exit $ac_status); }; }; then
  20269. eval "$as_ac_var=yes"
  20270. else
  20271. echo "$as_me: failed program was:" >&5
  20272. sed 's/^/| /' conftest.$ac_ext >&5
  20273. eval "$as_ac_var=no"
  20274. fi
  20275. rm -f conftest.err conftest.$ac_objext \
  20276. conftest$ac_exeext conftest.$ac_ext
  20277. fi
  20278. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20279. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20280. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20281. cat >>confdefs.h <<_ACEOF
  20282. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20283. _ACEOF
  20284. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20285. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20286. if test "${ac_cv_func__doprnt+set}" = set; then
  20287. echo $ECHO_N "(cached) $ECHO_C" >&6
  20288. else
  20289. cat >conftest.$ac_ext <<_ACEOF
  20290. /* confdefs.h. */
  20291. _ACEOF
  20292. cat confdefs.h >>conftest.$ac_ext
  20293. cat >>conftest.$ac_ext <<_ACEOF
  20294. /* end confdefs.h. */
  20295. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20296. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20297. #define _doprnt innocuous__doprnt
  20298. /* System header to define __stub macros and hopefully few prototypes,
  20299. which can conflict with char _doprnt (); below.
  20300. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20301. <limits.h> exists even on freestanding compilers. */
  20302. #ifdef __STDC__
  20303. # include <limits.h>
  20304. #else
  20305. # include <assert.h>
  20306. #endif
  20307. #undef _doprnt
  20308. /* Override any gcc2 internal prototype to avoid an error. */
  20309. #ifdef __cplusplus
  20310. extern "C"
  20311. {
  20312. #endif
  20313. /* We use char because int might match the return type of a gcc2
  20314. builtin and then its argument prototype would still apply. */
  20315. char _doprnt ();
  20316. /* The GNU C library defines this for functions which it implements
  20317. to always fail with ENOSYS. Some functions are actually named
  20318. something starting with __ and the normal name is an alias. */
  20319. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20320. choke me
  20321. #else
  20322. char (*f) () = _doprnt;
  20323. #endif
  20324. #ifdef __cplusplus
  20325. }
  20326. #endif
  20327. int
  20328. main ()
  20329. {
  20330. return f != _doprnt;
  20331. ;
  20332. return 0;
  20333. }
  20334. _ACEOF
  20335. rm -f conftest.$ac_objext conftest$ac_exeext
  20336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20337. (eval $ac_link) 2>conftest.er1
  20338. ac_status=$?
  20339. grep -v '^ *+' conftest.er1 >conftest.err
  20340. rm -f conftest.er1
  20341. cat conftest.err >&5
  20342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20343. (exit $ac_status); } &&
  20344. { ac_try='test -z "$ac_c_werror_flag"
  20345. || test ! -s conftest.err'
  20346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20347. (eval $ac_try) 2>&5
  20348. ac_status=$?
  20349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20350. (exit $ac_status); }; } &&
  20351. { ac_try='test -s conftest$ac_exeext'
  20352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20353. (eval $ac_try) 2>&5
  20354. ac_status=$?
  20355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20356. (exit $ac_status); }; }; then
  20357. ac_cv_func__doprnt=yes
  20358. else
  20359. echo "$as_me: failed program was:" >&5
  20360. sed 's/^/| /' conftest.$ac_ext >&5
  20361. ac_cv_func__doprnt=no
  20362. fi
  20363. rm -f conftest.err conftest.$ac_objext \
  20364. conftest$ac_exeext conftest.$ac_ext
  20365. fi
  20366. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20367. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20368. if test $ac_cv_func__doprnt = yes; then
  20369. cat >>confdefs.h <<\_ACEOF
  20370. #define HAVE_DOPRNT 1
  20371. _ACEOF
  20372. fi
  20373. fi
  20374. done
  20375. 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
  20376. do
  20377. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20378. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20379. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20380. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20381. echo $ECHO_N "(cached) $ECHO_C" >&6
  20382. else
  20383. cat >conftest.$ac_ext <<_ACEOF
  20384. /* confdefs.h. */
  20385. _ACEOF
  20386. cat confdefs.h >>conftest.$ac_ext
  20387. cat >>conftest.$ac_ext <<_ACEOF
  20388. /* end confdefs.h. */
  20389. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20390. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20391. #define $ac_func innocuous_$ac_func
  20392. /* System header to define __stub macros and hopefully few prototypes,
  20393. which can conflict with char $ac_func (); below.
  20394. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20395. <limits.h> exists even on freestanding compilers. */
  20396. #ifdef __STDC__
  20397. # include <limits.h>
  20398. #else
  20399. # include <assert.h>
  20400. #endif
  20401. #undef $ac_func
  20402. /* Override any gcc2 internal prototype to avoid an error. */
  20403. #ifdef __cplusplus
  20404. extern "C"
  20405. {
  20406. #endif
  20407. /* We use char because int might match the return type of a gcc2
  20408. builtin and then its argument prototype would still apply. */
  20409. char $ac_func ();
  20410. /* The GNU C library defines this for functions which it implements
  20411. to always fail with ENOSYS. Some functions are actually named
  20412. something starting with __ and the normal name is an alias. */
  20413. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20414. choke me
  20415. #else
  20416. char (*f) () = $ac_func;
  20417. #endif
  20418. #ifdef __cplusplus
  20419. }
  20420. #endif
  20421. int
  20422. main ()
  20423. {
  20424. return f != $ac_func;
  20425. ;
  20426. return 0;
  20427. }
  20428. _ACEOF
  20429. rm -f conftest.$ac_objext conftest$ac_exeext
  20430. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20431. (eval $ac_link) 2>conftest.er1
  20432. ac_status=$?
  20433. grep -v '^ *+' conftest.er1 >conftest.err
  20434. rm -f conftest.er1
  20435. cat conftest.err >&5
  20436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20437. (exit $ac_status); } &&
  20438. { ac_try='test -z "$ac_c_werror_flag"
  20439. || test ! -s conftest.err'
  20440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20441. (eval $ac_try) 2>&5
  20442. ac_status=$?
  20443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20444. (exit $ac_status); }; } &&
  20445. { ac_try='test -s conftest$ac_exeext'
  20446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20447. (eval $ac_try) 2>&5
  20448. ac_status=$?
  20449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20450. (exit $ac_status); }; }; then
  20451. eval "$as_ac_var=yes"
  20452. else
  20453. echo "$as_me: failed program was:" >&5
  20454. sed 's/^/| /' conftest.$ac_ext >&5
  20455. eval "$as_ac_var=no"
  20456. fi
  20457. rm -f conftest.err conftest.$ac_objext \
  20458. conftest$ac_exeext conftest.$ac_ext
  20459. fi
  20460. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20461. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20462. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20463. cat >>confdefs.h <<_ACEOF
  20464. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20465. _ACEOF
  20466. fi
  20467. done
  20468. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20469. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20470. # Check whether --enable-debug or --disable-debug was given.
  20471. if test "${enable_debug+set}" = set; then
  20472. enableval="$enable_debug"
  20473. echo "$as_me:$LINENO: result: yes" >&5
  20474. echo "${ECHO_T}yes" >&6
  20475. debug_defs="-DDEBUG -DMCC_DEBUG"
  20476. else
  20477. echo "$as_me:$LINENO: result: no" >&5
  20478. echo "${ECHO_T}no" >&6
  20479. debug_defs=""
  20480. fi;
  20481. # Used for legacy style packaging where we bundle all of the dependencies.
  20482. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20483. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20484. # Check whether --enable-bundle or --disable-bundle was given.
  20485. if test "${enable_bundle+set}" = set; then
  20486. enableval="$enable_bundle"
  20487. echo "$as_me:$LINENO: result: yes" >&5
  20488. echo "${ECHO_T}yes" >&6
  20489. bundle="1";
  20490. else
  20491. echo "$as_me:$LINENO: result: no" >&5
  20492. echo "${ECHO_T}no" >&6
  20493. bundle="";
  20494. fi;
  20495. if test "$bundle" = "1"; then
  20496. BUNDLE_TRUE=
  20497. BUNDLE_FALSE='#'
  20498. else
  20499. BUNDLE_TRUE='#'
  20500. BUNDLE_FALSE=
  20501. fi
  20502. # these enables are for optional or experimental features
  20503. if test -z "$enable_pam_passthru" ; then
  20504. enable_pam_passthru=yes # if not set on cmdline, set default
  20505. fi
  20506. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20507. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20508. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20509. if test "${enable_pam_passthru+set}" = set; then
  20510. enableval="$enable_pam_passthru"
  20511. fi;
  20512. if test "$enable_pam_passthru" = yes ; then
  20513. echo "$as_me:$LINENO: result: yes" >&5
  20514. echo "${ECHO_T}yes" >&6
  20515. cat >>confdefs.h <<\_ACEOF
  20516. #define ENABLE_PAM_PASSTHRU 1
  20517. _ACEOF
  20518. else
  20519. echo "$as_me:$LINENO: result: no" >&5
  20520. echo "${ECHO_T}no" >&6
  20521. fi
  20522. if test "$enable_pam_passthru" = "yes"; then
  20523. enable_pam_passthru_TRUE=
  20524. enable_pam_passthru_FALSE='#'
  20525. else
  20526. enable_pam_passthru_TRUE='#'
  20527. enable_pam_passthru_FALSE=
  20528. fi
  20529. if test -z "$enable_dna" ; then
  20530. enable_dna=yes # if not set on cmdline, set default
  20531. fi
  20532. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20533. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20534. # Check whether --enable-dna or --disable-dna was given.
  20535. if test "${enable_dna+set}" = set; then
  20536. enableval="$enable_dna"
  20537. fi;
  20538. if test "$enable_dna" = yes ; then
  20539. echo "$as_me:$LINENO: result: yes" >&5
  20540. echo "${ECHO_T}yes" >&6
  20541. cat >>confdefs.h <<\_ACEOF
  20542. #define ENABLE_DNA 1
  20543. _ACEOF
  20544. else
  20545. echo "$as_me:$LINENO: result: no" >&5
  20546. echo "${ECHO_T}no" >&6
  20547. fi
  20548. if test "$enable_dna" = "yes"; then
  20549. enable_dna_TRUE=
  20550. enable_dna_FALSE='#'
  20551. else
  20552. enable_dna_TRUE='#'
  20553. enable_dna_FALSE=
  20554. fi
  20555. if test -z "$enable_ldapi" ; then
  20556. enable_ldapi=yes # if not set on cmdline, set default
  20557. fi
  20558. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20559. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20560. # Check whether --enable-ldapi or --disable-ldapi was given.
  20561. if test "${enable_ldapi+set}" = set; then
  20562. enableval="$enable_ldapi"
  20563. fi;
  20564. if test "$enable_ldapi" = yes ; then
  20565. echo "$as_me:$LINENO: result: yes" >&5
  20566. echo "${ECHO_T}yes" >&6
  20567. cat >>confdefs.h <<\_ACEOF
  20568. #define ENABLE_LDAPI 1
  20569. _ACEOF
  20570. else
  20571. echo "$as_me:$LINENO: result: no" >&5
  20572. echo "${ECHO_T}no" >&6
  20573. fi
  20574. if test "$enable_ldapi" = "yes"; then
  20575. enable_ldapi_TRUE=
  20576. enable_ldapi_FALSE='#'
  20577. else
  20578. enable_ldapi_TRUE='#'
  20579. enable_ldapi_FALSE=
  20580. fi
  20581. if test -z "$enable_bitwise" ; then
  20582. enable_bitwise=yes # if not set on cmdline, set default
  20583. fi
  20584. echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  20585. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6
  20586. # Check whether --enable-bitwise or --disable-bitwise was given.
  20587. if test "${enable_bitwise+set}" = set; then
  20588. enableval="$enable_bitwise"
  20589. fi;
  20590. if test "$enable_bitwise" = yes ; then
  20591. echo "$as_me:$LINENO: result: yes" >&5
  20592. echo "${ECHO_T}yes" >&6
  20593. cat >>confdefs.h <<\_ACEOF
  20594. #define ENABLE_BITWISE 1
  20595. _ACEOF
  20596. else
  20597. echo "$as_me:$LINENO: result: no" >&5
  20598. echo "${ECHO_T}no" >&6
  20599. fi
  20600. if test "$enable_bitwise" = "yes"; then
  20601. enable_bitwise_TRUE=
  20602. enable_bitwise_FALSE='#'
  20603. else
  20604. enable_bitwise_TRUE='#'
  20605. enable_bitwise_FALSE=
  20606. fi
  20607. # the default prefix - override with --prefix or --with-fhs
  20608. brand=fedora
  20609. capbrand=Fedora
  20610. vendor="Fedora Project"
  20611. # BEGIN COPYRIGHT BLOCK
  20612. # Copyright (C) 2006 Red Hat, Inc.
  20613. # All rights reserved.
  20614. #
  20615. # This program is free software; you can redistribute it and/or
  20616. # modify it under the terms of the GNU General Public License
  20617. # as published by the Free Software Foundation; either version 2
  20618. # of the License, or (at your option) any later version.
  20619. #
  20620. # This program is distributed in the hope that it will be useful,
  20621. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20622. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20623. # GNU General Public License for more details.
  20624. #
  20625. # You should have received a copy of the GNU General Public License
  20626. # along with this program; if not, write to the Free Software
  20627. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20628. #
  20629. # END COPYRIGHT BLOCK
  20630. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20631. echo "$as_me: checking for FHS..." >&6;}
  20632. # check for --with-fhs
  20633. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20634. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20635. # Check whether --with-fhs or --without-fhs was given.
  20636. if test "${with_fhs+set}" = set; then
  20637. withval="$with_fhs"
  20638. with_fhs=yes
  20639. echo "$as_me:$LINENO: result: yes" >&5
  20640. echo "${ECHO_T}yes" >&6
  20641. else
  20642. echo "$as_me:$LINENO: result: no" >&5
  20643. echo "${ECHO_T}no" >&6
  20644. fi;
  20645. if test "$with_fhs" = "yes"; then
  20646. cat >>confdefs.h <<\_ACEOF
  20647. #define IS_FHS 1
  20648. _ACEOF
  20649. fi
  20650. # check for --with-fhs-opt
  20651. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20652. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20653. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20654. if test "${with_fhs_opt+set}" = set; then
  20655. withval="$with_fhs_opt"
  20656. with_fhs_opt=yes
  20657. echo "$as_me:$LINENO: result: yes" >&5
  20658. echo "${ECHO_T}yes" >&6
  20659. else
  20660. echo "$as_me:$LINENO: result: no" >&5
  20661. echo "${ECHO_T}no" >&6
  20662. fi;
  20663. if test "$with_fhs_opt" = "yes"; then
  20664. cat >>confdefs.h <<\_ACEOF
  20665. #define IS_FHS_OPT 1
  20666. _ACEOF
  20667. fi
  20668. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20669. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20670. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20671. { (exit 1); exit 1; }; }
  20672. fi
  20673. # installation paths - by default, we store everything
  20674. # under the prefix. The with-fhs option will use /usr,
  20675. # /etc, and /var. The with-fhs-opt option will use the
  20676. # prefix, but it's sysconfdir and localstatedir will be
  20677. # /etc/opt, and /var/opt.
  20678. if test "$with_fhs_opt" = "yes"; then
  20679. # Override sysconfdir and localstatedir if FHS optional
  20680. # package was requested.
  20681. sysconfdir='/etc/opt'
  20682. localstatedir='/var/opt'
  20683. # relative to datadir
  20684. sampledatadir=/data
  20685. # relative to datadir
  20686. scripttemplatedir=/script-templates
  20687. # relative to libdir
  20688. serverdir=
  20689. # relative to libdir
  20690. serverplugindir=/plugins
  20691. # relative to datadir
  20692. infdir=/inf
  20693. # location of property/resource files, relative to datadir
  20694. propertydir=/properties
  20695. # relative to libdir
  20696. perldir=/perl
  20697. else
  20698. if test "$with_fhs" = "yes"; then
  20699. ac_default_prefix=/usr
  20700. prefix=$ac_default_prefix
  20701. exec_prefix=$prefix
  20702. sysconfdir='/etc'
  20703. localstatedir='/var'
  20704. fi
  20705. # relative to datadir
  20706. sampledatadir=/$PACKAGE_NAME/data
  20707. # relative to datadir
  20708. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20709. # relative to libdir
  20710. serverdir=/$PACKAGE_NAME
  20711. # relative to libdir
  20712. serverplugindir=/$PACKAGE_NAME/plugins
  20713. # relative to datadir
  20714. infdir=/$PACKAGE_NAME/inf
  20715. # location of property/resource files, relative to datadir
  20716. propertydir=/$PACKAGE_NAME/properties
  20717. # relative to libdir
  20718. perldir=/$PACKAGE_NAME/perl
  20719. fi
  20720. # Shared paths for all layouts
  20721. # relative to sysconfdir
  20722. configdir=/$PACKAGE_NAME/config
  20723. # relative to sysconfdir
  20724. schemadir=/$PACKAGE_NAME/schema
  20725. # default user, group
  20726. defaultuser=nobody
  20727. defaultgroup=nobody
  20728. # check for --with-instconfigdir
  20729. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20730. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20731. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20732. if test "${with_instconfigdir+set}" = set; then
  20733. withval="$with_instconfigdir"
  20734. if test $withval = yes ; then
  20735. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20736. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20737. { (exit 1); exit 1; }; }
  20738. fi
  20739. instconfigdir="$withval"
  20740. else
  20741. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20742. fi;
  20743. # WINNT should be true if building on Windows system not using
  20744. # cygnus, mingw, or the like and using cmd.exe as the shell
  20745. if false; then
  20746. WINNT_TRUE=
  20747. WINNT_FALSE='#'
  20748. else
  20749. WINNT_TRUE='#'
  20750. WINNT_FALSE=
  20751. fi
  20752. # Deal with platform dependent defines
  20753. # relative to sysconfdir
  20754. initdir=/rc.d
  20755. # on most platforms, we will just use perl from PATH
  20756. # On some platforms, we cannot. Why not just use any old
  20757. # perl? Because of perldap. We use a perldap that is
  20758. # compiled to either 32bit or 64bit, so we must use a native
  20759. # perl binary compiled with the same bitsize. On Solaris
  20760. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  20761. # those with our 64 bit compiled product.
  20762. perlexec='/usr/bin/env perl'
  20763. case $host in
  20764. *-*-linux*)
  20765. cat >>confdefs.h <<\_ACEOF
  20766. #define XP_UNIX 1
  20767. _ACEOF
  20768. cat >>confdefs.h <<\_ACEOF
  20769. #define Linux 1
  20770. _ACEOF
  20771. cat >>confdefs.h <<\_ACEOF
  20772. #define LINUX 1
  20773. _ACEOF
  20774. cat >>confdefs.h <<\_ACEOF
  20775. #define LINUX2_0 1
  20776. _ACEOF
  20777. cat >>confdefs.h <<\_ACEOF
  20778. #define LINUX2_2 1
  20779. _ACEOF
  20780. cat >>confdefs.h <<\_ACEOF
  20781. #define LINUX2_4 1
  20782. _ACEOF
  20783. platform="linux"
  20784. # relative to sysconfdir
  20785. initdir=/rc.d/init.d
  20786. ;;
  20787. ia64-hp-hpux*)
  20788. cat >>confdefs.h <<\_ACEOF
  20789. #define XP_UNIX 1
  20790. _ACEOF
  20791. cat >>confdefs.h <<\_ACEOF
  20792. #define hpux 1
  20793. _ACEOF
  20794. cat >>confdefs.h <<\_ACEOF
  20795. #define HPUX 1
  20796. _ACEOF
  20797. cat >>confdefs.h <<\_ACEOF
  20798. #define HPUX11 1
  20799. _ACEOF
  20800. cat >>confdefs.h <<\_ACEOF
  20801. #define HPUX11_23 1
  20802. _ACEOF
  20803. cat >>confdefs.h <<\_ACEOF
  20804. #define CPU_ia64
  20805. _ACEOF
  20806. cat >>confdefs.h <<\_ACEOF
  20807. #define OS_hpux 1
  20808. _ACEOF
  20809. cat >>confdefs.h <<\_ACEOF
  20810. #define _POSIX_C_SOURCE 199506L
  20811. _ACEOF
  20812. cat >>confdefs.h <<\_ACEOF
  20813. #define _HPUX_SOURCE 1
  20814. _ACEOF
  20815. # assume 64 bit
  20816. perlexec='/opt/perl_64/bin/perl'
  20817. platform="hpux"
  20818. ;;
  20819. hppa*-hp-hpux*)
  20820. cat >>confdefs.h <<\_ACEOF
  20821. #define XP_UNIX 1
  20822. _ACEOF
  20823. cat >>confdefs.h <<\_ACEOF
  20824. #define hpux 1
  20825. _ACEOF
  20826. cat >>confdefs.h <<\_ACEOF
  20827. #define HPUX 1
  20828. _ACEOF
  20829. cat >>confdefs.h <<\_ACEOF
  20830. #define HPUX11 1
  20831. _ACEOF
  20832. cat >>confdefs.h <<\_ACEOF
  20833. #define HPUX11_11 1
  20834. _ACEOF
  20835. cat >>confdefs.h <<\_ACEOF
  20836. #define CPU_hppa
  20837. _ACEOF
  20838. cat >>confdefs.h <<\_ACEOF
  20839. #define OS_hpux 1
  20840. _ACEOF
  20841. cat >>confdefs.h <<\_ACEOF
  20842. #define _POSIX_C_SOURCE 199506L
  20843. _ACEOF
  20844. cat >>confdefs.h <<\_ACEOF
  20845. #define _HPUX_SOURCE 1
  20846. _ACEOF
  20847. # assume 64 bit
  20848. perlexec='/opt/perl_64/bin/perl'
  20849. platform="hpux"
  20850. ;;
  20851. sparc-sun-solaris*)
  20852. cat >>confdefs.h <<\_ACEOF
  20853. #define XP_UNIX 1
  20854. _ACEOF
  20855. cat >>confdefs.h <<\_ACEOF
  20856. #define SVR4 1
  20857. _ACEOF
  20858. cat >>confdefs.h <<\_ACEOF
  20859. #define __svr4 1
  20860. _ACEOF
  20861. cat >>confdefs.h <<\_ACEOF
  20862. #define __svr4__ 1
  20863. _ACEOF
  20864. cat >>confdefs.h <<\_ACEOF
  20865. #define _SVID_GETTOD 1
  20866. _ACEOF
  20867. cat >>confdefs.h <<\_ACEOF
  20868. #define SOLARIS 1
  20869. _ACEOF
  20870. cat >>confdefs.h <<\_ACEOF
  20871. #define CPU_sparc
  20872. _ACEOF
  20873. cat >>confdefs.h <<\_ACEOF
  20874. #define OS_solaris 1
  20875. _ACEOF
  20876. cat >>confdefs.h <<\_ACEOF
  20877. #define sunos5 1
  20878. _ACEOF
  20879. cat >>confdefs.h <<\_ACEOF
  20880. #define OSVERSION 509
  20881. _ACEOF
  20882. cat >>confdefs.h <<\_ACEOF
  20883. #define _REENTRANT 1
  20884. _ACEOF
  20885. LIBSOCKET=-lsocket
  20886. LIBSOCKET=$LIBSOCKET
  20887. LIBNSL=-lnsl
  20888. LIBNSL=$LIBNSL
  20889. LIBDL=-ldl
  20890. LIBDL=$LIBDL
  20891. LIBCSTD=-lCstd
  20892. LIBCSTD=$LIBCSTD
  20893. LIBCRUN=-lCrun
  20894. LIBCRUN=$LIBCRUN
  20895. platform="solaris"
  20896. # assume 64 bit
  20897. perlexec='/opt/perl5x/bin/perl'
  20898. # relative to sysconfdir
  20899. initdir=/init.d
  20900. ;;
  20901. *)
  20902. platform=""
  20903. ;;
  20904. esac
  20905. if test "$platform" = "hpux"; then
  20906. HPUX_TRUE=
  20907. HPUX_FALSE='#'
  20908. else
  20909. HPUX_TRUE='#'
  20910. HPUX_FALSE=
  20911. fi
  20912. if test "$platform" = "solaris"; then
  20913. SOLARIS_TRUE=
  20914. SOLARIS_FALSE='#'
  20915. else
  20916. SOLARIS_TRUE='#'
  20917. SOLARIS_FALSE=
  20918. fi
  20919. # Check for library dependencies
  20920. # BEGIN COPYRIGHT BLOCK
  20921. # Copyright (C) 2007 Red Hat, Inc.
  20922. # All rights reserved.
  20923. #
  20924. # This program is free software; you can redistribute it and/or
  20925. # modify it under the terms of the GNU General Public License
  20926. # as published by the Free Software Foundation; either version 2
  20927. # of the License, or (at your option) any later version.
  20928. #
  20929. # This program is distributed in the hope that it will be useful,
  20930. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20931. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20932. # GNU General Public License for more details.
  20933. #
  20934. # You should have received a copy of the GNU General Public License
  20935. # along with this program; if not, write to the Free Software
  20936. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20937. #
  20938. # END COPYRIGHT BLOCK
  20939. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  20940. echo "$as_me: checking for NSPR..." >&6;}
  20941. # check for --with-nspr
  20942. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  20943. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  20944. # Check whether --with-nspr or --without-nspr was given.
  20945. if test "${with_nspr+set}" = set; then
  20946. withval="$with_nspr"
  20947. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  20948. then
  20949. echo "$as_me:$LINENO: result: using $withval" >&5
  20950. echo "${ECHO_T}using $withval" >&6
  20951. NSPRDIR=$withval
  20952. nspr_inc="-I$NSPRDIR/include"
  20953. nspr_lib="-L$NSPRDIR/lib"
  20954. nspr_libdir="$NSPRDIR/lib"
  20955. else
  20956. echo
  20957. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20958. echo "$as_me: error: $withval not found" >&2;}
  20959. { (exit 1); exit 1; }; }
  20960. fi
  20961. else
  20962. echo "$as_me:$LINENO: result: no" >&5
  20963. echo "${ECHO_T}no" >&6
  20964. fi;
  20965. # check for --with-nspr-inc
  20966. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  20967. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  20968. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  20969. if test "${with_nspr_inc+set}" = set; then
  20970. withval="$with_nspr_inc"
  20971. if test -e "$withval"/nspr.h
  20972. then
  20973. echo "$as_me:$LINENO: result: using $withval" >&5
  20974. echo "${ECHO_T}using $withval" >&6
  20975. nspr_inc="-I$withval"
  20976. else
  20977. echo
  20978. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20979. echo "$as_me: error: $withval not found" >&2;}
  20980. { (exit 1); exit 1; }; }
  20981. fi
  20982. else
  20983. echo "$as_me:$LINENO: result: no" >&5
  20984. echo "${ECHO_T}no" >&6
  20985. fi;
  20986. # check for --with-nspr-lib
  20987. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  20988. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  20989. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  20990. if test "${with_nspr_lib+set}" = set; then
  20991. withval="$with_nspr_lib"
  20992. if test -d "$withval"
  20993. then
  20994. echo "$as_me:$LINENO: result: using $withval" >&5
  20995. echo "${ECHO_T}using $withval" >&6
  20996. nspr_lib="-L$withval"
  20997. nspr_libdir="$withval"
  20998. else
  20999. echo
  21000. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21001. echo "$as_me: error: $withval not found" >&2;}
  21002. { (exit 1); exit 1; }; }
  21003. fi
  21004. else
  21005. echo "$as_me:$LINENO: result: no" >&5
  21006. echo "${ECHO_T}no" >&6
  21007. fi;
  21008. # if NSPR is not found yet, try pkg-config
  21009. # last resort
  21010. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21011. # Extract the first word of "pkg-config", so it can be a program name with args.
  21012. set dummy pkg-config; ac_word=$2
  21013. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21014. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21015. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21016. echo $ECHO_N "(cached) $ECHO_C" >&6
  21017. else
  21018. case $PKG_CONFIG in
  21019. [\\/]* | ?:[\\/]*)
  21020. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21021. ;;
  21022. *)
  21023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21024. for as_dir in $PATH
  21025. do
  21026. IFS=$as_save_IFS
  21027. test -z "$as_dir" && as_dir=.
  21028. for ac_exec_ext in '' $ac_executable_extensions; do
  21029. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21030. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21032. break 2
  21033. fi
  21034. done
  21035. done
  21036. ;;
  21037. esac
  21038. fi
  21039. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21040. if test -n "$PKG_CONFIG"; then
  21041. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21042. echo "${ECHO_T}$PKG_CONFIG" >&6
  21043. else
  21044. echo "$as_me:$LINENO: result: no" >&5
  21045. echo "${ECHO_T}no" >&6
  21046. fi
  21047. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  21048. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  21049. if test -n "$PKG_CONFIG"; then
  21050. if $PKG_CONFIG --exists nspr; then
  21051. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  21052. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  21053. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21054. echo "$as_me:$LINENO: result: using system NSPR" >&5
  21055. echo "${ECHO_T}using system NSPR" >&6
  21056. elif $PKG_CONFIG --exists dirsec-nspr; then
  21057. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  21058. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  21059. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21060. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  21061. echo "${ECHO_T}using system dirsec NSPR" >&6
  21062. else
  21063. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  21064. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  21065. { (exit 1); exit 1; }; }
  21066. fi
  21067. fi
  21068. fi
  21069. # BEGIN COPYRIGHT BLOCK
  21070. # Copyright (C) 2007 Red Hat, Inc.
  21071. # All rights reserved.
  21072. #
  21073. # This program is free software; you can redistribute it and/or
  21074. # modify it under the terms of the GNU General Public License
  21075. # as published by the Free Software Foundation; either version 2
  21076. # of the License, or (at your option) any later version.
  21077. #
  21078. # This program is distributed in the hope that it will be useful,
  21079. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21080. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21081. # GNU General Public License for more details.
  21082. #
  21083. # You should have received a copy of the GNU General Public License
  21084. # along with this program; if not, write to the Free Software
  21085. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21086. #
  21087. # END COPYRIGHT BLOCK
  21088. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21089. echo "$as_me: checking for NSS..." >&6;}
  21090. # check for --with-nss
  21091. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21092. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21093. # Check whether --with-nss or --without-nss was given.
  21094. if test "${with_nss+set}" = set; then
  21095. withval="$with_nss"
  21096. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21097. then
  21098. echo "$as_me:$LINENO: result: using $withval" >&5
  21099. echo "${ECHO_T}using $withval" >&6
  21100. NSSDIR=$withval
  21101. nss_inc="-I$NSSDIR/include"
  21102. nss_lib="-L$NSSDIR/lib"
  21103. nss_libdir="$NSSDIR/lib"
  21104. else
  21105. echo
  21106. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21107. echo "$as_me: error: $withval not found" >&2;}
  21108. { (exit 1); exit 1; }; }
  21109. fi
  21110. else
  21111. echo "$as_me:$LINENO: result: no" >&5
  21112. echo "${ECHO_T}no" >&6
  21113. fi;
  21114. # check for --with-nss-inc
  21115. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21116. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21117. # Check whether --with-nss-inc or --without-nss-inc was given.
  21118. if test "${with_nss_inc+set}" = set; then
  21119. withval="$with_nss_inc"
  21120. if test -e "$withval"/nss.h
  21121. then
  21122. echo "$as_me:$LINENO: result: using $withval" >&5
  21123. echo "${ECHO_T}using $withval" >&6
  21124. nss_inc="-I$withval"
  21125. else
  21126. echo
  21127. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21128. echo "$as_me: error: $withval not found" >&2;}
  21129. { (exit 1); exit 1; }; }
  21130. fi
  21131. else
  21132. echo "$as_me:$LINENO: result: no" >&5
  21133. echo "${ECHO_T}no" >&6
  21134. fi;
  21135. # check for --with-nss-lib
  21136. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21137. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21138. # Check whether --with-nss-lib or --without-nss-lib was given.
  21139. if test "${with_nss_lib+set}" = set; then
  21140. withval="$with_nss_lib"
  21141. if test -d "$withval"
  21142. then
  21143. echo "$as_me:$LINENO: result: using $withval" >&5
  21144. echo "${ECHO_T}using $withval" >&6
  21145. nss_lib="-L$withval"
  21146. nss_libdir="$withval"
  21147. else
  21148. echo
  21149. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21150. echo "$as_me: error: $withval not found" >&2;}
  21151. { (exit 1); exit 1; }; }
  21152. fi
  21153. else
  21154. echo "$as_me:$LINENO: result: no" >&5
  21155. echo "${ECHO_T}no" >&6
  21156. fi;
  21157. # if NSS is not found yet, try pkg-config
  21158. # last resort
  21159. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21160. # Extract the first word of "pkg-config", so it can be a program name with args.
  21161. set dummy pkg-config; ac_word=$2
  21162. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21164. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21165. echo $ECHO_N "(cached) $ECHO_C" >&6
  21166. else
  21167. case $PKG_CONFIG in
  21168. [\\/]* | ?:[\\/]*)
  21169. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21170. ;;
  21171. *)
  21172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21173. for as_dir in $PATH
  21174. do
  21175. IFS=$as_save_IFS
  21176. test -z "$as_dir" && as_dir=.
  21177. for ac_exec_ext in '' $ac_executable_extensions; do
  21178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21179. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21181. break 2
  21182. fi
  21183. done
  21184. done
  21185. ;;
  21186. esac
  21187. fi
  21188. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21189. if test -n "$PKG_CONFIG"; then
  21190. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21191. echo "${ECHO_T}$PKG_CONFIG" >&6
  21192. else
  21193. echo "$as_me:$LINENO: result: no" >&5
  21194. echo "${ECHO_T}no" >&6
  21195. fi
  21196. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21197. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21198. if test -n "$PKG_CONFIG"; then
  21199. if $PKG_CONFIG --exists nss; then
  21200. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21201. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21202. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21203. echo "$as_me:$LINENO: result: using system NSS" >&5
  21204. echo "${ECHO_T}using system NSS" >&6
  21205. elif $PKG_CONFIG --exists dirsec-nss; then
  21206. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21207. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21208. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21209. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21210. echo "${ECHO_T}using system dirsec NSS" >&6
  21211. else
  21212. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21213. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21214. { (exit 1); exit 1; }; }
  21215. fi
  21216. fi
  21217. fi
  21218. # BEGIN COPYRIGHT BLOCK
  21219. # Copyright (C) 2007 Red Hat, Inc.
  21220. # All rights reserved.
  21221. #
  21222. # This program is free software; you can redistribute it and/or
  21223. # modify it under the terms of the GNU General Public License
  21224. # as published by the Free Software Foundation; either version 2
  21225. # of the License, or (at your option) any later version.
  21226. #
  21227. # This program is distributed in the hope that it will be useful,
  21228. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21229. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21230. # GNU General Public License for more details.
  21231. #
  21232. # You should have received a copy of the GNU General Public License
  21233. # along with this program; if not, write to the Free Software
  21234. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21235. #
  21236. # END COPYRIGHT BLOCK
  21237. { echo "$as_me:$LINENO: checking for LDAPSDK..." >&5
  21238. echo "$as_me: checking for LDAPSDK..." >&6;}
  21239. # check for --with-ldapsdk
  21240. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  21241. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  21242. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  21243. if test "${with_ldapsdk+set}" = set; then
  21244. withval="$with_ldapsdk"
  21245. if test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21246. then
  21247. echo "$as_me:$LINENO: result: using $withval" >&5
  21248. echo "${ECHO_T}using $withval" >&6
  21249. LDAPSDKDIR=$withval
  21250. ldapsdk_inc="-I$LDAPSDKDIR/include"
  21251. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  21252. ldapsdk_libdir="$LDAPSDKDIR/lib"
  21253. ldapsdk_bindir="$LDAPSDKDIR/bin"
  21254. else
  21255. echo
  21256. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21257. echo "$as_me: error: $withval not found" >&2;}
  21258. { (exit 1); exit 1; }; }
  21259. fi
  21260. else
  21261. echo "$as_me:$LINENO: result: no" >&5
  21262. echo "${ECHO_T}no" >&6
  21263. fi;
  21264. # check for --with-ldapsdk-inc
  21265. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  21266. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  21267. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  21268. if test "${with_ldapsdk_inc+set}" = set; then
  21269. withval="$with_ldapsdk_inc"
  21270. if test -e "$withval"/ldap.h
  21271. then
  21272. echo "$as_me:$LINENO: result: using $withval" >&5
  21273. echo "${ECHO_T}using $withval" >&6
  21274. ldapsdk_inc="-I$withval"
  21275. else
  21276. echo
  21277. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21278. echo "$as_me: error: $withval not found" >&2;}
  21279. { (exit 1); exit 1; }; }
  21280. fi
  21281. else
  21282. echo "$as_me:$LINENO: result: no" >&5
  21283. echo "${ECHO_T}no" >&6
  21284. fi;
  21285. # check for --with-ldapsdk-lib
  21286. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  21287. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  21288. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  21289. if test "${with_ldapsdk_lib+set}" = set; then
  21290. withval="$with_ldapsdk_lib"
  21291. if test -d "$withval"
  21292. then
  21293. echo "$as_me:$LINENO: result: using $withval" >&5
  21294. echo "${ECHO_T}using $withval" >&6
  21295. ldapsdk_lib="-L$withval"
  21296. ldapsdk_libdir="$withval"
  21297. else
  21298. echo
  21299. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21300. echo "$as_me: error: $withval not found" >&2;}
  21301. { (exit 1); exit 1; }; }
  21302. fi
  21303. else
  21304. echo "$as_me:$LINENO: result: no" >&5
  21305. echo "${ECHO_T}no" >&6
  21306. fi;
  21307. # check for --with-ldapsdk-bin
  21308. echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  21309. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6
  21310. # Check whether --with-ldapsdk-bin or --without-ldapsdk-bin was given.
  21311. if test "${with_ldapsdk_bin+set}" = set; then
  21312. withval="$with_ldapsdk_bin"
  21313. if test -d "$withval"
  21314. then
  21315. echo "$as_me:$LINENO: result: using $withval" >&5
  21316. echo "${ECHO_T}using $withval" >&6
  21317. ldapsdk_bindir="$withval"
  21318. else
  21319. echo
  21320. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21321. echo "$as_me: error: $withval not found" >&2;}
  21322. { (exit 1); exit 1; }; }
  21323. fi
  21324. else
  21325. echo "$as_me:$LINENO: result: no" >&5
  21326. echo "${ECHO_T}no" >&6
  21327. fi;
  21328. # if LDAPSDK is not found yet, try pkg-config
  21329. # last resort
  21330. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  21331. # Extract the first word of "pkg-config", so it can be a program name with args.
  21332. set dummy pkg-config; ac_word=$2
  21333. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21334. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21335. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21336. echo $ECHO_N "(cached) $ECHO_C" >&6
  21337. else
  21338. case $PKG_CONFIG in
  21339. [\\/]* | ?:[\\/]*)
  21340. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21341. ;;
  21342. *)
  21343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21344. for as_dir in $PATH
  21345. do
  21346. IFS=$as_save_IFS
  21347. test -z "$as_dir" && as_dir=.
  21348. for ac_exec_ext in '' $ac_executable_extensions; do
  21349. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21350. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21351. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21352. break 2
  21353. fi
  21354. done
  21355. done
  21356. ;;
  21357. esac
  21358. fi
  21359. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21360. if test -n "$PKG_CONFIG"; then
  21361. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21362. echo "${ECHO_T}$PKG_CONFIG" >&6
  21363. else
  21364. echo "$as_me:$LINENO: result: no" >&5
  21365. echo "${ECHO_T}no" >&6
  21366. fi
  21367. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  21368. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  21369. if test -n "$PKG_CONFIG"; then
  21370. if $PKG_CONFIG --exists mozldap6; then
  21371. mozldappkg=mozldap6
  21372. elif $PKG_CONFIG --exists mozldap; then
  21373. mozldappkg=mozldap
  21374. else
  21375. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  21376. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  21377. { (exit 1); exit 1; }; }
  21378. fi
  21379. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  21380. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  21381. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  21382. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  21383. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  21384. echo "${ECHO_T}using system $mozldappkg" >&6
  21385. fi
  21386. fi
  21387. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  21388. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  21389. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  21390. { (exit 1); exit 1; }; }
  21391. fi
  21392. if test -z "$ldapsdk_bindir" ; then
  21393. if -d $libdir/mozldap6 ; then
  21394. ldapsdk_bindir=$libdir/mozldap6
  21395. else
  21396. ldapsdk_bindir=$libdir/mozldap
  21397. fi
  21398. fi
  21399. save_cppflags="$CPPFLAGS"
  21400. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  21401. echo "$as_me:$LINENO: checking for ldap.h" >&5
  21402. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  21403. if test "${ac_cv_header_ldap_h+set}" = set; then
  21404. echo $ECHO_N "(cached) $ECHO_C" >&6
  21405. else
  21406. cat >conftest.$ac_ext <<_ACEOF
  21407. /* confdefs.h. */
  21408. _ACEOF
  21409. cat confdefs.h >>conftest.$ac_ext
  21410. cat >>conftest.$ac_ext <<_ACEOF
  21411. /* end confdefs.h. */
  21412. #include <ldap-standard.h>
  21413. #if LDAP_VENDOR_VERSION < 600
  21414. #error The LDAP C SDK version is not supported
  21415. #endif
  21416. #include <ldap.h>
  21417. _ACEOF
  21418. rm -f conftest.$ac_objext
  21419. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21420. (eval $ac_compile) 2>conftest.er1
  21421. ac_status=$?
  21422. grep -v '^ *+' conftest.er1 >conftest.err
  21423. rm -f conftest.er1
  21424. cat conftest.err >&5
  21425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21426. (exit $ac_status); } &&
  21427. { ac_try='test -z "$ac_c_werror_flag"
  21428. || test ! -s conftest.err'
  21429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21430. (eval $ac_try) 2>&5
  21431. ac_status=$?
  21432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21433. (exit $ac_status); }; } &&
  21434. { ac_try='test -s conftest.$ac_objext'
  21435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21436. (eval $ac_try) 2>&5
  21437. ac_status=$?
  21438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21439. (exit $ac_status); }; }; then
  21440. ac_cv_header_ldap_h=yes
  21441. else
  21442. echo "$as_me: failed program was:" >&5
  21443. sed 's/^/| /' conftest.$ac_ext >&5
  21444. ac_cv_header_ldap_h=no
  21445. fi
  21446. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21447. fi
  21448. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  21449. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  21450. if test $ac_cv_header_ldap_h = yes; then
  21451. isversion6=1
  21452. else
  21453. isversion6=
  21454. fi
  21455. CPPFLAGS="$save_cppflags"
  21456. if test -z "$isversion6" ; then
  21457. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  21458. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  21459. { (exit 1); exit 1; }; }
  21460. fi
  21461. # BEGIN COPYRIGHT BLOCK
  21462. # Copyright (C) 2007 Red Hat, Inc.
  21463. # All rights reserved.
  21464. #
  21465. # This program is free software; you can redistribute it and/or
  21466. # modify it under the terms of the GNU General Public License
  21467. # as published by the Free Software Foundation; either version 2
  21468. # of the License, or (at your option) any later version.
  21469. #
  21470. # This program is distributed in the hope that it will be useful,
  21471. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21472. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21473. # GNU General Public License for more details.
  21474. #
  21475. # You should have received a copy of the GNU General Public License
  21476. # along with this program; if not, write to the Free Software
  21477. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21478. #
  21479. # END COPYRIGHT BLOCK
  21480. { echo "$as_me:$LINENO: checking for db..." >&5
  21481. echo "$as_me: checking for db..." >&6;}
  21482. echo "$as_me:$LINENO: checking for --with-db" >&5
  21483. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  21484. # Check whether --with-db or --without-db was given.
  21485. if test "${with_db+set}" = set; then
  21486. withval="$with_db"
  21487. if test "$withval" = "yes"; then
  21488. echo "$as_me:$LINENO: result: yes" >&5
  21489. echo "${ECHO_T}yes" >&6
  21490. if test -f "/usr/include/db.h"; then
  21491. db_incdir="/usr/include"
  21492. db_inc="-I/usr/include"
  21493. else
  21494. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  21495. echo "$as_me: error: db.h not found" >&2;}
  21496. { (exit 1); exit 1; }; }
  21497. fi
  21498. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21499. echo "$as_me:$LINENO: result: using $withval" >&5
  21500. echo "${ECHO_T}using $withval" >&6
  21501. DBDIR=$withval
  21502. db_lib="-L$DBDIR/lib"
  21503. db_libdir="$DBDIR/lib"
  21504. db_incdir="$DBDIR/include"
  21505. if ! test -e "$db_incdir/db.h" ; then
  21506. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21507. echo "$as_me: error: $withval include dir not found" >&2;}
  21508. { (exit 1); exit 1; }; }
  21509. fi
  21510. db_inc="-I$db_incdir"
  21511. else
  21512. echo
  21513. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21514. echo "$as_me: error: $withval not found" >&2;}
  21515. { (exit 1); exit 1; }; }
  21516. fi
  21517. else
  21518. echo "$as_me:$LINENO: result: no" >&5
  21519. echo "${ECHO_T}no" >&6
  21520. fi;
  21521. if test -z "$db_inc"; then
  21522. echo "$as_me:$LINENO: checking for db.h" >&5
  21523. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  21524. if test -f "/usr/include/db.h"; then
  21525. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  21526. echo "${ECHO_T}using /usr/include/db.h" >&6
  21527. db_incdir="/usr/include"
  21528. db_inc="-I/usr/include"
  21529. else
  21530. echo "$as_me:$LINENO: result: no" >&5
  21531. echo "${ECHO_T}no" >&6
  21532. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  21533. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  21534. { (exit 1); exit 1; }; }
  21535. fi
  21536. fi
  21537. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  21538. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  21539. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  21540. db_libver=${db_ver_maj}.${db_ver_min}
  21541. save_ldflags="$LDFLAGS"
  21542. LDFLAGS="$db_lib $LDFLAGS"
  21543. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  21544. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  21545. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  21546. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21547. echo $ECHO_N "(cached) $ECHO_C" >&6
  21548. else
  21549. ac_check_lib_save_LIBS=$LIBS
  21550. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  21551. cat >conftest.$ac_ext <<_ACEOF
  21552. /* confdefs.h. */
  21553. _ACEOF
  21554. cat confdefs.h >>conftest.$ac_ext
  21555. cat >>conftest.$ac_ext <<_ACEOF
  21556. /* end confdefs.h. */
  21557. /* Override any gcc2 internal prototype to avoid an error. */
  21558. #ifdef __cplusplus
  21559. extern "C"
  21560. #endif
  21561. /* We use char because int might match the return type of a gcc2
  21562. builtin and then its argument prototype would still apply. */
  21563. char db_create ();
  21564. int
  21565. main ()
  21566. {
  21567. db_create ();
  21568. ;
  21569. return 0;
  21570. }
  21571. _ACEOF
  21572. rm -f conftest.$ac_objext conftest$ac_exeext
  21573. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21574. (eval $ac_link) 2>conftest.er1
  21575. ac_status=$?
  21576. grep -v '^ *+' conftest.er1 >conftest.err
  21577. rm -f conftest.er1
  21578. cat conftest.err >&5
  21579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21580. (exit $ac_status); } &&
  21581. { ac_try='test -z "$ac_c_werror_flag"
  21582. || test ! -s conftest.err'
  21583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21584. (eval $ac_try) 2>&5
  21585. ac_status=$?
  21586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21587. (exit $ac_status); }; } &&
  21588. { ac_try='test -s conftest$ac_exeext'
  21589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21590. (eval $ac_try) 2>&5
  21591. ac_status=$?
  21592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21593. (exit $ac_status); }; }; then
  21594. eval "$as_ac_Lib=yes"
  21595. else
  21596. echo "$as_me: failed program was:" >&5
  21597. sed 's/^/| /' conftest.$ac_ext >&5
  21598. eval "$as_ac_Lib=no"
  21599. fi
  21600. rm -f conftest.err conftest.$ac_objext \
  21601. conftest$ac_exeext conftest.$ac_ext
  21602. LIBS=$ac_check_lib_save_LIBS
  21603. fi
  21604. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21605. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21606. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21607. true
  21608. else
  21609. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  21610. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  21611. { (exit 1); exit 1; }; }
  21612. fi
  21613. LDFLAGS="$save_ldflags"
  21614. # if DB is not found yet, try pkg-config
  21615. # last resort
  21616. # Although the other db_* variables are correctly assigned at this point,
  21617. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  21618. if test -n "$PKG_CONFIG"; then
  21619. if $PKG_CONFIG --exists db; then
  21620. db_bindir=`$PKG_CONFIG --variable=bindir db`
  21621. else
  21622. db_bindir=/usr/bin
  21623. fi
  21624. else
  21625. db_bindir=/usr/bin
  21626. fi
  21627. # BEGIN COPYRIGHT BLOCK
  21628. # Copyright (C) 2007 Red Hat, Inc.
  21629. # All rights reserved.
  21630. #
  21631. # This program is free software; you can redistribute it and/or
  21632. # modify it under the terms of the GNU General Public License
  21633. # as published by the Free Software Foundation; either version 2
  21634. # of the License, or (at your option) any later version.
  21635. #
  21636. # This program is distributed in the hope that it will be useful,
  21637. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21638. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21639. # GNU General Public License for more details.
  21640. #
  21641. # You should have received a copy of the GNU General Public License
  21642. # along with this program; if not, write to the Free Software
  21643. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21644. #
  21645. # END COPYRIGHT BLOCK
  21646. # -*- tab-width: 4; -*-
  21647. # Configure paths for SASL
  21648. { echo "$as_me:$LINENO: checking for sasl..." >&5
  21649. echo "$as_me: checking for sasl..." >&6;}
  21650. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  21651. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  21652. # Check whether --with-sasl or --without-sasl was given.
  21653. if test "${with_sasl+set}" = set; then
  21654. withval="$with_sasl"
  21655. if test "$withval" = "yes"; then
  21656. echo "$as_me:$LINENO: result: yes" >&5
  21657. echo "${ECHO_T}yes" >&6
  21658. if test -f /usr/include/sasl/sasl.h; then
  21659. sasl_inc="-I/usr/include/sasl"
  21660. elif test -f /usr/include/sasl.h; then
  21661. sasl_inc="-I/usr/include"
  21662. else
  21663. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21664. echo "$as_me: error: sasl.h not found" >&2;}
  21665. { (exit 1); exit 1; }; }
  21666. fi
  21667. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21668. echo "$as_me:$LINENO: result: using $withval" >&5
  21669. echo "${ECHO_T}using $withval" >&6
  21670. if test -f "$withval/include/sasl/sasl.h"; then
  21671. sasl_inc="-I$withval/include/sasl"
  21672. elif test -f "$withval/include/sasl.h"; then
  21673. sasl_inc="-I$withval/include"
  21674. else
  21675. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21676. echo "$as_me: error: sasl.h not found" >&2;}
  21677. { (exit 1); exit 1; }; }
  21678. fi
  21679. sasl_lib="-L$withval/lib"
  21680. sasl_libdir="$withval/lib"
  21681. else
  21682. echo "$as_me:$LINENO: result: yes" >&5
  21683. echo "${ECHO_T}yes" >&6
  21684. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  21685. echo "$as_me: error: sasl not found in $withval" >&2;}
  21686. { (exit 1); exit 1; }; }
  21687. fi
  21688. else
  21689. echo "$as_me:$LINENO: result: no" >&5
  21690. echo "${ECHO_T}no" >&6
  21691. fi;
  21692. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  21693. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  21694. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  21695. if test "${with_sasl_inc+set}" = set; then
  21696. withval="$with_sasl_inc"
  21697. if test -f "$withval"/sasl.h; then
  21698. echo "$as_me:$LINENO: result: using $withval" >&5
  21699. echo "${ECHO_T}using $withval" >&6
  21700. sasl_inc="-I$withval"
  21701. else
  21702. echo
  21703. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  21704. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  21705. { (exit 1); exit 1; }; }
  21706. fi
  21707. else
  21708. echo "$as_me:$LINENO: result: no" >&5
  21709. echo "${ECHO_T}no" >&6
  21710. fi;
  21711. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  21712. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  21713. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  21714. if test "${with_sasl_lib+set}" = set; then
  21715. withval="$with_sasl_lib"
  21716. if test -d "$withval"; then
  21717. echo "$as_me:$LINENO: result: using $withval" >&5
  21718. echo "${ECHO_T}using $withval" >&6
  21719. sasl_lib="-L$withval"
  21720. sasl_libdir="$withval"
  21721. else
  21722. echo
  21723. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21724. echo "$as_me: error: $withval not found" >&2;}
  21725. { (exit 1); exit 1; }; }
  21726. fi
  21727. else
  21728. echo "$as_me:$LINENO: result: no" >&5
  21729. echo "${ECHO_T}no" >&6
  21730. fi;
  21731. if test -z "$sasl_inc"; then
  21732. echo "$as_me:$LINENO: checking for sasl.h" >&5
  21733. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  21734. if test -f /usr/include/sasl/sasl.h; then
  21735. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  21736. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  21737. sasl_inc="-I/usr/include/sasl"
  21738. elif test -f /usr/include/sasl.h; then
  21739. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  21740. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  21741. sasl_inc="-I/usr/include"
  21742. else
  21743. echo "$as_me:$LINENO: result: no" >&5
  21744. echo "${ECHO_T}no" >&6
  21745. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  21746. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  21747. { (exit 1); exit 1; }; }
  21748. fi
  21749. fi
  21750. # BEGIN COPYRIGHT BLOCK
  21751. # Copyright (C) 2007 Red Hat, Inc.
  21752. # All rights reserved.
  21753. #
  21754. # This program is free software; you can redistribute it and/or
  21755. # modify it under the terms of the GNU General Public License
  21756. # as published by the Free Software Foundation; either version 2
  21757. # of the License, or (at your option) any later version.
  21758. #
  21759. # This program is distributed in the hope that it will be useful,
  21760. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21761. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21762. # GNU General Public License for more details.
  21763. #
  21764. # You should have received a copy of the GNU General Public License
  21765. # along with this program; if not, write to the Free Software
  21766. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21767. #
  21768. # END COPYRIGHT BLOCK
  21769. #
  21770. # Configure paths for SVRCORE
  21771. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  21772. echo "$as_me: checking for svrcore..." >&6;}
  21773. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  21774. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  21775. # Check whether --with-svrcore or --without-svrcore was given.
  21776. if test "${with_svrcore+set}" = set; then
  21777. withval="$with_svrcore"
  21778. if test "$withval" = "yes"; then
  21779. echo "$as_me:$LINENO: result: yes" >&5
  21780. echo "${ECHO_T}yes" >&6
  21781. if test -f /usr/include/svrcore.h; then
  21782. svrcore_inc="-I/usr/include"
  21783. else
  21784. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21785. echo "$as_me: error: svrcore.h not found" >&2;}
  21786. { (exit 1); exit 1; }; }
  21787. fi
  21788. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21789. echo "$as_me:$LINENO: result: using $withval" >&5
  21790. echo "${ECHO_T}using $withval" >&6
  21791. if test -f "$withval/include/svrcore.h"; then
  21792. svrcore_inc="-I$withval/include"
  21793. else
  21794. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21795. echo "$as_me: error: svrcore.h not found" >&2;}
  21796. { (exit 1); exit 1; }; }
  21797. fi
  21798. svrcore_lib="-L$withval/lib"
  21799. else
  21800. echo "$as_me:$LINENO: result: yes" >&5
  21801. echo "${ECHO_T}yes" >&6
  21802. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  21803. echo "$as_me: error: svrcore not found in $withval" >&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. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  21811. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  21812. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  21813. if test "${with_svrcore_inc+set}" = set; then
  21814. withval="$with_svrcore_inc"
  21815. if test -f "$withval"/svrcore.h; then
  21816. echo "$as_me:$LINENO: result: using $withval" >&5
  21817. echo "${ECHO_T}using $withval" >&6
  21818. svrcore_inc="-I$withval"
  21819. else
  21820. echo
  21821. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  21822. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  21823. { (exit 1); exit 1; }; }
  21824. fi
  21825. else
  21826. echo "$as_me:$LINENO: result: no" >&5
  21827. echo "${ECHO_T}no" >&6
  21828. fi;
  21829. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  21830. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  21831. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  21832. if test "${with_svrcore_lib+set}" = set; then
  21833. withval="$with_svrcore_lib"
  21834. if test -d "$withval"; then
  21835. echo "$as_me:$LINENO: result: using $withval" >&5
  21836. echo "${ECHO_T}using $withval" >&6
  21837. svrcore_lib="-L$withval"
  21838. else
  21839. echo
  21840. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21841. echo "$as_me: error: $withval not found" >&2;}
  21842. { (exit 1); exit 1; }; }
  21843. fi
  21844. else
  21845. echo "$as_me:$LINENO: result: no" >&5
  21846. echo "${ECHO_T}no" >&6
  21847. fi;
  21848. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21849. # Extract the first word of "pkg-config", so it can be a program name with args.
  21850. set dummy pkg-config; ac_word=$2
  21851. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21852. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21853. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21854. echo $ECHO_N "(cached) $ECHO_C" >&6
  21855. else
  21856. case $PKG_CONFIG in
  21857. [\\/]* | ?:[\\/]*)
  21858. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21859. ;;
  21860. *)
  21861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21862. for as_dir in $PATH
  21863. do
  21864. IFS=$as_save_IFS
  21865. test -z "$as_dir" && as_dir=.
  21866. for ac_exec_ext in '' $ac_executable_extensions; do
  21867. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21868. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21869. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21870. break 2
  21871. fi
  21872. done
  21873. done
  21874. ;;
  21875. esac
  21876. fi
  21877. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21878. if test -n "$PKG_CONFIG"; then
  21879. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21880. echo "${ECHO_T}$PKG_CONFIG" >&6
  21881. else
  21882. echo "$as_me:$LINENO: result: no" >&5
  21883. echo "${ECHO_T}no" >&6
  21884. fi
  21885. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  21886. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  21887. if test -n "$PKG_CONFIG"; then
  21888. if $PKG_CONFIG --exists svrcore; then
  21889. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  21890. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  21891. echo "$as_me:$LINENO: result: using system svrcore" >&5
  21892. echo "${ECHO_T}using system svrcore" >&6
  21893. fi
  21894. fi
  21895. fi
  21896. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21897. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  21898. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  21899. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  21900. echo $ECHO_N "(cached) $ECHO_C" >&6
  21901. else
  21902. ac_check_lib_save_LIBS=$LIBS
  21903. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  21904. cat >conftest.$ac_ext <<_ACEOF
  21905. /* confdefs.h. */
  21906. _ACEOF
  21907. cat confdefs.h >>conftest.$ac_ext
  21908. cat >>conftest.$ac_ext <<_ACEOF
  21909. /* end confdefs.h. */
  21910. /* Override any gcc2 internal prototype to avoid an error. */
  21911. #ifdef __cplusplus
  21912. extern "C"
  21913. #endif
  21914. /* We use char because int might match the return type of a gcc2
  21915. builtin and then its argument prototype would still apply. */
  21916. char SVRCORE_GetRegisteredPinObj ();
  21917. int
  21918. main ()
  21919. {
  21920. SVRCORE_GetRegisteredPinObj ();
  21921. ;
  21922. return 0;
  21923. }
  21924. _ACEOF
  21925. rm -f conftest.$ac_objext conftest$ac_exeext
  21926. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21927. (eval $ac_link) 2>conftest.er1
  21928. ac_status=$?
  21929. grep -v '^ *+' conftest.er1 >conftest.err
  21930. rm -f conftest.er1
  21931. cat conftest.err >&5
  21932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21933. (exit $ac_status); } &&
  21934. { ac_try='test -z "$ac_c_werror_flag"
  21935. || test ! -s conftest.err'
  21936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21937. (eval $ac_try) 2>&5
  21938. ac_status=$?
  21939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21940. (exit $ac_status); }; } &&
  21941. { ac_try='test -s conftest$ac_exeext'
  21942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21943. (eval $ac_try) 2>&5
  21944. ac_status=$?
  21945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21946. (exit $ac_status); }; }; then
  21947. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  21948. else
  21949. echo "$as_me: failed program was:" >&5
  21950. sed 's/^/| /' conftest.$ac_ext >&5
  21951. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  21952. fi
  21953. rm -f conftest.err conftest.$ac_objext \
  21954. conftest$ac_exeext conftest.$ac_ext
  21955. LIBS=$ac_check_lib_save_LIBS
  21956. fi
  21957. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  21958. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  21959. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  21960. havesvrcore=1
  21961. fi
  21962. if test -n "$havesvrcore" ; then
  21963. save_cppflags="$CPPFLAGS"
  21964. CPPFLAGS="$nss_inc $nspr_inc"
  21965. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21966. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  21967. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  21968. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21969. echo $ECHO_N "(cached) $ECHO_C" >&6
  21970. fi
  21971. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  21972. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  21973. else
  21974. # Is the header compilable?
  21975. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  21976. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  21977. cat >conftest.$ac_ext <<_ACEOF
  21978. /* confdefs.h. */
  21979. _ACEOF
  21980. cat confdefs.h >>conftest.$ac_ext
  21981. cat >>conftest.$ac_ext <<_ACEOF
  21982. /* end confdefs.h. */
  21983. $ac_includes_default
  21984. #include <svrcore.h>
  21985. _ACEOF
  21986. rm -f conftest.$ac_objext
  21987. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21988. (eval $ac_compile) 2>conftest.er1
  21989. ac_status=$?
  21990. grep -v '^ *+' conftest.er1 >conftest.err
  21991. rm -f conftest.er1
  21992. cat conftest.err >&5
  21993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21994. (exit $ac_status); } &&
  21995. { ac_try='test -z "$ac_c_werror_flag"
  21996. || test ! -s conftest.err'
  21997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21998. (eval $ac_try) 2>&5
  21999. ac_status=$?
  22000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22001. (exit $ac_status); }; } &&
  22002. { ac_try='test -s conftest.$ac_objext'
  22003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22004. (eval $ac_try) 2>&5
  22005. ac_status=$?
  22006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22007. (exit $ac_status); }; }; then
  22008. ac_header_compiler=yes
  22009. else
  22010. echo "$as_me: failed program was:" >&5
  22011. sed 's/^/| /' conftest.$ac_ext >&5
  22012. ac_header_compiler=no
  22013. fi
  22014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22015. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22016. echo "${ECHO_T}$ac_header_compiler" >&6
  22017. # Is the header present?
  22018. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  22019. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  22020. cat >conftest.$ac_ext <<_ACEOF
  22021. /* confdefs.h. */
  22022. _ACEOF
  22023. cat confdefs.h >>conftest.$ac_ext
  22024. cat >>conftest.$ac_ext <<_ACEOF
  22025. /* end confdefs.h. */
  22026. #include <svrcore.h>
  22027. _ACEOF
  22028. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22029. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22030. ac_status=$?
  22031. grep -v '^ *+' conftest.er1 >conftest.err
  22032. rm -f conftest.er1
  22033. cat conftest.err >&5
  22034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22035. (exit $ac_status); } >/dev/null; then
  22036. if test -s conftest.err; then
  22037. ac_cpp_err=$ac_c_preproc_warn_flag
  22038. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22039. else
  22040. ac_cpp_err=
  22041. fi
  22042. else
  22043. ac_cpp_err=yes
  22044. fi
  22045. if test -z "$ac_cpp_err"; then
  22046. ac_header_preproc=yes
  22047. else
  22048. echo "$as_me: failed program was:" >&5
  22049. sed 's/^/| /' conftest.$ac_ext >&5
  22050. ac_header_preproc=no
  22051. fi
  22052. rm -f conftest.err conftest.$ac_ext
  22053. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22054. echo "${ECHO_T}$ac_header_preproc" >&6
  22055. # So? What about this header?
  22056. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22057. yes:no: )
  22058. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22059. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22060. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  22061. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  22062. ac_header_preproc=yes
  22063. ;;
  22064. no:yes:* )
  22065. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  22066. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  22067. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  22068. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  22069. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  22070. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  22071. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  22072. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22073. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  22074. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  22075. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  22076. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  22077. (
  22078. cat <<\_ASBOX
  22079. ## ------------------------------------------ ##
  22080. ## Report this to http://bugzilla.redhat.com/ ##
  22081. ## ------------------------------------------ ##
  22082. _ASBOX
  22083. ) |
  22084. sed "s/^/$as_me: WARNING: /" >&2
  22085. ;;
  22086. esac
  22087. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22088. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22089. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22090. echo $ECHO_N "(cached) $ECHO_C" >&6
  22091. else
  22092. ac_cv_header_svrcore_h=$ac_header_preproc
  22093. fi
  22094. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22095. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22096. fi
  22097. if test $ac_cv_header_svrcore_h = yes; then
  22098. havesvrcore=1
  22099. else
  22100. havesvrcore=
  22101. fi
  22102. CPPFLAGS="$save_cppflags"
  22103. fi
  22104. if test -z "$havesvrcore" ; then
  22105. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  22106. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  22107. { (exit 1); exit 1; }; }
  22108. fi
  22109. fi
  22110. # BEGIN COPYRIGHT BLOCK
  22111. # Copyright (C) 2006 Red Hat, Inc.
  22112. # All rights reserved.
  22113. #
  22114. # This program is free software; you can redistribute it and/or
  22115. # modify it under the terms of the GNU General Public License
  22116. # as published by the Free Software Foundation; either version 2
  22117. # of the License, or (at your option) any later version.
  22118. #
  22119. # This program is distributed in the hope that it will be useful,
  22120. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22121. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22122. # GNU General Public License for more details.
  22123. #
  22124. # You should have received a copy of the GNU General Public License
  22125. # along with this program; if not, write to the Free Software
  22126. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22127. #
  22128. # END COPYRIGHT BLOCK
  22129. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  22130. echo "$as_me: checking for LIBICU..." >&6;}
  22131. # check for --with-icu
  22132. echo "$as_me:$LINENO: checking for --with-icu" >&5
  22133. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  22134. # Check whether --with-icu or --without-icu was given.
  22135. if test "${with_icu+set}" = set; then
  22136. withval="$with_icu"
  22137. if test -d "$withval"/lib
  22138. then
  22139. echo "$as_me:$LINENO: result: using $withval" >&5
  22140. echo "${ECHO_T}using $withval" >&6
  22141. ICUDIR=$withval
  22142. icu_lib="-L$ICUDIR/lib"
  22143. else
  22144. echo
  22145. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22146. echo "$as_me: error: $withval not found" >&2;}
  22147. { (exit 1); exit 1; }; }
  22148. fi
  22149. icu_inc="-I$withval/include"
  22150. icu_bin="$withval/bin"
  22151. else
  22152. echo "$as_me:$LINENO: result: no" >&5
  22153. echo "${ECHO_T}no" >&6
  22154. fi;
  22155. # check for --with-icu-inc
  22156. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  22157. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  22158. # Check whether --with-icu-inc or --without-icu-inc was given.
  22159. if test "${with_icu_inc+set}" = set; then
  22160. withval="$with_icu_inc"
  22161. if test -d "$withval"
  22162. then
  22163. echo "$as_me:$LINENO: result: using $withval" >&5
  22164. echo "${ECHO_T}using $withval" >&6
  22165. icu_inc="-I$withval"
  22166. else
  22167. echo
  22168. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22169. echo "$as_me: error: $withval not found" >&2;}
  22170. { (exit 1); exit 1; }; }
  22171. fi
  22172. else
  22173. echo "$as_me:$LINENO: result: no" >&5
  22174. echo "${ECHO_T}no" >&6
  22175. fi;
  22176. # check for --with-icu-lib
  22177. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  22178. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  22179. # Check whether --with-icu-lib or --without-icu-lib was given.
  22180. if test "${with_icu_lib+set}" = set; then
  22181. withval="$with_icu_lib"
  22182. if test -d "$withval"
  22183. then
  22184. echo "$as_me:$LINENO: result: using $withval" >&5
  22185. echo "${ECHO_T}using $withval" >&6
  22186. icu_lib="-L$withval"
  22187. else
  22188. echo
  22189. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22190. echo "$as_me: error: $withval not found" >&2;}
  22191. { (exit 1); exit 1; }; }
  22192. fi
  22193. else
  22194. echo "$as_me:$LINENO: result: no" >&5
  22195. echo "${ECHO_T}no" >&6
  22196. fi;
  22197. # check for --with-icu-bin
  22198. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  22199. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  22200. # Check whether --with-icu-bin or --without-icu-bin was given.
  22201. if test "${with_icu_bin+set}" = set; then
  22202. withval="$with_icu_bin"
  22203. if test -d "$withval"
  22204. then
  22205. echo "$as_me:$LINENO: result: using $withval" >&5
  22206. echo "${ECHO_T}using $withval" >&6
  22207. icu_bin="$withval"
  22208. else
  22209. echo
  22210. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22211. echo "$as_me: error: $withval not found" >&2;}
  22212. { (exit 1); exit 1; }; }
  22213. fi
  22214. else
  22215. echo "$as_me:$LINENO: result: no" >&5
  22216. echo "${ECHO_T}no" >&6
  22217. fi;
  22218. # if ICU is not found yet, try pkg-config
  22219. # last resort
  22220. if test -z "$icu_lib"; then
  22221. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  22222. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  22223. # Extract the first word of "icu-config", so it can be a program name with args.
  22224. set dummy icu-config; ac_word=$2
  22225. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22226. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22227. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  22228. echo $ECHO_N "(cached) $ECHO_C" >&6
  22229. else
  22230. case $ICU_CONFIG in
  22231. [\\/]* | ?:[\\/]*)
  22232. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  22233. ;;
  22234. *)
  22235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22236. for as_dir in $PATH
  22237. do
  22238. IFS=$as_save_IFS
  22239. test -z "$as_dir" && as_dir=.
  22240. for ac_exec_ext in '' $ac_executable_extensions; do
  22241. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22242. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22243. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22244. break 2
  22245. fi
  22246. done
  22247. done
  22248. ;;
  22249. esac
  22250. fi
  22251. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  22252. if test -n "$ICU_CONFIG"; then
  22253. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  22254. echo "${ECHO_T}$ICU_CONFIG" >&6
  22255. else
  22256. echo "$as_me:$LINENO: result: no" >&5
  22257. echo "${ECHO_T}no" >&6
  22258. fi
  22259. if test -n "$ICU_CONFIG"; then
  22260. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  22261. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  22262. icu_bin=`$ICU_CONFIG --bindir`
  22263. echo "$as_me:$LINENO: result: using system ICU" >&5
  22264. echo "${ECHO_T}using system ICU" >&6
  22265. else
  22266. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  22267. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  22268. { (exit 1); exit 1; }; }
  22269. fi
  22270. fi
  22271. # BEGIN COPYRIGHT BLOCK
  22272. # Copyright (C) 2006 Red Hat, Inc.
  22273. # All rights reserved.
  22274. #
  22275. # This program is free software; you can redistribute it and/or
  22276. # modify it under the terms of the GNU General Public License
  22277. # as published by the Free Software Foundation; either version 2
  22278. # of the License, or (at your option) any later version.
  22279. #
  22280. # This program is distributed in the hope that it will be useful,
  22281. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22282. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22283. # GNU General Public License for more details.
  22284. #
  22285. # You should have received a copy of the GNU General Public License
  22286. # along with this program; if not, write to the Free Software
  22287. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22288. #
  22289. # END COPYRIGHT BLOCK
  22290. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  22291. echo "$as_me: checking for Net-SNMP..." >&6;}
  22292. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  22293. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  22294. # Check whether --with-netsnmp or --without-netsnmp was given.
  22295. if test "${with_netsnmp+set}" = set; then
  22296. withval="$with_netsnmp"
  22297. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  22298. echo "$as_me:$LINENO: result: using $withval" >&5
  22299. echo "${ECHO_T}using $withval" >&6
  22300. NETSNMPDIR=$withval
  22301. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  22302. netsnmp_inc="-I$withval/include"
  22303. else
  22304. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  22305. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  22306. { (exit 1); exit 1; }; }
  22307. fi
  22308. netsnmp_lib="-L$withval/lib"
  22309. netsnmp_libdir="$withval/lib"
  22310. else
  22311. echo "$as_me:$LINENO: result: yes" >&5
  22312. echo "${ECHO_T}yes" >&6
  22313. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22314. echo "$as_me: error: $withval not found" >&2;}
  22315. { (exit 1); exit 1; }; }
  22316. fi
  22317. else
  22318. echo "$as_me:$LINENO: result: no" >&5
  22319. echo "${ECHO_T}no" >&6
  22320. fi;
  22321. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  22322. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  22323. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  22324. if test "${with_netsnmp_inc+set}" = set; then
  22325. withval="$with_netsnmp_inc"
  22326. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  22327. echo "$as_me:$LINENO: result: using $withval" >&5
  22328. echo "${ECHO_T}using $withval" >&6
  22329. netsnmp_inc="-I$withval"
  22330. else
  22331. echo
  22332. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  22333. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  22334. { (exit 1); exit 1; }; }
  22335. fi
  22336. else
  22337. echo "$as_me:$LINENO: result: no" >&5
  22338. echo "${ECHO_T}no" >&6
  22339. fi;
  22340. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  22341. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  22342. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  22343. if test "${with_netsnmp_lib+set}" = set; then
  22344. withval="$with_netsnmp_lib"
  22345. if test -d "$withval"
  22346. then
  22347. echo "$as_me:$LINENO: result: using $withval" >&5
  22348. echo "${ECHO_T}using $withval" >&6
  22349. netsnmp_lib="-L$withval"
  22350. netsnmp_libdir="$withval"
  22351. else
  22352. echo
  22353. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22354. echo "$as_me: error: $withval not found" >&2;}
  22355. { (exit 1); exit 1; }; }
  22356. fi
  22357. else
  22358. echo "$as_me:$LINENO: result: no" >&5
  22359. echo "${ECHO_T}no" >&6
  22360. fi;
  22361. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  22362. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  22363. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  22364. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  22365. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  22366. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  22367. netsnmp_inc="-I/usr/include"
  22368. else
  22369. echo "$as_me:$LINENO: result: no" >&5
  22370. echo "${ECHO_T}no" >&6
  22371. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  22372. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  22373. { (exit 1); exit 1; }; }
  22374. fi
  22375. fi
  22376. if test -n "$netsnmp_inc"; then
  22377. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  22378. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  22379. else
  22380. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  22381. set dummy net-snmp-config; ac_word=$2
  22382. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22383. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22384. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  22385. echo $ECHO_N "(cached) $ECHO_C" >&6
  22386. else
  22387. case $NETSNMP_CONFIG in
  22388. [\\/]* | ?:[\\/]*)
  22389. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  22390. ;;
  22391. *)
  22392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22393. for as_dir in $PATH
  22394. do
  22395. IFS=$as_save_IFS
  22396. test -z "$as_dir" && as_dir=.
  22397. for ac_exec_ext in '' $ac_executable_extensions; do
  22398. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22399. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22400. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22401. break 2
  22402. fi
  22403. done
  22404. done
  22405. ;;
  22406. esac
  22407. fi
  22408. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  22409. if test -n "$NETSNMP_CONFIG"; then
  22410. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  22411. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  22412. else
  22413. echo "$as_me:$LINENO: result: no" >&5
  22414. echo "${ECHO_T}no" >&6
  22415. fi
  22416. fi
  22417. if test -n "$NETSNMP_CONFIG"; then
  22418. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  22419. else
  22420. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  22421. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  22422. { (exit 1); exit 1; }; }
  22423. fi
  22424. else
  22425. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  22426. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  22427. { (exit 1); exit 1; }; }
  22428. fi
  22429. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  22430. # write out paths for binary components
  22431. cat >>confdefs.h <<\_ACEOF
  22432. #define LDAP_DEBUG 1
  22433. _ACEOF
  22434. cat >>confdefs.h <<\_ACEOF
  22435. #define LDAP_DONT_USE_SMARTHEAP 1
  22436. _ACEOF
  22437. # libtool on fedora/rhel contains some gcc-isms which cause problems
  22438. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  22439. # we remove them here
  22440. if test "$GCC" != yes ; then
  22441. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  22442. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  22443. cp -p libtool libtool.orig
  22444. cp -p libtool libtool.tmp
  22445. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  22446. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  22447. # perl produced write-only code . . .
  22448. sed -e '/^gcc_dir/ d' \
  22449. -e '/^gcc_ver/ d' \
  22450. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  22451. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  22452. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  22453. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  22454. libtool > libtool.tmp
  22455. cp -p libtool.tmp libtool
  22456. rm -f libtool.tmp
  22457. fi
  22458. ac_config_files="$ac_config_files Makefile"
  22459. cat >confcache <<\_ACEOF
  22460. # This file is a shell script that caches the results of configure
  22461. # tests run on this system so they can be shared between configure
  22462. # scripts and configure runs, see configure's option --config-cache.
  22463. # It is not useful on other systems. If it contains results you don't
  22464. # want to keep, you may remove or edit it.
  22465. #
  22466. # config.status only pays attention to the cache file if you give it
  22467. # the --recheck option to rerun configure.
  22468. #
  22469. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22470. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22471. # following values.
  22472. _ACEOF
  22473. # The following way of writing the cache mishandles newlines in values,
  22474. # but we know of no workaround that is simple, portable, and efficient.
  22475. # So, don't put newlines in cache variables' values.
  22476. # Ultrix sh set writes to stderr and can't be redirected directly,
  22477. # and sets the high bit in the cache file unless we assign to the vars.
  22478. {
  22479. (set) 2>&1 |
  22480. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  22481. *ac_space=\ *)
  22482. # `set' does not quote correctly, so add quotes (double-quote
  22483. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22484. sed -n \
  22485. "s/'/'\\\\''/g;
  22486. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22487. ;;
  22488. *)
  22489. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22490. sed -n \
  22491. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  22492. ;;
  22493. esac;
  22494. } |
  22495. sed '
  22496. t clear
  22497. : clear
  22498. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22499. t end
  22500. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22501. : end' >>confcache
  22502. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  22503. if test -w $cache_file; then
  22504. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  22505. cat confcache >$cache_file
  22506. else
  22507. echo "not updating unwritable cache $cache_file"
  22508. fi
  22509. fi
  22510. rm -f confcache
  22511. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22512. # Let make expand exec_prefix.
  22513. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22514. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22515. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22516. # trailing colons and then remove the whole line if VPATH becomes empty
  22517. # (actually we leave an empty line to preserve line numbers).
  22518. if test "x$srcdir" = x.; then
  22519. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22520. s/:*\$(srcdir):*/:/;
  22521. s/:*\${srcdir}:*/:/;
  22522. s/:*@srcdir@:*/:/;
  22523. s/^\([^=]*=[ ]*\):*/\1/;
  22524. s/:*$//;
  22525. s/^[^=]*=[ ]*$//;
  22526. }'
  22527. fi
  22528. DEFS=-DHAVE_CONFIG_H
  22529. ac_libobjs=
  22530. ac_ltlibobjs=
  22531. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22532. # 1. Remove the extension, and $U if already installed.
  22533. ac_i=`echo "$ac_i" |
  22534. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  22535. # 2. Add them.
  22536. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  22537. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  22538. done
  22539. LIBOBJS=$ac_libobjs
  22540. LTLIBOBJS=$ac_ltlibobjs
  22541. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22542. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  22543. Usually this means the macro was only invoked conditionally." >&5
  22544. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  22545. Usually this means the macro was only invoked conditionally." >&2;}
  22546. { (exit 1); exit 1; }; }
  22547. fi
  22548. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22549. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22550. Usually this means the macro was only invoked conditionally." >&5
  22551. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22552. Usually this means the macro was only invoked conditionally." >&2;}
  22553. { (exit 1); exit 1; }; }
  22554. fi
  22555. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22556. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22557. Usually this means the macro was only invoked conditionally." >&5
  22558. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22559. Usually this means the macro was only invoked conditionally." >&2;}
  22560. { (exit 1); exit 1; }; }
  22561. fi
  22562. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22563. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22564. Usually this means the macro was only invoked conditionally." >&5
  22565. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22566. Usually this means the macro was only invoked conditionally." >&2;}
  22567. { (exit 1); exit 1; }; }
  22568. fi
  22569. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  22570. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  22571. Usually this means the macro was only invoked conditionally." >&5
  22572. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  22573. Usually this means the macro was only invoked conditionally." >&2;}
  22574. { (exit 1); exit 1; }; }
  22575. fi
  22576. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  22577. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  22578. Usually this means the macro was only invoked conditionally." >&5
  22579. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  22580. Usually this means the macro was only invoked conditionally." >&2;}
  22581. { (exit 1); exit 1; }; }
  22582. fi
  22583. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  22584. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  22585. Usually this means the macro was only invoked conditionally." >&5
  22586. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  22587. Usually this means the macro was only invoked conditionally." >&2;}
  22588. { (exit 1); exit 1; }; }
  22589. fi
  22590. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  22591. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  22592. Usually this means the macro was only invoked conditionally." >&5
  22593. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  22594. Usually this means the macro was only invoked conditionally." >&2;}
  22595. { (exit 1); exit 1; }; }
  22596. fi
  22597. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  22598. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  22599. Usually this means the macro was only invoked conditionally." >&5
  22600. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  22601. Usually this means the macro was only invoked conditionally." >&2;}
  22602. { (exit 1); exit 1; }; }
  22603. fi
  22604. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  22605. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  22606. Usually this means the macro was only invoked conditionally." >&5
  22607. echo "$as_me: error: conditional \"WINNT\" was never defined.
  22608. Usually this means the macro was only invoked conditionally." >&2;}
  22609. { (exit 1); exit 1; }; }
  22610. fi
  22611. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  22612. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  22613. Usually this means the macro was only invoked conditionally." >&5
  22614. echo "$as_me: error: conditional \"HPUX\" was never defined.
  22615. Usually this means the macro was only invoked conditionally." >&2;}
  22616. { (exit 1); exit 1; }; }
  22617. fi
  22618. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  22619. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  22620. Usually this means the macro was only invoked conditionally." >&5
  22621. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  22622. Usually this means the macro was only invoked conditionally." >&2;}
  22623. { (exit 1); exit 1; }; }
  22624. fi
  22625. : ${CONFIG_STATUS=./config.status}
  22626. ac_clean_files_save=$ac_clean_files
  22627. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22628. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22629. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22630. cat >$CONFIG_STATUS <<_ACEOF
  22631. #! $SHELL
  22632. # Generated by $as_me.
  22633. # Run this file to recreate the current configuration.
  22634. # Compiler output produced by configure, useful for debugging
  22635. # configure, is in config.log if it exists.
  22636. debug=false
  22637. ac_cs_recheck=false
  22638. ac_cs_silent=false
  22639. SHELL=\${CONFIG_SHELL-$SHELL}
  22640. _ACEOF
  22641. cat >>$CONFIG_STATUS <<\_ACEOF
  22642. ## --------------------- ##
  22643. ## M4sh Initialization. ##
  22644. ## --------------------- ##
  22645. # Be Bourne compatible
  22646. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22647. emulate sh
  22648. NULLCMD=:
  22649. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  22650. # is contrary to our usage. Disable this feature.
  22651. alias -g '${1+"$@"}'='"$@"'
  22652. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22653. set -o posix
  22654. fi
  22655. DUALCASE=1; export DUALCASE # for MKS sh
  22656. # Support unset when possible.
  22657. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22658. as_unset=unset
  22659. else
  22660. as_unset=false
  22661. fi
  22662. # Work around bugs in pre-3.0 UWIN ksh.
  22663. $as_unset ENV MAIL MAILPATH
  22664. PS1='$ '
  22665. PS2='> '
  22666. PS4='+ '
  22667. # NLS nuisances.
  22668. for as_var in \
  22669. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  22670. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  22671. LC_TELEPHONE LC_TIME
  22672. do
  22673. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  22674. eval $as_var=C; export $as_var
  22675. else
  22676. $as_unset $as_var
  22677. fi
  22678. done
  22679. # Required to use basename.
  22680. if expr a : '\(a\)' >/dev/null 2>&1; then
  22681. as_expr=expr
  22682. else
  22683. as_expr=false
  22684. fi
  22685. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  22686. as_basename=basename
  22687. else
  22688. as_basename=false
  22689. fi
  22690. # Name of the executable.
  22691. as_me=`$as_basename "$0" ||
  22692. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22693. X"$0" : 'X\(//\)$' \| \
  22694. X"$0" : 'X\(/\)$' \| \
  22695. . : '\(.\)' 2>/dev/null ||
  22696. echo X/"$0" |
  22697. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  22698. /^X\/\(\/\/\)$/{ s//\1/; q; }
  22699. /^X\/\(\/\).*/{ s//\1/; q; }
  22700. s/.*/./; q'`
  22701. # PATH needs CR, and LINENO needs CR and PATH.
  22702. # Avoid depending upon Character Ranges.
  22703. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22704. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22705. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22706. as_cr_digits='0123456789'
  22707. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22708. # The user is always right.
  22709. if test "${PATH_SEPARATOR+set}" != set; then
  22710. echo "#! /bin/sh" >conf$$.sh
  22711. echo "exit 0" >>conf$$.sh
  22712. chmod +x conf$$.sh
  22713. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  22714. PATH_SEPARATOR=';'
  22715. else
  22716. PATH_SEPARATOR=:
  22717. fi
  22718. rm -f conf$$.sh
  22719. fi
  22720. as_lineno_1=$LINENO
  22721. as_lineno_2=$LINENO
  22722. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22723. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22724. test "x$as_lineno_3" = "x$as_lineno_2" || {
  22725. # Find who we are. Look in the path if we contain no path at all
  22726. # relative or not.
  22727. case $0 in
  22728. *[\\/]* ) as_myself=$0 ;;
  22729. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22730. for as_dir in $PATH
  22731. do
  22732. IFS=$as_save_IFS
  22733. test -z "$as_dir" && as_dir=.
  22734. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22735. done
  22736. ;;
  22737. esac
  22738. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22739. # in which case we are not to be found in the path.
  22740. if test "x$as_myself" = x; then
  22741. as_myself=$0
  22742. fi
  22743. if test ! -f "$as_myself"; then
  22744. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  22745. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  22746. { (exit 1); exit 1; }; }
  22747. fi
  22748. case $CONFIG_SHELL in
  22749. '')
  22750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22751. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  22752. do
  22753. IFS=$as_save_IFS
  22754. test -z "$as_dir" && as_dir=.
  22755. for as_base in sh bash ksh sh5; do
  22756. case $as_dir in
  22757. /*)
  22758. if ("$as_dir/$as_base" -c '
  22759. as_lineno_1=$LINENO
  22760. as_lineno_2=$LINENO
  22761. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22762. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22763. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  22764. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  22765. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  22766. CONFIG_SHELL=$as_dir/$as_base
  22767. export CONFIG_SHELL
  22768. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  22769. fi;;
  22770. esac
  22771. done
  22772. done
  22773. ;;
  22774. esac
  22775. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22776. # uniformly replaced by the line number. The first 'sed' inserts a
  22777. # line-number line before each line; the second 'sed' does the real
  22778. # work. The second script uses 'N' to pair each line-number line
  22779. # with the numbered line, and appends trailing '-' during
  22780. # substitution so that $LINENO is not a special case at line end.
  22781. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22782. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  22783. sed '=' <$as_myself |
  22784. sed '
  22785. N
  22786. s,$,-,
  22787. : loop
  22788. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  22789. t loop
  22790. s,-$,,
  22791. s,^['$as_cr_digits']*\n,,
  22792. ' >$as_me.lineno &&
  22793. chmod +x $as_me.lineno ||
  22794. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  22795. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  22796. { (exit 1); exit 1; }; }
  22797. # Don't try to exec as it changes $[0], causing all sort of problems
  22798. # (the dirname of $[0] is not the place where we might find the
  22799. # original and so on. Autoconf is especially sensible to this).
  22800. . ./$as_me.lineno
  22801. # Exit status is that of the last command.
  22802. exit
  22803. }
  22804. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  22805. *c*,-n*) ECHO_N= ECHO_C='
  22806. ' ECHO_T=' ' ;;
  22807. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  22808. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  22809. esac
  22810. if expr a : '\(a\)' >/dev/null 2>&1; then
  22811. as_expr=expr
  22812. else
  22813. as_expr=false
  22814. fi
  22815. rm -f conf$$ conf$$.exe conf$$.file
  22816. echo >conf$$.file
  22817. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22818. # We could just check for DJGPP; but this test a) works b) is more generic
  22819. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  22820. if test -f conf$$.exe; then
  22821. # Don't use ln at all; we don't have any links
  22822. as_ln_s='cp -p'
  22823. else
  22824. as_ln_s='ln -s'
  22825. fi
  22826. elif ln conf$$.file conf$$ 2>/dev/null; then
  22827. as_ln_s=ln
  22828. else
  22829. as_ln_s='cp -p'
  22830. fi
  22831. rm -f conf$$ conf$$.exe conf$$.file
  22832. if mkdir -p . 2>/dev/null; then
  22833. as_mkdir_p=:
  22834. else
  22835. test -d ./-p && rmdir ./-p
  22836. as_mkdir_p=false
  22837. fi
  22838. as_executable_p="test -f"
  22839. # Sed expression to map a string onto a valid CPP name.
  22840. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22841. # Sed expression to map a string onto a valid variable name.
  22842. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22843. # IFS
  22844. # We need space, tab and new line, in precisely that order.
  22845. as_nl='
  22846. '
  22847. IFS=" $as_nl"
  22848. # CDPATH.
  22849. $as_unset CDPATH
  22850. exec 6>&1
  22851. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  22852. # report actual input values of CONFIG_FILES etc. instead of their
  22853. # values after options handling. Logging --version etc. is OK.
  22854. exec 5>>config.log
  22855. {
  22856. echo
  22857. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22858. ## Running $as_me. ##
  22859. _ASBOX
  22860. } >&5
  22861. cat >&5 <<_CSEOF
  22862. This file was extended by dirsrv $as_me 1.1.0b1, which was
  22863. generated by GNU Autoconf 2.59. Invocation command line was
  22864. CONFIG_FILES = $CONFIG_FILES
  22865. CONFIG_HEADERS = $CONFIG_HEADERS
  22866. CONFIG_LINKS = $CONFIG_LINKS
  22867. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22868. $ $0 $@
  22869. _CSEOF
  22870. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  22871. echo >&5
  22872. _ACEOF
  22873. # Files that config.status was made for.
  22874. if test -n "$ac_config_files"; then
  22875. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  22876. fi
  22877. if test -n "$ac_config_headers"; then
  22878. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  22879. fi
  22880. if test -n "$ac_config_links"; then
  22881. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  22882. fi
  22883. if test -n "$ac_config_commands"; then
  22884. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  22885. fi
  22886. cat >>$CONFIG_STATUS <<\_ACEOF
  22887. ac_cs_usage="\
  22888. \`$as_me' instantiates files from templates according to the
  22889. current configuration.
  22890. Usage: $0 [OPTIONS] [FILE]...
  22891. -h, --help print this help, then exit
  22892. -V, --version print version number, then exit
  22893. -q, --quiet do not print progress messages
  22894. -d, --debug don't remove temporary files
  22895. --recheck update $as_me by reconfiguring in the same conditions
  22896. --file=FILE[:TEMPLATE]
  22897. instantiate the configuration file FILE
  22898. --header=FILE[:TEMPLATE]
  22899. instantiate the configuration header FILE
  22900. Configuration files:
  22901. $config_files
  22902. Configuration headers:
  22903. $config_headers
  22904. Configuration commands:
  22905. $config_commands
  22906. Report bugs to <[email protected]>."
  22907. _ACEOF
  22908. cat >>$CONFIG_STATUS <<_ACEOF
  22909. ac_cs_version="\\
  22910. dirsrv config.status 1.1.0b1
  22911. configured by $0, generated by GNU Autoconf 2.59,
  22912. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  22913. Copyright (C) 2003 Free Software Foundation, Inc.
  22914. This config.status script is free software; the Free Software Foundation
  22915. gives unlimited permission to copy, distribute and modify it."
  22916. srcdir=$srcdir
  22917. INSTALL="$INSTALL"
  22918. _ACEOF
  22919. cat >>$CONFIG_STATUS <<\_ACEOF
  22920. # If no file are specified by the user, then we need to provide default
  22921. # value. By we need to know if files were specified by the user.
  22922. ac_need_defaults=:
  22923. while test $# != 0
  22924. do
  22925. case $1 in
  22926. --*=*)
  22927. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  22928. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  22929. ac_shift=:
  22930. ;;
  22931. -*)
  22932. ac_option=$1
  22933. ac_optarg=$2
  22934. ac_shift=shift
  22935. ;;
  22936. *) # This is not an option, so the user has probably given explicit
  22937. # arguments.
  22938. ac_option=$1
  22939. ac_need_defaults=false;;
  22940. esac
  22941. case $ac_option in
  22942. # Handling of the options.
  22943. _ACEOF
  22944. cat >>$CONFIG_STATUS <<\_ACEOF
  22945. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22946. ac_cs_recheck=: ;;
  22947. --version | --vers* | -V )
  22948. echo "$ac_cs_version"; exit 0 ;;
  22949. --he | --h)
  22950. # Conflict between --help and --header
  22951. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  22952. Try \`$0 --help' for more information." >&5
  22953. echo "$as_me: error: ambiguous option: $1
  22954. Try \`$0 --help' for more information." >&2;}
  22955. { (exit 1); exit 1; }; };;
  22956. --help | --hel | -h )
  22957. echo "$ac_cs_usage"; exit 0 ;;
  22958. --debug | --d* | -d )
  22959. debug=: ;;
  22960. --file | --fil | --fi | --f )
  22961. $ac_shift
  22962. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  22963. ac_need_defaults=false;;
  22964. --header | --heade | --head | --hea )
  22965. $ac_shift
  22966. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  22967. ac_need_defaults=false;;
  22968. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22969. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22970. ac_cs_silent=: ;;
  22971. # This is an error.
  22972. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  22973. Try \`$0 --help' for more information." >&5
  22974. echo "$as_me: error: unrecognized option: $1
  22975. Try \`$0 --help' for more information." >&2;}
  22976. { (exit 1); exit 1; }; } ;;
  22977. *) ac_config_targets="$ac_config_targets $1" ;;
  22978. esac
  22979. shift
  22980. done
  22981. ac_configure_extra_args=
  22982. if $ac_cs_silent; then
  22983. exec 6>/dev/null
  22984. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22985. fi
  22986. _ACEOF
  22987. cat >>$CONFIG_STATUS <<_ACEOF
  22988. if \$ac_cs_recheck; then
  22989. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  22990. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22991. fi
  22992. _ACEOF
  22993. cat >>$CONFIG_STATUS <<_ACEOF
  22994. #
  22995. # INIT-COMMANDS section.
  22996. #
  22997. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22998. _ACEOF
  22999. cat >>$CONFIG_STATUS <<\_ACEOF
  23000. for ac_config_target in $ac_config_targets
  23001. do
  23002. case "$ac_config_target" in
  23003. # Handling of arguments.
  23004. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23005. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23006. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  23007. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  23008. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  23009. { (exit 1); exit 1; }; };;
  23010. esac
  23011. done
  23012. # If the user did not use the arguments to specify the items to instantiate,
  23013. # then the envvar interface is used. Set only those that are not.
  23014. # We use the long form for the default assignment because of an extremely
  23015. # bizarre bug on SunOS 4.1.3.
  23016. if $ac_need_defaults; then
  23017. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23018. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23019. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23020. fi
  23021. # Have a temporary directory for convenience. Make it in the build tree
  23022. # simply because there is no reason to put it here, and in addition,
  23023. # creating and moving files from /tmp can sometimes cause problems.
  23024. # Create a temporary directory, and hook for its removal unless debugging.
  23025. $debug ||
  23026. {
  23027. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  23028. trap '{ (exit 1); exit 1; }' 1 2 13 15
  23029. }
  23030. # Create a (secure) tmp directory for tmp files.
  23031. {
  23032. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  23033. test -n "$tmp" && test -d "$tmp"
  23034. } ||
  23035. {
  23036. tmp=./confstat$$-$RANDOM
  23037. (umask 077 && mkdir $tmp)
  23038. } ||
  23039. {
  23040. echo "$me: cannot create a temporary directory in ." >&2
  23041. { (exit 1); exit 1; }
  23042. }
  23043. _ACEOF
  23044. cat >>$CONFIG_STATUS <<_ACEOF
  23045. #
  23046. # CONFIG_FILES section.
  23047. #
  23048. # No need to generate the scripts if there are no CONFIG_FILES.
  23049. # This happens for instance when ./config.status config.h
  23050. if test -n "\$CONFIG_FILES"; then
  23051. # Protect against being on the right side of a sed subst in config.status.
  23052. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  23053. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  23054. s,@SHELL@,$SHELL,;t t
  23055. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  23056. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  23057. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  23058. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  23059. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  23060. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  23061. s,@exec_prefix@,$exec_prefix,;t t
  23062. s,@prefix@,$prefix,;t t
  23063. s,@program_transform_name@,$program_transform_name,;t t
  23064. s,@bindir@,$bindir,;t t
  23065. s,@sbindir@,$sbindir,;t t
  23066. s,@libexecdir@,$libexecdir,;t t
  23067. s,@datadir@,$datadir,;t t
  23068. s,@sysconfdir@,$sysconfdir,;t t
  23069. s,@sharedstatedir@,$sharedstatedir,;t t
  23070. s,@localstatedir@,$localstatedir,;t t
  23071. s,@libdir@,$libdir,;t t
  23072. s,@includedir@,$includedir,;t t
  23073. s,@oldincludedir@,$oldincludedir,;t t
  23074. s,@infodir@,$infodir,;t t
  23075. s,@mandir@,$mandir,;t t
  23076. s,@build_alias@,$build_alias,;t t
  23077. s,@host_alias@,$host_alias,;t t
  23078. s,@target_alias@,$target_alias,;t t
  23079. s,@DEFS@,$DEFS,;t t
  23080. s,@ECHO_C@,$ECHO_C,;t t
  23081. s,@ECHO_N@,$ECHO_N,;t t
  23082. s,@ECHO_T@,$ECHO_T,;t t
  23083. s,@LIBS@,$LIBS,;t t
  23084. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  23085. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  23086. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  23087. s,@CYGPATH_W@,$CYGPATH_W,;t t
  23088. s,@PACKAGE@,$PACKAGE,;t t
  23089. s,@VERSION@,$VERSION,;t t
  23090. s,@ACLOCAL@,$ACLOCAL,;t t
  23091. s,@AUTOCONF@,$AUTOCONF,;t t
  23092. s,@AUTOMAKE@,$AUTOMAKE,;t t
  23093. s,@AUTOHEADER@,$AUTOHEADER,;t t
  23094. s,@MAKEINFO@,$MAKEINFO,;t t
  23095. s,@install_sh@,$install_sh,;t t
  23096. s,@STRIP@,$STRIP,;t t
  23097. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  23098. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  23099. s,@mkdir_p@,$mkdir_p,;t t
  23100. s,@AWK@,$AWK,;t t
  23101. s,@SET_MAKE@,$SET_MAKE,;t t
  23102. s,@am__leading_dot@,$am__leading_dot,;t t
  23103. s,@AMTAR@,$AMTAR,;t t
  23104. s,@am__tar@,$am__tar,;t t
  23105. s,@am__untar@,$am__untar,;t t
  23106. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  23107. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  23108. s,@MAINT@,$MAINT,;t t
  23109. s,@build@,$build,;t t
  23110. s,@build_cpu@,$build_cpu,;t t
  23111. s,@build_vendor@,$build_vendor,;t t
  23112. s,@build_os@,$build_os,;t t
  23113. s,@host@,$host,;t t
  23114. s,@host_cpu@,$host_cpu,;t t
  23115. s,@host_vendor@,$host_vendor,;t t
  23116. s,@host_os@,$host_os,;t t
  23117. s,@CXX@,$CXX,;t t
  23118. s,@CXXFLAGS@,$CXXFLAGS,;t t
  23119. s,@LDFLAGS@,$LDFLAGS,;t t
  23120. s,@CPPFLAGS@,$CPPFLAGS,;t t
  23121. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  23122. s,@EXEEXT@,$EXEEXT,;t t
  23123. s,@OBJEXT@,$OBJEXT,;t t
  23124. s,@DEPDIR@,$DEPDIR,;t t
  23125. s,@am__include@,$am__include,;t t
  23126. s,@am__quote@,$am__quote,;t t
  23127. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  23128. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  23129. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  23130. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  23131. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  23132. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  23133. s,@CC@,$CC,;t t
  23134. s,@CFLAGS@,$CFLAGS,;t t
  23135. s,@ac_ct_CC@,$ac_ct_CC,;t t
  23136. s,@CCDEPMODE@,$CCDEPMODE,;t t
  23137. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  23138. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  23139. s,@SED@,$SED,;t t
  23140. s,@EGREP@,$EGREP,;t t
  23141. s,@LN_S@,$LN_S,;t t
  23142. s,@ECHO@,$ECHO,;t t
  23143. s,@AR@,$AR,;t t
  23144. s,@ac_ct_AR@,$ac_ct_AR,;t t
  23145. s,@RANLIB@,$RANLIB,;t t
  23146. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  23147. s,@CPP@,$CPP,;t t
  23148. s,@CXXCPP@,$CXXCPP,;t t
  23149. s,@F77@,$F77,;t t
  23150. s,@FFLAGS@,$FFLAGS,;t t
  23151. s,@ac_ct_F77@,$ac_ct_F77,;t t
  23152. s,@LIBTOOL@,$LIBTOOL,;t t
  23153. s,@LIBOBJS@,$LIBOBJS,;t t
  23154. s,@debug_defs@,$debug_defs,;t t
  23155. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  23156. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  23157. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  23158. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  23159. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  23160. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  23161. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  23162. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  23163. s,@enable_bitwise_TRUE@,$enable_bitwise_TRUE,;t t
  23164. s,@enable_bitwise_FALSE@,$enable_bitwise_FALSE,;t t
  23165. s,@with_fhs_opt@,$with_fhs_opt,;t t
  23166. s,@configdir@,$configdir,;t t
  23167. s,@sampledatadir@,$sampledatadir,;t t
  23168. s,@propertydir@,$propertydir,;t t
  23169. s,@schemadir@,$schemadir,;t t
  23170. s,@serverdir@,$serverdir,;t t
  23171. s,@serverplugindir@,$serverplugindir,;t t
  23172. s,@scripttemplatedir@,$scripttemplatedir,;t t
  23173. s,@perldir@,$perldir,;t t
  23174. s,@infdir@,$infdir,;t t
  23175. s,@defaultuser@,$defaultuser,;t t
  23176. s,@defaultgroup@,$defaultgroup,;t t
  23177. s,@instconfigdir@,$instconfigdir,;t t
  23178. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  23179. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  23180. s,@LIBSOCKET@,$LIBSOCKET,;t t
  23181. s,@LIBNSL@,$LIBNSL,;t t
  23182. s,@LIBDL@,$LIBDL,;t t
  23183. s,@LIBCSTD@,$LIBCSTD,;t t
  23184. s,@LIBCRUN@,$LIBCRUN,;t t
  23185. s,@initdir@,$initdir,;t t
  23186. s,@perlexec@,$perlexec,;t t
  23187. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  23188. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  23189. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  23190. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  23191. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  23192. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  23193. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  23194. s,@PACKAGE_BASE_VERSION@,$PACKAGE_BASE_VERSION,;t t
  23195. s,@nspr_inc@,$nspr_inc,;t t
  23196. s,@nspr_lib@,$nspr_lib,;t t
  23197. s,@nspr_libdir@,$nspr_libdir,;t t
  23198. s,@nss_inc@,$nss_inc,;t t
  23199. s,@nss_lib@,$nss_lib,;t t
  23200. s,@nss_libdir@,$nss_libdir,;t t
  23201. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  23202. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  23203. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  23204. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  23205. s,@db_inc@,$db_inc,;t t
  23206. s,@db_incdir@,$db_incdir,;t t
  23207. s,@db_lib@,$db_lib,;t t
  23208. s,@db_libdir@,$db_libdir,;t t
  23209. s,@db_bindir@,$db_bindir,;t t
  23210. s,@db_libver@,$db_libver,;t t
  23211. s,@sasl_inc@,$sasl_inc,;t t
  23212. s,@sasl_lib@,$sasl_lib,;t t
  23213. s,@sasl_libdir@,$sasl_libdir,;t t
  23214. s,@svrcore_inc@,$svrcore_inc,;t t
  23215. s,@svrcore_lib@,$svrcore_lib,;t t
  23216. s,@icu_lib@,$icu_lib,;t t
  23217. s,@icu_inc@,$icu_inc,;t t
  23218. s,@icu_bin@,$icu_bin,;t t
  23219. s,@netsnmp_inc@,$netsnmp_inc,;t t
  23220. s,@netsnmp_lib@,$netsnmp_lib,;t t
  23221. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  23222. s,@netsnmp_link@,$netsnmp_link,;t t
  23223. s,@brand@,$brand,;t t
  23224. s,@capbrand@,$capbrand,;t t
  23225. s,@vendor@,$vendor,;t t
  23226. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  23227. CEOF
  23228. _ACEOF
  23229. cat >>$CONFIG_STATUS <<\_ACEOF
  23230. # Split the substitutions into bite-sized pieces for seds with
  23231. # small command number limits, like on Digital OSF/1 and HP-UX.
  23232. ac_max_sed_lines=48
  23233. ac_sed_frag=1 # Number of current file.
  23234. ac_beg=1 # First line for current file.
  23235. ac_end=$ac_max_sed_lines # Line after last line for current file.
  23236. ac_more_lines=:
  23237. ac_sed_cmds=
  23238. while $ac_more_lines; do
  23239. if test $ac_beg -gt 1; then
  23240. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23241. else
  23242. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23243. fi
  23244. if test ! -s $tmp/subs.frag; then
  23245. ac_more_lines=false
  23246. else
  23247. # The purpose of the label and of the branching condition is to
  23248. # speed up the sed processing (if there are no `@' at all, there
  23249. # is no need to browse any of the substitutions).
  23250. # These are the two extra sed commands mentioned above.
  23251. (echo ':t
  23252. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  23253. if test -z "$ac_sed_cmds"; then
  23254. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  23255. else
  23256. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  23257. fi
  23258. ac_sed_frag=`expr $ac_sed_frag + 1`
  23259. ac_beg=$ac_end
  23260. ac_end=`expr $ac_end + $ac_max_sed_lines`
  23261. fi
  23262. done
  23263. if test -z "$ac_sed_cmds"; then
  23264. ac_sed_cmds=cat
  23265. fi
  23266. fi # test -n "$CONFIG_FILES"
  23267. _ACEOF
  23268. cat >>$CONFIG_STATUS <<\_ACEOF
  23269. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  23270. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23271. case $ac_file in
  23272. - | *:- | *:-:* ) # input from stdin
  23273. cat >$tmp/stdin
  23274. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23275. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23276. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23277. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23278. * ) ac_file_in=$ac_file.in ;;
  23279. esac
  23280. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  23281. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23282. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23283. X"$ac_file" : 'X\(//\)[^/]' \| \
  23284. X"$ac_file" : 'X\(//\)$' \| \
  23285. X"$ac_file" : 'X\(/\)' \| \
  23286. . : '\(.\)' 2>/dev/null ||
  23287. echo X"$ac_file" |
  23288. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23289. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23290. /^X\(\/\/\)$/{ s//\1/; q; }
  23291. /^X\(\/\).*/{ s//\1/; q; }
  23292. s/.*/./; q'`
  23293. { if $as_mkdir_p; then
  23294. mkdir -p "$ac_dir"
  23295. else
  23296. as_dir="$ac_dir"
  23297. as_dirs=
  23298. while test ! -d "$as_dir"; do
  23299. as_dirs="$as_dir $as_dirs"
  23300. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23301. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23302. X"$as_dir" : 'X\(//\)[^/]' \| \
  23303. X"$as_dir" : 'X\(//\)$' \| \
  23304. X"$as_dir" : 'X\(/\)' \| \
  23305. . : '\(.\)' 2>/dev/null ||
  23306. echo X"$as_dir" |
  23307. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23308. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23309. /^X\(\/\/\)$/{ s//\1/; q; }
  23310. /^X\(\/\).*/{ s//\1/; q; }
  23311. s/.*/./; q'`
  23312. done
  23313. test ! -n "$as_dirs" || mkdir $as_dirs
  23314. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23315. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23316. { (exit 1); exit 1; }; }; }
  23317. ac_builddir=.
  23318. if test "$ac_dir" != .; then
  23319. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23320. # A "../" for each directory in $ac_dir_suffix.
  23321. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23322. else
  23323. ac_dir_suffix= ac_top_builddir=
  23324. fi
  23325. case $srcdir in
  23326. .) # No --srcdir option. We are building in place.
  23327. ac_srcdir=.
  23328. if test -z "$ac_top_builddir"; then
  23329. ac_top_srcdir=.
  23330. else
  23331. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23332. fi ;;
  23333. [\\/]* | ?:[\\/]* ) # Absolute path.
  23334. ac_srcdir=$srcdir$ac_dir_suffix;
  23335. ac_top_srcdir=$srcdir ;;
  23336. *) # Relative path.
  23337. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23338. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23339. esac
  23340. # Do not use `cd foo && pwd` to compute absolute paths, because
  23341. # the directories may not exist.
  23342. case `pwd` in
  23343. .) ac_abs_builddir="$ac_dir";;
  23344. *)
  23345. case "$ac_dir" in
  23346. .) ac_abs_builddir=`pwd`;;
  23347. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23348. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23349. esac;;
  23350. esac
  23351. case $ac_abs_builddir in
  23352. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23353. *)
  23354. case ${ac_top_builddir}. in
  23355. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23356. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23357. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23358. esac;;
  23359. esac
  23360. case $ac_abs_builddir in
  23361. .) ac_abs_srcdir=$ac_srcdir;;
  23362. *)
  23363. case $ac_srcdir in
  23364. .) ac_abs_srcdir=$ac_abs_builddir;;
  23365. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23366. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23367. esac;;
  23368. esac
  23369. case $ac_abs_builddir in
  23370. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23371. *)
  23372. case $ac_top_srcdir in
  23373. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23374. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23375. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23376. esac;;
  23377. esac
  23378. case $INSTALL in
  23379. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23380. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  23381. esac
  23382. if test x"$ac_file" != x-; then
  23383. { echo "$as_me:$LINENO: creating $ac_file" >&5
  23384. echo "$as_me: creating $ac_file" >&6;}
  23385. rm -f "$ac_file"
  23386. fi
  23387. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23388. # use $as_me), people would be surprised to read:
  23389. # /* config.h. Generated by config.status. */
  23390. if test x"$ac_file" = x-; then
  23391. configure_input=
  23392. else
  23393. configure_input="$ac_file. "
  23394. fi
  23395. configure_input=$configure_input"Generated from `echo $ac_file_in |
  23396. sed 's,.*/,,'` by configure."
  23397. # First look for the input files in the build tree, otherwise in the
  23398. # src tree.
  23399. ac_file_inputs=`IFS=:
  23400. for f in $ac_file_in; do
  23401. case $f in
  23402. -) echo $tmp/stdin ;;
  23403. [\\/$]*)
  23404. # Absolute (can't be DOS-style, as IFS=:)
  23405. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23406. echo "$as_me: error: cannot find input file: $f" >&2;}
  23407. { (exit 1); exit 1; }; }
  23408. echo "$f";;
  23409. *) # Relative
  23410. if test -f "$f"; then
  23411. # Build tree
  23412. echo "$f"
  23413. elif test -f "$srcdir/$f"; then
  23414. # Source tree
  23415. echo "$srcdir/$f"
  23416. else
  23417. # /dev/null tree
  23418. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23419. echo "$as_me: error: cannot find input file: $f" >&2;}
  23420. { (exit 1); exit 1; }; }
  23421. fi;;
  23422. esac
  23423. done` || { (exit 1); exit 1; }
  23424. _ACEOF
  23425. cat >>$CONFIG_STATUS <<_ACEOF
  23426. sed "$ac_vpsub
  23427. $extrasub
  23428. _ACEOF
  23429. cat >>$CONFIG_STATUS <<\_ACEOF
  23430. :t
  23431. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23432. s,@configure_input@,$configure_input,;t t
  23433. s,@srcdir@,$ac_srcdir,;t t
  23434. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  23435. s,@top_srcdir@,$ac_top_srcdir,;t t
  23436. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  23437. s,@builddir@,$ac_builddir,;t t
  23438. s,@abs_builddir@,$ac_abs_builddir,;t t
  23439. s,@top_builddir@,$ac_top_builddir,;t t
  23440. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  23441. s,@INSTALL@,$ac_INSTALL,;t t
  23442. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  23443. rm -f $tmp/stdin
  23444. if test x"$ac_file" != x-; then
  23445. mv $tmp/out $ac_file
  23446. else
  23447. cat $tmp/out
  23448. rm -f $tmp/out
  23449. fi
  23450. done
  23451. _ACEOF
  23452. cat >>$CONFIG_STATUS <<\_ACEOF
  23453. #
  23454. # CONFIG_HEADER section.
  23455. #
  23456. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  23457. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  23458. #
  23459. # ac_d sets the value in "#define NAME VALUE" lines.
  23460. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  23461. ac_dB='[ ].*$,\1#\2'
  23462. ac_dC=' '
  23463. ac_dD=',;t'
  23464. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  23465. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  23466. ac_uB='$,\1#\2define\3'
  23467. ac_uC=' '
  23468. ac_uD=',;t'
  23469. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  23470. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23471. case $ac_file in
  23472. - | *:- | *:-:* ) # input from stdin
  23473. cat >$tmp/stdin
  23474. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23475. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23476. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23477. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23478. * ) ac_file_in=$ac_file.in ;;
  23479. esac
  23480. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  23481. echo "$as_me: creating $ac_file" >&6;}
  23482. # First look for the input files in the build tree, otherwise in the
  23483. # src tree.
  23484. ac_file_inputs=`IFS=:
  23485. for f in $ac_file_in; do
  23486. case $f in
  23487. -) echo $tmp/stdin ;;
  23488. [\\/$]*)
  23489. # Absolute (can't be DOS-style, as IFS=:)
  23490. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23491. echo "$as_me: error: cannot find input file: $f" >&2;}
  23492. { (exit 1); exit 1; }; }
  23493. # Do quote $f, to prevent DOS paths from being IFS'd.
  23494. echo "$f";;
  23495. *) # Relative
  23496. if test -f "$f"; then
  23497. # Build tree
  23498. echo "$f"
  23499. elif test -f "$srcdir/$f"; then
  23500. # Source tree
  23501. echo "$srcdir/$f"
  23502. else
  23503. # /dev/null tree
  23504. { { 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. fi;;
  23508. esac
  23509. done` || { (exit 1); exit 1; }
  23510. # Remove the trailing spaces.
  23511. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  23512. _ACEOF
  23513. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  23514. # `conftest.undefs', that substitutes the proper values into
  23515. # config.h.in to produce config.h. The first handles `#define'
  23516. # templates, and the second `#undef' templates.
  23517. # And first: Protect against being on the right side of a sed subst in
  23518. # config.status. Protect against being in an unquoted here document
  23519. # in config.status.
  23520. rm -f conftest.defines conftest.undefs
  23521. # Using a here document instead of a string reduces the quoting nightmare.
  23522. # Putting comments in sed scripts is not portable.
  23523. #
  23524. # `end' is used to avoid that the second main sed command (meant for
  23525. # 0-ary CPP macros) applies to n-ary macro definitions.
  23526. # See the Autoconf documentation for `clear'.
  23527. cat >confdef2sed.sed <<\_ACEOF
  23528. s/[\\&,]/\\&/g
  23529. s,[\\$`],\\&,g
  23530. t clear
  23531. : clear
  23532. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  23533. t end
  23534. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  23535. : end
  23536. _ACEOF
  23537. # If some macros were called several times there might be several times
  23538. # the same #defines, which is useless. Nevertheless, we may not want to
  23539. # sort them, since we want the *last* AC-DEFINE to be honored.
  23540. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  23541. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  23542. rm -f confdef2sed.sed
  23543. # This sed command replaces #undef with comments. This is necessary, for
  23544. # example, in the case of _POSIX_SOURCE, which is predefined and required
  23545. # on some systems where configure will not decide to define it.
  23546. cat >>conftest.undefs <<\_ACEOF
  23547. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  23548. _ACEOF
  23549. # Break up conftest.defines because some shells have a limit on the size
  23550. # of here documents, and old seds have small limits too (100 cmds).
  23551. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  23552. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  23553. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  23554. echo ' :' >>$CONFIG_STATUS
  23555. rm -f conftest.tail
  23556. while grep . conftest.defines >/dev/null
  23557. do
  23558. # Write a limited-size here document to $tmp/defines.sed.
  23559. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  23560. # Speed up: don't consider the non `#define' lines.
  23561. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  23562. # Work around the forget-to-reset-the-flag bug.
  23563. echo 't clr' >>$CONFIG_STATUS
  23564. echo ': clr' >>$CONFIG_STATUS
  23565. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  23566. echo 'CEOF
  23567. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  23568. rm -f $tmp/in
  23569. mv $tmp/out $tmp/in
  23570. ' >>$CONFIG_STATUS
  23571. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  23572. rm -f conftest.defines
  23573. mv conftest.tail conftest.defines
  23574. done
  23575. rm -f conftest.defines
  23576. echo ' fi # grep' >>$CONFIG_STATUS
  23577. echo >>$CONFIG_STATUS
  23578. # Break up conftest.undefs because some shells have a limit on the size
  23579. # of here documents, and old seds have small limits too (100 cmds).
  23580. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  23581. rm -f conftest.tail
  23582. while grep . conftest.undefs >/dev/null
  23583. do
  23584. # Write a limited-size here document to $tmp/undefs.sed.
  23585. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  23586. # Speed up: don't consider the non `#undef'
  23587. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  23588. # Work around the forget-to-reset-the-flag bug.
  23589. echo 't clr' >>$CONFIG_STATUS
  23590. echo ': clr' >>$CONFIG_STATUS
  23591. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  23592. echo 'CEOF
  23593. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  23594. rm -f $tmp/in
  23595. mv $tmp/out $tmp/in
  23596. ' >>$CONFIG_STATUS
  23597. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  23598. rm -f conftest.undefs
  23599. mv conftest.tail conftest.undefs
  23600. done
  23601. rm -f conftest.undefs
  23602. cat >>$CONFIG_STATUS <<\_ACEOF
  23603. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23604. # use $as_me), people would be surprised to read:
  23605. # /* config.h. Generated by config.status. */
  23606. if test x"$ac_file" = x-; then
  23607. echo "/* Generated by configure. */" >$tmp/config.h
  23608. else
  23609. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  23610. fi
  23611. cat $tmp/in >>$tmp/config.h
  23612. rm -f $tmp/in
  23613. if test x"$ac_file" != x-; then
  23614. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  23615. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23616. echo "$as_me: $ac_file is unchanged" >&6;}
  23617. else
  23618. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23619. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23620. X"$ac_file" : 'X\(//\)[^/]' \| \
  23621. X"$ac_file" : 'X\(//\)$' \| \
  23622. X"$ac_file" : 'X\(/\)' \| \
  23623. . : '\(.\)' 2>/dev/null ||
  23624. echo X"$ac_file" |
  23625. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23626. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23627. /^X\(\/\/\)$/{ s//\1/; q; }
  23628. /^X\(\/\).*/{ s//\1/; q; }
  23629. s/.*/./; q'`
  23630. { if $as_mkdir_p; then
  23631. mkdir -p "$ac_dir"
  23632. else
  23633. as_dir="$ac_dir"
  23634. as_dirs=
  23635. while test ! -d "$as_dir"; do
  23636. as_dirs="$as_dir $as_dirs"
  23637. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23638. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23639. X"$as_dir" : 'X\(//\)[^/]' \| \
  23640. X"$as_dir" : 'X\(//\)$' \| \
  23641. X"$as_dir" : 'X\(/\)' \| \
  23642. . : '\(.\)' 2>/dev/null ||
  23643. echo X"$as_dir" |
  23644. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23645. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23646. /^X\(\/\/\)$/{ s//\1/; q; }
  23647. /^X\(\/\).*/{ s//\1/; q; }
  23648. s/.*/./; q'`
  23649. done
  23650. test ! -n "$as_dirs" || mkdir $as_dirs
  23651. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23652. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23653. { (exit 1); exit 1; }; }; }
  23654. rm -f $ac_file
  23655. mv $tmp/config.h $ac_file
  23656. fi
  23657. else
  23658. cat $tmp/config.h
  23659. rm -f $tmp/config.h
  23660. fi
  23661. # Compute $ac_file's index in $config_headers.
  23662. _am_stamp_count=1
  23663. for _am_header in $config_headers :; do
  23664. case $_am_header in
  23665. $ac_file | $ac_file:* )
  23666. break ;;
  23667. * )
  23668. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23669. esac
  23670. done
  23671. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  23672. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23673. X$ac_file : 'X\(//\)[^/]' \| \
  23674. X$ac_file : 'X\(//\)$' \| \
  23675. X$ac_file : 'X\(/\)' \| \
  23676. . : '\(.\)' 2>/dev/null ||
  23677. echo X$ac_file |
  23678. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23679. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23680. /^X\(\/\/\)$/{ s//\1/; q; }
  23681. /^X\(\/\).*/{ s//\1/; q; }
  23682. s/.*/./; q'`/stamp-h$_am_stamp_count
  23683. done
  23684. _ACEOF
  23685. cat >>$CONFIG_STATUS <<\_ACEOF
  23686. #
  23687. # CONFIG_COMMANDS section.
  23688. #
  23689. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  23690. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  23691. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23692. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  23693. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23694. X"$ac_dest" : 'X\(//\)[^/]' \| \
  23695. X"$ac_dest" : 'X\(//\)$' \| \
  23696. X"$ac_dest" : 'X\(/\)' \| \
  23697. . : '\(.\)' 2>/dev/null ||
  23698. echo X"$ac_dest" |
  23699. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23700. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23701. /^X\(\/\/\)$/{ s//\1/; q; }
  23702. /^X\(\/\).*/{ s//\1/; q; }
  23703. s/.*/./; q'`
  23704. { if $as_mkdir_p; then
  23705. mkdir -p "$ac_dir"
  23706. else
  23707. as_dir="$ac_dir"
  23708. as_dirs=
  23709. while test ! -d "$as_dir"; do
  23710. as_dirs="$as_dir $as_dirs"
  23711. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23712. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23713. X"$as_dir" : 'X\(//\)[^/]' \| \
  23714. X"$as_dir" : 'X\(//\)$' \| \
  23715. X"$as_dir" : 'X\(/\)' \| \
  23716. . : '\(.\)' 2>/dev/null ||
  23717. echo X"$as_dir" |
  23718. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23719. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23720. /^X\(\/\/\)$/{ s//\1/; q; }
  23721. /^X\(\/\).*/{ s//\1/; q; }
  23722. s/.*/./; q'`
  23723. done
  23724. test ! -n "$as_dirs" || mkdir $as_dirs
  23725. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23726. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23727. { (exit 1); exit 1; }; }; }
  23728. ac_builddir=.
  23729. if test "$ac_dir" != .; then
  23730. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23731. # A "../" for each directory in $ac_dir_suffix.
  23732. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23733. else
  23734. ac_dir_suffix= ac_top_builddir=
  23735. fi
  23736. case $srcdir in
  23737. .) # No --srcdir option. We are building in place.
  23738. ac_srcdir=.
  23739. if test -z "$ac_top_builddir"; then
  23740. ac_top_srcdir=.
  23741. else
  23742. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23743. fi ;;
  23744. [\\/]* | ?:[\\/]* ) # Absolute path.
  23745. ac_srcdir=$srcdir$ac_dir_suffix;
  23746. ac_top_srcdir=$srcdir ;;
  23747. *) # Relative path.
  23748. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23749. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23750. esac
  23751. # Do not use `cd foo && pwd` to compute absolute paths, because
  23752. # the directories may not exist.
  23753. case `pwd` in
  23754. .) ac_abs_builddir="$ac_dir";;
  23755. *)
  23756. case "$ac_dir" in
  23757. .) ac_abs_builddir=`pwd`;;
  23758. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23759. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23760. esac;;
  23761. esac
  23762. case $ac_abs_builddir in
  23763. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23764. *)
  23765. case ${ac_top_builddir}. in
  23766. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23767. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23768. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23769. esac;;
  23770. esac
  23771. case $ac_abs_builddir in
  23772. .) ac_abs_srcdir=$ac_srcdir;;
  23773. *)
  23774. case $ac_srcdir in
  23775. .) ac_abs_srcdir=$ac_abs_builddir;;
  23776. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23777. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23778. esac;;
  23779. esac
  23780. case $ac_abs_builddir in
  23781. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23782. *)
  23783. case $ac_top_srcdir in
  23784. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23785. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23786. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23787. esac;;
  23788. esac
  23789. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  23790. echo "$as_me: executing $ac_dest commands" >&6;}
  23791. case $ac_dest in
  23792. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  23793. # Strip MF so we end up with the name of the file.
  23794. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23795. # Check whether this is an Automake generated Makefile or not.
  23796. # We used to match only the files named `Makefile.in', but
  23797. # some people rename them; so instead we look at the file content.
  23798. # Grep'ing the first line is not enough: some people post-process
  23799. # each Makefile.in and add a new line on top of each file to say so.
  23800. # So let's grep whole file.
  23801. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  23802. dirpart=`(dirname "$mf") 2>/dev/null ||
  23803. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23804. X"$mf" : 'X\(//\)[^/]' \| \
  23805. X"$mf" : 'X\(//\)$' \| \
  23806. X"$mf" : 'X\(/\)' \| \
  23807. . : '\(.\)' 2>/dev/null ||
  23808. echo X"$mf" |
  23809. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23810. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23811. /^X\(\/\/\)$/{ s//\1/; q; }
  23812. /^X\(\/\).*/{ s//\1/; q; }
  23813. s/.*/./; q'`
  23814. else
  23815. continue
  23816. fi
  23817. # Extract the definition of DEPDIR, am__include, and am__quote
  23818. # from the Makefile without running `make'.
  23819. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23820. test -z "$DEPDIR" && continue
  23821. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23822. test -z "am__include" && continue
  23823. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23824. # When using ansi2knr, U may be empty or an underscore; expand it
  23825. U=`sed -n 's/^U = //p' < "$mf"`
  23826. # Find all dependency output files, they are included files with
  23827. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23828. # simplest approach to changing $(DEPDIR) to its actual value in the
  23829. # expansion.
  23830. for file in `sed -n "
  23831. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23832. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23833. # Make sure the directory exists.
  23834. test -f "$dirpart/$file" && continue
  23835. fdir=`(dirname "$file") 2>/dev/null ||
  23836. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23837. X"$file" : 'X\(//\)[^/]' \| \
  23838. X"$file" : 'X\(//\)$' \| \
  23839. X"$file" : 'X\(/\)' \| \
  23840. . : '\(.\)' 2>/dev/null ||
  23841. echo X"$file" |
  23842. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23843. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23844. /^X\(\/\/\)$/{ s//\1/; q; }
  23845. /^X\(\/\).*/{ s//\1/; q; }
  23846. s/.*/./; q'`
  23847. { if $as_mkdir_p; then
  23848. mkdir -p $dirpart/$fdir
  23849. else
  23850. as_dir=$dirpart/$fdir
  23851. as_dirs=
  23852. while test ! -d "$as_dir"; do
  23853. as_dirs="$as_dir $as_dirs"
  23854. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23855. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23856. X"$as_dir" : 'X\(//\)[^/]' \| \
  23857. X"$as_dir" : 'X\(//\)$' \| \
  23858. X"$as_dir" : 'X\(/\)' \| \
  23859. . : '\(.\)' 2>/dev/null ||
  23860. echo X"$as_dir" |
  23861. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23862. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23863. /^X\(\/\/\)$/{ s//\1/; q; }
  23864. /^X\(\/\).*/{ s//\1/; q; }
  23865. s/.*/./; q'`
  23866. done
  23867. test ! -n "$as_dirs" || mkdir $as_dirs
  23868. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  23869. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  23870. { (exit 1); exit 1; }; }; }
  23871. # echo "creating $dirpart/$file"
  23872. echo '# dummy' > "$dirpart/$file"
  23873. done
  23874. done
  23875. ;;
  23876. esac
  23877. done
  23878. _ACEOF
  23879. cat >>$CONFIG_STATUS <<\_ACEOF
  23880. { (exit 0); exit 0; }
  23881. _ACEOF
  23882. chmod +x $CONFIG_STATUS
  23883. ac_clean_files=$ac_clean_files_save
  23884. # configure is writing to config.log, and then calls config.status.
  23885. # config.status does its own redirection, appending to config.log.
  23886. # Unfortunately, on DOS this fails, as config.log is still kept open
  23887. # by configure, so config.status won't be able to write to it; its
  23888. # output is simply discarded. So we exec the FD to /dev/null,
  23889. # effectively closing config.log, so it can be properly (re)opened and
  23890. # appended to by config.status. When coming back to configure, we
  23891. # need to make the FD available again.
  23892. if test "$no_create" != yes; then
  23893. ac_cs_success=:
  23894. ac_config_status_args=
  23895. test "$silent" = yes &&
  23896. ac_config_status_args="$ac_config_status_args --quiet"
  23897. exec 5>/dev/null
  23898. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23899. exec 5>>config.log
  23900. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23901. # would make configure fail if this is the last instruction.
  23902. $ac_cs_success || { (exit 1); exit 1; }
  23903. fi