configure 790 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell [email protected] about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. # Check that we are running under the correct shell.
  498. SHELL=${CONFIG_SHELL-/bin/sh}
  499. case X$lt_ECHO in
  500. X*--fallback-echo)
  501. # Remove one level of quotation (which was required for Make).
  502. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  503. ;;
  504. esac
  505. ECHO=${lt_ECHO-echo}
  506. if test "X$1" = X--no-reexec; then
  507. # Discard the --no-reexec flag, and continue.
  508. shift
  509. elif test "X$1" = X--fallback-echo; then
  510. # Avoid inline document here, it may be left over
  511. :
  512. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  513. # Yippee, $ECHO works!
  514. :
  515. else
  516. # Restart under the correct shell.
  517. exec $SHELL "$0" --no-reexec ${1+"$@"}
  518. fi
  519. if test "X$1" = X--fallback-echo; then
  520. # used as fallback echo
  521. shift
  522. cat <<_LT_EOF
  523. $*
  524. _LT_EOF
  525. exit 0
  526. fi
  527. # The HP-UX ksh and POSIX shell print the target directory to stdout
  528. # if CDPATH is set.
  529. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  530. if test -z "$lt_ECHO"; then
  531. if test "X${echo_test_string+set}" != Xset; then
  532. # find a string as large as possible, as long as the shell can cope with it
  533. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  534. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  535. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  536. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  537. then
  538. break
  539. fi
  540. done
  541. fi
  542. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  543. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  544. test "X$echo_testing_string" = "X$echo_test_string"; then
  545. :
  546. else
  547. # The Solaris, AIX, and Digital Unix default echo programs unquote
  548. # backslashes. This makes it impossible to quote backslashes using
  549. # echo "$something" | sed 's/\\/\\\\/g'
  550. #
  551. # So, first we look for a working echo in the user's PATH.
  552. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  553. for dir in $PATH /usr/ucb; do
  554. IFS="$lt_save_ifs"
  555. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  556. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  557. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  558. test "X$echo_testing_string" = "X$echo_test_string"; then
  559. ECHO="$dir/echo"
  560. break
  561. fi
  562. done
  563. IFS="$lt_save_ifs"
  564. if test "X$ECHO" = Xecho; then
  565. # We didn't find a better echo, so look for alternatives.
  566. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  567. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  568. test "X$echo_testing_string" = "X$echo_test_string"; then
  569. # This shell has a builtin print -r that does the trick.
  570. ECHO='print -r'
  571. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  572. test "X$CONFIG_SHELL" != X/bin/ksh; then
  573. # If we have ksh, try running configure again with it.
  574. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  575. export ORIGINAL_CONFIG_SHELL
  576. CONFIG_SHELL=/bin/ksh
  577. export CONFIG_SHELL
  578. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  579. else
  580. # Try using printf.
  581. ECHO='printf %s\n'
  582. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  583. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  584. test "X$echo_testing_string" = "X$echo_test_string"; then
  585. # Cool, printf works
  586. :
  587. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  592. export CONFIG_SHELL
  593. SHELL="$CONFIG_SHELL"
  594. export SHELL
  595. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  596. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  597. test "X$echo_testing_string" = 'X\t' &&
  598. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  599. test "X$echo_testing_string" = "X$echo_test_string"; then
  600. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  601. else
  602. # maybe with a smaller string...
  603. prev=:
  604. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  605. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  606. then
  607. break
  608. fi
  609. prev="$cmd"
  610. done
  611. if test "$prev" != 'sed 50q "$0"'; then
  612. echo_test_string=`eval $prev`
  613. export echo_test_string
  614. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  615. else
  616. # Oops. We lost completely, so just stick with echo.
  617. ECHO=echo
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. fi
  624. # Copy echo and quote the copy suitably for passing to libtool from
  625. # the Makefile, instead of quoting the original, which is used later.
  626. lt_ECHO=$ECHO
  627. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  628. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  629. fi
  630. exec 7<&0 </dev/null 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. SHELL=${CONFIG_SHELL-/bin/sh}
  647. # Identity of this package.
  648. PACKAGE_NAME='dirsrv'
  649. PACKAGE_TARNAME='dirsrv'
  650. PACKAGE_VERSION='1.0'
  651. PACKAGE_STRING='dirsrv 1.0'
  652. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_default_prefix=/opt/$PACKAGE_NAME
  689. ac_subst_vars='am__EXEEXT_FALSE
  690. am__EXEEXT_TRUE
  691. LTLIBOBJS
  692. vendor
  693. capbrand
  694. brand
  695. pcre_libdir
  696. pcre_lib
  697. pcre_inc
  698. netsnmp_link
  699. netsnmp_libdir
  700. netsnmp_lib
  701. netsnmp_inc
  702. icu_bin
  703. icu_inc
  704. icu_lib
  705. svrcore_lib
  706. svrcore_inc
  707. sasl_path
  708. sasl_libdir
  709. sasl_lib
  710. sasl_inc
  711. db_libver
  712. db_bindir
  713. db_libdir
  714. db_lib
  715. db_incdir
  716. db_inc
  717. ol_libver
  718. openldap_bindir
  719. openldap_libdir
  720. openldap_lib
  721. openldap_inc
  722. ldapsdk_bindir
  723. ldapsdk_libdir
  724. ldapsdk_lib
  725. ldapsdk_inc
  726. nss_libdir
  727. nss_lib
  728. nss_inc
  729. nspr_libdir
  730. nspr_lib
  731. nspr_inc
  732. OPENLDAP_FALSE
  733. OPENLDAP_TRUE
  734. SELINUX_FALSE
  735. SELINUX_TRUE
  736. PACKAGE_BASE_VERSION
  737. with_selinux
  738. kerberos_libdir
  739. kerberos_lib
  740. kerberos_inc
  741. KRB5_CONFIG_BIN
  742. NETSNMP_CONFIG
  743. ICU_CONFIG
  744. PKG_CONFIG
  745. SOLARIS_FALSE
  746. SOLARIS_TRUE
  747. HPUX_FALSE
  748. HPUX_TRUE
  749. initconfigdir
  750. perlexec
  751. initdir
  752. LIBCRUN
  753. LIBCSTD
  754. LIBDL
  755. LIBNSL
  756. LIBSOCKET
  757. LIBCRYPT
  758. THREADLIB
  759. WINNT_FALSE
  760. WINNT_TRUE
  761. instconfigdir
  762. defaultgroup
  763. defaultuser
  764. updatedir
  765. mibdir
  766. infdir
  767. perldir
  768. scripttemplatedir
  769. serverplugindir
  770. serverdir
  771. schemadir
  772. propertydir
  773. sampledatadir
  774. configdir
  775. with_fhs_opt
  776. enable_presence_FALSE
  777. enable_presence_TRUE
  778. enable_bitwise_FALSE
  779. enable_bitwise_TRUE
  780. enable_auto_dn_suffix_FALSE
  781. enable_auto_dn_suffix_TRUE
  782. enable_autobind_FALSE
  783. enable_autobind_TRUE
  784. enable_ldapi_FALSE
  785. enable_ldapi_TRUE
  786. enable_dna_FALSE
  787. enable_dna_TRUE
  788. enable_pam_passthru_FALSE
  789. enable_pam_passthru_TRUE
  790. BUNDLE_FALSE
  791. BUNDLE_TRUE
  792. debug_defs
  793. LIBOBJS
  794. CXXCPP
  795. CPP
  796. OTOOL64
  797. OTOOL
  798. LIPO
  799. NMEDIT
  800. DSYMUTIL
  801. lt_ECHO
  802. RANLIB
  803. AR
  804. OBJDUMP
  805. LN_S
  806. NM
  807. ac_ct_DUMPBIN
  808. DUMPBIN
  809. LD
  810. FGREP
  811. EGREP
  812. GREP
  813. SED
  814. LIBTOOL
  815. am__fastdepCCAS_FALSE
  816. am__fastdepCCAS_TRUE
  817. CCASDEPMODE
  818. CCASFLAGS
  819. CCAS
  820. am__fastdepCC_FALSE
  821. am__fastdepCC_TRUE
  822. CCDEPMODE
  823. ac_ct_CC
  824. CFLAGS
  825. CC
  826. am__fastdepCXX_FALSE
  827. am__fastdepCXX_TRUE
  828. CXXDEPMODE
  829. AMDEPBACKSLASH
  830. AMDEP_FALSE
  831. AMDEP_TRUE
  832. am__quote
  833. am__include
  834. DEPDIR
  835. OBJEXT
  836. EXEEXT
  837. ac_ct_CXX
  838. CPPFLAGS
  839. LDFLAGS
  840. CXXFLAGS
  841. CXX
  842. host_os
  843. host_vendor
  844. host_cpu
  845. host
  846. build_os
  847. build_vendor
  848. build_cpu
  849. build
  850. MAINT
  851. MAINTAINER_MODE_FALSE
  852. MAINTAINER_MODE_TRUE
  853. CONSOLE_VERSION
  854. am__untar
  855. am__tar
  856. AMTAR
  857. am__leading_dot
  858. SET_MAKE
  859. AWK
  860. mkdir_p
  861. MKDIR_P
  862. INSTALL_STRIP_PROGRAM
  863. STRIP
  864. install_sh
  865. MAKEINFO
  866. AUTOHEADER
  867. AUTOMAKE
  868. AUTOCONF
  869. ACLOCAL
  870. VERSION
  871. PACKAGE
  872. CYGPATH_W
  873. am__isrc
  874. INSTALL_DATA
  875. INSTALL_SCRIPT
  876. INSTALL_PROGRAM
  877. target_alias
  878. host_alias
  879. build_alias
  880. LIBS
  881. ECHO_T
  882. ECHO_N
  883. ECHO_C
  884. DEFS
  885. mandir
  886. localedir
  887. libdir
  888. psdir
  889. pdfdir
  890. dvidir
  891. htmldir
  892. infodir
  893. docdir
  894. oldincludedir
  895. includedir
  896. localstatedir
  897. sharedstatedir
  898. sysconfdir
  899. datadir
  900. datarootdir
  901. libexecdir
  902. sbindir
  903. bindir
  904. program_transform_name
  905. prefix
  906. exec_prefix
  907. PACKAGE_BUGREPORT
  908. PACKAGE_STRING
  909. PACKAGE_VERSION
  910. PACKAGE_TARNAME
  911. PACKAGE_NAME
  912. PATH_SEPARATOR
  913. SHELL'
  914. ac_subst_files=''
  915. ac_user_opts='
  916. enable_option_checking
  917. enable_maintainer_mode
  918. enable_dependency_tracking
  919. enable_static
  920. enable_shared
  921. with_pic
  922. enable_fast_install
  923. with_gnu_ld
  924. enable_libtool_lock
  925. enable_debug
  926. enable_bundle
  927. enable_pam_passthru
  928. enable_dna
  929. enable_ldapi
  930. enable_autobind
  931. enable_bitwise
  932. enable_presence
  933. with_fhs
  934. with_fhs_opt
  935. with_instconfigdir
  936. with_initddir
  937. with_nspr
  938. with_nspr_inc
  939. with_nspr_lib
  940. with_nss
  941. with_nss_inc
  942. with_nss_lib
  943. with_openldap
  944. with_openldap_inc
  945. with_openldap_lib
  946. with_openldap_bin
  947. with_ldapsdk
  948. with_ldapsdk_inc
  949. with_ldapsdk_lib
  950. with_ldapsdk_bin
  951. with_db
  952. with_db_inc
  953. with_db_lib
  954. with_sasl
  955. with_sasl_inc
  956. with_sasl_lib
  957. with_svrcore
  958. with_svrcore_inc
  959. with_svrcore_lib
  960. with_icu
  961. with_icu_inc
  962. with_icu_lib
  963. with_icu_bin
  964. with_netsnmp
  965. with_netsnmp_inc
  966. with_netsnmp_lib
  967. with_kerberos
  968. with_kerberos_inc
  969. with_kerberos_lib
  970. with_pcre
  971. with_selinux
  972. '
  973. ac_precious_vars='build_alias
  974. host_alias
  975. target_alias
  976. CXX
  977. CXXFLAGS
  978. LDFLAGS
  979. LIBS
  980. CPPFLAGS
  981. CCC
  982. CC
  983. CFLAGS
  984. CCAS
  985. CCASFLAGS
  986. CPP
  987. CXXCPP'
  988. # Initialize some variables set by options.
  989. ac_init_help=
  990. ac_init_version=false
  991. ac_unrecognized_opts=
  992. ac_unrecognized_sep=
  993. # The variables have the same names as the options, with
  994. # dashes changed to underlines.
  995. cache_file=/dev/null
  996. exec_prefix=NONE
  997. no_create=
  998. no_recursion=
  999. prefix=NONE
  1000. program_prefix=NONE
  1001. program_suffix=NONE
  1002. program_transform_name=s,x,x,
  1003. silent=
  1004. site=
  1005. srcdir=
  1006. verbose=
  1007. x_includes=NONE
  1008. x_libraries=NONE
  1009. # Installation directory options.
  1010. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1011. # and all the variables that are supposed to be based on exec_prefix
  1012. # by default will actually change.
  1013. # Use braces instead of parens because sh, perl, etc. also accept them.
  1014. # (The list follows the same order as the GNU Coding Standards.)
  1015. bindir='${exec_prefix}/bin'
  1016. sbindir='${exec_prefix}/sbin'
  1017. libexecdir='${exec_prefix}/libexec'
  1018. datarootdir='${prefix}/share'
  1019. datadir='${datarootdir}'
  1020. sysconfdir='${prefix}/etc'
  1021. sharedstatedir='${prefix}/com'
  1022. localstatedir='${prefix}/var'
  1023. includedir='${prefix}/include'
  1024. oldincludedir='/usr/include'
  1025. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1026. infodir='${datarootdir}/info'
  1027. htmldir='${docdir}'
  1028. dvidir='${docdir}'
  1029. pdfdir='${docdir}'
  1030. psdir='${docdir}'
  1031. libdir='${exec_prefix}/lib'
  1032. localedir='${datarootdir}/locale'
  1033. mandir='${datarootdir}/man'
  1034. ac_prev=
  1035. ac_dashdash=
  1036. for ac_option
  1037. do
  1038. # If the previous option needs an argument, assign it.
  1039. if test -n "$ac_prev"; then
  1040. eval $ac_prev=\$ac_option
  1041. ac_prev=
  1042. continue
  1043. fi
  1044. case $ac_option in
  1045. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1046. *) ac_optarg=yes ;;
  1047. esac
  1048. # Accept the important Cygnus configure options, so we can diagnose typos.
  1049. case $ac_dashdash$ac_option in
  1050. --)
  1051. ac_dashdash=yes ;;
  1052. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1053. ac_prev=bindir ;;
  1054. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1055. bindir=$ac_optarg ;;
  1056. -build | --build | --buil | --bui | --bu)
  1057. ac_prev=build_alias ;;
  1058. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1059. build_alias=$ac_optarg ;;
  1060. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1061. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1062. ac_prev=cache_file ;;
  1063. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1064. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1065. cache_file=$ac_optarg ;;
  1066. --config-cache | -C)
  1067. cache_file=config.cache ;;
  1068. -datadir | --datadir | --datadi | --datad)
  1069. ac_prev=datadir ;;
  1070. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1071. datadir=$ac_optarg ;;
  1072. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1073. | --dataroo | --dataro | --datar)
  1074. ac_prev=datarootdir ;;
  1075. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1076. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1077. datarootdir=$ac_optarg ;;
  1078. -disable-* | --disable-*)
  1079. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1080. # Reject names that are not valid shell variable names.
  1081. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1082. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1083. { (exit 1); exit 1; }; }
  1084. ac_useropt_orig=$ac_useropt
  1085. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1086. case $ac_user_opts in
  1087. *"
  1088. "enable_$ac_useropt"
  1089. "*) ;;
  1090. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1091. ac_unrecognized_sep=', ';;
  1092. esac
  1093. eval enable_$ac_useropt=no ;;
  1094. -docdir | --docdir | --docdi | --doc | --do)
  1095. ac_prev=docdir ;;
  1096. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1097. docdir=$ac_optarg ;;
  1098. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1099. ac_prev=dvidir ;;
  1100. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1101. dvidir=$ac_optarg ;;
  1102. -enable-* | --enable-*)
  1103. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1104. # Reject names that are not valid shell variable names.
  1105. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1106. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1107. { (exit 1); exit 1; }; }
  1108. ac_useropt_orig=$ac_useropt
  1109. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1110. case $ac_user_opts in
  1111. *"
  1112. "enable_$ac_useropt"
  1113. "*) ;;
  1114. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1115. ac_unrecognized_sep=', ';;
  1116. esac
  1117. eval enable_$ac_useropt=\$ac_optarg ;;
  1118. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1119. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1120. | --exec | --exe | --ex)
  1121. ac_prev=exec_prefix ;;
  1122. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1123. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1124. | --exec=* | --exe=* | --ex=*)
  1125. exec_prefix=$ac_optarg ;;
  1126. -gas | --gas | --ga | --g)
  1127. # Obsolete; use --with-gas.
  1128. with_gas=yes ;;
  1129. -help | --help | --hel | --he | -h)
  1130. ac_init_help=long ;;
  1131. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1132. ac_init_help=recursive ;;
  1133. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1134. ac_init_help=short ;;
  1135. -host | --host | --hos | --ho)
  1136. ac_prev=host_alias ;;
  1137. -host=* | --host=* | --hos=* | --ho=*)
  1138. host_alias=$ac_optarg ;;
  1139. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1140. ac_prev=htmldir ;;
  1141. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1142. | --ht=*)
  1143. htmldir=$ac_optarg ;;
  1144. -includedir | --includedir | --includedi | --included | --include \
  1145. | --includ | --inclu | --incl | --inc)
  1146. ac_prev=includedir ;;
  1147. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1148. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1149. includedir=$ac_optarg ;;
  1150. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1151. ac_prev=infodir ;;
  1152. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1153. infodir=$ac_optarg ;;
  1154. -libdir | --libdir | --libdi | --libd)
  1155. ac_prev=libdir ;;
  1156. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1157. libdir=$ac_optarg ;;
  1158. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1159. | --libexe | --libex | --libe)
  1160. ac_prev=libexecdir ;;
  1161. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1162. | --libexe=* | --libex=* | --libe=*)
  1163. libexecdir=$ac_optarg ;;
  1164. -localedir | --localedir | --localedi | --localed | --locale)
  1165. ac_prev=localedir ;;
  1166. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1167. localedir=$ac_optarg ;;
  1168. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1169. | --localstate | --localstat | --localsta | --localst | --locals)
  1170. ac_prev=localstatedir ;;
  1171. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1172. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1173. localstatedir=$ac_optarg ;;
  1174. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1175. ac_prev=mandir ;;
  1176. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1177. mandir=$ac_optarg ;;
  1178. -nfp | --nfp | --nf)
  1179. # Obsolete; use --without-fp.
  1180. with_fp=no ;;
  1181. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1182. | --no-cr | --no-c | -n)
  1183. no_create=yes ;;
  1184. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1185. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1186. no_recursion=yes ;;
  1187. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1188. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1189. | --oldin | --oldi | --old | --ol | --o)
  1190. ac_prev=oldincludedir ;;
  1191. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1192. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1193. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1194. oldincludedir=$ac_optarg ;;
  1195. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1196. ac_prev=prefix ;;
  1197. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1198. prefix=$ac_optarg ;;
  1199. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1200. | --program-pre | --program-pr | --program-p)
  1201. ac_prev=program_prefix ;;
  1202. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1203. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1204. program_prefix=$ac_optarg ;;
  1205. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1206. | --program-suf | --program-su | --program-s)
  1207. ac_prev=program_suffix ;;
  1208. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1209. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1210. program_suffix=$ac_optarg ;;
  1211. -program-transform-name | --program-transform-name \
  1212. | --program-transform-nam | --program-transform-na \
  1213. | --program-transform-n | --program-transform- \
  1214. | --program-transform | --program-transfor \
  1215. | --program-transfo | --program-transf \
  1216. | --program-trans | --program-tran \
  1217. | --progr-tra | --program-tr | --program-t)
  1218. ac_prev=program_transform_name ;;
  1219. -program-transform-name=* | --program-transform-name=* \
  1220. | --program-transform-nam=* | --program-transform-na=* \
  1221. | --program-transform-n=* | --program-transform-=* \
  1222. | --program-transform=* | --program-transfor=* \
  1223. | --program-transfo=* | --program-transf=* \
  1224. | --program-trans=* | --program-tran=* \
  1225. | --progr-tra=* | --program-tr=* | --program-t=*)
  1226. program_transform_name=$ac_optarg ;;
  1227. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1228. ac_prev=pdfdir ;;
  1229. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1230. pdfdir=$ac_optarg ;;
  1231. -psdir | --psdir | --psdi | --psd | --ps)
  1232. ac_prev=psdir ;;
  1233. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1234. psdir=$ac_optarg ;;
  1235. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1236. | -silent | --silent | --silen | --sile | --sil)
  1237. silent=yes ;;
  1238. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1239. ac_prev=sbindir ;;
  1240. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1241. | --sbi=* | --sb=*)
  1242. sbindir=$ac_optarg ;;
  1243. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1244. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1245. | --sharedst | --shareds | --shared | --share | --shar \
  1246. | --sha | --sh)
  1247. ac_prev=sharedstatedir ;;
  1248. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1249. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1250. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1251. | --sha=* | --sh=*)
  1252. sharedstatedir=$ac_optarg ;;
  1253. -site | --site | --sit)
  1254. ac_prev=site ;;
  1255. -site=* | --site=* | --sit=*)
  1256. site=$ac_optarg ;;
  1257. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1258. ac_prev=srcdir ;;
  1259. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1260. srcdir=$ac_optarg ;;
  1261. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1262. | --syscon | --sysco | --sysc | --sys | --sy)
  1263. ac_prev=sysconfdir ;;
  1264. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1265. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1266. sysconfdir=$ac_optarg ;;
  1267. -target | --target | --targe | --targ | --tar | --ta | --t)
  1268. ac_prev=target_alias ;;
  1269. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1270. target_alias=$ac_optarg ;;
  1271. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1272. verbose=yes ;;
  1273. -version | --version | --versio | --versi | --vers | -V)
  1274. ac_init_version=: ;;
  1275. -with-* | --with-*)
  1276. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1277. # Reject names that are not valid shell variable names.
  1278. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1279. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1280. { (exit 1); exit 1; }; }
  1281. ac_useropt_orig=$ac_useropt
  1282. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1283. case $ac_user_opts in
  1284. *"
  1285. "with_$ac_useropt"
  1286. "*) ;;
  1287. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1288. ac_unrecognized_sep=', ';;
  1289. esac
  1290. eval with_$ac_useropt=\$ac_optarg ;;
  1291. -without-* | --without-*)
  1292. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1293. # Reject names that are not valid shell variable names.
  1294. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1295. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1296. { (exit 1); exit 1; }; }
  1297. ac_useropt_orig=$ac_useropt
  1298. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1299. case $ac_user_opts in
  1300. *"
  1301. "with_$ac_useropt"
  1302. "*) ;;
  1303. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1304. ac_unrecognized_sep=', ';;
  1305. esac
  1306. eval with_$ac_useropt=no ;;
  1307. --x)
  1308. # Obsolete; use --with-x.
  1309. with_x=yes ;;
  1310. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1311. | --x-incl | --x-inc | --x-in | --x-i)
  1312. ac_prev=x_includes ;;
  1313. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1314. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1315. x_includes=$ac_optarg ;;
  1316. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1317. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1318. ac_prev=x_libraries ;;
  1319. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1320. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1321. x_libraries=$ac_optarg ;;
  1322. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1323. Try \`$0 --help' for more information." >&2
  1324. { (exit 1); exit 1; }; }
  1325. ;;
  1326. *=*)
  1327. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1328. # Reject names that are not valid shell variable names.
  1329. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1330. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1331. { (exit 1); exit 1; }; }
  1332. eval $ac_envvar=\$ac_optarg
  1333. export $ac_envvar ;;
  1334. *)
  1335. # FIXME: should be removed in autoconf 3.0.
  1336. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1337. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1338. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1339. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1340. ;;
  1341. esac
  1342. done
  1343. if test -n "$ac_prev"; then
  1344. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1345. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1346. { (exit 1); exit 1; }; }
  1347. fi
  1348. if test -n "$ac_unrecognized_opts"; then
  1349. case $enable_option_checking in
  1350. no) ;;
  1351. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1352. { (exit 1); exit 1; }; } ;;
  1353. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1354. esac
  1355. fi
  1356. # Check all directory arguments for consistency.
  1357. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1358. datadir sysconfdir sharedstatedir localstatedir includedir \
  1359. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1360. libdir localedir mandir
  1361. do
  1362. eval ac_val=\$$ac_var
  1363. # Remove trailing slashes.
  1364. case $ac_val in
  1365. */ )
  1366. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1367. eval $ac_var=\$ac_val;;
  1368. esac
  1369. # Be sure to have absolute directory names.
  1370. case $ac_val in
  1371. [\\/$]* | ?:[\\/]* ) continue;;
  1372. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1373. esac
  1374. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1375. { (exit 1); exit 1; }; }
  1376. done
  1377. # There might be people who depend on the old broken behavior: `$host'
  1378. # used to hold the argument of --host etc.
  1379. # FIXME: To remove some day.
  1380. build=$build_alias
  1381. host=$host_alias
  1382. target=$target_alias
  1383. # FIXME: To remove some day.
  1384. if test "x$host_alias" != x; then
  1385. if test "x$build_alias" = x; then
  1386. cross_compiling=maybe
  1387. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1388. If a cross compiler is detected then cross compile mode will be used." >&2
  1389. elif test "x$build_alias" != "x$host_alias"; then
  1390. cross_compiling=yes
  1391. fi
  1392. fi
  1393. ac_tool_prefix=
  1394. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1395. test "$silent" = yes && exec 6>/dev/null
  1396. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1397. ac_ls_di=`ls -di .` &&
  1398. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1399. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1400. { (exit 1); exit 1; }; }
  1401. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1402. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1403. { (exit 1); exit 1; }; }
  1404. # Find the source files, if location was not specified.
  1405. if test -z "$srcdir"; then
  1406. ac_srcdir_defaulted=yes
  1407. # Try the directory containing this script, then the parent directory.
  1408. ac_confdir=`$as_dirname -- "$as_myself" ||
  1409. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1410. X"$as_myself" : 'X\(//\)[^/]' \| \
  1411. X"$as_myself" : 'X\(//\)$' \| \
  1412. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1413. $as_echo X"$as_myself" |
  1414. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1415. s//\1/
  1416. q
  1417. }
  1418. /^X\(\/\/\)[^/].*/{
  1419. s//\1/
  1420. q
  1421. }
  1422. /^X\(\/\/\)$/{
  1423. s//\1/
  1424. q
  1425. }
  1426. /^X\(\/\).*/{
  1427. s//\1/
  1428. q
  1429. }
  1430. s/.*/./; q'`
  1431. srcdir=$ac_confdir
  1432. if test ! -r "$srcdir/$ac_unique_file"; then
  1433. srcdir=..
  1434. fi
  1435. else
  1436. ac_srcdir_defaulted=no
  1437. fi
  1438. if test ! -r "$srcdir/$ac_unique_file"; then
  1439. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1440. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1441. { (exit 1); exit 1; }; }
  1442. fi
  1443. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1444. ac_abs_confdir=`(
  1445. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1446. { (exit 1); exit 1; }; }
  1447. pwd)`
  1448. # When building in place, set srcdir=.
  1449. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1450. srcdir=.
  1451. fi
  1452. # Remove unnecessary trailing slashes from srcdir.
  1453. # Double slashes in file names in object file debugging info
  1454. # mess up M-x gdb in Emacs.
  1455. case $srcdir in
  1456. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1457. esac
  1458. for ac_var in $ac_precious_vars; do
  1459. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1460. eval ac_env_${ac_var}_value=\$${ac_var}
  1461. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1462. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1463. done
  1464. #
  1465. # Report the --help message.
  1466. #
  1467. if test "$ac_init_help" = "long"; then
  1468. # Omit some internal or obsolete options to make the list less imposing.
  1469. # This message is too long to be a string in the A/UX 3.1 sh.
  1470. cat <<_ACEOF
  1471. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1472. Usage: $0 [OPTION]... [VAR=VALUE]...
  1473. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1474. VAR=VALUE. See below for descriptions of some of the useful variables.
  1475. Defaults for the options are specified in brackets.
  1476. Configuration:
  1477. -h, --help display this help and exit
  1478. --help=short display options specific to this package
  1479. --help=recursive display the short help of all the included packages
  1480. -V, --version display version information and exit
  1481. -q, --quiet, --silent do not print \`checking...' messages
  1482. --cache-file=FILE cache test results in FILE [disabled]
  1483. -C, --config-cache alias for \`--cache-file=config.cache'
  1484. -n, --no-create do not create output files
  1485. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1486. Installation directories:
  1487. --prefix=PREFIX install architecture-independent files in PREFIX
  1488. [$ac_default_prefix]
  1489. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1490. [PREFIX]
  1491. By default, \`make install' will install all the files in
  1492. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1493. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1494. for instance \`--prefix=\$HOME'.
  1495. For better control, use the options below.
  1496. Fine tuning of the installation directories:
  1497. --bindir=DIR user executables [EPREFIX/bin]
  1498. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1499. --libexecdir=DIR program executables [EPREFIX/libexec]
  1500. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1501. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1502. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1503. --libdir=DIR object code libraries [EPREFIX/lib]
  1504. --includedir=DIR C header files [PREFIX/include]
  1505. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1506. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1507. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1508. --infodir=DIR info documentation [DATAROOTDIR/info]
  1509. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1510. --mandir=DIR man documentation [DATAROOTDIR/man]
  1511. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1512. --htmldir=DIR html documentation [DOCDIR]
  1513. --dvidir=DIR dvi documentation [DOCDIR]
  1514. --pdfdir=DIR pdf documentation [DOCDIR]
  1515. --psdir=DIR ps documentation [DOCDIR]
  1516. _ACEOF
  1517. cat <<\_ACEOF
  1518. Program names:
  1519. --program-prefix=PREFIX prepend PREFIX to installed program names
  1520. --program-suffix=SUFFIX append SUFFIX to installed program names
  1521. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1522. System types:
  1523. --build=BUILD configure for building on BUILD [guessed]
  1524. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1525. _ACEOF
  1526. fi
  1527. if test -n "$ac_init_help"; then
  1528. case $ac_init_help in
  1529. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1530. esac
  1531. cat <<\_ACEOF
  1532. Optional Features:
  1533. --disable-option-checking ignore unrecognized --enable/--with options
  1534. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1535. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1536. --enable-maintainer-mode enable make rules and dependencies not useful
  1537. (and sometimes confusing) to the casual installer
  1538. --disable-dependency-tracking speeds up one-time build
  1539. --enable-dependency-tracking do not reject slow dependency extractors
  1540. --enable-static[=PKGS] build static libraries [default=no]
  1541. --enable-shared[=PKGS] build shared libraries [default=yes]
  1542. --enable-fast-install[=PKGS]
  1543. optimize for fast installation [default=yes]
  1544. --disable-libtool-lock avoid locking (might break parallel builds)
  1545. --enable-debug Enable debug features (default: no)
  1546. --enable-bundle Enable bundled dependencies (default: no)
  1547. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1548. yes)
  1549. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1550. plugin (default: yes)
  1551. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1552. (default: yes)
  1553. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1554. support (default: no)
  1555. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1556. domain socket (LDAPI) support (default: no)
  1557. --enable-bitwise enable the bitwise matching rule plugin (default:
  1558. yes)
  1559. --enable-presence enable the presence plugin (default: no)
  1560. Optional Packages:
  1561. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1562. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1563. --with-pic try to use only PIC/non-PIC objects [default=use
  1564. both]
  1565. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1566. --with-fhs Use FHS layout
  1567. --with-fhs-opt Use FHS optional layout
  1568. --with-instconfigdir=/path
  1569. Base directory for instance specific writable
  1570. configuration directories (default
  1571. $sysconfdir/$PACKAGE_NAME)
  1572. --with-initddir=/path Absolute path (not relative like some of the other
  1573. options) that should contain the SysV init scripts
  1574. (default '$(sysconfdir)/rc.d')
  1575. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1576. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1577. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1578. --with-nss[=PATH] Network Security Services (NSS) directory
  1579. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1580. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1581. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1582. --with-openldap-inc=PATH
  1583. OpenLDAP SDK include directory
  1584. --with-openldap-lib=PATH
  1585. OpenLDAP SDK library directory
  1586. --with-openldap-bin=PATH
  1587. OpenLDAP SDK binary directory
  1588. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1589. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1590. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1591. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1592. --with-db[=PATH] Berkeley DB directory
  1593. --with-db-inc=PATH Berkeley DB include file directory
  1594. --with-db-lib=PATH Berkeley DB library directory
  1595. --with-sasl[=PATH] Use SASL from supplied path
  1596. --with-sasl-inc=PATH SASL include file directory
  1597. --with-sasl-lib=PATH SASL library directory
  1598. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1599. SVRCORE
  1600. --with-svrcore-inc=PATH SVRCORE include file directory
  1601. --with-svrcore-lib=PATH SVRCORE library directory
  1602. --with-icu[=PATH] ICU directory
  1603. --with-icu-inc=PATH ICU include directory
  1604. --with-icu-lib=PATH ICU library directory
  1605. --with-icu-bin=PATH ICU binary directory
  1606. --with-netsnmp[=PATH] Net-SNMP directory
  1607. --with-netsnmp-inc=PATH Net-SNMP include directory
  1608. --with-netsnmp-lib=PATH Net-SNMP library directory
  1609. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1610. the server to authenticate directly with a keytab -
  1611. otherwise, SASL/GSSAPI auth depends on underlying
  1612. SASL libraries and external kinit with a keytab - if
  1613. PATH is not specified, look for kerberos in the
  1614. system locations. This will attempt to use
  1615. krb5-config from the PATH to find the libs and
  1616. include dirs - you can specify KRB5_CONFIG_BIN to
  1617. specify a different filename or absolute path. If
  1618. krb5-config does not work, this will attempt to look
  1619. in various system directories
  1620. --with-kerberos-inc=PATH
  1621. Allows you to explicitly set the directory
  1622. containing the kerberos include files - implies use
  1623. of kerberos
  1624. --with-kerberos-lib=PATH
  1625. Allows you to explicitly set the directory
  1626. containing the kerberos libraries - implies use of
  1627. kerberos
  1628. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1629. --with-selinux Build SELinux policy
  1630. Some influential environment variables:
  1631. CXX C++ compiler command
  1632. CXXFLAGS C++ compiler flags
  1633. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1634. nonstandard directory <lib dir>
  1635. LIBS libraries to pass to the linker, e.g. -l<library>
  1636. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1637. you have headers in a nonstandard directory <include dir>
  1638. CC C compiler command
  1639. CFLAGS C compiler flags
  1640. CCAS assembler compiler command (defaults to CC)
  1641. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1642. CPP C preprocessor
  1643. CXXCPP C++ preprocessor
  1644. Use these variables to override the choices made by `configure' or to help
  1645. it to find libraries and programs with nonstandard names/locations.
  1646. Report bugs to <http://bugzilla.redhat.com/>.
  1647. _ACEOF
  1648. ac_status=$?
  1649. fi
  1650. if test "$ac_init_help" = "recursive"; then
  1651. # If there are subdirs, report their specific --help.
  1652. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1653. test -d "$ac_dir" ||
  1654. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1655. continue
  1656. ac_builddir=.
  1657. case "$ac_dir" in
  1658. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1659. *)
  1660. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1661. # A ".." for each directory in $ac_dir_suffix.
  1662. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1663. case $ac_top_builddir_sub in
  1664. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1665. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1666. esac ;;
  1667. esac
  1668. ac_abs_top_builddir=$ac_pwd
  1669. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1670. # for backward compatibility:
  1671. ac_top_builddir=$ac_top_build_prefix
  1672. case $srcdir in
  1673. .) # We are building in place.
  1674. ac_srcdir=.
  1675. ac_top_srcdir=$ac_top_builddir_sub
  1676. ac_abs_top_srcdir=$ac_pwd ;;
  1677. [\\/]* | ?:[\\/]* ) # Absolute name.
  1678. ac_srcdir=$srcdir$ac_dir_suffix;
  1679. ac_top_srcdir=$srcdir
  1680. ac_abs_top_srcdir=$srcdir ;;
  1681. *) # Relative name.
  1682. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1683. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1684. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1685. esac
  1686. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1687. cd "$ac_dir" || { ac_status=$?; continue; }
  1688. # Check for guested configure.
  1689. if test -f "$ac_srcdir/configure.gnu"; then
  1690. echo &&
  1691. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1692. elif test -f "$ac_srcdir/configure"; then
  1693. echo &&
  1694. $SHELL "$ac_srcdir/configure" --help=recursive
  1695. else
  1696. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1697. fi || ac_status=$?
  1698. cd "$ac_pwd" || { ac_status=$?; break; }
  1699. done
  1700. fi
  1701. test -n "$ac_init_help" && exit $ac_status
  1702. if $ac_init_version; then
  1703. cat <<\_ACEOF
  1704. dirsrv configure 1.0
  1705. generated by GNU Autoconf 2.63
  1706. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1707. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1708. This configure script is free software; the Free Software Foundation
  1709. gives unlimited permission to copy, distribute and modify it.
  1710. _ACEOF
  1711. exit
  1712. fi
  1713. cat >config.log <<_ACEOF
  1714. This file contains any messages produced by compilers while
  1715. running configure, to aid debugging if configure makes a mistake.
  1716. It was created by dirsrv $as_me 1.0, which was
  1717. generated by GNU Autoconf 2.63. Invocation command line was
  1718. $ $0 $@
  1719. _ACEOF
  1720. exec 5>>config.log
  1721. {
  1722. cat <<_ASUNAME
  1723. ## --------- ##
  1724. ## Platform. ##
  1725. ## --------- ##
  1726. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1727. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1728. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1729. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1730. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1731. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1732. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1733. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1734. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1735. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1736. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1737. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1738. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1739. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1740. _ASUNAME
  1741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1742. for as_dir in $PATH
  1743. do
  1744. IFS=$as_save_IFS
  1745. test -z "$as_dir" && as_dir=.
  1746. $as_echo "PATH: $as_dir"
  1747. done
  1748. IFS=$as_save_IFS
  1749. } >&5
  1750. cat >&5 <<_ACEOF
  1751. ## ----------- ##
  1752. ## Core tests. ##
  1753. ## ----------- ##
  1754. _ACEOF
  1755. # Keep a trace of the command line.
  1756. # Strip out --no-create and --no-recursion so they do not pile up.
  1757. # Strip out --silent because we don't want to record it for future runs.
  1758. # Also quote any args containing shell meta-characters.
  1759. # Make two passes to allow for proper duplicate-argument suppression.
  1760. ac_configure_args=
  1761. ac_configure_args0=
  1762. ac_configure_args1=
  1763. ac_must_keep_next=false
  1764. for ac_pass in 1 2
  1765. do
  1766. for ac_arg
  1767. do
  1768. case $ac_arg in
  1769. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1770. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1771. | -silent | --silent | --silen | --sile | --sil)
  1772. continue ;;
  1773. *\'*)
  1774. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1775. esac
  1776. case $ac_pass in
  1777. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1778. 2)
  1779. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1780. if test $ac_must_keep_next = true; then
  1781. ac_must_keep_next=false # Got value, back to normal.
  1782. else
  1783. case $ac_arg in
  1784. *=* | --config-cache | -C | -disable-* | --disable-* \
  1785. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1786. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1787. | -with-* | --with-* | -without-* | --without-* | --x)
  1788. case "$ac_configure_args0 " in
  1789. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1790. esac
  1791. ;;
  1792. -* ) ac_must_keep_next=true ;;
  1793. esac
  1794. fi
  1795. ac_configure_args="$ac_configure_args '$ac_arg'"
  1796. ;;
  1797. esac
  1798. done
  1799. done
  1800. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1801. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1802. # When interrupted or exit'd, cleanup temporary files, and complete
  1803. # config.log. We remove comments because anyway the quotes in there
  1804. # would cause problems or look ugly.
  1805. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1806. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1807. trap 'exit_status=$?
  1808. # Save into config.log some information that might help in debugging.
  1809. {
  1810. echo
  1811. cat <<\_ASBOX
  1812. ## ---------------- ##
  1813. ## Cache variables. ##
  1814. ## ---------------- ##
  1815. _ASBOX
  1816. echo
  1817. # The following way of writing the cache mishandles newlines in values,
  1818. (
  1819. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1820. eval ac_val=\$$ac_var
  1821. case $ac_val in #(
  1822. *${as_nl}*)
  1823. case $ac_var in #(
  1824. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1825. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1826. esac
  1827. case $ac_var in #(
  1828. _ | IFS | as_nl) ;; #(
  1829. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1830. *) $as_unset $ac_var ;;
  1831. esac ;;
  1832. esac
  1833. done
  1834. (set) 2>&1 |
  1835. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1836. *${as_nl}ac_space=\ *)
  1837. sed -n \
  1838. "s/'\''/'\''\\\\'\'''\''/g;
  1839. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1840. ;; #(
  1841. *)
  1842. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1843. ;;
  1844. esac |
  1845. sort
  1846. )
  1847. echo
  1848. cat <<\_ASBOX
  1849. ## ----------------- ##
  1850. ## Output variables. ##
  1851. ## ----------------- ##
  1852. _ASBOX
  1853. echo
  1854. for ac_var in $ac_subst_vars
  1855. do
  1856. eval ac_val=\$$ac_var
  1857. case $ac_val in
  1858. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1859. esac
  1860. $as_echo "$ac_var='\''$ac_val'\''"
  1861. done | sort
  1862. echo
  1863. if test -n "$ac_subst_files"; then
  1864. cat <<\_ASBOX
  1865. ## ------------------- ##
  1866. ## File substitutions. ##
  1867. ## ------------------- ##
  1868. _ASBOX
  1869. echo
  1870. for ac_var in $ac_subst_files
  1871. do
  1872. eval ac_val=\$$ac_var
  1873. case $ac_val in
  1874. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1875. esac
  1876. $as_echo "$ac_var='\''$ac_val'\''"
  1877. done | sort
  1878. echo
  1879. fi
  1880. if test -s confdefs.h; then
  1881. cat <<\_ASBOX
  1882. ## ----------- ##
  1883. ## confdefs.h. ##
  1884. ## ----------- ##
  1885. _ASBOX
  1886. echo
  1887. cat confdefs.h
  1888. echo
  1889. fi
  1890. test "$ac_signal" != 0 &&
  1891. $as_echo "$as_me: caught signal $ac_signal"
  1892. $as_echo "$as_me: exit $exit_status"
  1893. } >&5
  1894. rm -f core *.core core.conftest.* &&
  1895. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1896. exit $exit_status
  1897. ' 0
  1898. for ac_signal in 1 2 13 15; do
  1899. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1900. done
  1901. ac_signal=0
  1902. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1903. rm -f -r conftest* confdefs.h
  1904. # Predefined preprocessor variables.
  1905. cat >>confdefs.h <<_ACEOF
  1906. #define PACKAGE_NAME "$PACKAGE_NAME"
  1907. _ACEOF
  1908. cat >>confdefs.h <<_ACEOF
  1909. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1910. _ACEOF
  1911. cat >>confdefs.h <<_ACEOF
  1912. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1913. _ACEOF
  1914. cat >>confdefs.h <<_ACEOF
  1915. #define PACKAGE_STRING "$PACKAGE_STRING"
  1916. _ACEOF
  1917. cat >>confdefs.h <<_ACEOF
  1918. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1919. _ACEOF
  1920. # Let the site file select an alternate cache file if it wants to.
  1921. # Prefer an explicitly selected file to automatically selected ones.
  1922. ac_site_file1=NONE
  1923. ac_site_file2=NONE
  1924. if test -n "$CONFIG_SITE"; then
  1925. ac_site_file1=$CONFIG_SITE
  1926. elif test "x$prefix" != xNONE; then
  1927. ac_site_file1=$prefix/share/config.site
  1928. ac_site_file2=$prefix/etc/config.site
  1929. else
  1930. ac_site_file1=$ac_default_prefix/share/config.site
  1931. ac_site_file2=$ac_default_prefix/etc/config.site
  1932. fi
  1933. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1934. do
  1935. test "x$ac_site_file" = xNONE && continue
  1936. if test -r "$ac_site_file"; then
  1937. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1938. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1939. sed 's/^/| /' "$ac_site_file" >&5
  1940. . "$ac_site_file"
  1941. fi
  1942. done
  1943. if test -r "$cache_file"; then
  1944. # Some versions of bash will fail to source /dev/null (special
  1945. # files actually), so we avoid doing that.
  1946. if test -f "$cache_file"; then
  1947. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1948. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1949. case $cache_file in
  1950. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1951. *) . "./$cache_file";;
  1952. esac
  1953. fi
  1954. else
  1955. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1956. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1957. >$cache_file
  1958. fi
  1959. # Check that the precious variables saved in the cache have kept the same
  1960. # value.
  1961. ac_cache_corrupted=false
  1962. for ac_var in $ac_precious_vars; do
  1963. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1964. eval ac_new_set=\$ac_env_${ac_var}_set
  1965. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1966. eval ac_new_val=\$ac_env_${ac_var}_value
  1967. case $ac_old_set,$ac_new_set in
  1968. set,)
  1969. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1970. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1971. ac_cache_corrupted=: ;;
  1972. ,set)
  1973. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1974. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1975. ac_cache_corrupted=: ;;
  1976. ,);;
  1977. *)
  1978. if test "x$ac_old_val" != "x$ac_new_val"; then
  1979. # differences in whitespace do not lead to failure.
  1980. ac_old_val_w=`echo x $ac_old_val`
  1981. ac_new_val_w=`echo x $ac_new_val`
  1982. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1983. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1984. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1985. ac_cache_corrupted=:
  1986. else
  1987. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1988. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1989. eval $ac_var=\$ac_old_val
  1990. fi
  1991. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1992. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1993. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1994. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1995. fi;;
  1996. esac
  1997. # Pass precious variables to config.status.
  1998. if test "$ac_new_set" = set; then
  1999. case $ac_new_val in
  2000. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2001. *) ac_arg=$ac_var=$ac_new_val ;;
  2002. esac
  2003. case " $ac_configure_args " in
  2004. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2005. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2006. esac
  2007. fi
  2008. done
  2009. if $ac_cache_corrupted; then
  2010. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2011. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2012. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2013. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2014. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2015. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2016. { (exit 1); exit 1; }; }
  2017. fi
  2018. ac_ext=c
  2019. ac_cpp='$CPP $CPPFLAGS'
  2020. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2021. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2022. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2023. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2024. ac_config_headers="$ac_config_headers config.h"
  2025. # include the version information
  2026. . $srcdir/VERSION.sh
  2027. { $as_echo "$as_me:$LINENO: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2028. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2029. cat >>confdefs.h <<_ACEOF
  2030. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2031. _ACEOF
  2032. cat >>confdefs.h <<_ACEOF
  2033. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2034. _ACEOF
  2035. cat >>confdefs.h <<_ACEOF
  2036. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2037. _ACEOF
  2038. cat >>confdefs.h <<_ACEOF
  2039. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2040. _ACEOF
  2041. am__api_version='1.11'
  2042. ac_aux_dir=
  2043. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2044. if test -f "$ac_dir/install-sh"; then
  2045. ac_aux_dir=$ac_dir
  2046. ac_install_sh="$ac_aux_dir/install-sh -c"
  2047. break
  2048. elif test -f "$ac_dir/install.sh"; then
  2049. ac_aux_dir=$ac_dir
  2050. ac_install_sh="$ac_aux_dir/install.sh -c"
  2051. break
  2052. elif test -f "$ac_dir/shtool"; then
  2053. ac_aux_dir=$ac_dir
  2054. ac_install_sh="$ac_aux_dir/shtool install -c"
  2055. break
  2056. fi
  2057. done
  2058. if test -z "$ac_aux_dir"; then
  2059. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2060. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2061. { (exit 1); exit 1; }; }
  2062. fi
  2063. # These three variables are undocumented and unsupported,
  2064. # and are intended to be withdrawn in a future Autoconf release.
  2065. # They can cause serious problems if a builder's source tree is in a directory
  2066. # whose full name contains unusual characters.
  2067. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2068. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2069. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2070. # Find a good install program. We prefer a C program (faster),
  2071. # so one script is as good as another. But avoid the broken or
  2072. # incompatible versions:
  2073. # SysV /etc/install, /usr/sbin/install
  2074. # SunOS /usr/etc/install
  2075. # IRIX /sbin/install
  2076. # AIX /bin/install
  2077. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2078. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2079. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2080. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2081. # OS/2's system install, which has a completely different semantic
  2082. # ./install, which can be erroneously created by make from ./install.sh.
  2083. # Reject install programs that cannot install multiple files.
  2084. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2085. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2086. if test -z "$INSTALL"; then
  2087. if test "${ac_cv_path_install+set}" = set; then
  2088. $as_echo_n "(cached) " >&6
  2089. else
  2090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2091. for as_dir in $PATH
  2092. do
  2093. IFS=$as_save_IFS
  2094. test -z "$as_dir" && as_dir=.
  2095. # Account for people who put trailing slashes in PATH elements.
  2096. case $as_dir/ in
  2097. ./ | .// | /cC/* | \
  2098. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2099. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2100. /usr/ucb/* ) ;;
  2101. *)
  2102. # OSF1 and SCO ODT 3.0 have their own names for install.
  2103. # Don't use installbsd from OSF since it installs stuff as root
  2104. # by default.
  2105. for ac_prog in ginstall scoinst install; do
  2106. for ac_exec_ext in '' $ac_executable_extensions; do
  2107. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2108. if test $ac_prog = install &&
  2109. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2110. # AIX install. It has an incompatible calling convention.
  2111. :
  2112. elif test $ac_prog = install &&
  2113. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2114. # program-specific install script used by HP pwplus--don't use.
  2115. :
  2116. else
  2117. rm -rf conftest.one conftest.two conftest.dir
  2118. echo one > conftest.one
  2119. echo two > conftest.two
  2120. mkdir conftest.dir
  2121. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2122. test -s conftest.one && test -s conftest.two &&
  2123. test -s conftest.dir/conftest.one &&
  2124. test -s conftest.dir/conftest.two
  2125. then
  2126. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2127. break 3
  2128. fi
  2129. fi
  2130. fi
  2131. done
  2132. done
  2133. ;;
  2134. esac
  2135. done
  2136. IFS=$as_save_IFS
  2137. rm -rf conftest.one conftest.two conftest.dir
  2138. fi
  2139. if test "${ac_cv_path_install+set}" = set; then
  2140. INSTALL=$ac_cv_path_install
  2141. else
  2142. # As a last resort, use the slow shell script. Don't cache a
  2143. # value for INSTALL within a source directory, because that will
  2144. # break other packages using the cache if that directory is
  2145. # removed, or if the value is a relative name.
  2146. INSTALL=$ac_install_sh
  2147. fi
  2148. fi
  2149. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2150. $as_echo "$INSTALL" >&6; }
  2151. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2152. # It thinks the first close brace ends the variable substitution.
  2153. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2154. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2155. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2156. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2157. $as_echo_n "checking whether build environment is sane... " >&6; }
  2158. # Just in case
  2159. sleep 1
  2160. echo timestamp > conftest.file
  2161. # Reject unsafe characters in $srcdir or the absolute working directory
  2162. # name. Accept space and tab only in the latter.
  2163. am_lf='
  2164. '
  2165. case `pwd` in
  2166. *[\\\"\#\$\&\'\`$am_lf]*)
  2167. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2168. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2169. { (exit 1); exit 1; }; };;
  2170. esac
  2171. case $srcdir in
  2172. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2173. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2174. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2175. { (exit 1); exit 1; }; };;
  2176. esac
  2177. # Do `set' in a subshell so we don't clobber the current shell's
  2178. # arguments. Must try -L first in case configure is actually a
  2179. # symlink; some systems play weird games with the mod time of symlinks
  2180. # (eg FreeBSD returns the mod time of the symlink's containing
  2181. # directory).
  2182. if (
  2183. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2184. if test "$*" = "X"; then
  2185. # -L didn't work.
  2186. set X `ls -t "$srcdir/configure" conftest.file`
  2187. fi
  2188. rm -f conftest.file
  2189. if test "$*" != "X $srcdir/configure conftest.file" \
  2190. && test "$*" != "X conftest.file $srcdir/configure"; then
  2191. # If neither matched, then we have a broken ls. This can happen
  2192. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2193. # broken ls alias from the environment. This has actually
  2194. # happened. Such a system could not be considered "sane".
  2195. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2196. alias in your environment" >&5
  2197. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2198. alias in your environment" >&2;}
  2199. { (exit 1); exit 1; }; }
  2200. fi
  2201. test "$2" = conftest.file
  2202. )
  2203. then
  2204. # Ok.
  2205. :
  2206. else
  2207. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2208. Check your system clock" >&5
  2209. $as_echo "$as_me: error: newly created file is older than distributed files!
  2210. Check your system clock" >&2;}
  2211. { (exit 1); exit 1; }; }
  2212. fi
  2213. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2214. $as_echo "yes" >&6; }
  2215. test "$program_prefix" != NONE &&
  2216. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2217. # Use a double $ so make ignores it.
  2218. test "$program_suffix" != NONE &&
  2219. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2220. # Double any \ or $.
  2221. # By default was `s,x,x', remove it if useless.
  2222. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2223. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2224. # expand $ac_aux_dir to an absolute path
  2225. am_aux_dir=`cd $ac_aux_dir && pwd`
  2226. if test x"${MISSING+set}" != xset; then
  2227. case $am_aux_dir in
  2228. *\ * | *\ *)
  2229. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2230. *)
  2231. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2232. esac
  2233. fi
  2234. # Use eval to expand $SHELL
  2235. if eval "$MISSING --run true"; then
  2236. am_missing_run="$MISSING --run "
  2237. else
  2238. am_missing_run=
  2239. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2240. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2241. fi
  2242. if test x"${install_sh}" != xset; then
  2243. case $am_aux_dir in
  2244. *\ * | *\ *)
  2245. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2246. *)
  2247. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2248. esac
  2249. fi
  2250. # Installed binaries are usually stripped using `strip' when the user
  2251. # run `make install-strip'. However `strip' might not be the right
  2252. # tool to use in cross-compilation environments, therefore Automake
  2253. # will honor the `STRIP' environment variable to overrule this program.
  2254. if test "$cross_compiling" != no; then
  2255. if test -n "$ac_tool_prefix"; then
  2256. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2257. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2258. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2259. $as_echo_n "checking for $ac_word... " >&6; }
  2260. if test "${ac_cv_prog_STRIP+set}" = set; then
  2261. $as_echo_n "(cached) " >&6
  2262. else
  2263. if test -n "$STRIP"; then
  2264. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2265. else
  2266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2267. for as_dir in $PATH
  2268. do
  2269. IFS=$as_save_IFS
  2270. test -z "$as_dir" && as_dir=.
  2271. for ac_exec_ext in '' $ac_executable_extensions; do
  2272. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2273. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2274. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2275. break 2
  2276. fi
  2277. done
  2278. done
  2279. IFS=$as_save_IFS
  2280. fi
  2281. fi
  2282. STRIP=$ac_cv_prog_STRIP
  2283. if test -n "$STRIP"; then
  2284. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2285. $as_echo "$STRIP" >&6; }
  2286. else
  2287. { $as_echo "$as_me:$LINENO: result: no" >&5
  2288. $as_echo "no" >&6; }
  2289. fi
  2290. fi
  2291. if test -z "$ac_cv_prog_STRIP"; then
  2292. ac_ct_STRIP=$STRIP
  2293. # Extract the first word of "strip", so it can be a program name with args.
  2294. set dummy strip; ac_word=$2
  2295. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2296. $as_echo_n "checking for $ac_word... " >&6; }
  2297. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2298. $as_echo_n "(cached) " >&6
  2299. else
  2300. if test -n "$ac_ct_STRIP"; then
  2301. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2302. else
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH
  2305. do
  2306. IFS=$as_save_IFS
  2307. test -z "$as_dir" && as_dir=.
  2308. for ac_exec_ext in '' $ac_executable_extensions; do
  2309. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2310. ac_cv_prog_ac_ct_STRIP="strip"
  2311. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2312. break 2
  2313. fi
  2314. done
  2315. done
  2316. IFS=$as_save_IFS
  2317. fi
  2318. fi
  2319. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2320. if test -n "$ac_ct_STRIP"; then
  2321. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2322. $as_echo "$ac_ct_STRIP" >&6; }
  2323. else
  2324. { $as_echo "$as_me:$LINENO: result: no" >&5
  2325. $as_echo "no" >&6; }
  2326. fi
  2327. if test "x$ac_ct_STRIP" = x; then
  2328. STRIP=":"
  2329. else
  2330. case $cross_compiling:$ac_tool_warned in
  2331. yes:)
  2332. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2333. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2334. ac_tool_warned=yes ;;
  2335. esac
  2336. STRIP=$ac_ct_STRIP
  2337. fi
  2338. else
  2339. STRIP="$ac_cv_prog_STRIP"
  2340. fi
  2341. fi
  2342. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2343. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2344. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2345. if test -z "$MKDIR_P"; then
  2346. if test "${ac_cv_path_mkdir+set}" = set; then
  2347. $as_echo_n "(cached) " >&6
  2348. else
  2349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2350. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2351. do
  2352. IFS=$as_save_IFS
  2353. test -z "$as_dir" && as_dir=.
  2354. for ac_prog in mkdir gmkdir; do
  2355. for ac_exec_ext in '' $ac_executable_extensions; do
  2356. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2357. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2358. 'mkdir (GNU coreutils) '* | \
  2359. 'mkdir (coreutils) '* | \
  2360. 'mkdir (fileutils) '4.1*)
  2361. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2362. break 3;;
  2363. esac
  2364. done
  2365. done
  2366. done
  2367. IFS=$as_save_IFS
  2368. fi
  2369. if test "${ac_cv_path_mkdir+set}" = set; then
  2370. MKDIR_P="$ac_cv_path_mkdir -p"
  2371. else
  2372. # As a last resort, use the slow shell script. Don't cache a
  2373. # value for MKDIR_P within a source directory, because that will
  2374. # break other packages using the cache if that directory is
  2375. # removed, or if the value is a relative name.
  2376. test -d ./--version && rmdir ./--version
  2377. MKDIR_P="$ac_install_sh -d"
  2378. fi
  2379. fi
  2380. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2381. $as_echo "$MKDIR_P" >&6; }
  2382. mkdir_p="$MKDIR_P"
  2383. case $mkdir_p in
  2384. [\\/$]* | ?:[\\/]*) ;;
  2385. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2386. esac
  2387. for ac_prog in gawk mawk nawk awk
  2388. do
  2389. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2390. set dummy $ac_prog; ac_word=$2
  2391. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2392. $as_echo_n "checking for $ac_word... " >&6; }
  2393. if test "${ac_cv_prog_AWK+set}" = set; then
  2394. $as_echo_n "(cached) " >&6
  2395. else
  2396. if test -n "$AWK"; then
  2397. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2398. else
  2399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2400. for as_dir in $PATH
  2401. do
  2402. IFS=$as_save_IFS
  2403. test -z "$as_dir" && as_dir=.
  2404. for ac_exec_ext in '' $ac_executable_extensions; do
  2405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2406. ac_cv_prog_AWK="$ac_prog"
  2407. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2408. break 2
  2409. fi
  2410. done
  2411. done
  2412. IFS=$as_save_IFS
  2413. fi
  2414. fi
  2415. AWK=$ac_cv_prog_AWK
  2416. if test -n "$AWK"; then
  2417. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2418. $as_echo "$AWK" >&6; }
  2419. else
  2420. { $as_echo "$as_me:$LINENO: result: no" >&5
  2421. $as_echo "no" >&6; }
  2422. fi
  2423. test -n "$AWK" && break
  2424. done
  2425. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2426. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2427. set x ${MAKE-make}
  2428. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2429. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2430. $as_echo_n "(cached) " >&6
  2431. else
  2432. cat >conftest.make <<\_ACEOF
  2433. SHELL = /bin/sh
  2434. all:
  2435. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2436. _ACEOF
  2437. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2438. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2439. *@@@%%%=?*=@@@%%%*)
  2440. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2441. *)
  2442. eval ac_cv_prog_make_${ac_make}_set=no;;
  2443. esac
  2444. rm -f conftest.make
  2445. fi
  2446. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2447. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2448. $as_echo "yes" >&6; }
  2449. SET_MAKE=
  2450. else
  2451. { $as_echo "$as_me:$LINENO: result: no" >&5
  2452. $as_echo "no" >&6; }
  2453. SET_MAKE="MAKE=${MAKE-make}"
  2454. fi
  2455. rm -rf .tst 2>/dev/null
  2456. mkdir .tst 2>/dev/null
  2457. if test -d .tst; then
  2458. am__leading_dot=.
  2459. else
  2460. am__leading_dot=_
  2461. fi
  2462. rmdir .tst 2>/dev/null
  2463. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2464. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2465. # is not polluted with repeated "-I."
  2466. am__isrc=' -I$(srcdir)'
  2467. # test to see if srcdir already configured
  2468. if test -f $srcdir/config.status; then
  2469. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2470. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2471. { (exit 1); exit 1; }; }
  2472. fi
  2473. fi
  2474. # test whether we have cygpath
  2475. if test -z "$CYGPATH_W"; then
  2476. if (cygpath --version) >/dev/null 2>/dev/null; then
  2477. CYGPATH_W='cygpath -w'
  2478. else
  2479. CYGPATH_W=echo
  2480. fi
  2481. fi
  2482. # Define the identity of the package.
  2483. PACKAGE='dirsrv'
  2484. VERSION='1.0'
  2485. # Some tools Automake needs.
  2486. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2487. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2488. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2489. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2490. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2491. # We need awk for the "check" target. The system "awk" is bad on
  2492. # some platforms.
  2493. # Always define AMTAR for backward compatibility.
  2494. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2495. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2496. # define these for automake distdir
  2497. VERSION=$PACKAGE_VERSION
  2498. PACKAGE=$PACKAGE_TARNAME
  2499. cat >>confdefs.h <<_ACEOF
  2500. #define VERSION "$VERSION"
  2501. _ACEOF
  2502. cat >>confdefs.h <<_ACEOF
  2503. #define PACKAGE "$PACKAGE"
  2504. _ACEOF
  2505. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2506. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2507. # Check whether --enable-maintainer-mode was given.
  2508. if test "${enable_maintainer_mode+set}" = set; then
  2509. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2510. else
  2511. USE_MAINTAINER_MODE=no
  2512. fi
  2513. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2514. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2515. if test $USE_MAINTAINER_MODE = yes; then
  2516. MAINTAINER_MODE_TRUE=
  2517. MAINTAINER_MODE_FALSE='#'
  2518. else
  2519. MAINTAINER_MODE_TRUE='#'
  2520. MAINTAINER_MODE_FALSE=
  2521. fi
  2522. MAINT=$MAINTAINER_MODE_TRUE
  2523. # Make sure we can run config.sub.
  2524. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2525. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2526. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2527. { (exit 1); exit 1; }; }
  2528. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2529. $as_echo_n "checking build system type... " >&6; }
  2530. if test "${ac_cv_build+set}" = set; then
  2531. $as_echo_n "(cached) " >&6
  2532. else
  2533. ac_build_alias=$build_alias
  2534. test "x$ac_build_alias" = x &&
  2535. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2536. test "x$ac_build_alias" = x &&
  2537. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2538. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2539. { (exit 1); exit 1; }; }
  2540. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2541. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2542. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2543. { (exit 1); exit 1; }; }
  2544. fi
  2545. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2546. $as_echo "$ac_cv_build" >&6; }
  2547. case $ac_cv_build in
  2548. *-*-*) ;;
  2549. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2550. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2551. { (exit 1); exit 1; }; };;
  2552. esac
  2553. build=$ac_cv_build
  2554. ac_save_IFS=$IFS; IFS='-'
  2555. set x $ac_cv_build
  2556. shift
  2557. build_cpu=$1
  2558. build_vendor=$2
  2559. shift; shift
  2560. # Remember, the first character of IFS is used to create $*,
  2561. # except with old shells:
  2562. build_os=$*
  2563. IFS=$ac_save_IFS
  2564. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2565. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2566. $as_echo_n "checking host system type... " >&6; }
  2567. if test "${ac_cv_host+set}" = set; then
  2568. $as_echo_n "(cached) " >&6
  2569. else
  2570. if test "x$host_alias" = x; then
  2571. ac_cv_host=$ac_cv_build
  2572. else
  2573. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2574. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2575. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2576. { (exit 1); exit 1; }; }
  2577. fi
  2578. fi
  2579. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2580. $as_echo "$ac_cv_host" >&6; }
  2581. case $ac_cv_host in
  2582. *-*-*) ;;
  2583. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2584. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2585. { (exit 1); exit 1; }; };;
  2586. esac
  2587. host=$ac_cv_host
  2588. ac_save_IFS=$IFS; IFS='-'
  2589. set x $ac_cv_host
  2590. shift
  2591. host_cpu=$1
  2592. host_vendor=$2
  2593. shift; shift
  2594. # Remember, the first character of IFS is used to create $*,
  2595. # except with old shells:
  2596. host_os=$*
  2597. IFS=$ac_save_IFS
  2598. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2599. # Checks for programs.
  2600. ac_ext=cpp
  2601. ac_cpp='$CXXCPP $CPPFLAGS'
  2602. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2603. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2604. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2605. if test -z "$CXX"; then
  2606. if test -n "$CCC"; then
  2607. CXX=$CCC
  2608. else
  2609. if test -n "$ac_tool_prefix"; then
  2610. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2611. do
  2612. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2613. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2614. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2615. $as_echo_n "checking for $ac_word... " >&6; }
  2616. if test "${ac_cv_prog_CXX+set}" = set; then
  2617. $as_echo_n "(cached) " >&6
  2618. else
  2619. if test -n "$CXX"; then
  2620. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2621. else
  2622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2623. for as_dir in $PATH
  2624. do
  2625. IFS=$as_save_IFS
  2626. test -z "$as_dir" && as_dir=.
  2627. for ac_exec_ext in '' $ac_executable_extensions; do
  2628. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2629. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2630. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2631. break 2
  2632. fi
  2633. done
  2634. done
  2635. IFS=$as_save_IFS
  2636. fi
  2637. fi
  2638. CXX=$ac_cv_prog_CXX
  2639. if test -n "$CXX"; then
  2640. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2641. $as_echo "$CXX" >&6; }
  2642. else
  2643. { $as_echo "$as_me:$LINENO: result: no" >&5
  2644. $as_echo "no" >&6; }
  2645. fi
  2646. test -n "$CXX" && break
  2647. done
  2648. fi
  2649. if test -z "$CXX"; then
  2650. ac_ct_CXX=$CXX
  2651. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2652. do
  2653. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2654. set dummy $ac_prog; ac_word=$2
  2655. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2656. $as_echo_n "checking for $ac_word... " >&6; }
  2657. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2658. $as_echo_n "(cached) " >&6
  2659. else
  2660. if test -n "$ac_ct_CXX"; then
  2661. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2662. else
  2663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2664. for as_dir in $PATH
  2665. do
  2666. IFS=$as_save_IFS
  2667. test -z "$as_dir" && as_dir=.
  2668. for ac_exec_ext in '' $ac_executable_extensions; do
  2669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2670. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2671. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2672. break 2
  2673. fi
  2674. done
  2675. done
  2676. IFS=$as_save_IFS
  2677. fi
  2678. fi
  2679. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2680. if test -n "$ac_ct_CXX"; then
  2681. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2682. $as_echo "$ac_ct_CXX" >&6; }
  2683. else
  2684. { $as_echo "$as_me:$LINENO: result: no" >&5
  2685. $as_echo "no" >&6; }
  2686. fi
  2687. test -n "$ac_ct_CXX" && break
  2688. done
  2689. if test "x$ac_ct_CXX" = x; then
  2690. CXX="g++"
  2691. else
  2692. case $cross_compiling:$ac_tool_warned in
  2693. yes:)
  2694. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2695. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2696. ac_tool_warned=yes ;;
  2697. esac
  2698. CXX=$ac_ct_CXX
  2699. fi
  2700. fi
  2701. fi
  2702. fi
  2703. # Provide some information about the compiler.
  2704. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2705. set X $ac_compile
  2706. ac_compiler=$2
  2707. { (ac_try="$ac_compiler --version >&5"
  2708. case "(($ac_try" in
  2709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2710. *) ac_try_echo=$ac_try;;
  2711. esac
  2712. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2713. $as_echo "$ac_try_echo") >&5
  2714. (eval "$ac_compiler --version >&5") 2>&5
  2715. ac_status=$?
  2716. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2717. (exit $ac_status); }
  2718. { (ac_try="$ac_compiler -v >&5"
  2719. case "(($ac_try" in
  2720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2721. *) ac_try_echo=$ac_try;;
  2722. esac
  2723. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2724. $as_echo "$ac_try_echo") >&5
  2725. (eval "$ac_compiler -v >&5") 2>&5
  2726. ac_status=$?
  2727. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2728. (exit $ac_status); }
  2729. { (ac_try="$ac_compiler -V >&5"
  2730. case "(($ac_try" in
  2731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2732. *) ac_try_echo=$ac_try;;
  2733. esac
  2734. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2735. $as_echo "$ac_try_echo") >&5
  2736. (eval "$ac_compiler -V >&5") 2>&5
  2737. ac_status=$?
  2738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2739. (exit $ac_status); }
  2740. cat >conftest.$ac_ext <<_ACEOF
  2741. /* confdefs.h. */
  2742. _ACEOF
  2743. cat confdefs.h >>conftest.$ac_ext
  2744. cat >>conftest.$ac_ext <<_ACEOF
  2745. /* end confdefs.h. */
  2746. int
  2747. main ()
  2748. {
  2749. ;
  2750. return 0;
  2751. }
  2752. _ACEOF
  2753. ac_clean_files_save=$ac_clean_files
  2754. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2755. # Try to create an executable without -o first, disregard a.out.
  2756. # It will help us diagnose broken compilers, and finding out an intuition
  2757. # of exeext.
  2758. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2759. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2760. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2761. # The possible output files:
  2762. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2763. ac_rmfiles=
  2764. for ac_file in $ac_files
  2765. do
  2766. case $ac_file in
  2767. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2768. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2769. esac
  2770. done
  2771. rm -f $ac_rmfiles
  2772. if { (ac_try="$ac_link_default"
  2773. case "(($ac_try" in
  2774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2775. *) ac_try_echo=$ac_try;;
  2776. esac
  2777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2778. $as_echo "$ac_try_echo") >&5
  2779. (eval "$ac_link_default") 2>&5
  2780. ac_status=$?
  2781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2782. (exit $ac_status); }; then
  2783. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2784. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2785. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2786. # so that the user can short-circuit this test for compilers unknown to
  2787. # Autoconf.
  2788. for ac_file in $ac_files ''
  2789. do
  2790. test -f "$ac_file" || continue
  2791. case $ac_file in
  2792. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2793. ;;
  2794. [ab].out )
  2795. # We found the default executable, but exeext='' is most
  2796. # certainly right.
  2797. break;;
  2798. *.* )
  2799. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2800. then :; else
  2801. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2802. fi
  2803. # We set ac_cv_exeext here because the later test for it is not
  2804. # safe: cross compilers may not add the suffix if given an `-o'
  2805. # argument, so we may need to know it at that point already.
  2806. # Even if this section looks crufty: it has the advantage of
  2807. # actually working.
  2808. break;;
  2809. * )
  2810. break;;
  2811. esac
  2812. done
  2813. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2814. else
  2815. ac_file=''
  2816. fi
  2817. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2818. $as_echo "$ac_file" >&6; }
  2819. if test -z "$ac_file"; then
  2820. $as_echo "$as_me: failed program was:" >&5
  2821. sed 's/^/| /' conftest.$ac_ext >&5
  2822. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2824. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2825. See \`config.log' for more details." >&5
  2826. $as_echo "$as_me: error: C++ compiler cannot create executables
  2827. See \`config.log' for more details." >&2;}
  2828. { (exit 77); exit 77; }; }; }
  2829. fi
  2830. ac_exeext=$ac_cv_exeext
  2831. # Check that the compiler produces executables we can run. If not, either
  2832. # the compiler is broken, or we cross compile.
  2833. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2834. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2835. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2836. # If not cross compiling, check that we can run a simple program.
  2837. if test "$cross_compiling" != yes; then
  2838. if { ac_try='./$ac_file'
  2839. { (case "(($ac_try" in
  2840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2841. *) ac_try_echo=$ac_try;;
  2842. esac
  2843. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2844. $as_echo "$ac_try_echo") >&5
  2845. (eval "$ac_try") 2>&5
  2846. ac_status=$?
  2847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2848. (exit $ac_status); }; }; then
  2849. cross_compiling=no
  2850. else
  2851. if test "$cross_compiling" = maybe; then
  2852. cross_compiling=yes
  2853. else
  2854. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2855. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2856. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2857. If you meant to cross compile, use \`--host'.
  2858. See \`config.log' for more details." >&5
  2859. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2860. If you meant to cross compile, use \`--host'.
  2861. See \`config.log' for more details." >&2;}
  2862. { (exit 1); exit 1; }; }; }
  2863. fi
  2864. fi
  2865. fi
  2866. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2867. $as_echo "yes" >&6; }
  2868. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2869. ac_clean_files=$ac_clean_files_save
  2870. # Check that the compiler produces executables we can run. If not, either
  2871. # the compiler is broken, or we cross compile.
  2872. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2873. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2874. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2875. $as_echo "$cross_compiling" >&6; }
  2876. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2877. $as_echo_n "checking for suffix of executables... " >&6; }
  2878. if { (ac_try="$ac_link"
  2879. case "(($ac_try" in
  2880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2881. *) ac_try_echo=$ac_try;;
  2882. esac
  2883. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2884. $as_echo "$ac_try_echo") >&5
  2885. (eval "$ac_link") 2>&5
  2886. ac_status=$?
  2887. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888. (exit $ac_status); }; then
  2889. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2890. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2891. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2892. # `rm'.
  2893. for ac_file in conftest.exe conftest conftest.*; do
  2894. test -f "$ac_file" || continue
  2895. case $ac_file in
  2896. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2897. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2898. break;;
  2899. * ) break;;
  2900. esac
  2901. done
  2902. else
  2903. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2904. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2905. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2906. See \`config.log' for more details." >&5
  2907. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2908. See \`config.log' for more details." >&2;}
  2909. { (exit 1); exit 1; }; }; }
  2910. fi
  2911. rm -f conftest$ac_cv_exeext
  2912. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2913. $as_echo "$ac_cv_exeext" >&6; }
  2914. rm -f conftest.$ac_ext
  2915. EXEEXT=$ac_cv_exeext
  2916. ac_exeext=$EXEEXT
  2917. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2918. $as_echo_n "checking for suffix of object files... " >&6; }
  2919. if test "${ac_cv_objext+set}" = set; then
  2920. $as_echo_n "(cached) " >&6
  2921. else
  2922. cat >conftest.$ac_ext <<_ACEOF
  2923. /* confdefs.h. */
  2924. _ACEOF
  2925. cat confdefs.h >>conftest.$ac_ext
  2926. cat >>conftest.$ac_ext <<_ACEOF
  2927. /* end confdefs.h. */
  2928. int
  2929. main ()
  2930. {
  2931. ;
  2932. return 0;
  2933. }
  2934. _ACEOF
  2935. rm -f conftest.o conftest.obj
  2936. if { (ac_try="$ac_compile"
  2937. case "(($ac_try" in
  2938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2939. *) ac_try_echo=$ac_try;;
  2940. esac
  2941. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2942. $as_echo "$ac_try_echo") >&5
  2943. (eval "$ac_compile") 2>&5
  2944. ac_status=$?
  2945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2946. (exit $ac_status); }; then
  2947. for ac_file in conftest.o conftest.obj conftest.*; do
  2948. test -f "$ac_file" || continue;
  2949. case $ac_file in
  2950. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2951. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2952. break;;
  2953. esac
  2954. done
  2955. else
  2956. $as_echo "$as_me: failed program was:" >&5
  2957. sed 's/^/| /' conftest.$ac_ext >&5
  2958. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2959. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2960. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2961. See \`config.log' for more details." >&5
  2962. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2963. See \`config.log' for more details." >&2;}
  2964. { (exit 1); exit 1; }; }; }
  2965. fi
  2966. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2967. fi
  2968. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2969. $as_echo "$ac_cv_objext" >&6; }
  2970. OBJEXT=$ac_cv_objext
  2971. ac_objext=$OBJEXT
  2972. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2973. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2974. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2975. $as_echo_n "(cached) " >&6
  2976. else
  2977. cat >conftest.$ac_ext <<_ACEOF
  2978. /* confdefs.h. */
  2979. _ACEOF
  2980. cat confdefs.h >>conftest.$ac_ext
  2981. cat >>conftest.$ac_ext <<_ACEOF
  2982. /* end confdefs.h. */
  2983. int
  2984. main ()
  2985. {
  2986. #ifndef __GNUC__
  2987. choke me
  2988. #endif
  2989. ;
  2990. return 0;
  2991. }
  2992. _ACEOF
  2993. rm -f conftest.$ac_objext
  2994. if { (ac_try="$ac_compile"
  2995. case "(($ac_try" in
  2996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2997. *) ac_try_echo=$ac_try;;
  2998. esac
  2999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3000. $as_echo "$ac_try_echo") >&5
  3001. (eval "$ac_compile") 2>conftest.er1
  3002. ac_status=$?
  3003. grep -v '^ *+' conftest.er1 >conftest.err
  3004. rm -f conftest.er1
  3005. cat conftest.err >&5
  3006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3007. (exit $ac_status); } && {
  3008. test -z "$ac_cxx_werror_flag" ||
  3009. test ! -s conftest.err
  3010. } && test -s conftest.$ac_objext; then
  3011. ac_compiler_gnu=yes
  3012. else
  3013. $as_echo "$as_me: failed program was:" >&5
  3014. sed 's/^/| /' conftest.$ac_ext >&5
  3015. ac_compiler_gnu=no
  3016. fi
  3017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3018. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3019. fi
  3020. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3021. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3022. if test $ac_compiler_gnu = yes; then
  3023. GXX=yes
  3024. else
  3025. GXX=
  3026. fi
  3027. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3028. ac_save_CXXFLAGS=$CXXFLAGS
  3029. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3030. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3031. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3032. $as_echo_n "(cached) " >&6
  3033. else
  3034. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3035. ac_cxx_werror_flag=yes
  3036. ac_cv_prog_cxx_g=no
  3037. CXXFLAGS="-g"
  3038. cat >conftest.$ac_ext <<_ACEOF
  3039. /* confdefs.h. */
  3040. _ACEOF
  3041. cat confdefs.h >>conftest.$ac_ext
  3042. cat >>conftest.$ac_ext <<_ACEOF
  3043. /* end confdefs.h. */
  3044. int
  3045. main ()
  3046. {
  3047. ;
  3048. return 0;
  3049. }
  3050. _ACEOF
  3051. rm -f conftest.$ac_objext
  3052. if { (ac_try="$ac_compile"
  3053. case "(($ac_try" in
  3054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3055. *) ac_try_echo=$ac_try;;
  3056. esac
  3057. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3058. $as_echo "$ac_try_echo") >&5
  3059. (eval "$ac_compile") 2>conftest.er1
  3060. ac_status=$?
  3061. grep -v '^ *+' conftest.er1 >conftest.err
  3062. rm -f conftest.er1
  3063. cat conftest.err >&5
  3064. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3065. (exit $ac_status); } && {
  3066. test -z "$ac_cxx_werror_flag" ||
  3067. test ! -s conftest.err
  3068. } && test -s conftest.$ac_objext; then
  3069. ac_cv_prog_cxx_g=yes
  3070. else
  3071. $as_echo "$as_me: failed program was:" >&5
  3072. sed 's/^/| /' conftest.$ac_ext >&5
  3073. CXXFLAGS=""
  3074. cat >conftest.$ac_ext <<_ACEOF
  3075. /* confdefs.h. */
  3076. _ACEOF
  3077. cat confdefs.h >>conftest.$ac_ext
  3078. cat >>conftest.$ac_ext <<_ACEOF
  3079. /* end confdefs.h. */
  3080. int
  3081. main ()
  3082. {
  3083. ;
  3084. return 0;
  3085. }
  3086. _ACEOF
  3087. rm -f conftest.$ac_objext
  3088. if { (ac_try="$ac_compile"
  3089. case "(($ac_try" in
  3090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3091. *) ac_try_echo=$ac_try;;
  3092. esac
  3093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3094. $as_echo "$ac_try_echo") >&5
  3095. (eval "$ac_compile") 2>conftest.er1
  3096. ac_status=$?
  3097. grep -v '^ *+' conftest.er1 >conftest.err
  3098. rm -f conftest.er1
  3099. cat conftest.err >&5
  3100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3101. (exit $ac_status); } && {
  3102. test -z "$ac_cxx_werror_flag" ||
  3103. test ! -s conftest.err
  3104. } && test -s conftest.$ac_objext; then
  3105. :
  3106. else
  3107. $as_echo "$as_me: failed program was:" >&5
  3108. sed 's/^/| /' conftest.$ac_ext >&5
  3109. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3110. CXXFLAGS="-g"
  3111. cat >conftest.$ac_ext <<_ACEOF
  3112. /* confdefs.h. */
  3113. _ACEOF
  3114. cat confdefs.h >>conftest.$ac_ext
  3115. cat >>conftest.$ac_ext <<_ACEOF
  3116. /* end confdefs.h. */
  3117. int
  3118. main ()
  3119. {
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. rm -f conftest.$ac_objext
  3125. if { (ac_try="$ac_compile"
  3126. case "(($ac_try" in
  3127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3128. *) ac_try_echo=$ac_try;;
  3129. esac
  3130. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3131. $as_echo "$ac_try_echo") >&5
  3132. (eval "$ac_compile") 2>conftest.er1
  3133. ac_status=$?
  3134. grep -v '^ *+' conftest.er1 >conftest.err
  3135. rm -f conftest.er1
  3136. cat conftest.err >&5
  3137. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3138. (exit $ac_status); } && {
  3139. test -z "$ac_cxx_werror_flag" ||
  3140. test ! -s conftest.err
  3141. } && test -s conftest.$ac_objext; then
  3142. ac_cv_prog_cxx_g=yes
  3143. else
  3144. $as_echo "$as_me: failed program was:" >&5
  3145. sed 's/^/| /' conftest.$ac_ext >&5
  3146. fi
  3147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3148. fi
  3149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3150. fi
  3151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3152. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3153. fi
  3154. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3155. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3156. if test "$ac_test_CXXFLAGS" = set; then
  3157. CXXFLAGS=$ac_save_CXXFLAGS
  3158. elif test $ac_cv_prog_cxx_g = yes; then
  3159. if test "$GXX" = yes; then
  3160. CXXFLAGS="-g -O2"
  3161. else
  3162. CXXFLAGS="-g"
  3163. fi
  3164. else
  3165. if test "$GXX" = yes; then
  3166. CXXFLAGS="-O2"
  3167. else
  3168. CXXFLAGS=
  3169. fi
  3170. fi
  3171. ac_ext=c
  3172. ac_cpp='$CPP $CPPFLAGS'
  3173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3176. DEPDIR="${am__leading_dot}deps"
  3177. ac_config_commands="$ac_config_commands depfiles"
  3178. am_make=${MAKE-make}
  3179. cat > confinc << 'END'
  3180. am__doit:
  3181. @echo this is the am__doit target
  3182. .PHONY: am__doit
  3183. END
  3184. # If we don't find an include directive, just comment out the code.
  3185. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3186. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3187. am__include="#"
  3188. am__quote=
  3189. _am_result=none
  3190. # First try GNU make style include.
  3191. echo "include confinc" > confmf
  3192. # Ignore all kinds of additional output from `make'.
  3193. case `$am_make -s -f confmf 2> /dev/null` in #(
  3194. *the\ am__doit\ target*)
  3195. am__include=include
  3196. am__quote=
  3197. _am_result=GNU
  3198. ;;
  3199. esac
  3200. # Now try BSD make style include.
  3201. if test "$am__include" = "#"; then
  3202. echo '.include "confinc"' > confmf
  3203. case `$am_make -s -f confmf 2> /dev/null` in #(
  3204. *the\ am__doit\ target*)
  3205. am__include=.include
  3206. am__quote="\""
  3207. _am_result=BSD
  3208. ;;
  3209. esac
  3210. fi
  3211. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3212. $as_echo "$_am_result" >&6; }
  3213. rm -f confinc confmf
  3214. # Check whether --enable-dependency-tracking was given.
  3215. if test "${enable_dependency_tracking+set}" = set; then
  3216. enableval=$enable_dependency_tracking;
  3217. fi
  3218. if test "x$enable_dependency_tracking" != xno; then
  3219. am_depcomp="$ac_aux_dir/depcomp"
  3220. AMDEPBACKSLASH='\'
  3221. fi
  3222. if test "x$enable_dependency_tracking" != xno; then
  3223. AMDEP_TRUE=
  3224. AMDEP_FALSE='#'
  3225. else
  3226. AMDEP_TRUE='#'
  3227. AMDEP_FALSE=
  3228. fi
  3229. depcc="$CXX" am_compiler_list=
  3230. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3231. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3232. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3233. $as_echo_n "(cached) " >&6
  3234. else
  3235. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3236. # We make a subdir and do the tests there. Otherwise we can end up
  3237. # making bogus files that we don't know about and never remove. For
  3238. # instance it was reported that on HP-UX the gcc test will end up
  3239. # making a dummy file named `D' -- because `-MD' means `put the output
  3240. # in D'.
  3241. mkdir conftest.dir
  3242. # Copy depcomp to subdir because otherwise we won't find it if we're
  3243. # using a relative directory.
  3244. cp "$am_depcomp" conftest.dir
  3245. cd conftest.dir
  3246. # We will build objects and dependencies in a subdirectory because
  3247. # it helps to detect inapplicable dependency modes. For instance
  3248. # both Tru64's cc and ICC support -MD to output dependencies as a
  3249. # side effect of compilation, but ICC will put the dependencies in
  3250. # the current directory while Tru64 will put them in the object
  3251. # directory.
  3252. mkdir sub
  3253. am_cv_CXX_dependencies_compiler_type=none
  3254. if test "$am_compiler_list" = ""; then
  3255. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3256. fi
  3257. am__universal=false
  3258. case " $depcc " in #(
  3259. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3260. esac
  3261. for depmode in $am_compiler_list; do
  3262. # Setup a source with many dependencies, because some compilers
  3263. # like to wrap large dependency lists on column 80 (with \), and
  3264. # we should not choose a depcomp mode which is confused by this.
  3265. #
  3266. # We need to recreate these files for each test, as the compiler may
  3267. # overwrite some of them when testing with obscure command lines.
  3268. # This happens at least with the AIX C compiler.
  3269. : > sub/conftest.c
  3270. for i in 1 2 3 4 5 6; do
  3271. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3272. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3273. # Solaris 8's {/usr,}/bin/sh.
  3274. touch sub/conftst$i.h
  3275. done
  3276. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3277. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3278. # mode. It turns out that the SunPro C++ compiler does not properly
  3279. # handle `-M -o', and we need to detect this. Also, some Intel
  3280. # versions had trouble with output in subdirs
  3281. am__obj=sub/conftest.${OBJEXT-o}
  3282. am__minus_obj="-o $am__obj"
  3283. case $depmode in
  3284. gcc)
  3285. # This depmode causes a compiler race in universal mode.
  3286. test "$am__universal" = false || continue
  3287. ;;
  3288. nosideeffect)
  3289. # after this tag, mechanisms are not by side-effect, so they'll
  3290. # only be used when explicitly requested
  3291. if test "x$enable_dependency_tracking" = xyes; then
  3292. continue
  3293. else
  3294. break
  3295. fi
  3296. ;;
  3297. msvisualcpp | msvcmsys)
  3298. # This compiler won't grok `-c -o', but also, the minuso test has
  3299. # not run yet. These depmodes are late enough in the game, and
  3300. # so weak that their functioning should not be impacted.
  3301. am__obj=conftest.${OBJEXT-o}
  3302. am__minus_obj=
  3303. ;;
  3304. none) break ;;
  3305. esac
  3306. if depmode=$depmode \
  3307. source=sub/conftest.c object=$am__obj \
  3308. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3309. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3310. >/dev/null 2>conftest.err &&
  3311. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3312. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3313. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3314. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3315. # icc doesn't choke on unknown options, it will just issue warnings
  3316. # or remarks (even with -Werror). So we grep stderr for any message
  3317. # that says an option was ignored or not supported.
  3318. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3319. # icc: Command line warning: ignoring option '-M'; no argument required
  3320. # The diagnosis changed in icc 8.0:
  3321. # icc: Command line remark: option '-MP' not supported
  3322. if (grep 'ignoring option' conftest.err ||
  3323. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3324. am_cv_CXX_dependencies_compiler_type=$depmode
  3325. break
  3326. fi
  3327. fi
  3328. done
  3329. cd ..
  3330. rm -rf conftest.dir
  3331. else
  3332. am_cv_CXX_dependencies_compiler_type=none
  3333. fi
  3334. fi
  3335. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3336. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3337. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3338. if
  3339. test "x$enable_dependency_tracking" != xno \
  3340. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3341. am__fastdepCXX_TRUE=
  3342. am__fastdepCXX_FALSE='#'
  3343. else
  3344. am__fastdepCXX_TRUE='#'
  3345. am__fastdepCXX_FALSE=
  3346. fi
  3347. ac_ext=c
  3348. ac_cpp='$CPP $CPPFLAGS'
  3349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3352. if test -n "$ac_tool_prefix"; then
  3353. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3354. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3355. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3356. $as_echo_n "checking for $ac_word... " >&6; }
  3357. if test "${ac_cv_prog_CC+set}" = set; then
  3358. $as_echo_n "(cached) " >&6
  3359. else
  3360. if test -n "$CC"; then
  3361. ac_cv_prog_CC="$CC" # Let the user override the test.
  3362. else
  3363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3364. for as_dir in $PATH
  3365. do
  3366. IFS=$as_save_IFS
  3367. test -z "$as_dir" && as_dir=.
  3368. for ac_exec_ext in '' $ac_executable_extensions; do
  3369. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3370. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3371. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3372. break 2
  3373. fi
  3374. done
  3375. done
  3376. IFS=$as_save_IFS
  3377. fi
  3378. fi
  3379. CC=$ac_cv_prog_CC
  3380. if test -n "$CC"; then
  3381. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3382. $as_echo "$CC" >&6; }
  3383. else
  3384. { $as_echo "$as_me:$LINENO: result: no" >&5
  3385. $as_echo "no" >&6; }
  3386. fi
  3387. fi
  3388. if test -z "$ac_cv_prog_CC"; then
  3389. ac_ct_CC=$CC
  3390. # Extract the first word of "gcc", so it can be a program name with args.
  3391. set dummy gcc; ac_word=$2
  3392. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3393. $as_echo_n "checking for $ac_word... " >&6; }
  3394. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. if test -n "$ac_ct_CC"; then
  3398. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3399. else
  3400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3401. for as_dir in $PATH
  3402. do
  3403. IFS=$as_save_IFS
  3404. test -z "$as_dir" && as_dir=.
  3405. for ac_exec_ext in '' $ac_executable_extensions; do
  3406. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3407. ac_cv_prog_ac_ct_CC="gcc"
  3408. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3409. break 2
  3410. fi
  3411. done
  3412. done
  3413. IFS=$as_save_IFS
  3414. fi
  3415. fi
  3416. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3417. if test -n "$ac_ct_CC"; then
  3418. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3419. $as_echo "$ac_ct_CC" >&6; }
  3420. else
  3421. { $as_echo "$as_me:$LINENO: result: no" >&5
  3422. $as_echo "no" >&6; }
  3423. fi
  3424. if test "x$ac_ct_CC" = x; then
  3425. CC=""
  3426. else
  3427. case $cross_compiling:$ac_tool_warned in
  3428. yes:)
  3429. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3430. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3431. ac_tool_warned=yes ;;
  3432. esac
  3433. CC=$ac_ct_CC
  3434. fi
  3435. else
  3436. CC="$ac_cv_prog_CC"
  3437. fi
  3438. if test -z "$CC"; then
  3439. if test -n "$ac_tool_prefix"; then
  3440. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3441. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3442. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3443. $as_echo_n "checking for $ac_word... " >&6; }
  3444. if test "${ac_cv_prog_CC+set}" = set; then
  3445. $as_echo_n "(cached) " >&6
  3446. else
  3447. if test -n "$CC"; then
  3448. ac_cv_prog_CC="$CC" # Let the user override the test.
  3449. else
  3450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3451. for as_dir in $PATH
  3452. do
  3453. IFS=$as_save_IFS
  3454. test -z "$as_dir" && as_dir=.
  3455. for ac_exec_ext in '' $ac_executable_extensions; do
  3456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3457. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3458. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3459. break 2
  3460. fi
  3461. done
  3462. done
  3463. IFS=$as_save_IFS
  3464. fi
  3465. fi
  3466. CC=$ac_cv_prog_CC
  3467. if test -n "$CC"; then
  3468. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3469. $as_echo "$CC" >&6; }
  3470. else
  3471. { $as_echo "$as_me:$LINENO: result: no" >&5
  3472. $as_echo "no" >&6; }
  3473. fi
  3474. fi
  3475. fi
  3476. if test -z "$CC"; then
  3477. # Extract the first word of "cc", so it can be a program name with args.
  3478. set dummy cc; ac_word=$2
  3479. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3480. $as_echo_n "checking for $ac_word... " >&6; }
  3481. if test "${ac_cv_prog_CC+set}" = set; then
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. if test -n "$CC"; then
  3485. ac_cv_prog_CC="$CC" # Let the user override the test.
  3486. else
  3487. ac_prog_rejected=no
  3488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3489. for as_dir in $PATH
  3490. do
  3491. IFS=$as_save_IFS
  3492. test -z "$as_dir" && as_dir=.
  3493. for ac_exec_ext in '' $ac_executable_extensions; do
  3494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3495. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3496. ac_prog_rejected=yes
  3497. continue
  3498. fi
  3499. ac_cv_prog_CC="cc"
  3500. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3501. break 2
  3502. fi
  3503. done
  3504. done
  3505. IFS=$as_save_IFS
  3506. if test $ac_prog_rejected = yes; then
  3507. # We found a bogon in the path, so make sure we never use it.
  3508. set dummy $ac_cv_prog_CC
  3509. shift
  3510. if test $# != 0; then
  3511. # We chose a different compiler from the bogus one.
  3512. # However, it has the same basename, so the bogon will be chosen
  3513. # first if we set CC to just the basename; use the full file name.
  3514. shift
  3515. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3516. fi
  3517. fi
  3518. fi
  3519. fi
  3520. CC=$ac_cv_prog_CC
  3521. if test -n "$CC"; then
  3522. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3523. $as_echo "$CC" >&6; }
  3524. else
  3525. { $as_echo "$as_me:$LINENO: result: no" >&5
  3526. $as_echo "no" >&6; }
  3527. fi
  3528. fi
  3529. if test -z "$CC"; then
  3530. if test -n "$ac_tool_prefix"; then
  3531. for ac_prog in cl.exe
  3532. do
  3533. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3534. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3535. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3536. $as_echo_n "checking for $ac_word... " >&6; }
  3537. if test "${ac_cv_prog_CC+set}" = set; then
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. if test -n "$CC"; then
  3541. ac_cv_prog_CC="$CC" # Let the user override the test.
  3542. else
  3543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3544. for as_dir in $PATH
  3545. do
  3546. IFS=$as_save_IFS
  3547. test -z "$as_dir" && as_dir=.
  3548. for ac_exec_ext in '' $ac_executable_extensions; do
  3549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3550. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3551. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3552. break 2
  3553. fi
  3554. done
  3555. done
  3556. IFS=$as_save_IFS
  3557. fi
  3558. fi
  3559. CC=$ac_cv_prog_CC
  3560. if test -n "$CC"; then
  3561. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3562. $as_echo "$CC" >&6; }
  3563. else
  3564. { $as_echo "$as_me:$LINENO: result: no" >&5
  3565. $as_echo "no" >&6; }
  3566. fi
  3567. test -n "$CC" && break
  3568. done
  3569. fi
  3570. if test -z "$CC"; then
  3571. ac_ct_CC=$CC
  3572. for ac_prog in cl.exe
  3573. do
  3574. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3575. set dummy $ac_prog; ac_word=$2
  3576. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3577. $as_echo_n "checking for $ac_word... " >&6; }
  3578. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. if test -n "$ac_ct_CC"; then
  3582. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3583. else
  3584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3585. for as_dir in $PATH
  3586. do
  3587. IFS=$as_save_IFS
  3588. test -z "$as_dir" && as_dir=.
  3589. for ac_exec_ext in '' $ac_executable_extensions; do
  3590. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3591. ac_cv_prog_ac_ct_CC="$ac_prog"
  3592. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3593. break 2
  3594. fi
  3595. done
  3596. done
  3597. IFS=$as_save_IFS
  3598. fi
  3599. fi
  3600. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3601. if test -n "$ac_ct_CC"; then
  3602. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3603. $as_echo "$ac_ct_CC" >&6; }
  3604. else
  3605. { $as_echo "$as_me:$LINENO: result: no" >&5
  3606. $as_echo "no" >&6; }
  3607. fi
  3608. test -n "$ac_ct_CC" && break
  3609. done
  3610. if test "x$ac_ct_CC" = x; then
  3611. CC=""
  3612. else
  3613. case $cross_compiling:$ac_tool_warned in
  3614. yes:)
  3615. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3616. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3617. ac_tool_warned=yes ;;
  3618. esac
  3619. CC=$ac_ct_CC
  3620. fi
  3621. fi
  3622. fi
  3623. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3625. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3626. See \`config.log' for more details." >&5
  3627. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3628. See \`config.log' for more details." >&2;}
  3629. { (exit 1); exit 1; }; }; }
  3630. # Provide some information about the compiler.
  3631. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3632. set X $ac_compile
  3633. ac_compiler=$2
  3634. { (ac_try="$ac_compiler --version >&5"
  3635. case "(($ac_try" in
  3636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3637. *) ac_try_echo=$ac_try;;
  3638. esac
  3639. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3640. $as_echo "$ac_try_echo") >&5
  3641. (eval "$ac_compiler --version >&5") 2>&5
  3642. ac_status=$?
  3643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3644. (exit $ac_status); }
  3645. { (ac_try="$ac_compiler -v >&5"
  3646. case "(($ac_try" in
  3647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3648. *) ac_try_echo=$ac_try;;
  3649. esac
  3650. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3651. $as_echo "$ac_try_echo") >&5
  3652. (eval "$ac_compiler -v >&5") 2>&5
  3653. ac_status=$?
  3654. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3655. (exit $ac_status); }
  3656. { (ac_try="$ac_compiler -V >&5"
  3657. case "(($ac_try" in
  3658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3659. *) ac_try_echo=$ac_try;;
  3660. esac
  3661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3662. $as_echo "$ac_try_echo") >&5
  3663. (eval "$ac_compiler -V >&5") 2>&5
  3664. ac_status=$?
  3665. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3666. (exit $ac_status); }
  3667. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3668. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3669. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3670. $as_echo_n "(cached) " >&6
  3671. else
  3672. cat >conftest.$ac_ext <<_ACEOF
  3673. /* confdefs.h. */
  3674. _ACEOF
  3675. cat confdefs.h >>conftest.$ac_ext
  3676. cat >>conftest.$ac_ext <<_ACEOF
  3677. /* end confdefs.h. */
  3678. int
  3679. main ()
  3680. {
  3681. #ifndef __GNUC__
  3682. choke me
  3683. #endif
  3684. ;
  3685. return 0;
  3686. }
  3687. _ACEOF
  3688. rm -f conftest.$ac_objext
  3689. if { (ac_try="$ac_compile"
  3690. case "(($ac_try" in
  3691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3692. *) ac_try_echo=$ac_try;;
  3693. esac
  3694. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3695. $as_echo "$ac_try_echo") >&5
  3696. (eval "$ac_compile") 2>conftest.er1
  3697. ac_status=$?
  3698. grep -v '^ *+' conftest.er1 >conftest.err
  3699. rm -f conftest.er1
  3700. cat conftest.err >&5
  3701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3702. (exit $ac_status); } && {
  3703. test -z "$ac_c_werror_flag" ||
  3704. test ! -s conftest.err
  3705. } && test -s conftest.$ac_objext; then
  3706. ac_compiler_gnu=yes
  3707. else
  3708. $as_echo "$as_me: failed program was:" >&5
  3709. sed 's/^/| /' conftest.$ac_ext >&5
  3710. ac_compiler_gnu=no
  3711. fi
  3712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3713. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3714. fi
  3715. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3716. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3717. if test $ac_compiler_gnu = yes; then
  3718. GCC=yes
  3719. else
  3720. GCC=
  3721. fi
  3722. ac_test_CFLAGS=${CFLAGS+set}
  3723. ac_save_CFLAGS=$CFLAGS
  3724. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3725. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3726. if test "${ac_cv_prog_cc_g+set}" = set; then
  3727. $as_echo_n "(cached) " >&6
  3728. else
  3729. ac_save_c_werror_flag=$ac_c_werror_flag
  3730. ac_c_werror_flag=yes
  3731. ac_cv_prog_cc_g=no
  3732. CFLAGS="-g"
  3733. cat >conftest.$ac_ext <<_ACEOF
  3734. /* confdefs.h. */
  3735. _ACEOF
  3736. cat confdefs.h >>conftest.$ac_ext
  3737. cat >>conftest.$ac_ext <<_ACEOF
  3738. /* end confdefs.h. */
  3739. int
  3740. main ()
  3741. {
  3742. ;
  3743. return 0;
  3744. }
  3745. _ACEOF
  3746. rm -f conftest.$ac_objext
  3747. if { (ac_try="$ac_compile"
  3748. case "(($ac_try" in
  3749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3750. *) ac_try_echo=$ac_try;;
  3751. esac
  3752. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3753. $as_echo "$ac_try_echo") >&5
  3754. (eval "$ac_compile") 2>conftest.er1
  3755. ac_status=$?
  3756. grep -v '^ *+' conftest.er1 >conftest.err
  3757. rm -f conftest.er1
  3758. cat conftest.err >&5
  3759. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3760. (exit $ac_status); } && {
  3761. test -z "$ac_c_werror_flag" ||
  3762. test ! -s conftest.err
  3763. } && test -s conftest.$ac_objext; then
  3764. ac_cv_prog_cc_g=yes
  3765. else
  3766. $as_echo "$as_me: failed program was:" >&5
  3767. sed 's/^/| /' conftest.$ac_ext >&5
  3768. CFLAGS=""
  3769. cat >conftest.$ac_ext <<_ACEOF
  3770. /* confdefs.h. */
  3771. _ACEOF
  3772. cat confdefs.h >>conftest.$ac_ext
  3773. cat >>conftest.$ac_ext <<_ACEOF
  3774. /* end confdefs.h. */
  3775. int
  3776. main ()
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. rm -f conftest.$ac_objext
  3783. if { (ac_try="$ac_compile"
  3784. case "(($ac_try" in
  3785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3786. *) ac_try_echo=$ac_try;;
  3787. esac
  3788. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3789. $as_echo "$ac_try_echo") >&5
  3790. (eval "$ac_compile") 2>conftest.er1
  3791. ac_status=$?
  3792. grep -v '^ *+' conftest.er1 >conftest.err
  3793. rm -f conftest.er1
  3794. cat conftest.err >&5
  3795. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3796. (exit $ac_status); } && {
  3797. test -z "$ac_c_werror_flag" ||
  3798. test ! -s conftest.err
  3799. } && test -s conftest.$ac_objext; then
  3800. :
  3801. else
  3802. $as_echo "$as_me: failed program was:" >&5
  3803. sed 's/^/| /' conftest.$ac_ext >&5
  3804. ac_c_werror_flag=$ac_save_c_werror_flag
  3805. CFLAGS="-g"
  3806. cat >conftest.$ac_ext <<_ACEOF
  3807. /* confdefs.h. */
  3808. _ACEOF
  3809. cat confdefs.h >>conftest.$ac_ext
  3810. cat >>conftest.$ac_ext <<_ACEOF
  3811. /* end confdefs.h. */
  3812. int
  3813. main ()
  3814. {
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. rm -f conftest.$ac_objext
  3820. if { (ac_try="$ac_compile"
  3821. case "(($ac_try" in
  3822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3823. *) ac_try_echo=$ac_try;;
  3824. esac
  3825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3826. $as_echo "$ac_try_echo") >&5
  3827. (eval "$ac_compile") 2>conftest.er1
  3828. ac_status=$?
  3829. grep -v '^ *+' conftest.er1 >conftest.err
  3830. rm -f conftest.er1
  3831. cat conftest.err >&5
  3832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3833. (exit $ac_status); } && {
  3834. test -z "$ac_c_werror_flag" ||
  3835. test ! -s conftest.err
  3836. } && test -s conftest.$ac_objext; then
  3837. ac_cv_prog_cc_g=yes
  3838. else
  3839. $as_echo "$as_me: failed program was:" >&5
  3840. sed 's/^/| /' conftest.$ac_ext >&5
  3841. fi
  3842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3843. fi
  3844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3845. fi
  3846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3847. ac_c_werror_flag=$ac_save_c_werror_flag
  3848. fi
  3849. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3850. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3851. if test "$ac_test_CFLAGS" = set; then
  3852. CFLAGS=$ac_save_CFLAGS
  3853. elif test $ac_cv_prog_cc_g = yes; then
  3854. if test "$GCC" = yes; then
  3855. CFLAGS="-g -O2"
  3856. else
  3857. CFLAGS="-g"
  3858. fi
  3859. else
  3860. if test "$GCC" = yes; then
  3861. CFLAGS="-O2"
  3862. else
  3863. CFLAGS=
  3864. fi
  3865. fi
  3866. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3867. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3868. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. ac_cv_prog_cc_c89=no
  3872. ac_save_CC=$CC
  3873. cat >conftest.$ac_ext <<_ACEOF
  3874. /* confdefs.h. */
  3875. _ACEOF
  3876. cat confdefs.h >>conftest.$ac_ext
  3877. cat >>conftest.$ac_ext <<_ACEOF
  3878. /* end confdefs.h. */
  3879. #include <stdarg.h>
  3880. #include <stdio.h>
  3881. #include <sys/types.h>
  3882. #include <sys/stat.h>
  3883. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3884. struct buf { int x; };
  3885. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3886. static char *e (p, i)
  3887. char **p;
  3888. int i;
  3889. {
  3890. return p[i];
  3891. }
  3892. static char *f (char * (*g) (char **, int), char **p, ...)
  3893. {
  3894. char *s;
  3895. va_list v;
  3896. va_start (v,p);
  3897. s = g (p, va_arg (v,int));
  3898. va_end (v);
  3899. return s;
  3900. }
  3901. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3902. function prototypes and stuff, but not '\xHH' hex character constants.
  3903. These don't provoke an error unfortunately, instead are silently treated
  3904. as 'x'. The following induces an error, until -std is added to get
  3905. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3906. array size at least. It's necessary to write '\x00'==0 to get something
  3907. that's true only with -std. */
  3908. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3909. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3910. inside strings and character constants. */
  3911. #define FOO(x) 'x'
  3912. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3913. int test (int i, double x);
  3914. struct s1 {int (*f) (int a);};
  3915. struct s2 {int (*f) (double a);};
  3916. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3917. int argc;
  3918. char **argv;
  3919. int
  3920. main ()
  3921. {
  3922. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3923. ;
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3928. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3929. do
  3930. CC="$ac_save_CC $ac_arg"
  3931. rm -f conftest.$ac_objext
  3932. if { (ac_try="$ac_compile"
  3933. case "(($ac_try" in
  3934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3935. *) ac_try_echo=$ac_try;;
  3936. esac
  3937. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3938. $as_echo "$ac_try_echo") >&5
  3939. (eval "$ac_compile") 2>conftest.er1
  3940. ac_status=$?
  3941. grep -v '^ *+' conftest.er1 >conftest.err
  3942. rm -f conftest.er1
  3943. cat conftest.err >&5
  3944. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3945. (exit $ac_status); } && {
  3946. test -z "$ac_c_werror_flag" ||
  3947. test ! -s conftest.err
  3948. } && test -s conftest.$ac_objext; then
  3949. ac_cv_prog_cc_c89=$ac_arg
  3950. else
  3951. $as_echo "$as_me: failed program was:" >&5
  3952. sed 's/^/| /' conftest.$ac_ext >&5
  3953. fi
  3954. rm -f core conftest.err conftest.$ac_objext
  3955. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3956. done
  3957. rm -f conftest.$ac_ext
  3958. CC=$ac_save_CC
  3959. fi
  3960. # AC_CACHE_VAL
  3961. case "x$ac_cv_prog_cc_c89" in
  3962. x)
  3963. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3964. $as_echo "none needed" >&6; } ;;
  3965. xno)
  3966. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3967. $as_echo "unsupported" >&6; } ;;
  3968. *)
  3969. CC="$CC $ac_cv_prog_cc_c89"
  3970. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3971. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3972. esac
  3973. ac_ext=c
  3974. ac_cpp='$CPP $CPPFLAGS'
  3975. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3976. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3977. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3978. depcc="$CC" am_compiler_list=
  3979. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3980. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3981. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3982. $as_echo_n "(cached) " >&6
  3983. else
  3984. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3985. # We make a subdir and do the tests there. Otherwise we can end up
  3986. # making bogus files that we don't know about and never remove. For
  3987. # instance it was reported that on HP-UX the gcc test will end up
  3988. # making a dummy file named `D' -- because `-MD' means `put the output
  3989. # in D'.
  3990. mkdir conftest.dir
  3991. # Copy depcomp to subdir because otherwise we won't find it if we're
  3992. # using a relative directory.
  3993. cp "$am_depcomp" conftest.dir
  3994. cd conftest.dir
  3995. # We will build objects and dependencies in a subdirectory because
  3996. # it helps to detect inapplicable dependency modes. For instance
  3997. # both Tru64's cc and ICC support -MD to output dependencies as a
  3998. # side effect of compilation, but ICC will put the dependencies in
  3999. # the current directory while Tru64 will put them in the object
  4000. # directory.
  4001. mkdir sub
  4002. am_cv_CC_dependencies_compiler_type=none
  4003. if test "$am_compiler_list" = ""; then
  4004. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4005. fi
  4006. am__universal=false
  4007. case " $depcc " in #(
  4008. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4009. esac
  4010. for depmode in $am_compiler_list; do
  4011. # Setup a source with many dependencies, because some compilers
  4012. # like to wrap large dependency lists on column 80 (with \), and
  4013. # we should not choose a depcomp mode which is confused by this.
  4014. #
  4015. # We need to recreate these files for each test, as the compiler may
  4016. # overwrite some of them when testing with obscure command lines.
  4017. # This happens at least with the AIX C compiler.
  4018. : > sub/conftest.c
  4019. for i in 1 2 3 4 5 6; do
  4020. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4021. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4022. # Solaris 8's {/usr,}/bin/sh.
  4023. touch sub/conftst$i.h
  4024. done
  4025. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4026. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4027. # mode. It turns out that the SunPro C++ compiler does not properly
  4028. # handle `-M -o', and we need to detect this. Also, some Intel
  4029. # versions had trouble with output in subdirs
  4030. am__obj=sub/conftest.${OBJEXT-o}
  4031. am__minus_obj="-o $am__obj"
  4032. case $depmode in
  4033. gcc)
  4034. # This depmode causes a compiler race in universal mode.
  4035. test "$am__universal" = false || continue
  4036. ;;
  4037. nosideeffect)
  4038. # after this tag, mechanisms are not by side-effect, so they'll
  4039. # only be used when explicitly requested
  4040. if test "x$enable_dependency_tracking" = xyes; then
  4041. continue
  4042. else
  4043. break
  4044. fi
  4045. ;;
  4046. msvisualcpp | msvcmsys)
  4047. # This compiler won't grok `-c -o', but also, the minuso test has
  4048. # not run yet. These depmodes are late enough in the game, and
  4049. # so weak that their functioning should not be impacted.
  4050. am__obj=conftest.${OBJEXT-o}
  4051. am__minus_obj=
  4052. ;;
  4053. none) break ;;
  4054. esac
  4055. if depmode=$depmode \
  4056. source=sub/conftest.c object=$am__obj \
  4057. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4058. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4059. >/dev/null 2>conftest.err &&
  4060. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4061. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4062. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4063. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4064. # icc doesn't choke on unknown options, it will just issue warnings
  4065. # or remarks (even with -Werror). So we grep stderr for any message
  4066. # that says an option was ignored or not supported.
  4067. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4068. # icc: Command line warning: ignoring option '-M'; no argument required
  4069. # The diagnosis changed in icc 8.0:
  4070. # icc: Command line remark: option '-MP' not supported
  4071. if (grep 'ignoring option' conftest.err ||
  4072. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4073. am_cv_CC_dependencies_compiler_type=$depmode
  4074. break
  4075. fi
  4076. fi
  4077. done
  4078. cd ..
  4079. rm -rf conftest.dir
  4080. else
  4081. am_cv_CC_dependencies_compiler_type=none
  4082. fi
  4083. fi
  4084. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4085. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4086. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4087. if
  4088. test "x$enable_dependency_tracking" != xno \
  4089. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4090. am__fastdepCC_TRUE=
  4091. am__fastdepCC_FALSE='#'
  4092. else
  4093. am__fastdepCC_TRUE='#'
  4094. am__fastdepCC_FALSE=
  4095. fi
  4096. if test "x$CC" != xcc; then
  4097. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  4098. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4099. else
  4100. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  4101. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4102. fi
  4103. set dummy $CC; ac_cc=`$as_echo "$2" |
  4104. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4105. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  4106. $as_echo_n "(cached) " >&6
  4107. else
  4108. cat >conftest.$ac_ext <<_ACEOF
  4109. /* confdefs.h. */
  4110. _ACEOF
  4111. cat confdefs.h >>conftest.$ac_ext
  4112. cat >>conftest.$ac_ext <<_ACEOF
  4113. /* end confdefs.h. */
  4114. int
  4115. main ()
  4116. {
  4117. ;
  4118. return 0;
  4119. }
  4120. _ACEOF
  4121. # Make sure it works both with $CC and with simple cc.
  4122. # We do the test twice because some compilers refuse to overwrite an
  4123. # existing .o file with -o, though they will create one.
  4124. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4125. rm -f conftest2.*
  4126. if { (case "(($ac_try" in
  4127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4128. *) ac_try_echo=$ac_try;;
  4129. esac
  4130. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4131. $as_echo "$ac_try_echo") >&5
  4132. (eval "$ac_try") 2>&5
  4133. ac_status=$?
  4134. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4135. (exit $ac_status); } &&
  4136. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4138. *) ac_try_echo=$ac_try;;
  4139. esac
  4140. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4141. $as_echo "$ac_try_echo") >&5
  4142. (eval "$ac_try") 2>&5
  4143. ac_status=$?
  4144. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4145. (exit $ac_status); };
  4146. then
  4147. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4148. if test "x$CC" != xcc; then
  4149. # Test first that cc exists at all.
  4150. if { ac_try='cc -c conftest.$ac_ext >&5'
  4151. { (case "(($ac_try" in
  4152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4153. *) ac_try_echo=$ac_try;;
  4154. esac
  4155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4156. $as_echo "$ac_try_echo") >&5
  4157. (eval "$ac_try") 2>&5
  4158. ac_status=$?
  4159. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4160. (exit $ac_status); }; }; then
  4161. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4162. rm -f conftest2.*
  4163. if { (case "(($ac_try" in
  4164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4165. *) ac_try_echo=$ac_try;;
  4166. esac
  4167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4168. $as_echo "$ac_try_echo") >&5
  4169. (eval "$ac_try") 2>&5
  4170. ac_status=$?
  4171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4172. (exit $ac_status); } &&
  4173. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4175. *) ac_try_echo=$ac_try;;
  4176. esac
  4177. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4178. $as_echo "$ac_try_echo") >&5
  4179. (eval "$ac_try") 2>&5
  4180. ac_status=$?
  4181. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4182. (exit $ac_status); };
  4183. then
  4184. # cc works too.
  4185. :
  4186. else
  4187. # cc exists but doesn't like -o.
  4188. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4189. fi
  4190. fi
  4191. fi
  4192. else
  4193. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4194. fi
  4195. rm -f core conftest*
  4196. fi
  4197. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4198. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4199. $as_echo "yes" >&6; }
  4200. else
  4201. { $as_echo "$as_me:$LINENO: result: no" >&5
  4202. $as_echo "no" >&6; }
  4203. cat >>confdefs.h <<\_ACEOF
  4204. #define NO_MINUS_C_MINUS_O 1
  4205. _ACEOF
  4206. fi
  4207. # FIXME: we rely on the cache variable name because
  4208. # there is no other way.
  4209. set dummy $CC
  4210. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4211. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4212. if test "$am_t" != yes; then
  4213. # Losing compiler, so override with the script.
  4214. # FIXME: It is wrong to rewrite CC.
  4215. # But if we don't then we get into trouble of one sort or another.
  4216. # A longer-term fix would be to have automake use am__CC in this case,
  4217. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4218. CC="$am_aux_dir/compile $CC"
  4219. fi
  4220. # By default we simply use the C compiler to build assembly code.
  4221. test "${CCAS+set}" = set || CCAS=$CC
  4222. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4223. depcc="$CCAS" am_compiler_list=
  4224. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4225. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4226. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  4227. $as_echo_n "(cached) " >&6
  4228. else
  4229. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4230. # We make a subdir and do the tests there. Otherwise we can end up
  4231. # making bogus files that we don't know about and never remove. For
  4232. # instance it was reported that on HP-UX the gcc test will end up
  4233. # making a dummy file named `D' -- because `-MD' means `put the output
  4234. # in D'.
  4235. mkdir conftest.dir
  4236. # Copy depcomp to subdir because otherwise we won't find it if we're
  4237. # using a relative directory.
  4238. cp "$am_depcomp" conftest.dir
  4239. cd conftest.dir
  4240. # We will build objects and dependencies in a subdirectory because
  4241. # it helps to detect inapplicable dependency modes. For instance
  4242. # both Tru64's cc and ICC support -MD to output dependencies as a
  4243. # side effect of compilation, but ICC will put the dependencies in
  4244. # the current directory while Tru64 will put them in the object
  4245. # directory.
  4246. mkdir sub
  4247. am_cv_CCAS_dependencies_compiler_type=none
  4248. if test "$am_compiler_list" = ""; then
  4249. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4250. fi
  4251. am__universal=false
  4252. for depmode in $am_compiler_list; do
  4253. # Setup a source with many dependencies, because some compilers
  4254. # like to wrap large dependency lists on column 80 (with \), and
  4255. # we should not choose a depcomp mode which is confused by this.
  4256. #
  4257. # We need to recreate these files for each test, as the compiler may
  4258. # overwrite some of them when testing with obscure command lines.
  4259. # This happens at least with the AIX C compiler.
  4260. : > sub/conftest.c
  4261. for i in 1 2 3 4 5 6; do
  4262. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4263. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4264. # Solaris 8's {/usr,}/bin/sh.
  4265. touch sub/conftst$i.h
  4266. done
  4267. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4268. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4269. # mode. It turns out that the SunPro C++ compiler does not properly
  4270. # handle `-M -o', and we need to detect this. Also, some Intel
  4271. # versions had trouble with output in subdirs
  4272. am__obj=sub/conftest.${OBJEXT-o}
  4273. am__minus_obj="-o $am__obj"
  4274. case $depmode in
  4275. gcc)
  4276. # This depmode causes a compiler race in universal mode.
  4277. test "$am__universal" = false || continue
  4278. ;;
  4279. nosideeffect)
  4280. # after this tag, mechanisms are not by side-effect, so they'll
  4281. # only be used when explicitly requested
  4282. if test "x$enable_dependency_tracking" = xyes; then
  4283. continue
  4284. else
  4285. break
  4286. fi
  4287. ;;
  4288. msvisualcpp | msvcmsys)
  4289. # This compiler won't grok `-c -o', but also, the minuso test has
  4290. # not run yet. These depmodes are late enough in the game, and
  4291. # so weak that their functioning should not be impacted.
  4292. am__obj=conftest.${OBJEXT-o}
  4293. am__minus_obj=
  4294. ;;
  4295. none) break ;;
  4296. esac
  4297. if depmode=$depmode \
  4298. source=sub/conftest.c object=$am__obj \
  4299. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4300. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4301. >/dev/null 2>conftest.err &&
  4302. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4303. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4304. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4305. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4306. # icc doesn't choke on unknown options, it will just issue warnings
  4307. # or remarks (even with -Werror). So we grep stderr for any message
  4308. # that says an option was ignored or not supported.
  4309. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4310. # icc: Command line warning: ignoring option '-M'; no argument required
  4311. # The diagnosis changed in icc 8.0:
  4312. # icc: Command line remark: option '-MP' not supported
  4313. if (grep 'ignoring option' conftest.err ||
  4314. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4315. am_cv_CCAS_dependencies_compiler_type=$depmode
  4316. break
  4317. fi
  4318. fi
  4319. done
  4320. cd ..
  4321. rm -rf conftest.dir
  4322. else
  4323. am_cv_CCAS_dependencies_compiler_type=none
  4324. fi
  4325. fi
  4326. { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4327. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4328. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4329. if
  4330. test "x$enable_dependency_tracking" != xno \
  4331. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4332. am__fastdepCCAS_TRUE=
  4333. am__fastdepCCAS_FALSE='#'
  4334. else
  4335. am__fastdepCCAS_TRUE='#'
  4336. am__fastdepCCAS_FALSE=
  4337. fi
  4338. # disable static libs by default - we only use a couple
  4339. # Check whether --enable-static was given.
  4340. if test "${enable_static+set}" = set; then
  4341. enableval=$enable_static; p=${PACKAGE-default}
  4342. case $enableval in
  4343. yes) enable_static=yes ;;
  4344. no) enable_static=no ;;
  4345. *)
  4346. enable_static=no
  4347. # Look at the argument we got. We use all the common list separators.
  4348. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4349. for pkg in $enableval; do
  4350. IFS="$lt_save_ifs"
  4351. if test "X$pkg" = "X$p"; then
  4352. enable_static=yes
  4353. fi
  4354. done
  4355. IFS="$lt_save_ifs"
  4356. ;;
  4357. esac
  4358. else
  4359. enable_static=no
  4360. fi
  4361. case `pwd` in
  4362. *\ * | *\ *)
  4363. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4364. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4365. esac
  4366. macro_version='2.2.6b'
  4367. macro_revision='1.3017'
  4368. ltmain="$ac_aux_dir/ltmain.sh"
  4369. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4370. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4371. if test "${ac_cv_path_SED+set}" = set; then
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4375. for ac_i in 1 2 3 4 5 6 7; do
  4376. ac_script="$ac_script$as_nl$ac_script"
  4377. done
  4378. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4379. $as_unset ac_script || ac_script=
  4380. if test -z "$SED"; then
  4381. ac_path_SED_found=false
  4382. # Loop through the user's path and test for each of PROGNAME-LIST
  4383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4384. for as_dir in $PATH
  4385. do
  4386. IFS=$as_save_IFS
  4387. test -z "$as_dir" && as_dir=.
  4388. for ac_prog in sed gsed; do
  4389. for ac_exec_ext in '' $ac_executable_extensions; do
  4390. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4391. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4392. # Check for GNU ac_path_SED and select it if it is found.
  4393. # Check for GNU $ac_path_SED
  4394. case `"$ac_path_SED" --version 2>&1` in
  4395. *GNU*)
  4396. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4397. *)
  4398. ac_count=0
  4399. $as_echo_n 0123456789 >"conftest.in"
  4400. while :
  4401. do
  4402. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4403. mv "conftest.tmp" "conftest.in"
  4404. cp "conftest.in" "conftest.nl"
  4405. $as_echo '' >> "conftest.nl"
  4406. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4407. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4408. ac_count=`expr $ac_count + 1`
  4409. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4410. # Best one so far, save it but keep looking for a better one
  4411. ac_cv_path_SED="$ac_path_SED"
  4412. ac_path_SED_max=$ac_count
  4413. fi
  4414. # 10*(2^10) chars as input seems more than enough
  4415. test $ac_count -gt 10 && break
  4416. done
  4417. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4418. esac
  4419. $ac_path_SED_found && break 3
  4420. done
  4421. done
  4422. done
  4423. IFS=$as_save_IFS
  4424. if test -z "$ac_cv_path_SED"; then
  4425. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4426. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4427. { (exit 1); exit 1; }; }
  4428. fi
  4429. else
  4430. ac_cv_path_SED=$SED
  4431. fi
  4432. fi
  4433. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4434. $as_echo "$ac_cv_path_SED" >&6; }
  4435. SED="$ac_cv_path_SED"
  4436. rm -f conftest.sed
  4437. test -z "$SED" && SED=sed
  4438. Xsed="$SED -e 1s/^X//"
  4439. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4440. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4441. if test "${ac_cv_path_GREP+set}" = set; then
  4442. $as_echo_n "(cached) " >&6
  4443. else
  4444. if test -z "$GREP"; then
  4445. ac_path_GREP_found=false
  4446. # Loop through the user's path and test for each of PROGNAME-LIST
  4447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4448. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4449. do
  4450. IFS=$as_save_IFS
  4451. test -z "$as_dir" && as_dir=.
  4452. for ac_prog in grep ggrep; do
  4453. for ac_exec_ext in '' $ac_executable_extensions; do
  4454. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4455. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4456. # Check for GNU ac_path_GREP and select it if it is found.
  4457. # Check for GNU $ac_path_GREP
  4458. case `"$ac_path_GREP" --version 2>&1` in
  4459. *GNU*)
  4460. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4461. *)
  4462. ac_count=0
  4463. $as_echo_n 0123456789 >"conftest.in"
  4464. while :
  4465. do
  4466. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4467. mv "conftest.tmp" "conftest.in"
  4468. cp "conftest.in" "conftest.nl"
  4469. $as_echo 'GREP' >> "conftest.nl"
  4470. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4471. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4472. ac_count=`expr $ac_count + 1`
  4473. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4474. # Best one so far, save it but keep looking for a better one
  4475. ac_cv_path_GREP="$ac_path_GREP"
  4476. ac_path_GREP_max=$ac_count
  4477. fi
  4478. # 10*(2^10) chars as input seems more than enough
  4479. test $ac_count -gt 10 && break
  4480. done
  4481. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4482. esac
  4483. $ac_path_GREP_found && break 3
  4484. done
  4485. done
  4486. done
  4487. IFS=$as_save_IFS
  4488. if test -z "$ac_cv_path_GREP"; then
  4489. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4490. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4491. { (exit 1); exit 1; }; }
  4492. fi
  4493. else
  4494. ac_cv_path_GREP=$GREP
  4495. fi
  4496. fi
  4497. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4498. $as_echo "$ac_cv_path_GREP" >&6; }
  4499. GREP="$ac_cv_path_GREP"
  4500. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4501. $as_echo_n "checking for egrep... " >&6; }
  4502. if test "${ac_cv_path_EGREP+set}" = set; then
  4503. $as_echo_n "(cached) " >&6
  4504. else
  4505. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4506. then ac_cv_path_EGREP="$GREP -E"
  4507. else
  4508. if test -z "$EGREP"; then
  4509. ac_path_EGREP_found=false
  4510. # Loop through the user's path and test for each of PROGNAME-LIST
  4511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4512. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4513. do
  4514. IFS=$as_save_IFS
  4515. test -z "$as_dir" && as_dir=.
  4516. for ac_prog in egrep; do
  4517. for ac_exec_ext in '' $ac_executable_extensions; do
  4518. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4519. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4520. # Check for GNU ac_path_EGREP and select it if it is found.
  4521. # Check for GNU $ac_path_EGREP
  4522. case `"$ac_path_EGREP" --version 2>&1` in
  4523. *GNU*)
  4524. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4525. *)
  4526. ac_count=0
  4527. $as_echo_n 0123456789 >"conftest.in"
  4528. while :
  4529. do
  4530. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4531. mv "conftest.tmp" "conftest.in"
  4532. cp "conftest.in" "conftest.nl"
  4533. $as_echo 'EGREP' >> "conftest.nl"
  4534. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4535. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4536. ac_count=`expr $ac_count + 1`
  4537. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4538. # Best one so far, save it but keep looking for a better one
  4539. ac_cv_path_EGREP="$ac_path_EGREP"
  4540. ac_path_EGREP_max=$ac_count
  4541. fi
  4542. # 10*(2^10) chars as input seems more than enough
  4543. test $ac_count -gt 10 && break
  4544. done
  4545. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4546. esac
  4547. $ac_path_EGREP_found && break 3
  4548. done
  4549. done
  4550. done
  4551. IFS=$as_save_IFS
  4552. if test -z "$ac_cv_path_EGREP"; then
  4553. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4554. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4555. { (exit 1); exit 1; }; }
  4556. fi
  4557. else
  4558. ac_cv_path_EGREP=$EGREP
  4559. fi
  4560. fi
  4561. fi
  4562. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4563. $as_echo "$ac_cv_path_EGREP" >&6; }
  4564. EGREP="$ac_cv_path_EGREP"
  4565. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4566. $as_echo_n "checking for fgrep... " >&6; }
  4567. if test "${ac_cv_path_FGREP+set}" = set; then
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4571. then ac_cv_path_FGREP="$GREP -F"
  4572. else
  4573. if test -z "$FGREP"; then
  4574. ac_path_FGREP_found=false
  4575. # Loop through the user's path and test for each of PROGNAME-LIST
  4576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4577. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4578. do
  4579. IFS=$as_save_IFS
  4580. test -z "$as_dir" && as_dir=.
  4581. for ac_prog in fgrep; do
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4584. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4585. # Check for GNU ac_path_FGREP and select it if it is found.
  4586. # Check for GNU $ac_path_FGREP
  4587. case `"$ac_path_FGREP" --version 2>&1` in
  4588. *GNU*)
  4589. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4590. *)
  4591. ac_count=0
  4592. $as_echo_n 0123456789 >"conftest.in"
  4593. while :
  4594. do
  4595. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4596. mv "conftest.tmp" "conftest.in"
  4597. cp "conftest.in" "conftest.nl"
  4598. $as_echo 'FGREP' >> "conftest.nl"
  4599. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4600. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4601. ac_count=`expr $ac_count + 1`
  4602. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4603. # Best one so far, save it but keep looking for a better one
  4604. ac_cv_path_FGREP="$ac_path_FGREP"
  4605. ac_path_FGREP_max=$ac_count
  4606. fi
  4607. # 10*(2^10) chars as input seems more than enough
  4608. test $ac_count -gt 10 && break
  4609. done
  4610. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4611. esac
  4612. $ac_path_FGREP_found && break 3
  4613. done
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. if test -z "$ac_cv_path_FGREP"; then
  4618. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4619. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4620. { (exit 1); exit 1; }; }
  4621. fi
  4622. else
  4623. ac_cv_path_FGREP=$FGREP
  4624. fi
  4625. fi
  4626. fi
  4627. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4628. $as_echo "$ac_cv_path_FGREP" >&6; }
  4629. FGREP="$ac_cv_path_FGREP"
  4630. test -z "$GREP" && GREP=grep
  4631. # Check whether --with-gnu-ld was given.
  4632. if test "${with_gnu_ld+set}" = set; then
  4633. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4634. else
  4635. with_gnu_ld=no
  4636. fi
  4637. ac_prog=ld
  4638. if test "$GCC" = yes; then
  4639. # Check if gcc -print-prog-name=ld gives a path.
  4640. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4641. $as_echo_n "checking for ld used by $CC... " >&6; }
  4642. case $host in
  4643. *-*-mingw*)
  4644. # gcc leaves a trailing carriage return which upsets mingw
  4645. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4646. *)
  4647. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4648. esac
  4649. case $ac_prog in
  4650. # Accept absolute paths.
  4651. [\\/]* | ?:[\\/]*)
  4652. re_direlt='/[^/][^/]*/\.\./'
  4653. # Canonicalize the pathname of ld
  4654. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4655. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4656. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4657. done
  4658. test -z "$LD" && LD="$ac_prog"
  4659. ;;
  4660. "")
  4661. # If it fails, then pretend we aren't using GCC.
  4662. ac_prog=ld
  4663. ;;
  4664. *)
  4665. # If it is relative, then search for the first ld in PATH.
  4666. with_gnu_ld=unknown
  4667. ;;
  4668. esac
  4669. elif test "$with_gnu_ld" = yes; then
  4670. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4671. $as_echo_n "checking for GNU ld... " >&6; }
  4672. else
  4673. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4674. $as_echo_n "checking for non-GNU ld... " >&6; }
  4675. fi
  4676. if test "${lt_cv_path_LD+set}" = set; then
  4677. $as_echo_n "(cached) " >&6
  4678. else
  4679. if test -z "$LD"; then
  4680. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4681. for ac_dir in $PATH; do
  4682. IFS="$lt_save_ifs"
  4683. test -z "$ac_dir" && ac_dir=.
  4684. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4685. lt_cv_path_LD="$ac_dir/$ac_prog"
  4686. # Check to see if the program is GNU ld. I'd rather use --version,
  4687. # but apparently some variants of GNU ld only accept -v.
  4688. # Break only if it was the GNU/non-GNU ld that we prefer.
  4689. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4690. *GNU* | *'with BFD'*)
  4691. test "$with_gnu_ld" != no && break
  4692. ;;
  4693. *)
  4694. test "$with_gnu_ld" != yes && break
  4695. ;;
  4696. esac
  4697. fi
  4698. done
  4699. IFS="$lt_save_ifs"
  4700. else
  4701. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4702. fi
  4703. fi
  4704. LD="$lt_cv_path_LD"
  4705. if test -n "$LD"; then
  4706. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4707. $as_echo "$LD" >&6; }
  4708. else
  4709. { $as_echo "$as_me:$LINENO: result: no" >&5
  4710. $as_echo "no" >&6; }
  4711. fi
  4712. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4713. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4714. { (exit 1); exit 1; }; }
  4715. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4716. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4717. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4721. case `$LD -v 2>&1 </dev/null` in
  4722. *GNU* | *'with BFD'*)
  4723. lt_cv_prog_gnu_ld=yes
  4724. ;;
  4725. *)
  4726. lt_cv_prog_gnu_ld=no
  4727. ;;
  4728. esac
  4729. fi
  4730. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4731. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4732. with_gnu_ld=$lt_cv_prog_gnu_ld
  4733. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4734. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4735. if test "${lt_cv_path_NM+set}" = set; then
  4736. $as_echo_n "(cached) " >&6
  4737. else
  4738. if test -n "$NM"; then
  4739. # Let the user override the test.
  4740. lt_cv_path_NM="$NM"
  4741. else
  4742. lt_nm_to_check="${ac_tool_prefix}nm"
  4743. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4744. lt_nm_to_check="$lt_nm_to_check nm"
  4745. fi
  4746. for lt_tmp_nm in $lt_nm_to_check; do
  4747. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4748. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4749. IFS="$lt_save_ifs"
  4750. test -z "$ac_dir" && ac_dir=.
  4751. tmp_nm="$ac_dir/$lt_tmp_nm"
  4752. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4753. # Check to see if the nm accepts a BSD-compat flag.
  4754. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4755. # nm: unknown option "B" ignored
  4756. # Tru64's nm complains that /dev/null is an invalid object file
  4757. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4758. */dev/null* | *'Invalid file or object type'*)
  4759. lt_cv_path_NM="$tmp_nm -B"
  4760. break
  4761. ;;
  4762. *)
  4763. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4764. */dev/null*)
  4765. lt_cv_path_NM="$tmp_nm -p"
  4766. break
  4767. ;;
  4768. *)
  4769. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4770. continue # so that we can try to find one that supports BSD flags
  4771. ;;
  4772. esac
  4773. ;;
  4774. esac
  4775. fi
  4776. done
  4777. IFS="$lt_save_ifs"
  4778. done
  4779. : ${lt_cv_path_NM=no}
  4780. fi
  4781. fi
  4782. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4783. $as_echo "$lt_cv_path_NM" >&6; }
  4784. if test "$lt_cv_path_NM" != "no"; then
  4785. NM="$lt_cv_path_NM"
  4786. else
  4787. # Didn't find any BSD compatible name lister, look for dumpbin.
  4788. if test -n "$ac_tool_prefix"; then
  4789. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4790. do
  4791. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4792. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4793. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4794. $as_echo_n "checking for $ac_word... " >&6; }
  4795. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. if test -n "$DUMPBIN"; then
  4799. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4800. else
  4801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4802. for as_dir in $PATH
  4803. do
  4804. IFS=$as_save_IFS
  4805. test -z "$as_dir" && as_dir=.
  4806. for ac_exec_ext in '' $ac_executable_extensions; do
  4807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4808. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4809. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4810. break 2
  4811. fi
  4812. done
  4813. done
  4814. IFS=$as_save_IFS
  4815. fi
  4816. fi
  4817. DUMPBIN=$ac_cv_prog_DUMPBIN
  4818. if test -n "$DUMPBIN"; then
  4819. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4820. $as_echo "$DUMPBIN" >&6; }
  4821. else
  4822. { $as_echo "$as_me:$LINENO: result: no" >&5
  4823. $as_echo "no" >&6; }
  4824. fi
  4825. test -n "$DUMPBIN" && break
  4826. done
  4827. fi
  4828. if test -z "$DUMPBIN"; then
  4829. ac_ct_DUMPBIN=$DUMPBIN
  4830. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4831. do
  4832. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4833. set dummy $ac_prog; ac_word=$2
  4834. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4835. $as_echo_n "checking for $ac_word... " >&6; }
  4836. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4837. $as_echo_n "(cached) " >&6
  4838. else
  4839. if test -n "$ac_ct_DUMPBIN"; then
  4840. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4841. else
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH
  4844. do
  4845. IFS=$as_save_IFS
  4846. test -z "$as_dir" && as_dir=.
  4847. for ac_exec_ext in '' $ac_executable_extensions; do
  4848. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4849. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4850. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4851. break 2
  4852. fi
  4853. done
  4854. done
  4855. IFS=$as_save_IFS
  4856. fi
  4857. fi
  4858. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4859. if test -n "$ac_ct_DUMPBIN"; then
  4860. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4861. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4862. else
  4863. { $as_echo "$as_me:$LINENO: result: no" >&5
  4864. $as_echo "no" >&6; }
  4865. fi
  4866. test -n "$ac_ct_DUMPBIN" && break
  4867. done
  4868. if test "x$ac_ct_DUMPBIN" = x; then
  4869. DUMPBIN=":"
  4870. else
  4871. case $cross_compiling:$ac_tool_warned in
  4872. yes:)
  4873. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4874. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4875. ac_tool_warned=yes ;;
  4876. esac
  4877. DUMPBIN=$ac_ct_DUMPBIN
  4878. fi
  4879. fi
  4880. if test "$DUMPBIN" != ":"; then
  4881. NM="$DUMPBIN"
  4882. fi
  4883. fi
  4884. test -z "$NM" && NM=nm
  4885. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4886. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4887. if test "${lt_cv_nm_interface+set}" = set; then
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. lt_cv_nm_interface="BSD nm"
  4891. echo "int some_variable = 0;" > conftest.$ac_ext
  4892. (eval echo "\"\$as_me:5474: $ac_compile\"" >&5)
  4893. (eval "$ac_compile" 2>conftest.err)
  4894. cat conftest.err >&5
  4895. (eval echo "\"\$as_me:5477: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4896. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4897. cat conftest.err >&5
  4898. (eval echo "\"\$as_me:5480: output\"" >&5)
  4899. cat conftest.out >&5
  4900. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4901. lt_cv_nm_interface="MS dumpbin"
  4902. fi
  4903. rm -f conftest*
  4904. fi
  4905. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4906. $as_echo "$lt_cv_nm_interface" >&6; }
  4907. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4908. $as_echo_n "checking whether ln -s works... " >&6; }
  4909. LN_S=$as_ln_s
  4910. if test "$LN_S" = "ln -s"; then
  4911. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4912. $as_echo "yes" >&6; }
  4913. else
  4914. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4915. $as_echo "no, using $LN_S" >&6; }
  4916. fi
  4917. # find the maximum length of command line arguments
  4918. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4919. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4920. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. i=0
  4924. teststring="ABCD"
  4925. case $build_os in
  4926. msdosdjgpp*)
  4927. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4928. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4929. # during glob expansion). Even if it were fixed, the result of this
  4930. # check would be larger than it should be.
  4931. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4932. ;;
  4933. gnu*)
  4934. # Under GNU Hurd, this test is not required because there is
  4935. # no limit to the length of command line arguments.
  4936. # Libtool will interpret -1 as no limit whatsoever
  4937. lt_cv_sys_max_cmd_len=-1;
  4938. ;;
  4939. cygwin* | mingw* | cegcc*)
  4940. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4941. # about 5 minutes as the teststring grows exponentially.
  4942. # Worse, since 9x/ME are not pre-emptively multitasking,
  4943. # you end up with a "frozen" computer, even though with patience
  4944. # the test eventually succeeds (with a max line length of 256k).
  4945. # Instead, let's just punt: use the minimum linelength reported by
  4946. # all of the supported platforms: 8192 (on NT/2K/XP).
  4947. lt_cv_sys_max_cmd_len=8192;
  4948. ;;
  4949. amigaos*)
  4950. # On AmigaOS with pdksh, this test takes hours, literally.
  4951. # So we just punt and use a minimum line length of 8192.
  4952. lt_cv_sys_max_cmd_len=8192;
  4953. ;;
  4954. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4955. # This has been around since 386BSD, at least. Likely further.
  4956. if test -x /sbin/sysctl; then
  4957. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4958. elif test -x /usr/sbin/sysctl; then
  4959. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4960. else
  4961. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4962. fi
  4963. # And add a safety zone
  4964. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4965. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4966. ;;
  4967. interix*)
  4968. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4969. lt_cv_sys_max_cmd_len=196608
  4970. ;;
  4971. osf*)
  4972. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4973. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4974. # nice to cause kernel panics so lets avoid the loop below.
  4975. # First set a reasonable default.
  4976. lt_cv_sys_max_cmd_len=16384
  4977. #
  4978. if test -x /sbin/sysconfig; then
  4979. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4980. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4981. esac
  4982. fi
  4983. ;;
  4984. sco3.2v5*)
  4985. lt_cv_sys_max_cmd_len=102400
  4986. ;;
  4987. sysv5* | sco5v6* | sysv4.2uw2*)
  4988. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4989. if test -n "$kargmax"; then
  4990. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4991. else
  4992. lt_cv_sys_max_cmd_len=32768
  4993. fi
  4994. ;;
  4995. *)
  4996. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4997. if test -n "$lt_cv_sys_max_cmd_len"; then
  4998. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4999. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5000. else
  5001. # Make teststring a little bigger before we do anything with it.
  5002. # a 1K string should be a reasonable start.
  5003. for i in 1 2 3 4 5 6 7 8 ; do
  5004. teststring=$teststring$teststring
  5005. done
  5006. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5007. # If test is not a shell built-in, we'll probably end up computing a
  5008. # maximum length that is only half of the actual maximum length, but
  5009. # we can't tell.
  5010. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5011. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5012. test $i != 17 # 1/2 MB should be enough
  5013. do
  5014. i=`expr $i + 1`
  5015. teststring=$teststring$teststring
  5016. done
  5017. # Only check the string length outside the loop.
  5018. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5019. teststring=
  5020. # Add a significant safety factor because C++ compilers can tack on
  5021. # massive amounts of additional arguments before passing them to the
  5022. # linker. It appears as though 1/2 is a usable value.
  5023. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5024. fi
  5025. ;;
  5026. esac
  5027. fi
  5028. if test -n $lt_cv_sys_max_cmd_len ; then
  5029. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5030. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5031. else
  5032. { $as_echo "$as_me:$LINENO: result: none" >&5
  5033. $as_echo "none" >&6; }
  5034. fi
  5035. max_cmd_len=$lt_cv_sys_max_cmd_len
  5036. : ${CP="cp -f"}
  5037. : ${MV="mv -f"}
  5038. : ${RM="rm -f"}
  5039. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5040. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5041. # Try some XSI features
  5042. xsi_shell=no
  5043. ( _lt_dummy="a/b/c"
  5044. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5045. = c,a/b,, \
  5046. && eval 'test $(( 1 + 1 )) -eq 2 \
  5047. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5048. && xsi_shell=yes
  5049. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5050. $as_echo "$xsi_shell" >&6; }
  5051. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5052. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5053. lt_shell_append=no
  5054. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5055. >/dev/null 2>&1 \
  5056. && lt_shell_append=yes
  5057. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5058. $as_echo "$lt_shell_append" >&6; }
  5059. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5060. lt_unset=unset
  5061. else
  5062. lt_unset=false
  5063. fi
  5064. # test EBCDIC or ASCII
  5065. case `echo X|tr X '\101'` in
  5066. A) # ASCII based system
  5067. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5068. lt_SP2NL='tr \040 \012'
  5069. lt_NL2SP='tr \015\012 \040\040'
  5070. ;;
  5071. *) # EBCDIC based system
  5072. lt_SP2NL='tr \100 \n'
  5073. lt_NL2SP='tr \r\n \100\100'
  5074. ;;
  5075. esac
  5076. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5077. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5078. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. lt_cv_ld_reload_flag='-r'
  5082. fi
  5083. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5084. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5085. reload_flag=$lt_cv_ld_reload_flag
  5086. case $reload_flag in
  5087. "" | " "*) ;;
  5088. *) reload_flag=" $reload_flag" ;;
  5089. esac
  5090. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5091. case $host_os in
  5092. darwin*)
  5093. if test "$GCC" = yes; then
  5094. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5095. else
  5096. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5097. fi
  5098. ;;
  5099. esac
  5100. if test -n "$ac_tool_prefix"; then
  5101. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5102. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5103. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5104. $as_echo_n "checking for $ac_word... " >&6; }
  5105. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5106. $as_echo_n "(cached) " >&6
  5107. else
  5108. if test -n "$OBJDUMP"; then
  5109. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5110. else
  5111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5112. for as_dir in $PATH
  5113. do
  5114. IFS=$as_save_IFS
  5115. test -z "$as_dir" && as_dir=.
  5116. for ac_exec_ext in '' $ac_executable_extensions; do
  5117. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5118. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5119. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5120. break 2
  5121. fi
  5122. done
  5123. done
  5124. IFS=$as_save_IFS
  5125. fi
  5126. fi
  5127. OBJDUMP=$ac_cv_prog_OBJDUMP
  5128. if test -n "$OBJDUMP"; then
  5129. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5130. $as_echo "$OBJDUMP" >&6; }
  5131. else
  5132. { $as_echo "$as_me:$LINENO: result: no" >&5
  5133. $as_echo "no" >&6; }
  5134. fi
  5135. fi
  5136. if test -z "$ac_cv_prog_OBJDUMP"; then
  5137. ac_ct_OBJDUMP=$OBJDUMP
  5138. # Extract the first word of "objdump", so it can be a program name with args.
  5139. set dummy objdump; ac_word=$2
  5140. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5141. $as_echo_n "checking for $ac_word... " >&6; }
  5142. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. if test -n "$ac_ct_OBJDUMP"; then
  5146. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5147. else
  5148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5149. for as_dir in $PATH
  5150. do
  5151. IFS=$as_save_IFS
  5152. test -z "$as_dir" && as_dir=.
  5153. for ac_exec_ext in '' $ac_executable_extensions; do
  5154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5155. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5156. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5157. break 2
  5158. fi
  5159. done
  5160. done
  5161. IFS=$as_save_IFS
  5162. fi
  5163. fi
  5164. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5165. if test -n "$ac_ct_OBJDUMP"; then
  5166. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5167. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5168. else
  5169. { $as_echo "$as_me:$LINENO: result: no" >&5
  5170. $as_echo "no" >&6; }
  5171. fi
  5172. if test "x$ac_ct_OBJDUMP" = x; then
  5173. OBJDUMP="false"
  5174. else
  5175. case $cross_compiling:$ac_tool_warned in
  5176. yes:)
  5177. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5178. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5179. ac_tool_warned=yes ;;
  5180. esac
  5181. OBJDUMP=$ac_ct_OBJDUMP
  5182. fi
  5183. else
  5184. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5185. fi
  5186. test -z "$OBJDUMP" && OBJDUMP=objdump
  5187. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5188. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5189. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5190. $as_echo_n "(cached) " >&6
  5191. else
  5192. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5193. lt_cv_file_magic_test_file=
  5194. lt_cv_deplibs_check_method='unknown'
  5195. # Need to set the preceding variable on all platforms that support
  5196. # interlibrary dependencies.
  5197. # 'none' -- dependencies not supported.
  5198. # `unknown' -- same as none, but documents that we really don't know.
  5199. # 'pass_all' -- all dependencies passed with no checks.
  5200. # 'test_compile' -- check by making test program.
  5201. # 'file_magic [[regex]]' -- check by looking for files in library path
  5202. # which responds to the $file_magic_cmd with a given extended regex.
  5203. # If you have `file' or equivalent on your system and you're not sure
  5204. # whether `pass_all' will *always* work, you probably want this one.
  5205. case $host_os in
  5206. aix[4-9]*)
  5207. lt_cv_deplibs_check_method=pass_all
  5208. ;;
  5209. beos*)
  5210. lt_cv_deplibs_check_method=pass_all
  5211. ;;
  5212. bsdi[45]*)
  5213. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5214. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5215. lt_cv_file_magic_test_file=/shlib/libc.so
  5216. ;;
  5217. cygwin*)
  5218. # func_win32_libid is a shell function defined in ltmain.sh
  5219. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5220. lt_cv_file_magic_cmd='func_win32_libid'
  5221. ;;
  5222. mingw* | pw32*)
  5223. # Base MSYS/MinGW do not provide the 'file' command needed by
  5224. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5225. # unless we find 'file', for example because we are cross-compiling.
  5226. if ( file / ) >/dev/null 2>&1; then
  5227. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5228. lt_cv_file_magic_cmd='func_win32_libid'
  5229. else
  5230. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5231. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5232. fi
  5233. ;;
  5234. cegcc)
  5235. # use the weaker test based on 'objdump'. See mingw*.
  5236. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5237. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5238. ;;
  5239. darwin* | rhapsody*)
  5240. lt_cv_deplibs_check_method=pass_all
  5241. ;;
  5242. freebsd* | dragonfly*)
  5243. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5244. case $host_cpu in
  5245. i*86 )
  5246. # Not sure whether the presence of OpenBSD here was a mistake.
  5247. # Let's accept both of them until this is cleared up.
  5248. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5249. lt_cv_file_magic_cmd=/usr/bin/file
  5250. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5251. ;;
  5252. esac
  5253. else
  5254. lt_cv_deplibs_check_method=pass_all
  5255. fi
  5256. ;;
  5257. gnu*)
  5258. lt_cv_deplibs_check_method=pass_all
  5259. ;;
  5260. hpux10.20* | hpux11*)
  5261. lt_cv_file_magic_cmd=/usr/bin/file
  5262. case $host_cpu in
  5263. ia64*)
  5264. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5265. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5266. ;;
  5267. hppa*64*)
  5268. 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]'
  5269. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5270. ;;
  5271. *)
  5272. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5273. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5274. ;;
  5275. esac
  5276. ;;
  5277. interix[3-9]*)
  5278. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5279. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5280. ;;
  5281. irix5* | irix6* | nonstopux*)
  5282. case $LD in
  5283. *-32|*"-32 ") libmagic=32-bit;;
  5284. *-n32|*"-n32 ") libmagic=N32;;
  5285. *-64|*"-64 ") libmagic=64-bit;;
  5286. *) libmagic=never-match;;
  5287. esac
  5288. lt_cv_deplibs_check_method=pass_all
  5289. ;;
  5290. # This must be Linux ELF.
  5291. linux* | k*bsd*-gnu)
  5292. lt_cv_deplibs_check_method=pass_all
  5293. ;;
  5294. netbsd*)
  5295. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5296. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5297. else
  5298. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5299. fi
  5300. ;;
  5301. newos6*)
  5302. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5303. lt_cv_file_magic_cmd=/usr/bin/file
  5304. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5305. ;;
  5306. *nto* | *qnx*)
  5307. lt_cv_deplibs_check_method=pass_all
  5308. ;;
  5309. openbsd*)
  5310. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5311. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5312. else
  5313. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5314. fi
  5315. ;;
  5316. osf3* | osf4* | osf5*)
  5317. lt_cv_deplibs_check_method=pass_all
  5318. ;;
  5319. rdos*)
  5320. lt_cv_deplibs_check_method=pass_all
  5321. ;;
  5322. solaris*)
  5323. lt_cv_deplibs_check_method=pass_all
  5324. ;;
  5325. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5326. lt_cv_deplibs_check_method=pass_all
  5327. ;;
  5328. sysv4 | sysv4.3*)
  5329. case $host_vendor in
  5330. motorola)
  5331. 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]'
  5332. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5333. ;;
  5334. ncr)
  5335. lt_cv_deplibs_check_method=pass_all
  5336. ;;
  5337. sequent)
  5338. lt_cv_file_magic_cmd='/bin/file'
  5339. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5340. ;;
  5341. sni)
  5342. lt_cv_file_magic_cmd='/bin/file'
  5343. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5344. lt_cv_file_magic_test_file=/lib/libc.so
  5345. ;;
  5346. siemens)
  5347. lt_cv_deplibs_check_method=pass_all
  5348. ;;
  5349. pc)
  5350. lt_cv_deplibs_check_method=pass_all
  5351. ;;
  5352. esac
  5353. ;;
  5354. tpf*)
  5355. lt_cv_deplibs_check_method=pass_all
  5356. ;;
  5357. esac
  5358. fi
  5359. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5360. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5361. file_magic_cmd=$lt_cv_file_magic_cmd
  5362. deplibs_check_method=$lt_cv_deplibs_check_method
  5363. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5364. if test -n "$ac_tool_prefix"; then
  5365. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5366. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5367. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5368. $as_echo_n "checking for $ac_word... " >&6; }
  5369. if test "${ac_cv_prog_AR+set}" = set; then
  5370. $as_echo_n "(cached) " >&6
  5371. else
  5372. if test -n "$AR"; then
  5373. ac_cv_prog_AR="$AR" # Let the user override the test.
  5374. else
  5375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5376. for as_dir in $PATH
  5377. do
  5378. IFS=$as_save_IFS
  5379. test -z "$as_dir" && as_dir=.
  5380. for ac_exec_ext in '' $ac_executable_extensions; do
  5381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5382. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5383. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5384. break 2
  5385. fi
  5386. done
  5387. done
  5388. IFS=$as_save_IFS
  5389. fi
  5390. fi
  5391. AR=$ac_cv_prog_AR
  5392. if test -n "$AR"; then
  5393. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5394. $as_echo "$AR" >&6; }
  5395. else
  5396. { $as_echo "$as_me:$LINENO: result: no" >&5
  5397. $as_echo "no" >&6; }
  5398. fi
  5399. fi
  5400. if test -z "$ac_cv_prog_AR"; then
  5401. ac_ct_AR=$AR
  5402. # Extract the first word of "ar", so it can be a program name with args.
  5403. set dummy ar; ac_word=$2
  5404. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5405. $as_echo_n "checking for $ac_word... " >&6; }
  5406. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5407. $as_echo_n "(cached) " >&6
  5408. else
  5409. if test -n "$ac_ct_AR"; then
  5410. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5411. else
  5412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5413. for as_dir in $PATH
  5414. do
  5415. IFS=$as_save_IFS
  5416. test -z "$as_dir" && as_dir=.
  5417. for ac_exec_ext in '' $ac_executable_extensions; do
  5418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5419. ac_cv_prog_ac_ct_AR="ar"
  5420. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5421. break 2
  5422. fi
  5423. done
  5424. done
  5425. IFS=$as_save_IFS
  5426. fi
  5427. fi
  5428. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5429. if test -n "$ac_ct_AR"; then
  5430. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5431. $as_echo "$ac_ct_AR" >&6; }
  5432. else
  5433. { $as_echo "$as_me:$LINENO: result: no" >&5
  5434. $as_echo "no" >&6; }
  5435. fi
  5436. if test "x$ac_ct_AR" = x; then
  5437. AR="false"
  5438. else
  5439. case $cross_compiling:$ac_tool_warned in
  5440. yes:)
  5441. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5443. ac_tool_warned=yes ;;
  5444. esac
  5445. AR=$ac_ct_AR
  5446. fi
  5447. else
  5448. AR="$ac_cv_prog_AR"
  5449. fi
  5450. test -z "$AR" && AR=ar
  5451. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5452. if test -n "$ac_tool_prefix"; then
  5453. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5454. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5455. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5456. $as_echo_n "checking for $ac_word... " >&6; }
  5457. if test "${ac_cv_prog_STRIP+set}" = set; then
  5458. $as_echo_n "(cached) " >&6
  5459. else
  5460. if test -n "$STRIP"; then
  5461. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5462. else
  5463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5464. for as_dir in $PATH
  5465. do
  5466. IFS=$as_save_IFS
  5467. test -z "$as_dir" && as_dir=.
  5468. for ac_exec_ext in '' $ac_executable_extensions; do
  5469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5470. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5471. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5472. break 2
  5473. fi
  5474. done
  5475. done
  5476. IFS=$as_save_IFS
  5477. fi
  5478. fi
  5479. STRIP=$ac_cv_prog_STRIP
  5480. if test -n "$STRIP"; then
  5481. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5482. $as_echo "$STRIP" >&6; }
  5483. else
  5484. { $as_echo "$as_me:$LINENO: result: no" >&5
  5485. $as_echo "no" >&6; }
  5486. fi
  5487. fi
  5488. if test -z "$ac_cv_prog_STRIP"; then
  5489. ac_ct_STRIP=$STRIP
  5490. # Extract the first word of "strip", so it can be a program name with args.
  5491. set dummy strip; ac_word=$2
  5492. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5493. $as_echo_n "checking for $ac_word... " >&6; }
  5494. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5495. $as_echo_n "(cached) " >&6
  5496. else
  5497. if test -n "$ac_ct_STRIP"; then
  5498. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5499. else
  5500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5501. for as_dir in $PATH
  5502. do
  5503. IFS=$as_save_IFS
  5504. test -z "$as_dir" && as_dir=.
  5505. for ac_exec_ext in '' $ac_executable_extensions; do
  5506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5507. ac_cv_prog_ac_ct_STRIP="strip"
  5508. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5509. break 2
  5510. fi
  5511. done
  5512. done
  5513. IFS=$as_save_IFS
  5514. fi
  5515. fi
  5516. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5517. if test -n "$ac_ct_STRIP"; then
  5518. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5519. $as_echo "$ac_ct_STRIP" >&6; }
  5520. else
  5521. { $as_echo "$as_me:$LINENO: result: no" >&5
  5522. $as_echo "no" >&6; }
  5523. fi
  5524. if test "x$ac_ct_STRIP" = x; then
  5525. STRIP=":"
  5526. else
  5527. case $cross_compiling:$ac_tool_warned in
  5528. yes:)
  5529. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5530. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5531. ac_tool_warned=yes ;;
  5532. esac
  5533. STRIP=$ac_ct_STRIP
  5534. fi
  5535. else
  5536. STRIP="$ac_cv_prog_STRIP"
  5537. fi
  5538. test -z "$STRIP" && STRIP=:
  5539. if test -n "$ac_tool_prefix"; then
  5540. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5541. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5542. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5543. $as_echo_n "checking for $ac_word... " >&6; }
  5544. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5545. $as_echo_n "(cached) " >&6
  5546. else
  5547. if test -n "$RANLIB"; then
  5548. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5549. else
  5550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5551. for as_dir in $PATH
  5552. do
  5553. IFS=$as_save_IFS
  5554. test -z "$as_dir" && as_dir=.
  5555. for ac_exec_ext in '' $ac_executable_extensions; do
  5556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5557. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5558. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5559. break 2
  5560. fi
  5561. done
  5562. done
  5563. IFS=$as_save_IFS
  5564. fi
  5565. fi
  5566. RANLIB=$ac_cv_prog_RANLIB
  5567. if test -n "$RANLIB"; then
  5568. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5569. $as_echo "$RANLIB" >&6; }
  5570. else
  5571. { $as_echo "$as_me:$LINENO: result: no" >&5
  5572. $as_echo "no" >&6; }
  5573. fi
  5574. fi
  5575. if test -z "$ac_cv_prog_RANLIB"; then
  5576. ac_ct_RANLIB=$RANLIB
  5577. # Extract the first word of "ranlib", so it can be a program name with args.
  5578. set dummy ranlib; ac_word=$2
  5579. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5580. $as_echo_n "checking for $ac_word... " >&6; }
  5581. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5582. $as_echo_n "(cached) " >&6
  5583. else
  5584. if test -n "$ac_ct_RANLIB"; then
  5585. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5586. else
  5587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5588. for as_dir in $PATH
  5589. do
  5590. IFS=$as_save_IFS
  5591. test -z "$as_dir" && as_dir=.
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5594. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5595. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. IFS=$as_save_IFS
  5601. fi
  5602. fi
  5603. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5604. if test -n "$ac_ct_RANLIB"; then
  5605. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5606. $as_echo "$ac_ct_RANLIB" >&6; }
  5607. else
  5608. { $as_echo "$as_me:$LINENO: result: no" >&5
  5609. $as_echo "no" >&6; }
  5610. fi
  5611. if test "x$ac_ct_RANLIB" = x; then
  5612. RANLIB=":"
  5613. else
  5614. case $cross_compiling:$ac_tool_warned in
  5615. yes:)
  5616. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5617. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5618. ac_tool_warned=yes ;;
  5619. esac
  5620. RANLIB=$ac_ct_RANLIB
  5621. fi
  5622. else
  5623. RANLIB="$ac_cv_prog_RANLIB"
  5624. fi
  5625. test -z "$RANLIB" && RANLIB=:
  5626. # Determine commands to create old-style static archives.
  5627. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5628. old_postinstall_cmds='chmod 644 $oldlib'
  5629. old_postuninstall_cmds=
  5630. if test -n "$RANLIB"; then
  5631. case $host_os in
  5632. openbsd*)
  5633. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5634. ;;
  5635. *)
  5636. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5637. ;;
  5638. esac
  5639. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5640. fi
  5641. # If no C compiler was specified, use CC.
  5642. LTCC=${LTCC-"$CC"}
  5643. # If no C compiler flags were specified, use CFLAGS.
  5644. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5645. # Allow CC to be a program name with arguments.
  5646. compiler=$CC
  5647. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5648. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5649. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5650. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5651. $as_echo_n "(cached) " >&6
  5652. else
  5653. # These are sane defaults that work on at least a few old systems.
  5654. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5655. # Character class describing NM global symbol codes.
  5656. symcode='[BCDEGRST]'
  5657. # Regexp to match symbols that can be accessed directly from C.
  5658. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5659. # Define system-specific variables.
  5660. case $host_os in
  5661. aix*)
  5662. symcode='[BCDT]'
  5663. ;;
  5664. cygwin* | mingw* | pw32* | cegcc*)
  5665. symcode='[ABCDGISTW]'
  5666. ;;
  5667. hpux*)
  5668. if test "$host_cpu" = ia64; then
  5669. symcode='[ABCDEGRST]'
  5670. fi
  5671. ;;
  5672. irix* | nonstopux*)
  5673. symcode='[BCDEGRST]'
  5674. ;;
  5675. osf*)
  5676. symcode='[BCDEGQRST]'
  5677. ;;
  5678. solaris*)
  5679. symcode='[BDRT]'
  5680. ;;
  5681. sco3.2v5*)
  5682. symcode='[DT]'
  5683. ;;
  5684. sysv4.2uw2*)
  5685. symcode='[DT]'
  5686. ;;
  5687. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5688. symcode='[ABDT]'
  5689. ;;
  5690. sysv4)
  5691. symcode='[DFNSTU]'
  5692. ;;
  5693. esac
  5694. # If we're using GNU nm, then use its standard symbol codes.
  5695. case `$NM -V 2>&1` in
  5696. *GNU* | *'with BFD'*)
  5697. symcode='[ABCDGIRSTW]' ;;
  5698. esac
  5699. # Transform an extracted symbol line into a proper C declaration.
  5700. # Some systems (esp. on ia64) link data and code symbols differently,
  5701. # so use this general approach.
  5702. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5703. # Transform an extracted symbol line into symbol name and symbol address
  5704. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5705. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5706. # Handle CRLF in mingw tool chain
  5707. opt_cr=
  5708. case $build_os in
  5709. mingw*)
  5710. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5711. ;;
  5712. esac
  5713. # Try without a prefix underscore, then with it.
  5714. for ac_symprfx in "" "_"; do
  5715. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5716. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5717. # Write the raw and C identifiers.
  5718. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5719. # Fake it for dumpbin and say T for any non-static function
  5720. # and D for any global variable.
  5721. # Also find C++ and __fastcall symbols from MSVC++,
  5722. # which start with @ or ?.
  5723. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5724. " {last_section=section; section=\$ 3};"\
  5725. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5726. " \$ 0!~/External *\|/{next};"\
  5727. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5728. " {if(hide[section]) next};"\
  5729. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5730. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5731. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5732. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5733. " ' prfx=^$ac_symprfx"
  5734. else
  5735. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5736. fi
  5737. # Check to see that the pipe works correctly.
  5738. pipe_works=no
  5739. rm -f conftest*
  5740. cat > conftest.$ac_ext <<_LT_EOF
  5741. #ifdef __cplusplus
  5742. extern "C" {
  5743. #endif
  5744. char nm_test_var;
  5745. void nm_test_func(void);
  5746. void nm_test_func(void){}
  5747. #ifdef __cplusplus
  5748. }
  5749. #endif
  5750. int main(){nm_test_var='a';nm_test_func();return(0);}
  5751. _LT_EOF
  5752. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5753. (eval $ac_compile) 2>&5
  5754. ac_status=$?
  5755. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5756. (exit $ac_status); }; then
  5757. # Now try to grab the symbols.
  5758. nlist=conftest.nm
  5759. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5760. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5761. ac_status=$?
  5762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763. (exit $ac_status); } && test -s "$nlist"; then
  5764. # Try sorting and uniquifying the output.
  5765. if sort "$nlist" | uniq > "$nlist"T; then
  5766. mv -f "$nlist"T "$nlist"
  5767. else
  5768. rm -f "$nlist"T
  5769. fi
  5770. # Make sure that we snagged all the symbols we need.
  5771. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5772. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5773. cat <<_LT_EOF > conftest.$ac_ext
  5774. #ifdef __cplusplus
  5775. extern "C" {
  5776. #endif
  5777. _LT_EOF
  5778. # Now generate the symbol file.
  5779. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5780. cat <<_LT_EOF >> conftest.$ac_ext
  5781. /* The mapping between symbol names and symbols. */
  5782. const struct {
  5783. const char *name;
  5784. void *address;
  5785. }
  5786. lt__PROGRAM__LTX_preloaded_symbols[] =
  5787. {
  5788. { "@PROGRAM@", (void *) 0 },
  5789. _LT_EOF
  5790. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5791. cat <<\_LT_EOF >> conftest.$ac_ext
  5792. {0, (void *) 0}
  5793. };
  5794. /* This works around a problem in FreeBSD linker */
  5795. #ifdef FREEBSD_WORKAROUND
  5796. static const void *lt_preloaded_setup() {
  5797. return lt__PROGRAM__LTX_preloaded_symbols;
  5798. }
  5799. #endif
  5800. #ifdef __cplusplus
  5801. }
  5802. #endif
  5803. _LT_EOF
  5804. # Now try linking the two files.
  5805. mv conftest.$ac_objext conftstm.$ac_objext
  5806. lt_save_LIBS="$LIBS"
  5807. lt_save_CFLAGS="$CFLAGS"
  5808. LIBS="conftstm.$ac_objext"
  5809. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5810. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5811. (eval $ac_link) 2>&5
  5812. ac_status=$?
  5813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5814. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5815. pipe_works=yes
  5816. fi
  5817. LIBS="$lt_save_LIBS"
  5818. CFLAGS="$lt_save_CFLAGS"
  5819. else
  5820. echo "cannot find nm_test_func in $nlist" >&5
  5821. fi
  5822. else
  5823. echo "cannot find nm_test_var in $nlist" >&5
  5824. fi
  5825. else
  5826. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5827. fi
  5828. else
  5829. echo "$progname: failed program was:" >&5
  5830. cat conftest.$ac_ext >&5
  5831. fi
  5832. rm -rf conftest* conftst*
  5833. # Do not use the global_symbol_pipe unless it works.
  5834. if test "$pipe_works" = yes; then
  5835. break
  5836. else
  5837. lt_cv_sys_global_symbol_pipe=
  5838. fi
  5839. done
  5840. fi
  5841. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5842. lt_cv_sys_global_symbol_to_cdecl=
  5843. fi
  5844. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5845. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5846. $as_echo "failed" >&6; }
  5847. else
  5848. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5849. $as_echo "ok" >&6; }
  5850. fi
  5851. # Check whether --enable-libtool-lock was given.
  5852. if test "${enable_libtool_lock+set}" = set; then
  5853. enableval=$enable_libtool_lock;
  5854. fi
  5855. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5856. # Some flags need to be propagated to the compiler or linker for good
  5857. # libtool support.
  5858. case $host in
  5859. ia64-*-hpux*)
  5860. # Find out which ABI we are using.
  5861. echo 'int i;' > conftest.$ac_ext
  5862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5863. (eval $ac_compile) 2>&5
  5864. ac_status=$?
  5865. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5866. (exit $ac_status); }; then
  5867. case `/usr/bin/file conftest.$ac_objext` in
  5868. *ELF-32*)
  5869. HPUX_IA64_MODE="32"
  5870. ;;
  5871. *ELF-64*)
  5872. HPUX_IA64_MODE="64"
  5873. ;;
  5874. esac
  5875. fi
  5876. rm -rf conftest*
  5877. ;;
  5878. *-*-irix6*)
  5879. # Find out which ABI we are using.
  5880. echo '#line 6686 "configure"' > conftest.$ac_ext
  5881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5882. (eval $ac_compile) 2>&5
  5883. ac_status=$?
  5884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5885. (exit $ac_status); }; then
  5886. if test "$lt_cv_prog_gnu_ld" = yes; then
  5887. case `/usr/bin/file conftest.$ac_objext` in
  5888. *32-bit*)
  5889. LD="${LD-ld} -melf32bsmip"
  5890. ;;
  5891. *N32*)
  5892. LD="${LD-ld} -melf32bmipn32"
  5893. ;;
  5894. *64-bit*)
  5895. LD="${LD-ld} -melf64bmip"
  5896. ;;
  5897. esac
  5898. else
  5899. case `/usr/bin/file conftest.$ac_objext` in
  5900. *32-bit*)
  5901. LD="${LD-ld} -32"
  5902. ;;
  5903. *N32*)
  5904. LD="${LD-ld} -n32"
  5905. ;;
  5906. *64-bit*)
  5907. LD="${LD-ld} -64"
  5908. ;;
  5909. esac
  5910. fi
  5911. fi
  5912. rm -rf conftest*
  5913. ;;
  5914. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5915. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5916. # Find out which ABI we are using.
  5917. echo 'int i;' > conftest.$ac_ext
  5918. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5919. (eval $ac_compile) 2>&5
  5920. ac_status=$?
  5921. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5922. (exit $ac_status); }; then
  5923. case `/usr/bin/file conftest.o` in
  5924. *32-bit*)
  5925. case $host in
  5926. x86_64-*kfreebsd*-gnu)
  5927. LD="${LD-ld} -m elf_i386_fbsd"
  5928. ;;
  5929. x86_64-*linux*)
  5930. LD="${LD-ld} -m elf_i386"
  5931. ;;
  5932. ppc64-*linux*|powerpc64-*linux*)
  5933. LD="${LD-ld} -m elf32ppclinux"
  5934. ;;
  5935. s390x-*linux*)
  5936. LD="${LD-ld} -m elf_s390"
  5937. ;;
  5938. sparc64-*linux*)
  5939. LD="${LD-ld} -m elf32_sparc"
  5940. ;;
  5941. esac
  5942. ;;
  5943. *64-bit*)
  5944. case $host in
  5945. x86_64-*kfreebsd*-gnu)
  5946. LD="${LD-ld} -m elf_x86_64_fbsd"
  5947. ;;
  5948. x86_64-*linux*)
  5949. LD="${LD-ld} -m elf_x86_64"
  5950. ;;
  5951. ppc*-*linux*|powerpc*-*linux*)
  5952. LD="${LD-ld} -m elf64ppc"
  5953. ;;
  5954. s390*-*linux*|s390*-*tpf*)
  5955. LD="${LD-ld} -m elf64_s390"
  5956. ;;
  5957. sparc*-*linux*)
  5958. LD="${LD-ld} -m elf64_sparc"
  5959. ;;
  5960. esac
  5961. ;;
  5962. esac
  5963. fi
  5964. rm -rf conftest*
  5965. ;;
  5966. *-*-sco3.2v5*)
  5967. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5968. SAVE_CFLAGS="$CFLAGS"
  5969. CFLAGS="$CFLAGS -belf"
  5970. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5971. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5972. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. ac_ext=c
  5976. ac_cpp='$CPP $CPPFLAGS'
  5977. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5978. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5979. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5980. cat >conftest.$ac_ext <<_ACEOF
  5981. /* confdefs.h. */
  5982. _ACEOF
  5983. cat confdefs.h >>conftest.$ac_ext
  5984. cat >>conftest.$ac_ext <<_ACEOF
  5985. /* end confdefs.h. */
  5986. int
  5987. main ()
  5988. {
  5989. ;
  5990. return 0;
  5991. }
  5992. _ACEOF
  5993. rm -f conftest.$ac_objext conftest$ac_exeext
  5994. if { (ac_try="$ac_link"
  5995. case "(($ac_try" in
  5996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5997. *) ac_try_echo=$ac_try;;
  5998. esac
  5999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6000. $as_echo "$ac_try_echo") >&5
  6001. (eval "$ac_link") 2>conftest.er1
  6002. ac_status=$?
  6003. grep -v '^ *+' conftest.er1 >conftest.err
  6004. rm -f conftest.er1
  6005. cat conftest.err >&5
  6006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6007. (exit $ac_status); } && {
  6008. test -z "$ac_c_werror_flag" ||
  6009. test ! -s conftest.err
  6010. } && test -s conftest$ac_exeext && {
  6011. test "$cross_compiling" = yes ||
  6012. $as_test_x conftest$ac_exeext
  6013. }; then
  6014. lt_cv_cc_needs_belf=yes
  6015. else
  6016. $as_echo "$as_me: failed program was:" >&5
  6017. sed 's/^/| /' conftest.$ac_ext >&5
  6018. lt_cv_cc_needs_belf=no
  6019. fi
  6020. rm -rf conftest.dSYM
  6021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6022. conftest$ac_exeext conftest.$ac_ext
  6023. ac_ext=c
  6024. ac_cpp='$CPP $CPPFLAGS'
  6025. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6026. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6027. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6028. fi
  6029. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6030. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6031. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6032. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6033. CFLAGS="$SAVE_CFLAGS"
  6034. fi
  6035. ;;
  6036. sparc*-*solaris*)
  6037. # Find out which ABI we are using.
  6038. echo 'int i;' > conftest.$ac_ext
  6039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6040. (eval $ac_compile) 2>&5
  6041. ac_status=$?
  6042. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6043. (exit $ac_status); }; then
  6044. case `/usr/bin/file conftest.o` in
  6045. *64-bit*)
  6046. case $lt_cv_prog_gnu_ld in
  6047. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6048. *)
  6049. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6050. LD="${LD-ld} -64"
  6051. fi
  6052. ;;
  6053. esac
  6054. ;;
  6055. esac
  6056. fi
  6057. rm -rf conftest*
  6058. ;;
  6059. esac
  6060. need_locks="$enable_libtool_lock"
  6061. case $host_os in
  6062. rhapsody* | darwin*)
  6063. if test -n "$ac_tool_prefix"; then
  6064. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6065. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6066. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6067. $as_echo_n "checking for $ac_word... " >&6; }
  6068. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. if test -n "$DSYMUTIL"; then
  6072. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6073. else
  6074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6075. for as_dir in $PATH
  6076. do
  6077. IFS=$as_save_IFS
  6078. test -z "$as_dir" && as_dir=.
  6079. for ac_exec_ext in '' $ac_executable_extensions; do
  6080. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6081. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6082. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6083. break 2
  6084. fi
  6085. done
  6086. done
  6087. IFS=$as_save_IFS
  6088. fi
  6089. fi
  6090. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6091. if test -n "$DSYMUTIL"; then
  6092. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6093. $as_echo "$DSYMUTIL" >&6; }
  6094. else
  6095. { $as_echo "$as_me:$LINENO: result: no" >&5
  6096. $as_echo "no" >&6; }
  6097. fi
  6098. fi
  6099. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6100. ac_ct_DSYMUTIL=$DSYMUTIL
  6101. # Extract the first word of "dsymutil", so it can be a program name with args.
  6102. set dummy dsymutil; ac_word=$2
  6103. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6104. $as_echo_n "checking for $ac_word... " >&6; }
  6105. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6106. $as_echo_n "(cached) " >&6
  6107. else
  6108. if test -n "$ac_ct_DSYMUTIL"; then
  6109. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6110. else
  6111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6112. for as_dir in $PATH
  6113. do
  6114. IFS=$as_save_IFS
  6115. test -z "$as_dir" && as_dir=.
  6116. for ac_exec_ext in '' $ac_executable_extensions; do
  6117. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6118. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6119. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6120. break 2
  6121. fi
  6122. done
  6123. done
  6124. IFS=$as_save_IFS
  6125. fi
  6126. fi
  6127. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6128. if test -n "$ac_ct_DSYMUTIL"; then
  6129. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6130. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6131. else
  6132. { $as_echo "$as_me:$LINENO: result: no" >&5
  6133. $as_echo "no" >&6; }
  6134. fi
  6135. if test "x$ac_ct_DSYMUTIL" = x; then
  6136. DSYMUTIL=":"
  6137. else
  6138. case $cross_compiling:$ac_tool_warned in
  6139. yes:)
  6140. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6141. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6142. ac_tool_warned=yes ;;
  6143. esac
  6144. DSYMUTIL=$ac_ct_DSYMUTIL
  6145. fi
  6146. else
  6147. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6148. fi
  6149. if test -n "$ac_tool_prefix"; then
  6150. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6151. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6152. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6153. $as_echo_n "checking for $ac_word... " >&6; }
  6154. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. if test -n "$NMEDIT"; then
  6158. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6159. else
  6160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6161. for as_dir in $PATH
  6162. do
  6163. IFS=$as_save_IFS
  6164. test -z "$as_dir" && as_dir=.
  6165. for ac_exec_ext in '' $ac_executable_extensions; do
  6166. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6167. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6168. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6169. break 2
  6170. fi
  6171. done
  6172. done
  6173. IFS=$as_save_IFS
  6174. fi
  6175. fi
  6176. NMEDIT=$ac_cv_prog_NMEDIT
  6177. if test -n "$NMEDIT"; then
  6178. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6179. $as_echo "$NMEDIT" >&6; }
  6180. else
  6181. { $as_echo "$as_me:$LINENO: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. fi
  6185. if test -z "$ac_cv_prog_NMEDIT"; then
  6186. ac_ct_NMEDIT=$NMEDIT
  6187. # Extract the first word of "nmedit", so it can be a program name with args.
  6188. set dummy nmedit; ac_word=$2
  6189. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6190. $as_echo_n "checking for $ac_word... " >&6; }
  6191. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6192. $as_echo_n "(cached) " >&6
  6193. else
  6194. if test -n "$ac_ct_NMEDIT"; then
  6195. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6196. else
  6197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6198. for as_dir in $PATH
  6199. do
  6200. IFS=$as_save_IFS
  6201. test -z "$as_dir" && as_dir=.
  6202. for ac_exec_ext in '' $ac_executable_extensions; do
  6203. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6204. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6205. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6206. break 2
  6207. fi
  6208. done
  6209. done
  6210. IFS=$as_save_IFS
  6211. fi
  6212. fi
  6213. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6214. if test -n "$ac_ct_NMEDIT"; then
  6215. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6216. $as_echo "$ac_ct_NMEDIT" >&6; }
  6217. else
  6218. { $as_echo "$as_me:$LINENO: result: no" >&5
  6219. $as_echo "no" >&6; }
  6220. fi
  6221. if test "x$ac_ct_NMEDIT" = x; then
  6222. NMEDIT=":"
  6223. else
  6224. case $cross_compiling:$ac_tool_warned in
  6225. yes:)
  6226. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6227. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6228. ac_tool_warned=yes ;;
  6229. esac
  6230. NMEDIT=$ac_ct_NMEDIT
  6231. fi
  6232. else
  6233. NMEDIT="$ac_cv_prog_NMEDIT"
  6234. fi
  6235. if test -n "$ac_tool_prefix"; then
  6236. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6237. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6238. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6239. $as_echo_n "checking for $ac_word... " >&6; }
  6240. if test "${ac_cv_prog_LIPO+set}" = set; then
  6241. $as_echo_n "(cached) " >&6
  6242. else
  6243. if test -n "$LIPO"; then
  6244. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6245. else
  6246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6247. for as_dir in $PATH
  6248. do
  6249. IFS=$as_save_IFS
  6250. test -z "$as_dir" && as_dir=.
  6251. for ac_exec_ext in '' $ac_executable_extensions; do
  6252. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6253. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6254. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6255. break 2
  6256. fi
  6257. done
  6258. done
  6259. IFS=$as_save_IFS
  6260. fi
  6261. fi
  6262. LIPO=$ac_cv_prog_LIPO
  6263. if test -n "$LIPO"; then
  6264. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6265. $as_echo "$LIPO" >&6; }
  6266. else
  6267. { $as_echo "$as_me:$LINENO: result: no" >&5
  6268. $as_echo "no" >&6; }
  6269. fi
  6270. fi
  6271. if test -z "$ac_cv_prog_LIPO"; then
  6272. ac_ct_LIPO=$LIPO
  6273. # Extract the first word of "lipo", so it can be a program name with args.
  6274. set dummy lipo; ac_word=$2
  6275. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6276. $as_echo_n "checking for $ac_word... " >&6; }
  6277. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6278. $as_echo_n "(cached) " >&6
  6279. else
  6280. if test -n "$ac_ct_LIPO"; then
  6281. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6282. else
  6283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6284. for as_dir in $PATH
  6285. do
  6286. IFS=$as_save_IFS
  6287. test -z "$as_dir" && as_dir=.
  6288. for ac_exec_ext in '' $ac_executable_extensions; do
  6289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6290. ac_cv_prog_ac_ct_LIPO="lipo"
  6291. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6292. break 2
  6293. fi
  6294. done
  6295. done
  6296. IFS=$as_save_IFS
  6297. fi
  6298. fi
  6299. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6300. if test -n "$ac_ct_LIPO"; then
  6301. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6302. $as_echo "$ac_ct_LIPO" >&6; }
  6303. else
  6304. { $as_echo "$as_me:$LINENO: result: no" >&5
  6305. $as_echo "no" >&6; }
  6306. fi
  6307. if test "x$ac_ct_LIPO" = x; then
  6308. LIPO=":"
  6309. else
  6310. case $cross_compiling:$ac_tool_warned in
  6311. yes:)
  6312. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6313. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6314. ac_tool_warned=yes ;;
  6315. esac
  6316. LIPO=$ac_ct_LIPO
  6317. fi
  6318. else
  6319. LIPO="$ac_cv_prog_LIPO"
  6320. fi
  6321. if test -n "$ac_tool_prefix"; then
  6322. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6323. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6324. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6325. $as_echo_n "checking for $ac_word... " >&6; }
  6326. if test "${ac_cv_prog_OTOOL+set}" = set; then
  6327. $as_echo_n "(cached) " >&6
  6328. else
  6329. if test -n "$OTOOL"; then
  6330. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6331. else
  6332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6333. for as_dir in $PATH
  6334. do
  6335. IFS=$as_save_IFS
  6336. test -z "$as_dir" && as_dir=.
  6337. for ac_exec_ext in '' $ac_executable_extensions; do
  6338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6339. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6340. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6341. break 2
  6342. fi
  6343. done
  6344. done
  6345. IFS=$as_save_IFS
  6346. fi
  6347. fi
  6348. OTOOL=$ac_cv_prog_OTOOL
  6349. if test -n "$OTOOL"; then
  6350. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6351. $as_echo "$OTOOL" >&6; }
  6352. else
  6353. { $as_echo "$as_me:$LINENO: result: no" >&5
  6354. $as_echo "no" >&6; }
  6355. fi
  6356. fi
  6357. if test -z "$ac_cv_prog_OTOOL"; then
  6358. ac_ct_OTOOL=$OTOOL
  6359. # Extract the first word of "otool", so it can be a program name with args.
  6360. set dummy otool; ac_word=$2
  6361. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6362. $as_echo_n "checking for $ac_word... " >&6; }
  6363. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6364. $as_echo_n "(cached) " >&6
  6365. else
  6366. if test -n "$ac_ct_OTOOL"; then
  6367. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6368. else
  6369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6370. for as_dir in $PATH
  6371. do
  6372. IFS=$as_save_IFS
  6373. test -z "$as_dir" && as_dir=.
  6374. for ac_exec_ext in '' $ac_executable_extensions; do
  6375. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6376. ac_cv_prog_ac_ct_OTOOL="otool"
  6377. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6378. break 2
  6379. fi
  6380. done
  6381. done
  6382. IFS=$as_save_IFS
  6383. fi
  6384. fi
  6385. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6386. if test -n "$ac_ct_OTOOL"; then
  6387. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6388. $as_echo "$ac_ct_OTOOL" >&6; }
  6389. else
  6390. { $as_echo "$as_me:$LINENO: result: no" >&5
  6391. $as_echo "no" >&6; }
  6392. fi
  6393. if test "x$ac_ct_OTOOL" = x; then
  6394. OTOOL=":"
  6395. else
  6396. case $cross_compiling:$ac_tool_warned in
  6397. yes:)
  6398. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6399. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6400. ac_tool_warned=yes ;;
  6401. esac
  6402. OTOOL=$ac_ct_OTOOL
  6403. fi
  6404. else
  6405. OTOOL="$ac_cv_prog_OTOOL"
  6406. fi
  6407. if test -n "$ac_tool_prefix"; then
  6408. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6409. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6410. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6411. $as_echo_n "checking for $ac_word... " >&6; }
  6412. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. if test -n "$OTOOL64"; then
  6416. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6417. else
  6418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6419. for as_dir in $PATH
  6420. do
  6421. IFS=$as_save_IFS
  6422. test -z "$as_dir" && as_dir=.
  6423. for ac_exec_ext in '' $ac_executable_extensions; do
  6424. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6425. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6426. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6427. break 2
  6428. fi
  6429. done
  6430. done
  6431. IFS=$as_save_IFS
  6432. fi
  6433. fi
  6434. OTOOL64=$ac_cv_prog_OTOOL64
  6435. if test -n "$OTOOL64"; then
  6436. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6437. $as_echo "$OTOOL64" >&6; }
  6438. else
  6439. { $as_echo "$as_me:$LINENO: result: no" >&5
  6440. $as_echo "no" >&6; }
  6441. fi
  6442. fi
  6443. if test -z "$ac_cv_prog_OTOOL64"; then
  6444. ac_ct_OTOOL64=$OTOOL64
  6445. # Extract the first word of "otool64", so it can be a program name with args.
  6446. set dummy otool64; ac_word=$2
  6447. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6448. $as_echo_n "checking for $ac_word... " >&6; }
  6449. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6450. $as_echo_n "(cached) " >&6
  6451. else
  6452. if test -n "$ac_ct_OTOOL64"; then
  6453. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6454. else
  6455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6456. for as_dir in $PATH
  6457. do
  6458. IFS=$as_save_IFS
  6459. test -z "$as_dir" && as_dir=.
  6460. for ac_exec_ext in '' $ac_executable_extensions; do
  6461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6462. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6463. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6464. break 2
  6465. fi
  6466. done
  6467. done
  6468. IFS=$as_save_IFS
  6469. fi
  6470. fi
  6471. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6472. if test -n "$ac_ct_OTOOL64"; then
  6473. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6474. $as_echo "$ac_ct_OTOOL64" >&6; }
  6475. else
  6476. { $as_echo "$as_me:$LINENO: result: no" >&5
  6477. $as_echo "no" >&6; }
  6478. fi
  6479. if test "x$ac_ct_OTOOL64" = x; then
  6480. OTOOL64=":"
  6481. else
  6482. case $cross_compiling:$ac_tool_warned in
  6483. yes:)
  6484. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6485. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6486. ac_tool_warned=yes ;;
  6487. esac
  6488. OTOOL64=$ac_ct_OTOOL64
  6489. fi
  6490. else
  6491. OTOOL64="$ac_cv_prog_OTOOL64"
  6492. fi
  6493. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6494. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6495. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. lt_cv_apple_cc_single_mod=no
  6499. if test -z "${LT_MULTI_MODULE}"; then
  6500. # By default we will add the -single_module flag. You can override
  6501. # by either setting the environment variable LT_MULTI_MODULE
  6502. # non-empty at configure time, or by adding -multi_module to the
  6503. # link flags.
  6504. rm -rf libconftest.dylib*
  6505. echo "int foo(void){return 1;}" > conftest.c
  6506. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6507. -dynamiclib -Wl,-single_module conftest.c" >&5
  6508. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6509. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6510. _lt_result=$?
  6511. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6512. lt_cv_apple_cc_single_mod=yes
  6513. else
  6514. cat conftest.err >&5
  6515. fi
  6516. rm -rf libconftest.dylib*
  6517. rm -f conftest.*
  6518. fi
  6519. fi
  6520. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6521. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6522. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6523. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6524. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6525. $as_echo_n "(cached) " >&6
  6526. else
  6527. lt_cv_ld_exported_symbols_list=no
  6528. save_LDFLAGS=$LDFLAGS
  6529. echo "_main" > conftest.sym
  6530. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6531. cat >conftest.$ac_ext <<_ACEOF
  6532. /* confdefs.h. */
  6533. _ACEOF
  6534. cat confdefs.h >>conftest.$ac_ext
  6535. cat >>conftest.$ac_ext <<_ACEOF
  6536. /* end confdefs.h. */
  6537. int
  6538. main ()
  6539. {
  6540. ;
  6541. return 0;
  6542. }
  6543. _ACEOF
  6544. rm -f conftest.$ac_objext conftest$ac_exeext
  6545. if { (ac_try="$ac_link"
  6546. case "(($ac_try" in
  6547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6548. *) ac_try_echo=$ac_try;;
  6549. esac
  6550. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6551. $as_echo "$ac_try_echo") >&5
  6552. (eval "$ac_link") 2>conftest.er1
  6553. ac_status=$?
  6554. grep -v '^ *+' conftest.er1 >conftest.err
  6555. rm -f conftest.er1
  6556. cat conftest.err >&5
  6557. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6558. (exit $ac_status); } && {
  6559. test -z "$ac_c_werror_flag" ||
  6560. test ! -s conftest.err
  6561. } && test -s conftest$ac_exeext && {
  6562. test "$cross_compiling" = yes ||
  6563. $as_test_x conftest$ac_exeext
  6564. }; then
  6565. lt_cv_ld_exported_symbols_list=yes
  6566. else
  6567. $as_echo "$as_me: failed program was:" >&5
  6568. sed 's/^/| /' conftest.$ac_ext >&5
  6569. lt_cv_ld_exported_symbols_list=no
  6570. fi
  6571. rm -rf conftest.dSYM
  6572. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6573. conftest$ac_exeext conftest.$ac_ext
  6574. LDFLAGS="$save_LDFLAGS"
  6575. fi
  6576. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6577. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6578. case $host_os in
  6579. rhapsody* | darwin1.[012])
  6580. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6581. darwin1.*)
  6582. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6583. darwin*) # darwin 5.x on
  6584. # if running on 10.5 or later, the deployment target defaults
  6585. # to the OS version, if on x86, and 10.4, the deployment
  6586. # target defaults to 10.4. Don't you love it?
  6587. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6588. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6589. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6590. 10.[012]*)
  6591. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6592. 10.*)
  6593. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6594. esac
  6595. ;;
  6596. esac
  6597. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6598. _lt_dar_single_mod='$single_module'
  6599. fi
  6600. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6601. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6602. else
  6603. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6604. fi
  6605. if test "$DSYMUTIL" != ":"; then
  6606. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6607. else
  6608. _lt_dsymutil=
  6609. fi
  6610. ;;
  6611. esac
  6612. ac_ext=c
  6613. ac_cpp='$CPP $CPPFLAGS'
  6614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6617. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6618. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6619. # On Suns, sometimes $CPP names a directory.
  6620. if test -n "$CPP" && test -d "$CPP"; then
  6621. CPP=
  6622. fi
  6623. if test -z "$CPP"; then
  6624. if test "${ac_cv_prog_CPP+set}" = set; then
  6625. $as_echo_n "(cached) " >&6
  6626. else
  6627. # Double quotes because CPP needs to be expanded
  6628. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6629. do
  6630. ac_preproc_ok=false
  6631. for ac_c_preproc_warn_flag in '' yes
  6632. do
  6633. # Use a header file that comes with gcc, so configuring glibc
  6634. # with a fresh cross-compiler works.
  6635. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6636. # <limits.h> exists even on freestanding compilers.
  6637. # On the NeXT, cc -E runs the code through the compiler's parser,
  6638. # not just through cpp. "Syntax error" is here to catch this case.
  6639. cat >conftest.$ac_ext <<_ACEOF
  6640. /* confdefs.h. */
  6641. _ACEOF
  6642. cat confdefs.h >>conftest.$ac_ext
  6643. cat >>conftest.$ac_ext <<_ACEOF
  6644. /* end confdefs.h. */
  6645. #ifdef __STDC__
  6646. # include <limits.h>
  6647. #else
  6648. # include <assert.h>
  6649. #endif
  6650. Syntax error
  6651. _ACEOF
  6652. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6653. case "(($ac_try" in
  6654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6655. *) ac_try_echo=$ac_try;;
  6656. esac
  6657. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6658. $as_echo "$ac_try_echo") >&5
  6659. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6660. ac_status=$?
  6661. grep -v '^ *+' conftest.er1 >conftest.err
  6662. rm -f conftest.er1
  6663. cat conftest.err >&5
  6664. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6665. (exit $ac_status); } >/dev/null && {
  6666. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6667. test ! -s conftest.err
  6668. }; then
  6669. :
  6670. else
  6671. $as_echo "$as_me: failed program was:" >&5
  6672. sed 's/^/| /' conftest.$ac_ext >&5
  6673. # Broken: fails on valid input.
  6674. continue
  6675. fi
  6676. rm -f conftest.err conftest.$ac_ext
  6677. # OK, works on sane cases. Now check whether nonexistent headers
  6678. # can be detected and how.
  6679. cat >conftest.$ac_ext <<_ACEOF
  6680. /* confdefs.h. */
  6681. _ACEOF
  6682. cat confdefs.h >>conftest.$ac_ext
  6683. cat >>conftest.$ac_ext <<_ACEOF
  6684. /* end confdefs.h. */
  6685. #include <ac_nonexistent.h>
  6686. _ACEOF
  6687. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6688. case "(($ac_try" in
  6689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6690. *) ac_try_echo=$ac_try;;
  6691. esac
  6692. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6693. $as_echo "$ac_try_echo") >&5
  6694. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6695. ac_status=$?
  6696. grep -v '^ *+' conftest.er1 >conftest.err
  6697. rm -f conftest.er1
  6698. cat conftest.err >&5
  6699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6700. (exit $ac_status); } >/dev/null && {
  6701. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6702. test ! -s conftest.err
  6703. }; then
  6704. # Broken: success on invalid input.
  6705. continue
  6706. else
  6707. $as_echo "$as_me: failed program was:" >&5
  6708. sed 's/^/| /' conftest.$ac_ext >&5
  6709. # Passes both tests.
  6710. ac_preproc_ok=:
  6711. break
  6712. fi
  6713. rm -f conftest.err conftest.$ac_ext
  6714. done
  6715. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6716. rm -f conftest.err conftest.$ac_ext
  6717. if $ac_preproc_ok; then
  6718. break
  6719. fi
  6720. done
  6721. ac_cv_prog_CPP=$CPP
  6722. fi
  6723. CPP=$ac_cv_prog_CPP
  6724. else
  6725. ac_cv_prog_CPP=$CPP
  6726. fi
  6727. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6728. $as_echo "$CPP" >&6; }
  6729. ac_preproc_ok=false
  6730. for ac_c_preproc_warn_flag in '' yes
  6731. do
  6732. # Use a header file that comes with gcc, so configuring glibc
  6733. # with a fresh cross-compiler works.
  6734. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6735. # <limits.h> exists even on freestanding compilers.
  6736. # On the NeXT, cc -E runs the code through the compiler's parser,
  6737. # not just through cpp. "Syntax error" is here to catch this case.
  6738. cat >conftest.$ac_ext <<_ACEOF
  6739. /* confdefs.h. */
  6740. _ACEOF
  6741. cat confdefs.h >>conftest.$ac_ext
  6742. cat >>conftest.$ac_ext <<_ACEOF
  6743. /* end confdefs.h. */
  6744. #ifdef __STDC__
  6745. # include <limits.h>
  6746. #else
  6747. # include <assert.h>
  6748. #endif
  6749. Syntax error
  6750. _ACEOF
  6751. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6752. case "(($ac_try" in
  6753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6754. *) ac_try_echo=$ac_try;;
  6755. esac
  6756. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6757. $as_echo "$ac_try_echo") >&5
  6758. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6759. ac_status=$?
  6760. grep -v '^ *+' conftest.er1 >conftest.err
  6761. rm -f conftest.er1
  6762. cat conftest.err >&5
  6763. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6764. (exit $ac_status); } >/dev/null && {
  6765. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6766. test ! -s conftest.err
  6767. }; then
  6768. :
  6769. else
  6770. $as_echo "$as_me: failed program was:" >&5
  6771. sed 's/^/| /' conftest.$ac_ext >&5
  6772. # Broken: fails on valid input.
  6773. continue
  6774. fi
  6775. rm -f conftest.err conftest.$ac_ext
  6776. # OK, works on sane cases. Now check whether nonexistent headers
  6777. # can be detected and how.
  6778. cat >conftest.$ac_ext <<_ACEOF
  6779. /* confdefs.h. */
  6780. _ACEOF
  6781. cat confdefs.h >>conftest.$ac_ext
  6782. cat >>conftest.$ac_ext <<_ACEOF
  6783. /* end confdefs.h. */
  6784. #include <ac_nonexistent.h>
  6785. _ACEOF
  6786. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6787. case "(($ac_try" in
  6788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6789. *) ac_try_echo=$ac_try;;
  6790. esac
  6791. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6792. $as_echo "$ac_try_echo") >&5
  6793. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6794. ac_status=$?
  6795. grep -v '^ *+' conftest.er1 >conftest.err
  6796. rm -f conftest.er1
  6797. cat conftest.err >&5
  6798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6799. (exit $ac_status); } >/dev/null && {
  6800. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6801. test ! -s conftest.err
  6802. }; then
  6803. # Broken: success on invalid input.
  6804. continue
  6805. else
  6806. $as_echo "$as_me: failed program was:" >&5
  6807. sed 's/^/| /' conftest.$ac_ext >&5
  6808. # Passes both tests.
  6809. ac_preproc_ok=:
  6810. break
  6811. fi
  6812. rm -f conftest.err conftest.$ac_ext
  6813. done
  6814. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6815. rm -f conftest.err conftest.$ac_ext
  6816. if $ac_preproc_ok; then
  6817. :
  6818. else
  6819. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6820. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6821. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6822. See \`config.log' for more details." >&5
  6823. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6824. See \`config.log' for more details." >&2;}
  6825. { (exit 1); exit 1; }; }; }
  6826. fi
  6827. ac_ext=c
  6828. ac_cpp='$CPP $CPPFLAGS'
  6829. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6830. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6831. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6832. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6833. $as_echo_n "checking for ANSI C header files... " >&6; }
  6834. if test "${ac_cv_header_stdc+set}" = set; then
  6835. $as_echo_n "(cached) " >&6
  6836. else
  6837. cat >conftest.$ac_ext <<_ACEOF
  6838. /* confdefs.h. */
  6839. _ACEOF
  6840. cat confdefs.h >>conftest.$ac_ext
  6841. cat >>conftest.$ac_ext <<_ACEOF
  6842. /* end confdefs.h. */
  6843. #include <stdlib.h>
  6844. #include <stdarg.h>
  6845. #include <string.h>
  6846. #include <float.h>
  6847. int
  6848. main ()
  6849. {
  6850. ;
  6851. return 0;
  6852. }
  6853. _ACEOF
  6854. rm -f conftest.$ac_objext
  6855. if { (ac_try="$ac_compile"
  6856. case "(($ac_try" in
  6857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6858. *) ac_try_echo=$ac_try;;
  6859. esac
  6860. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6861. $as_echo "$ac_try_echo") >&5
  6862. (eval "$ac_compile") 2>conftest.er1
  6863. ac_status=$?
  6864. grep -v '^ *+' conftest.er1 >conftest.err
  6865. rm -f conftest.er1
  6866. cat conftest.err >&5
  6867. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6868. (exit $ac_status); } && {
  6869. test -z "$ac_c_werror_flag" ||
  6870. test ! -s conftest.err
  6871. } && test -s conftest.$ac_objext; then
  6872. ac_cv_header_stdc=yes
  6873. else
  6874. $as_echo "$as_me: failed program was:" >&5
  6875. sed 's/^/| /' conftest.$ac_ext >&5
  6876. ac_cv_header_stdc=no
  6877. fi
  6878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6879. if test $ac_cv_header_stdc = yes; then
  6880. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6881. cat >conftest.$ac_ext <<_ACEOF
  6882. /* confdefs.h. */
  6883. _ACEOF
  6884. cat confdefs.h >>conftest.$ac_ext
  6885. cat >>conftest.$ac_ext <<_ACEOF
  6886. /* end confdefs.h. */
  6887. #include <string.h>
  6888. _ACEOF
  6889. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6890. $EGREP "memchr" >/dev/null 2>&1; then
  6891. :
  6892. else
  6893. ac_cv_header_stdc=no
  6894. fi
  6895. rm -f conftest*
  6896. fi
  6897. if test $ac_cv_header_stdc = yes; then
  6898. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6899. cat >conftest.$ac_ext <<_ACEOF
  6900. /* confdefs.h. */
  6901. _ACEOF
  6902. cat confdefs.h >>conftest.$ac_ext
  6903. cat >>conftest.$ac_ext <<_ACEOF
  6904. /* end confdefs.h. */
  6905. #include <stdlib.h>
  6906. _ACEOF
  6907. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6908. $EGREP "free" >/dev/null 2>&1; then
  6909. :
  6910. else
  6911. ac_cv_header_stdc=no
  6912. fi
  6913. rm -f conftest*
  6914. fi
  6915. if test $ac_cv_header_stdc = yes; then
  6916. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6917. if test "$cross_compiling" = yes; then
  6918. :
  6919. else
  6920. cat >conftest.$ac_ext <<_ACEOF
  6921. /* confdefs.h. */
  6922. _ACEOF
  6923. cat confdefs.h >>conftest.$ac_ext
  6924. cat >>conftest.$ac_ext <<_ACEOF
  6925. /* end confdefs.h. */
  6926. #include <ctype.h>
  6927. #include <stdlib.h>
  6928. #if ((' ' & 0x0FF) == 0x020)
  6929. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6930. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6931. #else
  6932. # define ISLOWER(c) \
  6933. (('a' <= (c) && (c) <= 'i') \
  6934. || ('j' <= (c) && (c) <= 'r') \
  6935. || ('s' <= (c) && (c) <= 'z'))
  6936. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6937. #endif
  6938. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6939. int
  6940. main ()
  6941. {
  6942. int i;
  6943. for (i = 0; i < 256; i++)
  6944. if (XOR (islower (i), ISLOWER (i))
  6945. || toupper (i) != TOUPPER (i))
  6946. return 2;
  6947. return 0;
  6948. }
  6949. _ACEOF
  6950. rm -f conftest$ac_exeext
  6951. if { (ac_try="$ac_link"
  6952. case "(($ac_try" in
  6953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6954. *) ac_try_echo=$ac_try;;
  6955. esac
  6956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6957. $as_echo "$ac_try_echo") >&5
  6958. (eval "$ac_link") 2>&5
  6959. ac_status=$?
  6960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6961. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6962. { (case "(($ac_try" in
  6963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6964. *) ac_try_echo=$ac_try;;
  6965. esac
  6966. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6967. $as_echo "$ac_try_echo") >&5
  6968. (eval "$ac_try") 2>&5
  6969. ac_status=$?
  6970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6971. (exit $ac_status); }; }; then
  6972. :
  6973. else
  6974. $as_echo "$as_me: program exited with status $ac_status" >&5
  6975. $as_echo "$as_me: failed program was:" >&5
  6976. sed 's/^/| /' conftest.$ac_ext >&5
  6977. ( exit $ac_status )
  6978. ac_cv_header_stdc=no
  6979. fi
  6980. rm -rf conftest.dSYM
  6981. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6982. fi
  6983. fi
  6984. fi
  6985. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6986. $as_echo "$ac_cv_header_stdc" >&6; }
  6987. if test $ac_cv_header_stdc = yes; then
  6988. cat >>confdefs.h <<\_ACEOF
  6989. #define STDC_HEADERS 1
  6990. _ACEOF
  6991. fi
  6992. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6993. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6994. inttypes.h stdint.h unistd.h
  6995. do
  6996. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6997. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6998. $as_echo_n "checking for $ac_header... " >&6; }
  6999. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7000. $as_echo_n "(cached) " >&6
  7001. else
  7002. cat >conftest.$ac_ext <<_ACEOF
  7003. /* confdefs.h. */
  7004. _ACEOF
  7005. cat confdefs.h >>conftest.$ac_ext
  7006. cat >>conftest.$ac_ext <<_ACEOF
  7007. /* end confdefs.h. */
  7008. $ac_includes_default
  7009. #include <$ac_header>
  7010. _ACEOF
  7011. rm -f conftest.$ac_objext
  7012. if { (ac_try="$ac_compile"
  7013. case "(($ac_try" in
  7014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7015. *) ac_try_echo=$ac_try;;
  7016. esac
  7017. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7018. $as_echo "$ac_try_echo") >&5
  7019. (eval "$ac_compile") 2>conftest.er1
  7020. ac_status=$?
  7021. grep -v '^ *+' conftest.er1 >conftest.err
  7022. rm -f conftest.er1
  7023. cat conftest.err >&5
  7024. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7025. (exit $ac_status); } && {
  7026. test -z "$ac_c_werror_flag" ||
  7027. test ! -s conftest.err
  7028. } && test -s conftest.$ac_objext; then
  7029. eval "$as_ac_Header=yes"
  7030. else
  7031. $as_echo "$as_me: failed program was:" >&5
  7032. sed 's/^/| /' conftest.$ac_ext >&5
  7033. eval "$as_ac_Header=no"
  7034. fi
  7035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7036. fi
  7037. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7038. $as_echo "$as_val"'`
  7039. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7040. $as_echo "$ac_res" >&6; }
  7041. as_val=`eval 'as_val=${'$as_ac_Header'}
  7042. $as_echo "$as_val"'`
  7043. if test "x$as_val" = x""yes; then
  7044. cat >>confdefs.h <<_ACEOF
  7045. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7046. _ACEOF
  7047. fi
  7048. done
  7049. for ac_header in dlfcn.h
  7050. do
  7051. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7052. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7053. $as_echo_n "checking for $ac_header... " >&6; }
  7054. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7055. $as_echo_n "(cached) " >&6
  7056. else
  7057. cat >conftest.$ac_ext <<_ACEOF
  7058. /* confdefs.h. */
  7059. _ACEOF
  7060. cat confdefs.h >>conftest.$ac_ext
  7061. cat >>conftest.$ac_ext <<_ACEOF
  7062. /* end confdefs.h. */
  7063. $ac_includes_default
  7064. #include <$ac_header>
  7065. _ACEOF
  7066. rm -f conftest.$ac_objext
  7067. if { (ac_try="$ac_compile"
  7068. case "(($ac_try" in
  7069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7070. *) ac_try_echo=$ac_try;;
  7071. esac
  7072. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7073. $as_echo "$ac_try_echo") >&5
  7074. (eval "$ac_compile") 2>conftest.er1
  7075. ac_status=$?
  7076. grep -v '^ *+' conftest.er1 >conftest.err
  7077. rm -f conftest.er1
  7078. cat conftest.err >&5
  7079. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7080. (exit $ac_status); } && {
  7081. test -z "$ac_c_werror_flag" ||
  7082. test ! -s conftest.err
  7083. } && test -s conftest.$ac_objext; then
  7084. eval "$as_ac_Header=yes"
  7085. else
  7086. $as_echo "$as_me: failed program was:" >&5
  7087. sed 's/^/| /' conftest.$ac_ext >&5
  7088. eval "$as_ac_Header=no"
  7089. fi
  7090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7091. fi
  7092. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7093. $as_echo "$as_val"'`
  7094. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7095. $as_echo "$ac_res" >&6; }
  7096. as_val=`eval 'as_val=${'$as_ac_Header'}
  7097. $as_echo "$as_val"'`
  7098. if test "x$as_val" = x""yes; then
  7099. cat >>confdefs.h <<_ACEOF
  7100. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7101. _ACEOF
  7102. fi
  7103. done
  7104. ac_ext=cpp
  7105. ac_cpp='$CXXCPP $CPPFLAGS'
  7106. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7107. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7108. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7109. if test -z "$CXX"; then
  7110. if test -n "$CCC"; then
  7111. CXX=$CCC
  7112. else
  7113. if test -n "$ac_tool_prefix"; then
  7114. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7115. do
  7116. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7117. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7118. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7119. $as_echo_n "checking for $ac_word... " >&6; }
  7120. if test "${ac_cv_prog_CXX+set}" = set; then
  7121. $as_echo_n "(cached) " >&6
  7122. else
  7123. if test -n "$CXX"; then
  7124. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7125. else
  7126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7127. for as_dir in $PATH
  7128. do
  7129. IFS=$as_save_IFS
  7130. test -z "$as_dir" && as_dir=.
  7131. for ac_exec_ext in '' $ac_executable_extensions; do
  7132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7133. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7134. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7135. break 2
  7136. fi
  7137. done
  7138. done
  7139. IFS=$as_save_IFS
  7140. fi
  7141. fi
  7142. CXX=$ac_cv_prog_CXX
  7143. if test -n "$CXX"; then
  7144. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  7145. $as_echo "$CXX" >&6; }
  7146. else
  7147. { $as_echo "$as_me:$LINENO: result: no" >&5
  7148. $as_echo "no" >&6; }
  7149. fi
  7150. test -n "$CXX" && break
  7151. done
  7152. fi
  7153. if test -z "$CXX"; then
  7154. ac_ct_CXX=$CXX
  7155. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7156. do
  7157. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7158. set dummy $ac_prog; ac_word=$2
  7159. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7160. $as_echo_n "checking for $ac_word... " >&6; }
  7161. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  7162. $as_echo_n "(cached) " >&6
  7163. else
  7164. if test -n "$ac_ct_CXX"; then
  7165. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7166. else
  7167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7168. for as_dir in $PATH
  7169. do
  7170. IFS=$as_save_IFS
  7171. test -z "$as_dir" && as_dir=.
  7172. for ac_exec_ext in '' $ac_executable_extensions; do
  7173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7174. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7175. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7176. break 2
  7177. fi
  7178. done
  7179. done
  7180. IFS=$as_save_IFS
  7181. fi
  7182. fi
  7183. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7184. if test -n "$ac_ct_CXX"; then
  7185. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  7186. $as_echo "$ac_ct_CXX" >&6; }
  7187. else
  7188. { $as_echo "$as_me:$LINENO: result: no" >&5
  7189. $as_echo "no" >&6; }
  7190. fi
  7191. test -n "$ac_ct_CXX" && break
  7192. done
  7193. if test "x$ac_ct_CXX" = x; then
  7194. CXX="g++"
  7195. else
  7196. case $cross_compiling:$ac_tool_warned in
  7197. yes:)
  7198. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7199. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7200. ac_tool_warned=yes ;;
  7201. esac
  7202. CXX=$ac_ct_CXX
  7203. fi
  7204. fi
  7205. fi
  7206. fi
  7207. # Provide some information about the compiler.
  7208. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  7209. set X $ac_compile
  7210. ac_compiler=$2
  7211. { (ac_try="$ac_compiler --version >&5"
  7212. case "(($ac_try" in
  7213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7214. *) ac_try_echo=$ac_try;;
  7215. esac
  7216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7217. $as_echo "$ac_try_echo") >&5
  7218. (eval "$ac_compiler --version >&5") 2>&5
  7219. ac_status=$?
  7220. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7221. (exit $ac_status); }
  7222. { (ac_try="$ac_compiler -v >&5"
  7223. case "(($ac_try" in
  7224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7225. *) ac_try_echo=$ac_try;;
  7226. esac
  7227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7228. $as_echo "$ac_try_echo") >&5
  7229. (eval "$ac_compiler -v >&5") 2>&5
  7230. ac_status=$?
  7231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7232. (exit $ac_status); }
  7233. { (ac_try="$ac_compiler -V >&5"
  7234. case "(($ac_try" in
  7235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7236. *) ac_try_echo=$ac_try;;
  7237. esac
  7238. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7239. $as_echo "$ac_try_echo") >&5
  7240. (eval "$ac_compiler -V >&5") 2>&5
  7241. ac_status=$?
  7242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7243. (exit $ac_status); }
  7244. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  7245. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7246. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  7247. $as_echo_n "(cached) " >&6
  7248. else
  7249. cat >conftest.$ac_ext <<_ACEOF
  7250. /* confdefs.h. */
  7251. _ACEOF
  7252. cat confdefs.h >>conftest.$ac_ext
  7253. cat >>conftest.$ac_ext <<_ACEOF
  7254. /* end confdefs.h. */
  7255. int
  7256. main ()
  7257. {
  7258. #ifndef __GNUC__
  7259. choke me
  7260. #endif
  7261. ;
  7262. return 0;
  7263. }
  7264. _ACEOF
  7265. rm -f conftest.$ac_objext
  7266. if { (ac_try="$ac_compile"
  7267. case "(($ac_try" in
  7268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7269. *) ac_try_echo=$ac_try;;
  7270. esac
  7271. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7272. $as_echo "$ac_try_echo") >&5
  7273. (eval "$ac_compile") 2>conftest.er1
  7274. ac_status=$?
  7275. grep -v '^ *+' conftest.er1 >conftest.err
  7276. rm -f conftest.er1
  7277. cat conftest.err >&5
  7278. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7279. (exit $ac_status); } && {
  7280. test -z "$ac_cxx_werror_flag" ||
  7281. test ! -s conftest.err
  7282. } && test -s conftest.$ac_objext; then
  7283. ac_compiler_gnu=yes
  7284. else
  7285. $as_echo "$as_me: failed program was:" >&5
  7286. sed 's/^/| /' conftest.$ac_ext >&5
  7287. ac_compiler_gnu=no
  7288. fi
  7289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7290. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7291. fi
  7292. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  7293. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7294. if test $ac_compiler_gnu = yes; then
  7295. GXX=yes
  7296. else
  7297. GXX=
  7298. fi
  7299. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7300. ac_save_CXXFLAGS=$CXXFLAGS
  7301. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  7302. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7303. if test "${ac_cv_prog_cxx_g+set}" = set; then
  7304. $as_echo_n "(cached) " >&6
  7305. else
  7306. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7307. ac_cxx_werror_flag=yes
  7308. ac_cv_prog_cxx_g=no
  7309. CXXFLAGS="-g"
  7310. cat >conftest.$ac_ext <<_ACEOF
  7311. /* confdefs.h. */
  7312. _ACEOF
  7313. cat confdefs.h >>conftest.$ac_ext
  7314. cat >>conftest.$ac_ext <<_ACEOF
  7315. /* end confdefs.h. */
  7316. int
  7317. main ()
  7318. {
  7319. ;
  7320. return 0;
  7321. }
  7322. _ACEOF
  7323. rm -f conftest.$ac_objext
  7324. if { (ac_try="$ac_compile"
  7325. case "(($ac_try" in
  7326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7327. *) ac_try_echo=$ac_try;;
  7328. esac
  7329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7330. $as_echo "$ac_try_echo") >&5
  7331. (eval "$ac_compile") 2>conftest.er1
  7332. ac_status=$?
  7333. grep -v '^ *+' conftest.er1 >conftest.err
  7334. rm -f conftest.er1
  7335. cat conftest.err >&5
  7336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); } && {
  7338. test -z "$ac_cxx_werror_flag" ||
  7339. test ! -s conftest.err
  7340. } && test -s conftest.$ac_objext; then
  7341. ac_cv_prog_cxx_g=yes
  7342. else
  7343. $as_echo "$as_me: failed program was:" >&5
  7344. sed 's/^/| /' conftest.$ac_ext >&5
  7345. CXXFLAGS=""
  7346. cat >conftest.$ac_ext <<_ACEOF
  7347. /* confdefs.h. */
  7348. _ACEOF
  7349. cat confdefs.h >>conftest.$ac_ext
  7350. cat >>conftest.$ac_ext <<_ACEOF
  7351. /* end confdefs.h. */
  7352. int
  7353. main ()
  7354. {
  7355. ;
  7356. return 0;
  7357. }
  7358. _ACEOF
  7359. rm -f conftest.$ac_objext
  7360. if { (ac_try="$ac_compile"
  7361. case "(($ac_try" in
  7362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7363. *) ac_try_echo=$ac_try;;
  7364. esac
  7365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7366. $as_echo "$ac_try_echo") >&5
  7367. (eval "$ac_compile") 2>conftest.er1
  7368. ac_status=$?
  7369. grep -v '^ *+' conftest.er1 >conftest.err
  7370. rm -f conftest.er1
  7371. cat conftest.err >&5
  7372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7373. (exit $ac_status); } && {
  7374. test -z "$ac_cxx_werror_flag" ||
  7375. test ! -s conftest.err
  7376. } && test -s conftest.$ac_objext; then
  7377. :
  7378. else
  7379. $as_echo "$as_me: failed program was:" >&5
  7380. sed 's/^/| /' conftest.$ac_ext >&5
  7381. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7382. CXXFLAGS="-g"
  7383. cat >conftest.$ac_ext <<_ACEOF
  7384. /* confdefs.h. */
  7385. _ACEOF
  7386. cat confdefs.h >>conftest.$ac_ext
  7387. cat >>conftest.$ac_ext <<_ACEOF
  7388. /* end confdefs.h. */
  7389. int
  7390. main ()
  7391. {
  7392. ;
  7393. return 0;
  7394. }
  7395. _ACEOF
  7396. rm -f conftest.$ac_objext
  7397. if { (ac_try="$ac_compile"
  7398. case "(($ac_try" in
  7399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7400. *) ac_try_echo=$ac_try;;
  7401. esac
  7402. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7403. $as_echo "$ac_try_echo") >&5
  7404. (eval "$ac_compile") 2>conftest.er1
  7405. ac_status=$?
  7406. grep -v '^ *+' conftest.er1 >conftest.err
  7407. rm -f conftest.er1
  7408. cat conftest.err >&5
  7409. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7410. (exit $ac_status); } && {
  7411. test -z "$ac_cxx_werror_flag" ||
  7412. test ! -s conftest.err
  7413. } && test -s conftest.$ac_objext; then
  7414. ac_cv_prog_cxx_g=yes
  7415. else
  7416. $as_echo "$as_me: failed program was:" >&5
  7417. sed 's/^/| /' conftest.$ac_ext >&5
  7418. fi
  7419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7420. fi
  7421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7422. fi
  7423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7424. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7425. fi
  7426. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  7427. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7428. if test "$ac_test_CXXFLAGS" = set; then
  7429. CXXFLAGS=$ac_save_CXXFLAGS
  7430. elif test $ac_cv_prog_cxx_g = yes; then
  7431. if test "$GXX" = yes; then
  7432. CXXFLAGS="-g -O2"
  7433. else
  7434. CXXFLAGS="-g"
  7435. fi
  7436. else
  7437. if test "$GXX" = yes; then
  7438. CXXFLAGS="-O2"
  7439. else
  7440. CXXFLAGS=
  7441. fi
  7442. fi
  7443. ac_ext=c
  7444. ac_cpp='$CPP $CPPFLAGS'
  7445. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7446. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7447. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7448. depcc="$CXX" am_compiler_list=
  7449. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  7450. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7451. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  7452. $as_echo_n "(cached) " >&6
  7453. else
  7454. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7455. # We make a subdir and do the tests there. Otherwise we can end up
  7456. # making bogus files that we don't know about and never remove. For
  7457. # instance it was reported that on HP-UX the gcc test will end up
  7458. # making a dummy file named `D' -- because `-MD' means `put the output
  7459. # in D'.
  7460. mkdir conftest.dir
  7461. # Copy depcomp to subdir because otherwise we won't find it if we're
  7462. # using a relative directory.
  7463. cp "$am_depcomp" conftest.dir
  7464. cd conftest.dir
  7465. # We will build objects and dependencies in a subdirectory because
  7466. # it helps to detect inapplicable dependency modes. For instance
  7467. # both Tru64's cc and ICC support -MD to output dependencies as a
  7468. # side effect of compilation, but ICC will put the dependencies in
  7469. # the current directory while Tru64 will put them in the object
  7470. # directory.
  7471. mkdir sub
  7472. am_cv_CXX_dependencies_compiler_type=none
  7473. if test "$am_compiler_list" = ""; then
  7474. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7475. fi
  7476. am__universal=false
  7477. case " $depcc " in #(
  7478. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7479. esac
  7480. for depmode in $am_compiler_list; do
  7481. # Setup a source with many dependencies, because some compilers
  7482. # like to wrap large dependency lists on column 80 (with \), and
  7483. # we should not choose a depcomp mode which is confused by this.
  7484. #
  7485. # We need to recreate these files for each test, as the compiler may
  7486. # overwrite some of them when testing with obscure command lines.
  7487. # This happens at least with the AIX C compiler.
  7488. : > sub/conftest.c
  7489. for i in 1 2 3 4 5 6; do
  7490. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7491. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7492. # Solaris 8's {/usr,}/bin/sh.
  7493. touch sub/conftst$i.h
  7494. done
  7495. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7496. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7497. # mode. It turns out that the SunPro C++ compiler does not properly
  7498. # handle `-M -o', and we need to detect this. Also, some Intel
  7499. # versions had trouble with output in subdirs
  7500. am__obj=sub/conftest.${OBJEXT-o}
  7501. am__minus_obj="-o $am__obj"
  7502. case $depmode in
  7503. gcc)
  7504. # This depmode causes a compiler race in universal mode.
  7505. test "$am__universal" = false || continue
  7506. ;;
  7507. nosideeffect)
  7508. # after this tag, mechanisms are not by side-effect, so they'll
  7509. # only be used when explicitly requested
  7510. if test "x$enable_dependency_tracking" = xyes; then
  7511. continue
  7512. else
  7513. break
  7514. fi
  7515. ;;
  7516. msvisualcpp | msvcmsys)
  7517. # This compiler won't grok `-c -o', but also, the minuso test has
  7518. # not run yet. These depmodes are late enough in the game, and
  7519. # so weak that their functioning should not be impacted.
  7520. am__obj=conftest.${OBJEXT-o}
  7521. am__minus_obj=
  7522. ;;
  7523. none) break ;;
  7524. esac
  7525. if depmode=$depmode \
  7526. source=sub/conftest.c object=$am__obj \
  7527. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7528. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7529. >/dev/null 2>conftest.err &&
  7530. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7531. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7532. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7533. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7534. # icc doesn't choke on unknown options, it will just issue warnings
  7535. # or remarks (even with -Werror). So we grep stderr for any message
  7536. # that says an option was ignored or not supported.
  7537. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7538. # icc: Command line warning: ignoring option '-M'; no argument required
  7539. # The diagnosis changed in icc 8.0:
  7540. # icc: Command line remark: option '-MP' not supported
  7541. if (grep 'ignoring option' conftest.err ||
  7542. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7543. am_cv_CXX_dependencies_compiler_type=$depmode
  7544. break
  7545. fi
  7546. fi
  7547. done
  7548. cd ..
  7549. rm -rf conftest.dir
  7550. else
  7551. am_cv_CXX_dependencies_compiler_type=none
  7552. fi
  7553. fi
  7554. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7555. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7556. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7557. if
  7558. test "x$enable_dependency_tracking" != xno \
  7559. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7560. am__fastdepCXX_TRUE=
  7561. am__fastdepCXX_FALSE='#'
  7562. else
  7563. am__fastdepCXX_TRUE='#'
  7564. am__fastdepCXX_FALSE=
  7565. fi
  7566. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7567. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7568. (test "X$CXX" != "Xg++"))) ; then
  7569. ac_ext=cpp
  7570. ac_cpp='$CXXCPP $CPPFLAGS'
  7571. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7572. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7573. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7574. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  7575. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7576. if test -z "$CXXCPP"; then
  7577. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  7578. $as_echo_n "(cached) " >&6
  7579. else
  7580. # Double quotes because CXXCPP needs to be expanded
  7581. for CXXCPP in "$CXX -E" "/lib/cpp"
  7582. do
  7583. ac_preproc_ok=false
  7584. for ac_cxx_preproc_warn_flag in '' yes
  7585. do
  7586. # Use a header file that comes with gcc, so configuring glibc
  7587. # with a fresh cross-compiler works.
  7588. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7589. # <limits.h> exists even on freestanding compilers.
  7590. # On the NeXT, cc -E runs the code through the compiler's parser,
  7591. # not just through cpp. "Syntax error" is here to catch this case.
  7592. cat >conftest.$ac_ext <<_ACEOF
  7593. /* confdefs.h. */
  7594. _ACEOF
  7595. cat confdefs.h >>conftest.$ac_ext
  7596. cat >>conftest.$ac_ext <<_ACEOF
  7597. /* end confdefs.h. */
  7598. #ifdef __STDC__
  7599. # include <limits.h>
  7600. #else
  7601. # include <assert.h>
  7602. #endif
  7603. Syntax error
  7604. _ACEOF
  7605. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7606. case "(($ac_try" in
  7607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7608. *) ac_try_echo=$ac_try;;
  7609. esac
  7610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7611. $as_echo "$ac_try_echo") >&5
  7612. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7613. ac_status=$?
  7614. grep -v '^ *+' conftest.er1 >conftest.err
  7615. rm -f conftest.er1
  7616. cat conftest.err >&5
  7617. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7618. (exit $ac_status); } >/dev/null && {
  7619. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7620. test ! -s conftest.err
  7621. }; then
  7622. :
  7623. else
  7624. $as_echo "$as_me: failed program was:" >&5
  7625. sed 's/^/| /' conftest.$ac_ext >&5
  7626. # Broken: fails on valid input.
  7627. continue
  7628. fi
  7629. rm -f conftest.err conftest.$ac_ext
  7630. # OK, works on sane cases. Now check whether nonexistent headers
  7631. # can be detected and how.
  7632. cat >conftest.$ac_ext <<_ACEOF
  7633. /* confdefs.h. */
  7634. _ACEOF
  7635. cat confdefs.h >>conftest.$ac_ext
  7636. cat >>conftest.$ac_ext <<_ACEOF
  7637. /* end confdefs.h. */
  7638. #include <ac_nonexistent.h>
  7639. _ACEOF
  7640. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7641. case "(($ac_try" in
  7642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7643. *) ac_try_echo=$ac_try;;
  7644. esac
  7645. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7646. $as_echo "$ac_try_echo") >&5
  7647. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7648. ac_status=$?
  7649. grep -v '^ *+' conftest.er1 >conftest.err
  7650. rm -f conftest.er1
  7651. cat conftest.err >&5
  7652. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7653. (exit $ac_status); } >/dev/null && {
  7654. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7655. test ! -s conftest.err
  7656. }; then
  7657. # Broken: success on invalid input.
  7658. continue
  7659. else
  7660. $as_echo "$as_me: failed program was:" >&5
  7661. sed 's/^/| /' conftest.$ac_ext >&5
  7662. # Passes both tests.
  7663. ac_preproc_ok=:
  7664. break
  7665. fi
  7666. rm -f conftest.err conftest.$ac_ext
  7667. done
  7668. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7669. rm -f conftest.err conftest.$ac_ext
  7670. if $ac_preproc_ok; then
  7671. break
  7672. fi
  7673. done
  7674. ac_cv_prog_CXXCPP=$CXXCPP
  7675. fi
  7676. CXXCPP=$ac_cv_prog_CXXCPP
  7677. else
  7678. ac_cv_prog_CXXCPP=$CXXCPP
  7679. fi
  7680. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  7681. $as_echo "$CXXCPP" >&6; }
  7682. ac_preproc_ok=false
  7683. for ac_cxx_preproc_warn_flag in '' yes
  7684. do
  7685. # Use a header file that comes with gcc, so configuring glibc
  7686. # with a fresh cross-compiler works.
  7687. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7688. # <limits.h> exists even on freestanding compilers.
  7689. # On the NeXT, cc -E runs the code through the compiler's parser,
  7690. # not just through cpp. "Syntax error" is here to catch this case.
  7691. cat >conftest.$ac_ext <<_ACEOF
  7692. /* confdefs.h. */
  7693. _ACEOF
  7694. cat confdefs.h >>conftest.$ac_ext
  7695. cat >>conftest.$ac_ext <<_ACEOF
  7696. /* end confdefs.h. */
  7697. #ifdef __STDC__
  7698. # include <limits.h>
  7699. #else
  7700. # include <assert.h>
  7701. #endif
  7702. Syntax error
  7703. _ACEOF
  7704. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7705. case "(($ac_try" in
  7706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7707. *) ac_try_echo=$ac_try;;
  7708. esac
  7709. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7710. $as_echo "$ac_try_echo") >&5
  7711. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7712. ac_status=$?
  7713. grep -v '^ *+' conftest.er1 >conftest.err
  7714. rm -f conftest.er1
  7715. cat conftest.err >&5
  7716. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7717. (exit $ac_status); } >/dev/null && {
  7718. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7719. test ! -s conftest.err
  7720. }; then
  7721. :
  7722. else
  7723. $as_echo "$as_me: failed program was:" >&5
  7724. sed 's/^/| /' conftest.$ac_ext >&5
  7725. # Broken: fails on valid input.
  7726. continue
  7727. fi
  7728. rm -f conftest.err conftest.$ac_ext
  7729. # OK, works on sane cases. Now check whether nonexistent headers
  7730. # can be detected and how.
  7731. cat >conftest.$ac_ext <<_ACEOF
  7732. /* confdefs.h. */
  7733. _ACEOF
  7734. cat confdefs.h >>conftest.$ac_ext
  7735. cat >>conftest.$ac_ext <<_ACEOF
  7736. /* end confdefs.h. */
  7737. #include <ac_nonexistent.h>
  7738. _ACEOF
  7739. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7740. case "(($ac_try" in
  7741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7742. *) ac_try_echo=$ac_try;;
  7743. esac
  7744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7745. $as_echo "$ac_try_echo") >&5
  7746. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7747. ac_status=$?
  7748. grep -v '^ *+' conftest.er1 >conftest.err
  7749. rm -f conftest.er1
  7750. cat conftest.err >&5
  7751. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7752. (exit $ac_status); } >/dev/null && {
  7753. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7754. test ! -s conftest.err
  7755. }; then
  7756. # Broken: success on invalid input.
  7757. continue
  7758. else
  7759. $as_echo "$as_me: failed program was:" >&5
  7760. sed 's/^/| /' conftest.$ac_ext >&5
  7761. # Passes both tests.
  7762. ac_preproc_ok=:
  7763. break
  7764. fi
  7765. rm -f conftest.err conftest.$ac_ext
  7766. done
  7767. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7768. rm -f conftest.err conftest.$ac_ext
  7769. if $ac_preproc_ok; then
  7770. :
  7771. else
  7772. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7773. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7774. _lt_caught_CXX_error=yes; }
  7775. fi
  7776. ac_ext=c
  7777. ac_cpp='$CPP $CPPFLAGS'
  7778. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7779. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7780. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7781. else
  7782. _lt_caught_CXX_error=yes
  7783. fi
  7784. # Set options
  7785. enable_dlopen=no
  7786. enable_win32_dll=no
  7787. # Check whether --enable-shared was given.
  7788. if test "${enable_shared+set}" = set; then
  7789. enableval=$enable_shared; p=${PACKAGE-default}
  7790. case $enableval in
  7791. yes) enable_shared=yes ;;
  7792. no) enable_shared=no ;;
  7793. *)
  7794. enable_shared=no
  7795. # Look at the argument we got. We use all the common list separators.
  7796. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7797. for pkg in $enableval; do
  7798. IFS="$lt_save_ifs"
  7799. if test "X$pkg" = "X$p"; then
  7800. enable_shared=yes
  7801. fi
  7802. done
  7803. IFS="$lt_save_ifs"
  7804. ;;
  7805. esac
  7806. else
  7807. enable_shared=yes
  7808. fi
  7809. # Check whether --with-pic was given.
  7810. if test "${with_pic+set}" = set; then
  7811. withval=$with_pic; pic_mode="$withval"
  7812. else
  7813. pic_mode=default
  7814. fi
  7815. test -z "$pic_mode" && pic_mode=default
  7816. # Check whether --enable-fast-install was given.
  7817. if test "${enable_fast_install+set}" = set; then
  7818. enableval=$enable_fast_install; p=${PACKAGE-default}
  7819. case $enableval in
  7820. yes) enable_fast_install=yes ;;
  7821. no) enable_fast_install=no ;;
  7822. *)
  7823. enable_fast_install=no
  7824. # Look at the argument we got. We use all the common list separators.
  7825. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7826. for pkg in $enableval; do
  7827. IFS="$lt_save_ifs"
  7828. if test "X$pkg" = "X$p"; then
  7829. enable_fast_install=yes
  7830. fi
  7831. done
  7832. IFS="$lt_save_ifs"
  7833. ;;
  7834. esac
  7835. else
  7836. enable_fast_install=yes
  7837. fi
  7838. # This can be used to rebuild libtool when needed
  7839. LIBTOOL_DEPS="$ltmain"
  7840. # Always use our own libtool.
  7841. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7842. test -z "$LN_S" && LN_S="ln -s"
  7843. if test -n "${ZSH_VERSION+set}" ; then
  7844. setopt NO_GLOB_SUBST
  7845. fi
  7846. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7847. $as_echo_n "checking for objdir... " >&6; }
  7848. if test "${lt_cv_objdir+set}" = set; then
  7849. $as_echo_n "(cached) " >&6
  7850. else
  7851. rm -f .libs 2>/dev/null
  7852. mkdir .libs 2>/dev/null
  7853. if test -d .libs; then
  7854. lt_cv_objdir=.libs
  7855. else
  7856. # MS-DOS does not allow filenames that begin with a dot.
  7857. lt_cv_objdir=_libs
  7858. fi
  7859. rmdir .libs 2>/dev/null
  7860. fi
  7861. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7862. $as_echo "$lt_cv_objdir" >&6; }
  7863. objdir=$lt_cv_objdir
  7864. cat >>confdefs.h <<_ACEOF
  7865. #define LT_OBJDIR "$lt_cv_objdir/"
  7866. _ACEOF
  7867. case $host_os in
  7868. aix3*)
  7869. # AIX sometimes has problems with the GCC collect2 program. For some
  7870. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7871. # vanish in a puff of smoke.
  7872. if test "X${COLLECT_NAMES+set}" != Xset; then
  7873. COLLECT_NAMES=
  7874. export COLLECT_NAMES
  7875. fi
  7876. ;;
  7877. esac
  7878. # Sed substitution that helps us do robust quoting. It backslashifies
  7879. # metacharacters that are still active within double-quoted strings.
  7880. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7881. # Same as above, but do not quote variable references.
  7882. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7883. # Sed substitution to delay expansion of an escaped shell variable in a
  7884. # double_quote_subst'ed string.
  7885. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7886. # Sed substitution to delay expansion of an escaped single quote.
  7887. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7888. # Sed substitution to avoid accidental globbing in evaled expressions
  7889. no_glob_subst='s/\*/\\\*/g'
  7890. # Global variables:
  7891. ofile=libtool
  7892. can_build_shared=yes
  7893. # All known linkers require a `.a' archive for static linking (except MSVC,
  7894. # which needs '.lib').
  7895. libext=a
  7896. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7897. old_CC="$CC"
  7898. old_CFLAGS="$CFLAGS"
  7899. # Set sane defaults for various variables
  7900. test -z "$CC" && CC=cc
  7901. test -z "$LTCC" && LTCC=$CC
  7902. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7903. test -z "$LD" && LD=ld
  7904. test -z "$ac_objext" && ac_objext=o
  7905. for cc_temp in $compiler""; do
  7906. case $cc_temp in
  7907. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7908. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7909. \-*) ;;
  7910. *) break;;
  7911. esac
  7912. done
  7913. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7914. # Only perform the check for file, if the check method requires it
  7915. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7916. case $deplibs_check_method in
  7917. file_magic*)
  7918. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7919. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7920. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7921. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7922. $as_echo_n "(cached) " >&6
  7923. else
  7924. case $MAGIC_CMD in
  7925. [\\/*] | ?:[\\/]*)
  7926. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7927. ;;
  7928. *)
  7929. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7930. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7931. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7932. for ac_dir in $ac_dummy; do
  7933. IFS="$lt_save_ifs"
  7934. test -z "$ac_dir" && ac_dir=.
  7935. if test -f $ac_dir/${ac_tool_prefix}file; then
  7936. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7937. if test -n "$file_magic_test_file"; then
  7938. case $deplibs_check_method in
  7939. "file_magic "*)
  7940. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7941. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7942. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7943. $EGREP "$file_magic_regex" > /dev/null; then
  7944. :
  7945. else
  7946. cat <<_LT_EOF 1>&2
  7947. *** Warning: the command libtool uses to detect shared libraries,
  7948. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7949. *** The result is that libtool may fail to recognize shared libraries
  7950. *** as such. This will affect the creation of libtool libraries that
  7951. *** depend on shared libraries, but programs linked with such libtool
  7952. *** libraries will work regardless of this problem. Nevertheless, you
  7953. *** may want to report the problem to your system manager and/or to
  7954. *** [email protected]
  7955. _LT_EOF
  7956. fi ;;
  7957. esac
  7958. fi
  7959. break
  7960. fi
  7961. done
  7962. IFS="$lt_save_ifs"
  7963. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7964. ;;
  7965. esac
  7966. fi
  7967. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7968. if test -n "$MAGIC_CMD"; then
  7969. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7970. $as_echo "$MAGIC_CMD" >&6; }
  7971. else
  7972. { $as_echo "$as_me:$LINENO: result: no" >&5
  7973. $as_echo "no" >&6; }
  7974. fi
  7975. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7976. if test -n "$ac_tool_prefix"; then
  7977. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7978. $as_echo_n "checking for file... " >&6; }
  7979. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7980. $as_echo_n "(cached) " >&6
  7981. else
  7982. case $MAGIC_CMD in
  7983. [\\/*] | ?:[\\/]*)
  7984. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7985. ;;
  7986. *)
  7987. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7988. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7989. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7990. for ac_dir in $ac_dummy; do
  7991. IFS="$lt_save_ifs"
  7992. test -z "$ac_dir" && ac_dir=.
  7993. if test -f $ac_dir/file; then
  7994. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7995. if test -n "$file_magic_test_file"; then
  7996. case $deplibs_check_method in
  7997. "file_magic "*)
  7998. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7999. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8000. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8001. $EGREP "$file_magic_regex" > /dev/null; then
  8002. :
  8003. else
  8004. cat <<_LT_EOF 1>&2
  8005. *** Warning: the command libtool uses to detect shared libraries,
  8006. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8007. *** The result is that libtool may fail to recognize shared libraries
  8008. *** as such. This will affect the creation of libtool libraries that
  8009. *** depend on shared libraries, but programs linked with such libtool
  8010. *** libraries will work regardless of this problem. Nevertheless, you
  8011. *** may want to report the problem to your system manager and/or to
  8012. *** [email protected]
  8013. _LT_EOF
  8014. fi ;;
  8015. esac
  8016. fi
  8017. break
  8018. fi
  8019. done
  8020. IFS="$lt_save_ifs"
  8021. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8022. ;;
  8023. esac
  8024. fi
  8025. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8026. if test -n "$MAGIC_CMD"; then
  8027. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8028. $as_echo "$MAGIC_CMD" >&6; }
  8029. else
  8030. { $as_echo "$as_me:$LINENO: result: no" >&5
  8031. $as_echo "no" >&6; }
  8032. fi
  8033. else
  8034. MAGIC_CMD=:
  8035. fi
  8036. fi
  8037. fi
  8038. ;;
  8039. esac
  8040. # Use C for the default configuration in the libtool script
  8041. lt_save_CC="$CC"
  8042. ac_ext=c
  8043. ac_cpp='$CPP $CPPFLAGS'
  8044. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8045. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8046. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8047. # Source file extension for C test sources.
  8048. ac_ext=c
  8049. # Object file extension for compiled C test sources.
  8050. objext=o
  8051. objext=$objext
  8052. # Code to be used in simple compile tests
  8053. lt_simple_compile_test_code="int some_variable = 0;"
  8054. # Code to be used in simple link tests
  8055. lt_simple_link_test_code='int main(){return(0);}'
  8056. # If no C compiler was specified, use CC.
  8057. LTCC=${LTCC-"$CC"}
  8058. # If no C compiler flags were specified, use CFLAGS.
  8059. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8060. # Allow CC to be a program name with arguments.
  8061. compiler=$CC
  8062. # Save the default compiler, since it gets overwritten when the other
  8063. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8064. compiler_DEFAULT=$CC
  8065. # save warnings/boilerplate of simple test code
  8066. ac_outfile=conftest.$ac_objext
  8067. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8068. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8069. _lt_compiler_boilerplate=`cat conftest.err`
  8070. $RM conftest*
  8071. ac_outfile=conftest.$ac_objext
  8072. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8073. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8074. _lt_linker_boilerplate=`cat conftest.err`
  8075. $RM -r conftest*
  8076. ## CAVEAT EMPTOR:
  8077. ## There is no encapsulation within the following macros, do not change
  8078. ## the running order or otherwise move them around unless you know exactly
  8079. ## what you are doing...
  8080. if test -n "$compiler"; then
  8081. lt_prog_compiler_no_builtin_flag=
  8082. if test "$GCC" = yes; then
  8083. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8084. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8085. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8086. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8087. $as_echo_n "(cached) " >&6
  8088. else
  8089. lt_cv_prog_compiler_rtti_exceptions=no
  8090. ac_outfile=conftest.$ac_objext
  8091. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8092. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8093. # Insert the option either (1) after the last *FLAGS variable, or
  8094. # (2) before a word containing "conftest.", or (3) at the end.
  8095. # Note that $ac_compile itself does not contain backslashes and begins
  8096. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8097. # The option is referenced via a variable to avoid confusing sed.
  8098. lt_compile=`echo "$ac_compile" | $SED \
  8099. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8100. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8101. -e 's:$: $lt_compiler_flag:'`
  8102. (eval echo "\"\$as_me:9251: $lt_compile\"" >&5)
  8103. (eval "$lt_compile" 2>conftest.err)
  8104. ac_status=$?
  8105. cat conftest.err >&5
  8106. echo "$as_me:9255: \$? = $ac_status" >&5
  8107. if (exit $ac_status) && test -s "$ac_outfile"; then
  8108. # The compiler can only warn and ignore the option if not recognized
  8109. # So say no if there are warnings other than the usual output.
  8110. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8111. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8112. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8113. lt_cv_prog_compiler_rtti_exceptions=yes
  8114. fi
  8115. fi
  8116. $RM conftest*
  8117. fi
  8118. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8119. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8120. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8121. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8122. else
  8123. :
  8124. fi
  8125. fi
  8126. lt_prog_compiler_wl=
  8127. lt_prog_compiler_pic=
  8128. lt_prog_compiler_static=
  8129. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8130. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8131. if test "$GCC" = yes; then
  8132. lt_prog_compiler_wl='-Wl,'
  8133. lt_prog_compiler_static='-static'
  8134. case $host_os in
  8135. aix*)
  8136. # All AIX code is PIC.
  8137. if test "$host_cpu" = ia64; then
  8138. # AIX 5 now supports IA64 processor
  8139. lt_prog_compiler_static='-Bstatic'
  8140. fi
  8141. ;;
  8142. amigaos*)
  8143. case $host_cpu in
  8144. powerpc)
  8145. # see comment about AmigaOS4 .so support
  8146. lt_prog_compiler_pic='-fPIC'
  8147. ;;
  8148. m68k)
  8149. # FIXME: we need at least 68020 code to build shared libraries, but
  8150. # adding the `-m68020' flag to GCC prevents building anything better,
  8151. # like `-m68040'.
  8152. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8153. ;;
  8154. esac
  8155. ;;
  8156. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8157. # PIC is the default for these OSes.
  8158. ;;
  8159. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8160. # This hack is so that the source file can tell whether it is being
  8161. # built for inclusion in a dll (and should export symbols for example).
  8162. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8163. # (--disable-auto-import) libraries
  8164. lt_prog_compiler_pic='-DDLL_EXPORT'
  8165. ;;
  8166. darwin* | rhapsody*)
  8167. # PIC is the default on this platform
  8168. # Common symbols not allowed in MH_DYLIB files
  8169. lt_prog_compiler_pic='-fno-common'
  8170. ;;
  8171. hpux*)
  8172. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8173. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8174. # sets the default TLS model and affects inlining.
  8175. case $host_cpu in
  8176. hppa*64*)
  8177. # +Z the default
  8178. ;;
  8179. *)
  8180. lt_prog_compiler_pic='-fPIC'
  8181. ;;
  8182. esac
  8183. ;;
  8184. interix[3-9]*)
  8185. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8186. # Instead, we relocate shared libraries at runtime.
  8187. ;;
  8188. msdosdjgpp*)
  8189. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8190. # on systems that don't support them.
  8191. lt_prog_compiler_can_build_shared=no
  8192. enable_shared=no
  8193. ;;
  8194. *nto* | *qnx*)
  8195. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8196. # it will coredump.
  8197. lt_prog_compiler_pic='-fPIC -shared'
  8198. ;;
  8199. sysv4*MP*)
  8200. if test -d /usr/nec; then
  8201. lt_prog_compiler_pic=-Kconform_pic
  8202. fi
  8203. ;;
  8204. *)
  8205. lt_prog_compiler_pic='-fPIC'
  8206. ;;
  8207. esac
  8208. else
  8209. # PORTME Check for flag to pass linker flags through the system compiler.
  8210. case $host_os in
  8211. aix*)
  8212. lt_prog_compiler_wl='-Wl,'
  8213. if test "$host_cpu" = ia64; then
  8214. # AIX 5 now supports IA64 processor
  8215. lt_prog_compiler_static='-Bstatic'
  8216. else
  8217. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8218. fi
  8219. ;;
  8220. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8221. # This hack is so that the source file can tell whether it is being
  8222. # built for inclusion in a dll (and should export symbols for example).
  8223. lt_prog_compiler_pic='-DDLL_EXPORT'
  8224. ;;
  8225. hpux9* | hpux10* | hpux11*)
  8226. lt_prog_compiler_wl='-Wl,'
  8227. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8228. # not for PA HP-UX.
  8229. case $host_cpu in
  8230. hppa*64*|ia64*)
  8231. # +Z the default
  8232. ;;
  8233. *)
  8234. lt_prog_compiler_pic='+Z'
  8235. ;;
  8236. esac
  8237. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8238. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8239. ;;
  8240. irix5* | irix6* | nonstopux*)
  8241. lt_prog_compiler_wl='-Wl,'
  8242. # PIC (with -KPIC) is the default.
  8243. lt_prog_compiler_static='-non_shared'
  8244. ;;
  8245. linux* | k*bsd*-gnu)
  8246. case $cc_basename in
  8247. # old Intel for x86_64 which still supported -KPIC.
  8248. ecc*)
  8249. lt_prog_compiler_wl='-Wl,'
  8250. lt_prog_compiler_pic='-KPIC'
  8251. lt_prog_compiler_static='-static'
  8252. ;;
  8253. # icc used to be incompatible with GCC.
  8254. # ICC 10 doesn't accept -KPIC any more.
  8255. icc* | ifort*)
  8256. lt_prog_compiler_wl='-Wl,'
  8257. lt_prog_compiler_pic='-fPIC'
  8258. lt_prog_compiler_static='-static'
  8259. ;;
  8260. # Lahey Fortran 8.1.
  8261. lf95*)
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_pic='--shared'
  8264. lt_prog_compiler_static='--static'
  8265. ;;
  8266. pgcc* | pgf77* | pgf90* | pgf95*)
  8267. # Portland Group compilers (*not* the Pentium gcc compiler,
  8268. # which looks to be a dead project)
  8269. lt_prog_compiler_wl='-Wl,'
  8270. lt_prog_compiler_pic='-fpic'
  8271. lt_prog_compiler_static='-Bstatic'
  8272. ;;
  8273. ccc*)
  8274. lt_prog_compiler_wl='-Wl,'
  8275. # All Alpha code is PIC.
  8276. lt_prog_compiler_static='-non_shared'
  8277. ;;
  8278. xl*)
  8279. # IBM XL C 8.0/Fortran 10.1 on PPC
  8280. lt_prog_compiler_wl='-Wl,'
  8281. lt_prog_compiler_pic='-qpic'
  8282. lt_prog_compiler_static='-qstaticlink'
  8283. ;;
  8284. *)
  8285. case `$CC -V 2>&1 | sed 5q` in
  8286. *Sun\ C*)
  8287. # Sun C 5.9
  8288. lt_prog_compiler_pic='-KPIC'
  8289. lt_prog_compiler_static='-Bstatic'
  8290. lt_prog_compiler_wl='-Wl,'
  8291. ;;
  8292. *Sun\ F*)
  8293. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8294. lt_prog_compiler_pic='-KPIC'
  8295. lt_prog_compiler_static='-Bstatic'
  8296. lt_prog_compiler_wl=''
  8297. ;;
  8298. esac
  8299. ;;
  8300. esac
  8301. ;;
  8302. newsos6)
  8303. lt_prog_compiler_pic='-KPIC'
  8304. lt_prog_compiler_static='-Bstatic'
  8305. ;;
  8306. *nto* | *qnx*)
  8307. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8308. # it will coredump.
  8309. lt_prog_compiler_pic='-fPIC -shared'
  8310. ;;
  8311. osf3* | osf4* | osf5*)
  8312. lt_prog_compiler_wl='-Wl,'
  8313. # All OSF/1 code is PIC.
  8314. lt_prog_compiler_static='-non_shared'
  8315. ;;
  8316. rdos*)
  8317. lt_prog_compiler_static='-non_shared'
  8318. ;;
  8319. solaris*)
  8320. lt_prog_compiler_pic='-KPIC'
  8321. lt_prog_compiler_static='-Bstatic'
  8322. case $cc_basename in
  8323. f77* | f90* | f95*)
  8324. lt_prog_compiler_wl='-Qoption ld ';;
  8325. *)
  8326. lt_prog_compiler_wl='-Wl,';;
  8327. esac
  8328. ;;
  8329. sunos4*)
  8330. lt_prog_compiler_wl='-Qoption ld '
  8331. lt_prog_compiler_pic='-PIC'
  8332. lt_prog_compiler_static='-Bstatic'
  8333. ;;
  8334. sysv4 | sysv4.2uw2* | sysv4.3*)
  8335. lt_prog_compiler_wl='-Wl,'
  8336. lt_prog_compiler_pic='-KPIC'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. ;;
  8339. sysv4*MP*)
  8340. if test -d /usr/nec ;then
  8341. lt_prog_compiler_pic='-Kconform_pic'
  8342. lt_prog_compiler_static='-Bstatic'
  8343. fi
  8344. ;;
  8345. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8346. lt_prog_compiler_wl='-Wl,'
  8347. lt_prog_compiler_pic='-KPIC'
  8348. lt_prog_compiler_static='-Bstatic'
  8349. ;;
  8350. unicos*)
  8351. lt_prog_compiler_wl='-Wl,'
  8352. lt_prog_compiler_can_build_shared=no
  8353. ;;
  8354. uts4*)
  8355. lt_prog_compiler_pic='-pic'
  8356. lt_prog_compiler_static='-Bstatic'
  8357. ;;
  8358. *)
  8359. lt_prog_compiler_can_build_shared=no
  8360. ;;
  8361. esac
  8362. fi
  8363. case $host_os in
  8364. # For platforms which do not support PIC, -DPIC is meaningless:
  8365. *djgpp*)
  8366. lt_prog_compiler_pic=
  8367. ;;
  8368. *)
  8369. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8370. ;;
  8371. esac
  8372. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8373. $as_echo "$lt_prog_compiler_pic" >&6; }
  8374. #
  8375. # Check to make sure the PIC flag actually works.
  8376. #
  8377. if test -n "$lt_prog_compiler_pic"; then
  8378. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8379. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8380. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8381. $as_echo_n "(cached) " >&6
  8382. else
  8383. lt_cv_prog_compiler_pic_works=no
  8384. ac_outfile=conftest.$ac_objext
  8385. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8386. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8387. # Insert the option either (1) after the last *FLAGS variable, or
  8388. # (2) before a word containing "conftest.", or (3) at the end.
  8389. # Note that $ac_compile itself does not contain backslashes and begins
  8390. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8391. # The option is referenced via a variable to avoid confusing sed.
  8392. lt_compile=`echo "$ac_compile" | $SED \
  8393. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8394. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8395. -e 's:$: $lt_compiler_flag:'`
  8396. (eval echo "\"\$as_me:9590: $lt_compile\"" >&5)
  8397. (eval "$lt_compile" 2>conftest.err)
  8398. ac_status=$?
  8399. cat conftest.err >&5
  8400. echo "$as_me:9594: \$? = $ac_status" >&5
  8401. if (exit $ac_status) && test -s "$ac_outfile"; then
  8402. # The compiler can only warn and ignore the option if not recognized
  8403. # So say no if there are warnings other than the usual output.
  8404. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8405. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8406. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8407. lt_cv_prog_compiler_pic_works=yes
  8408. fi
  8409. fi
  8410. $RM conftest*
  8411. fi
  8412. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8413. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8414. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8415. case $lt_prog_compiler_pic in
  8416. "" | " "*) ;;
  8417. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8418. esac
  8419. else
  8420. lt_prog_compiler_pic=
  8421. lt_prog_compiler_can_build_shared=no
  8422. fi
  8423. fi
  8424. #
  8425. # Check to make sure the static flag actually works.
  8426. #
  8427. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8428. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8429. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8430. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8431. $as_echo_n "(cached) " >&6
  8432. else
  8433. lt_cv_prog_compiler_static_works=no
  8434. save_LDFLAGS="$LDFLAGS"
  8435. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8436. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8437. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8438. # The linker can only warn and ignore the option if not recognized
  8439. # So say no if there are warnings
  8440. if test -s conftest.err; then
  8441. # Append any errors to the config.log.
  8442. cat conftest.err 1>&5
  8443. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8444. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8445. if diff conftest.exp conftest.er2 >/dev/null; then
  8446. lt_cv_prog_compiler_static_works=yes
  8447. fi
  8448. else
  8449. lt_cv_prog_compiler_static_works=yes
  8450. fi
  8451. fi
  8452. $RM -r conftest*
  8453. LDFLAGS="$save_LDFLAGS"
  8454. fi
  8455. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8456. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8457. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8458. :
  8459. else
  8460. lt_prog_compiler_static=
  8461. fi
  8462. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8463. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8464. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8465. $as_echo_n "(cached) " >&6
  8466. else
  8467. lt_cv_prog_compiler_c_o=no
  8468. $RM -r conftest 2>/dev/null
  8469. mkdir conftest
  8470. cd conftest
  8471. mkdir out
  8472. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8473. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8474. # Insert the option either (1) after the last *FLAGS variable, or
  8475. # (2) before a word containing "conftest.", or (3) at the end.
  8476. # Note that $ac_compile itself does not contain backslashes and begins
  8477. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8478. lt_compile=`echo "$ac_compile" | $SED \
  8479. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8480. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8481. -e 's:$: $lt_compiler_flag:'`
  8482. (eval echo "\"\$as_me:9695: $lt_compile\"" >&5)
  8483. (eval "$lt_compile" 2>out/conftest.err)
  8484. ac_status=$?
  8485. cat out/conftest.err >&5
  8486. echo "$as_me:9699: \$? = $ac_status" >&5
  8487. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8488. then
  8489. # The compiler can only warn and ignore the option if not recognized
  8490. # So say no if there are warnings
  8491. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8492. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8493. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8494. lt_cv_prog_compiler_c_o=yes
  8495. fi
  8496. fi
  8497. chmod u+w . 2>&5
  8498. $RM conftest*
  8499. # SGI C++ compiler will create directory out/ii_files/ for
  8500. # template instantiation
  8501. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8502. $RM out/* && rmdir out
  8503. cd ..
  8504. $RM -r conftest
  8505. $RM conftest*
  8506. fi
  8507. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8508. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8509. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8510. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8511. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8512. $as_echo_n "(cached) " >&6
  8513. else
  8514. lt_cv_prog_compiler_c_o=no
  8515. $RM -r conftest 2>/dev/null
  8516. mkdir conftest
  8517. cd conftest
  8518. mkdir out
  8519. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8520. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8521. # Insert the option either (1) after the last *FLAGS variable, or
  8522. # (2) before a word containing "conftest.", or (3) at the end.
  8523. # Note that $ac_compile itself does not contain backslashes and begins
  8524. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8525. lt_compile=`echo "$ac_compile" | $SED \
  8526. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8527. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8528. -e 's:$: $lt_compiler_flag:'`
  8529. (eval echo "\"\$as_me:9750: $lt_compile\"" >&5)
  8530. (eval "$lt_compile" 2>out/conftest.err)
  8531. ac_status=$?
  8532. cat out/conftest.err >&5
  8533. echo "$as_me:9754: \$? = $ac_status" >&5
  8534. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8535. then
  8536. # The compiler can only warn and ignore the option if not recognized
  8537. # So say no if there are warnings
  8538. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8539. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8540. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8541. lt_cv_prog_compiler_c_o=yes
  8542. fi
  8543. fi
  8544. chmod u+w . 2>&5
  8545. $RM conftest*
  8546. # SGI C++ compiler will create directory out/ii_files/ for
  8547. # template instantiation
  8548. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8549. $RM out/* && rmdir out
  8550. cd ..
  8551. $RM -r conftest
  8552. $RM conftest*
  8553. fi
  8554. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8555. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8556. hard_links="nottested"
  8557. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8558. # do not overwrite the value of need_locks provided by the user
  8559. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8560. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8561. hard_links=yes
  8562. $RM conftest*
  8563. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8564. touch conftest.a
  8565. ln conftest.a conftest.b 2>&5 || hard_links=no
  8566. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8567. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8568. $as_echo "$hard_links" >&6; }
  8569. if test "$hard_links" = no; then
  8570. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8571. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8572. need_locks=warn
  8573. fi
  8574. else
  8575. need_locks=no
  8576. fi
  8577. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8578. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8579. runpath_var=
  8580. allow_undefined_flag=
  8581. always_export_symbols=no
  8582. archive_cmds=
  8583. archive_expsym_cmds=
  8584. compiler_needs_object=no
  8585. enable_shared_with_static_runtimes=no
  8586. export_dynamic_flag_spec=
  8587. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8588. hardcode_automatic=no
  8589. hardcode_direct=no
  8590. hardcode_direct_absolute=no
  8591. hardcode_libdir_flag_spec=
  8592. hardcode_libdir_flag_spec_ld=
  8593. hardcode_libdir_separator=
  8594. hardcode_minus_L=no
  8595. hardcode_shlibpath_var=unsupported
  8596. inherit_rpath=no
  8597. link_all_deplibs=unknown
  8598. module_cmds=
  8599. module_expsym_cmds=
  8600. old_archive_from_new_cmds=
  8601. old_archive_from_expsyms_cmds=
  8602. thread_safe_flag_spec=
  8603. whole_archive_flag_spec=
  8604. # include_expsyms should be a list of space-separated symbols to be *always*
  8605. # included in the symbol list
  8606. include_expsyms=
  8607. # exclude_expsyms can be an extended regexp of symbols to exclude
  8608. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8609. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8610. # as well as any symbol that contains `d'.
  8611. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8612. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8613. # platforms (ab)use it in PIC code, but their linkers get confused if
  8614. # the symbol is explicitly referenced. Since portable code cannot
  8615. # rely on this symbol name, it's probably fine to never include it in
  8616. # preloaded symbol tables.
  8617. # Exclude shared library initialization/finalization symbols.
  8618. extract_expsyms_cmds=
  8619. case $host_os in
  8620. cygwin* | mingw* | pw32* | cegcc*)
  8621. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8622. # When not using gcc, we currently assume that we are using
  8623. # Microsoft Visual C++.
  8624. if test "$GCC" != yes; then
  8625. with_gnu_ld=no
  8626. fi
  8627. ;;
  8628. interix*)
  8629. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8630. with_gnu_ld=yes
  8631. ;;
  8632. openbsd*)
  8633. with_gnu_ld=no
  8634. ;;
  8635. esac
  8636. ld_shlibs=yes
  8637. if test "$with_gnu_ld" = yes; then
  8638. # If archive_cmds runs LD, not CC, wlarc should be empty
  8639. wlarc='${wl}'
  8640. # Set some defaults for GNU ld with shared library support. These
  8641. # are reset later if shared libraries are not supported. Putting them
  8642. # here allows them to be overridden if necessary.
  8643. runpath_var=LD_RUN_PATH
  8644. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8645. export_dynamic_flag_spec='${wl}--export-dynamic'
  8646. # ancient GNU ld didn't support --whole-archive et. al.
  8647. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8648. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8649. else
  8650. whole_archive_flag_spec=
  8651. fi
  8652. supports_anon_versioning=no
  8653. case `$LD -v 2>&1` in
  8654. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8655. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8656. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8657. *\ 2.11.*) ;; # other 2.11 versions
  8658. *) supports_anon_versioning=yes ;;
  8659. esac
  8660. # See if GNU ld supports shared libraries.
  8661. case $host_os in
  8662. aix[3-9]*)
  8663. # On AIX/PPC, the GNU linker is very broken
  8664. if test "$host_cpu" != ia64; then
  8665. ld_shlibs=no
  8666. cat <<_LT_EOF 1>&2
  8667. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8668. *** to be unable to reliably create shared libraries on AIX.
  8669. *** Therefore, libtool is disabling shared libraries support. If you
  8670. *** really care for shared libraries, you may want to modify your PATH
  8671. *** so that a non-GNU linker is found, and then restart.
  8672. _LT_EOF
  8673. fi
  8674. ;;
  8675. amigaos*)
  8676. case $host_cpu in
  8677. powerpc)
  8678. # see comment about AmigaOS4 .so support
  8679. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8680. archive_expsym_cmds=''
  8681. ;;
  8682. m68k)
  8683. 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)'
  8684. hardcode_libdir_flag_spec='-L$libdir'
  8685. hardcode_minus_L=yes
  8686. ;;
  8687. esac
  8688. ;;
  8689. beos*)
  8690. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8691. allow_undefined_flag=unsupported
  8692. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8693. # support --undefined. This deserves some investigation. FIXME
  8694. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8695. else
  8696. ld_shlibs=no
  8697. fi
  8698. ;;
  8699. cygwin* | mingw* | pw32* | cegcc*)
  8700. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8701. # as there is no search path for DLLs.
  8702. hardcode_libdir_flag_spec='-L$libdir'
  8703. allow_undefined_flag=unsupported
  8704. always_export_symbols=no
  8705. enable_shared_with_static_runtimes=yes
  8706. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8707. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8708. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8709. # If the export-symbols file already is a .def file (1st line
  8710. # is EXPORTS), use it as is; otherwise, prepend...
  8711. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8712. cp $export_symbols $output_objdir/$soname.def;
  8713. else
  8714. echo EXPORTS > $output_objdir/$soname.def;
  8715. cat $export_symbols >> $output_objdir/$soname.def;
  8716. fi~
  8717. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8718. else
  8719. ld_shlibs=no
  8720. fi
  8721. ;;
  8722. interix[3-9]*)
  8723. hardcode_direct=no
  8724. hardcode_shlibpath_var=no
  8725. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8726. export_dynamic_flag_spec='${wl}-E'
  8727. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8728. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8729. # default) and relocated if they conflict, which is a slow very memory
  8730. # consuming and fragmenting process. To avoid this, we pick a random,
  8731. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8732. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8733. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8734. 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'
  8735. ;;
  8736. gnu* | linux* | tpf* | k*bsd*-gnu)
  8737. tmp_diet=no
  8738. if test "$host_os" = linux-dietlibc; then
  8739. case $cc_basename in
  8740. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8741. esac
  8742. fi
  8743. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8744. && test "$tmp_diet" = no
  8745. then
  8746. tmp_addflag=
  8747. tmp_sharedflag='-shared'
  8748. case $cc_basename,$host_cpu in
  8749. pgcc*) # Portland Group C compiler
  8750. 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'
  8751. tmp_addflag=' $pic_flag'
  8752. ;;
  8753. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8754. 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'
  8755. tmp_addflag=' $pic_flag -Mnomain' ;;
  8756. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8757. tmp_addflag=' -i_dynamic' ;;
  8758. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8759. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8760. ifc* | ifort*) # Intel Fortran compiler
  8761. tmp_addflag=' -nofor_main' ;;
  8762. lf95*) # Lahey Fortran 8.1
  8763. whole_archive_flag_spec=
  8764. tmp_sharedflag='--shared' ;;
  8765. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8766. tmp_sharedflag='-qmkshrobj'
  8767. tmp_addflag= ;;
  8768. esac
  8769. case `$CC -V 2>&1 | sed 5q` in
  8770. *Sun\ C*) # Sun C 5.9
  8771. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8772. compiler_needs_object=yes
  8773. tmp_sharedflag='-G' ;;
  8774. *Sun\ F*) # Sun Fortran 8.3
  8775. tmp_sharedflag='-G' ;;
  8776. esac
  8777. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8778. if test "x$supports_anon_versioning" = xyes; then
  8779. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8780. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8781. echo "local: *; };" >> $output_objdir/$libname.ver~
  8782. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8783. fi
  8784. case $cc_basename in
  8785. xlf*)
  8786. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8787. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8788. hardcode_libdir_flag_spec=
  8789. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8790. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8791. if test "x$supports_anon_versioning" = xyes; then
  8792. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8793. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8794. echo "local: *; };" >> $output_objdir/$libname.ver~
  8795. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8796. fi
  8797. ;;
  8798. esac
  8799. else
  8800. ld_shlibs=no
  8801. fi
  8802. ;;
  8803. netbsd*)
  8804. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8805. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8806. wlarc=
  8807. else
  8808. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8809. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8810. fi
  8811. ;;
  8812. solaris*)
  8813. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8814. ld_shlibs=no
  8815. cat <<_LT_EOF 1>&2
  8816. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8817. *** create shared libraries on Solaris systems. Therefore, libtool
  8818. *** is disabling shared libraries support. We urge you to upgrade GNU
  8819. *** binutils to release 2.9.1 or newer. Another option is to modify
  8820. *** your PATH or compiler configuration so that the native linker is
  8821. *** used, and then restart.
  8822. _LT_EOF
  8823. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8824. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8825. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8826. else
  8827. ld_shlibs=no
  8828. fi
  8829. ;;
  8830. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8831. case `$LD -v 2>&1` in
  8832. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8833. ld_shlibs=no
  8834. cat <<_LT_EOF 1>&2
  8835. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8836. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8837. *** is disabling shared libraries support. We urge you to upgrade GNU
  8838. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8839. *** your PATH or compiler configuration so that the native linker is
  8840. *** used, and then restart.
  8841. _LT_EOF
  8842. ;;
  8843. *)
  8844. # For security reasons, it is highly recommended that you always
  8845. # use absolute paths for naming shared libraries, and exclude the
  8846. # DT_RUNPATH tag from executables and libraries. But doing so
  8847. # requires that you compile everything twice, which is a pain.
  8848. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8849. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8850. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8851. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8852. else
  8853. ld_shlibs=no
  8854. fi
  8855. ;;
  8856. esac
  8857. ;;
  8858. sunos4*)
  8859. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8860. wlarc=
  8861. hardcode_direct=yes
  8862. hardcode_shlibpath_var=no
  8863. ;;
  8864. *)
  8865. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8866. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8867. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8868. else
  8869. ld_shlibs=no
  8870. fi
  8871. ;;
  8872. esac
  8873. if test "$ld_shlibs" = no; then
  8874. runpath_var=
  8875. hardcode_libdir_flag_spec=
  8876. export_dynamic_flag_spec=
  8877. whole_archive_flag_spec=
  8878. fi
  8879. else
  8880. # PORTME fill in a description of your system's linker (not GNU ld)
  8881. case $host_os in
  8882. aix3*)
  8883. allow_undefined_flag=unsupported
  8884. always_export_symbols=yes
  8885. 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'
  8886. # Note: this linker hardcodes the directories in LIBPATH if there
  8887. # are no directories specified by -L.
  8888. hardcode_minus_L=yes
  8889. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8890. # Neither direct hardcoding nor static linking is supported with a
  8891. # broken collect2.
  8892. hardcode_direct=unsupported
  8893. fi
  8894. ;;
  8895. aix[4-9]*)
  8896. if test "$host_cpu" = ia64; then
  8897. # On IA64, the linker does run time linking by default, so we don't
  8898. # have to do anything special.
  8899. aix_use_runtimelinking=no
  8900. exp_sym_flag='-Bexport'
  8901. no_entry_flag=""
  8902. else
  8903. # If we're using GNU nm, then we don't want the "-C" option.
  8904. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8905. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8906. 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'
  8907. else
  8908. 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'
  8909. fi
  8910. aix_use_runtimelinking=no
  8911. # Test if we are trying to use run time linking or normal
  8912. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8913. # need to do runtime linking.
  8914. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8915. for ld_flag in $LDFLAGS; do
  8916. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8917. aix_use_runtimelinking=yes
  8918. break
  8919. fi
  8920. done
  8921. ;;
  8922. esac
  8923. exp_sym_flag='-bexport'
  8924. no_entry_flag='-bnoentry'
  8925. fi
  8926. # When large executables or shared objects are built, AIX ld can
  8927. # have problems creating the table of contents. If linking a library
  8928. # or program results in "error TOC overflow" add -mminimal-toc to
  8929. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8930. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8931. archive_cmds=''
  8932. hardcode_direct=yes
  8933. hardcode_direct_absolute=yes
  8934. hardcode_libdir_separator=':'
  8935. link_all_deplibs=yes
  8936. file_list_spec='${wl}-f,'
  8937. if test "$GCC" = yes; then
  8938. case $host_os in aix4.[012]|aix4.[012].*)
  8939. # We only want to do this on AIX 4.2 and lower, the check
  8940. # below for broken collect2 doesn't work under 4.3+
  8941. collect2name=`${CC} -print-prog-name=collect2`
  8942. if test -f "$collect2name" &&
  8943. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8944. then
  8945. # We have reworked collect2
  8946. :
  8947. else
  8948. # We have old collect2
  8949. hardcode_direct=unsupported
  8950. # It fails to find uninstalled libraries when the uninstalled
  8951. # path is not listed in the libpath. Setting hardcode_minus_L
  8952. # to unsupported forces relinking
  8953. hardcode_minus_L=yes
  8954. hardcode_libdir_flag_spec='-L$libdir'
  8955. hardcode_libdir_separator=
  8956. fi
  8957. ;;
  8958. esac
  8959. shared_flag='-shared'
  8960. if test "$aix_use_runtimelinking" = yes; then
  8961. shared_flag="$shared_flag "'${wl}-G'
  8962. fi
  8963. else
  8964. # not using gcc
  8965. if test "$host_cpu" = ia64; then
  8966. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8967. # chokes on -Wl,-G. The following line is correct:
  8968. shared_flag='-G'
  8969. else
  8970. if test "$aix_use_runtimelinking" = yes; then
  8971. shared_flag='${wl}-G'
  8972. else
  8973. shared_flag='${wl}-bM:SRE'
  8974. fi
  8975. fi
  8976. fi
  8977. export_dynamic_flag_spec='${wl}-bexpall'
  8978. # It seems that -bexpall does not export symbols beginning with
  8979. # underscore (_), so it is better to generate a list of symbols to export.
  8980. always_export_symbols=yes
  8981. if test "$aix_use_runtimelinking" = yes; then
  8982. # Warning - without using the other runtime loading flags (-brtl),
  8983. # -berok will link without error, but may produce a broken library.
  8984. allow_undefined_flag='-berok'
  8985. # Determine the default libpath from the value encoded in an
  8986. # empty executable.
  8987. cat >conftest.$ac_ext <<_ACEOF
  8988. /* confdefs.h. */
  8989. _ACEOF
  8990. cat confdefs.h >>conftest.$ac_ext
  8991. cat >>conftest.$ac_ext <<_ACEOF
  8992. /* end confdefs.h. */
  8993. int
  8994. main ()
  8995. {
  8996. ;
  8997. return 0;
  8998. }
  8999. _ACEOF
  9000. rm -f conftest.$ac_objext conftest$ac_exeext
  9001. if { (ac_try="$ac_link"
  9002. case "(($ac_try" in
  9003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9004. *) ac_try_echo=$ac_try;;
  9005. esac
  9006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9007. $as_echo "$ac_try_echo") >&5
  9008. (eval "$ac_link") 2>conftest.er1
  9009. ac_status=$?
  9010. grep -v '^ *+' conftest.er1 >conftest.err
  9011. rm -f conftest.er1
  9012. cat conftest.err >&5
  9013. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9014. (exit $ac_status); } && {
  9015. test -z "$ac_c_werror_flag" ||
  9016. test ! -s conftest.err
  9017. } && test -s conftest$ac_exeext && {
  9018. test "$cross_compiling" = yes ||
  9019. $as_test_x conftest$ac_exeext
  9020. }; then
  9021. lt_aix_libpath_sed='
  9022. /Import File Strings/,/^$/ {
  9023. /^0/ {
  9024. s/^0 *\(.*\)$/\1/
  9025. p
  9026. }
  9027. }'
  9028. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9029. # Check for a 64-bit object if we didn't find anything.
  9030. if test -z "$aix_libpath"; then
  9031. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9032. fi
  9033. else
  9034. $as_echo "$as_me: failed program was:" >&5
  9035. sed 's/^/| /' conftest.$ac_ext >&5
  9036. fi
  9037. rm -rf conftest.dSYM
  9038. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9039. conftest$ac_exeext conftest.$ac_ext
  9040. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9041. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9042. 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9043. else
  9044. if test "$host_cpu" = ia64; then
  9045. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9046. allow_undefined_flag="-z nodefs"
  9047. 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"
  9048. else
  9049. # Determine the default libpath from the value encoded in an
  9050. # empty executable.
  9051. cat >conftest.$ac_ext <<_ACEOF
  9052. /* confdefs.h. */
  9053. _ACEOF
  9054. cat confdefs.h >>conftest.$ac_ext
  9055. cat >>conftest.$ac_ext <<_ACEOF
  9056. /* end confdefs.h. */
  9057. int
  9058. main ()
  9059. {
  9060. ;
  9061. return 0;
  9062. }
  9063. _ACEOF
  9064. rm -f conftest.$ac_objext conftest$ac_exeext
  9065. if { (ac_try="$ac_link"
  9066. case "(($ac_try" in
  9067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9068. *) ac_try_echo=$ac_try;;
  9069. esac
  9070. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9071. $as_echo "$ac_try_echo") >&5
  9072. (eval "$ac_link") 2>conftest.er1
  9073. ac_status=$?
  9074. grep -v '^ *+' conftest.er1 >conftest.err
  9075. rm -f conftest.er1
  9076. cat conftest.err >&5
  9077. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9078. (exit $ac_status); } && {
  9079. test -z "$ac_c_werror_flag" ||
  9080. test ! -s conftest.err
  9081. } && test -s conftest$ac_exeext && {
  9082. test "$cross_compiling" = yes ||
  9083. $as_test_x conftest$ac_exeext
  9084. }; then
  9085. lt_aix_libpath_sed='
  9086. /Import File Strings/,/^$/ {
  9087. /^0/ {
  9088. s/^0 *\(.*\)$/\1/
  9089. p
  9090. }
  9091. }'
  9092. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9093. # Check for a 64-bit object if we didn't find anything.
  9094. if test -z "$aix_libpath"; then
  9095. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9096. fi
  9097. else
  9098. $as_echo "$as_me: failed program was:" >&5
  9099. sed 's/^/| /' conftest.$ac_ext >&5
  9100. fi
  9101. rm -rf conftest.dSYM
  9102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9103. conftest$ac_exeext conftest.$ac_ext
  9104. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9105. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9106. # Warning - without using the other run time loading flags,
  9107. # -berok will link without error, but may produce a broken library.
  9108. no_undefined_flag=' ${wl}-bernotok'
  9109. allow_undefined_flag=' ${wl}-berok'
  9110. # Exported symbols can be pulled into shared objects from archives
  9111. whole_archive_flag_spec='$convenience'
  9112. archive_cmds_need_lc=yes
  9113. # This is similar to how AIX traditionally builds its shared libraries.
  9114. 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'
  9115. fi
  9116. fi
  9117. ;;
  9118. amigaos*)
  9119. case $host_cpu in
  9120. powerpc)
  9121. # see comment about AmigaOS4 .so support
  9122. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9123. archive_expsym_cmds=''
  9124. ;;
  9125. m68k)
  9126. 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)'
  9127. hardcode_libdir_flag_spec='-L$libdir'
  9128. hardcode_minus_L=yes
  9129. ;;
  9130. esac
  9131. ;;
  9132. bsdi[45]*)
  9133. export_dynamic_flag_spec=-rdynamic
  9134. ;;
  9135. cygwin* | mingw* | pw32* | cegcc*)
  9136. # When not using gcc, we currently assume that we are using
  9137. # Microsoft Visual C++.
  9138. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9139. # no search path for DLLs.
  9140. hardcode_libdir_flag_spec=' '
  9141. allow_undefined_flag=unsupported
  9142. # Tell ltmain to make .lib files, not .a files.
  9143. libext=lib
  9144. # Tell ltmain to make .dll files, not .so files.
  9145. shrext_cmds=".dll"
  9146. # FIXME: Setting linknames here is a bad hack.
  9147. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9148. # The linker will automatically build a .lib file if we build a DLL.
  9149. old_archive_from_new_cmds='true'
  9150. # FIXME: Should let the user specify the lib program.
  9151. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9152. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9153. enable_shared_with_static_runtimes=yes
  9154. ;;
  9155. darwin* | rhapsody*)
  9156. archive_cmds_need_lc=no
  9157. hardcode_direct=no
  9158. hardcode_automatic=yes
  9159. hardcode_shlibpath_var=unsupported
  9160. whole_archive_flag_spec=''
  9161. link_all_deplibs=yes
  9162. allow_undefined_flag="$_lt_dar_allow_undefined"
  9163. case $cc_basename in
  9164. ifort*) _lt_dar_can_shared=yes ;;
  9165. *) _lt_dar_can_shared=$GCC ;;
  9166. esac
  9167. if test "$_lt_dar_can_shared" = "yes"; then
  9168. output_verbose_link_cmd=echo
  9169. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9170. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9171. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9172. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9173. else
  9174. ld_shlibs=no
  9175. fi
  9176. ;;
  9177. dgux*)
  9178. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9179. hardcode_libdir_flag_spec='-L$libdir'
  9180. hardcode_shlibpath_var=no
  9181. ;;
  9182. freebsd1*)
  9183. ld_shlibs=no
  9184. ;;
  9185. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9186. # support. Future versions do this automatically, but an explicit c++rt0.o
  9187. # does not break anything, and helps significantly (at the cost of a little
  9188. # extra space).
  9189. freebsd2.2*)
  9190. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9191. hardcode_libdir_flag_spec='-R$libdir'
  9192. hardcode_direct=yes
  9193. hardcode_shlibpath_var=no
  9194. ;;
  9195. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9196. freebsd2*)
  9197. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9198. hardcode_direct=yes
  9199. hardcode_minus_L=yes
  9200. hardcode_shlibpath_var=no
  9201. ;;
  9202. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9203. freebsd* | dragonfly*)
  9204. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9205. hardcode_libdir_flag_spec='-R$libdir'
  9206. hardcode_direct=yes
  9207. hardcode_shlibpath_var=no
  9208. ;;
  9209. hpux9*)
  9210. if test "$GCC" = yes; then
  9211. 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'
  9212. else
  9213. 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'
  9214. fi
  9215. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9216. hardcode_libdir_separator=:
  9217. hardcode_direct=yes
  9218. # hardcode_minus_L: Not really in the search PATH,
  9219. # but as the default location of the library.
  9220. hardcode_minus_L=yes
  9221. export_dynamic_flag_spec='${wl}-E'
  9222. ;;
  9223. hpux10*)
  9224. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9225. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9226. else
  9227. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9228. fi
  9229. if test "$with_gnu_ld" = no; then
  9230. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9231. hardcode_libdir_flag_spec_ld='+b $libdir'
  9232. hardcode_libdir_separator=:
  9233. hardcode_direct=yes
  9234. hardcode_direct_absolute=yes
  9235. export_dynamic_flag_spec='${wl}-E'
  9236. # hardcode_minus_L: Not really in the search PATH,
  9237. # but as the default location of the library.
  9238. hardcode_minus_L=yes
  9239. fi
  9240. ;;
  9241. hpux11*)
  9242. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9243. case $host_cpu in
  9244. hppa*64*)
  9245. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9246. ;;
  9247. ia64*)
  9248. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9249. ;;
  9250. *)
  9251. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9252. ;;
  9253. esac
  9254. else
  9255. case $host_cpu in
  9256. hppa*64*)
  9257. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9258. ;;
  9259. ia64*)
  9260. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9261. ;;
  9262. *)
  9263. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9264. ;;
  9265. esac
  9266. fi
  9267. if test "$with_gnu_ld" = no; then
  9268. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9269. hardcode_libdir_separator=:
  9270. case $host_cpu in
  9271. hppa*64*|ia64*)
  9272. hardcode_direct=no
  9273. hardcode_shlibpath_var=no
  9274. ;;
  9275. *)
  9276. hardcode_direct=yes
  9277. hardcode_direct_absolute=yes
  9278. export_dynamic_flag_spec='${wl}-E'
  9279. # hardcode_minus_L: Not really in the search PATH,
  9280. # but as the default location of the library.
  9281. hardcode_minus_L=yes
  9282. ;;
  9283. esac
  9284. fi
  9285. ;;
  9286. irix5* | irix6* | nonstopux*)
  9287. if test "$GCC" = yes; then
  9288. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9289. # Try to use the -exported_symbol ld option, if it does not
  9290. # work, assume that -exports_file does not work either and
  9291. # implicitly export all symbols.
  9292. save_LDFLAGS="$LDFLAGS"
  9293. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9294. cat >conftest.$ac_ext <<_ACEOF
  9295. int foo(void) {}
  9296. _ACEOF
  9297. rm -f conftest.$ac_objext conftest$ac_exeext
  9298. if { (ac_try="$ac_link"
  9299. case "(($ac_try" in
  9300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9301. *) ac_try_echo=$ac_try;;
  9302. esac
  9303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9304. $as_echo "$ac_try_echo") >&5
  9305. (eval "$ac_link") 2>conftest.er1
  9306. ac_status=$?
  9307. grep -v '^ *+' conftest.er1 >conftest.err
  9308. rm -f conftest.er1
  9309. cat conftest.err >&5
  9310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9311. (exit $ac_status); } && {
  9312. test -z "$ac_c_werror_flag" ||
  9313. test ! -s conftest.err
  9314. } && test -s conftest$ac_exeext && {
  9315. test "$cross_compiling" = yes ||
  9316. $as_test_x conftest$ac_exeext
  9317. }; then
  9318. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9319. else
  9320. $as_echo "$as_me: failed program was:" >&5
  9321. sed 's/^/| /' conftest.$ac_ext >&5
  9322. fi
  9323. rm -rf conftest.dSYM
  9324. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9325. conftest$ac_exeext conftest.$ac_ext
  9326. LDFLAGS="$save_LDFLAGS"
  9327. else
  9328. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9329. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9330. fi
  9331. archive_cmds_need_lc='no'
  9332. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9333. hardcode_libdir_separator=:
  9334. inherit_rpath=yes
  9335. link_all_deplibs=yes
  9336. ;;
  9337. netbsd*)
  9338. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9339. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9340. else
  9341. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9342. fi
  9343. hardcode_libdir_flag_spec='-R$libdir'
  9344. hardcode_direct=yes
  9345. hardcode_shlibpath_var=no
  9346. ;;
  9347. newsos6)
  9348. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9349. hardcode_direct=yes
  9350. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9351. hardcode_libdir_separator=:
  9352. hardcode_shlibpath_var=no
  9353. ;;
  9354. *nto* | *qnx*)
  9355. ;;
  9356. openbsd*)
  9357. if test -f /usr/libexec/ld.so; then
  9358. hardcode_direct=yes
  9359. hardcode_shlibpath_var=no
  9360. hardcode_direct_absolute=yes
  9361. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9362. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9363. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9364. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9365. export_dynamic_flag_spec='${wl}-E'
  9366. else
  9367. case $host_os in
  9368. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9369. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9370. hardcode_libdir_flag_spec='-R$libdir'
  9371. ;;
  9372. *)
  9373. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9374. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9375. ;;
  9376. esac
  9377. fi
  9378. else
  9379. ld_shlibs=no
  9380. fi
  9381. ;;
  9382. os2*)
  9383. hardcode_libdir_flag_spec='-L$libdir'
  9384. hardcode_minus_L=yes
  9385. allow_undefined_flag=unsupported
  9386. 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'
  9387. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9388. ;;
  9389. osf3*)
  9390. if test "$GCC" = yes; then
  9391. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9392. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9393. else
  9394. allow_undefined_flag=' -expect_unresolved \*'
  9395. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9396. fi
  9397. archive_cmds_need_lc='no'
  9398. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9399. hardcode_libdir_separator=:
  9400. ;;
  9401. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9402. if test "$GCC" = yes; then
  9403. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9404. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9405. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9406. else
  9407. allow_undefined_flag=' -expect_unresolved \*'
  9408. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9409. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9410. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9411. # Both c and cxx compiler support -rpath directly
  9412. hardcode_libdir_flag_spec='-rpath $libdir'
  9413. fi
  9414. archive_cmds_need_lc='no'
  9415. hardcode_libdir_separator=:
  9416. ;;
  9417. solaris*)
  9418. no_undefined_flag=' -z defs'
  9419. if test "$GCC" = yes; then
  9420. wlarc='${wl}'
  9421. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9422. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9423. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9424. else
  9425. case `$CC -V 2>&1` in
  9426. *"Compilers 5.0"*)
  9427. wlarc=''
  9428. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9429. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9430. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9431. ;;
  9432. *)
  9433. wlarc='${wl}'
  9434. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9435. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9436. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9437. ;;
  9438. esac
  9439. fi
  9440. hardcode_libdir_flag_spec='-R$libdir'
  9441. hardcode_shlibpath_var=no
  9442. case $host_os in
  9443. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9444. *)
  9445. # The compiler driver will combine and reorder linker options,
  9446. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9447. # but is careful enough not to reorder.
  9448. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9449. if test "$GCC" = yes; then
  9450. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9451. else
  9452. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9453. fi
  9454. ;;
  9455. esac
  9456. link_all_deplibs=yes
  9457. ;;
  9458. sunos4*)
  9459. if test "x$host_vendor" = xsequent; then
  9460. # Use $CC to link under sequent, because it throws in some extra .o
  9461. # files that make .init and .fini sections work.
  9462. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9463. else
  9464. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9465. fi
  9466. hardcode_libdir_flag_spec='-L$libdir'
  9467. hardcode_direct=yes
  9468. hardcode_minus_L=yes
  9469. hardcode_shlibpath_var=no
  9470. ;;
  9471. sysv4)
  9472. case $host_vendor in
  9473. sni)
  9474. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9475. hardcode_direct=yes # is this really true???
  9476. ;;
  9477. siemens)
  9478. ## LD is ld it makes a PLAMLIB
  9479. ## CC just makes a GrossModule.
  9480. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9481. reload_cmds='$CC -r -o $output$reload_objs'
  9482. hardcode_direct=no
  9483. ;;
  9484. motorola)
  9485. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9486. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9487. ;;
  9488. esac
  9489. runpath_var='LD_RUN_PATH'
  9490. hardcode_shlibpath_var=no
  9491. ;;
  9492. sysv4.3*)
  9493. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9494. hardcode_shlibpath_var=no
  9495. export_dynamic_flag_spec='-Bexport'
  9496. ;;
  9497. sysv4*MP*)
  9498. if test -d /usr/nec; then
  9499. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9500. hardcode_shlibpath_var=no
  9501. runpath_var=LD_RUN_PATH
  9502. hardcode_runpath_var=yes
  9503. ld_shlibs=yes
  9504. fi
  9505. ;;
  9506. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9507. no_undefined_flag='${wl}-z,text'
  9508. archive_cmds_need_lc=no
  9509. hardcode_shlibpath_var=no
  9510. runpath_var='LD_RUN_PATH'
  9511. if test "$GCC" = yes; then
  9512. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9513. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9514. else
  9515. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9516. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9517. fi
  9518. ;;
  9519. sysv5* | sco3.2v5* | sco5v6*)
  9520. # Note: We can NOT use -z defs as we might desire, because we do not
  9521. # link with -lc, and that would cause any symbols used from libc to
  9522. # always be unresolved, which means just about no library would
  9523. # ever link correctly. If we're not using GNU ld we use -z text
  9524. # though, which does catch some bad symbols but isn't as heavy-handed
  9525. # as -z defs.
  9526. no_undefined_flag='${wl}-z,text'
  9527. allow_undefined_flag='${wl}-z,nodefs'
  9528. archive_cmds_need_lc=no
  9529. hardcode_shlibpath_var=no
  9530. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9531. hardcode_libdir_separator=':'
  9532. link_all_deplibs=yes
  9533. export_dynamic_flag_spec='${wl}-Bexport'
  9534. runpath_var='LD_RUN_PATH'
  9535. if test "$GCC" = yes; then
  9536. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9537. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9538. else
  9539. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9540. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9541. fi
  9542. ;;
  9543. uts4*)
  9544. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9545. hardcode_libdir_flag_spec='-L$libdir'
  9546. hardcode_shlibpath_var=no
  9547. ;;
  9548. *)
  9549. ld_shlibs=no
  9550. ;;
  9551. esac
  9552. if test x$host_vendor = xsni; then
  9553. case $host in
  9554. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9555. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9556. ;;
  9557. esac
  9558. fi
  9559. fi
  9560. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9561. $as_echo "$ld_shlibs" >&6; }
  9562. test "$ld_shlibs" = no && can_build_shared=no
  9563. with_gnu_ld=$with_gnu_ld
  9564. #
  9565. # Do we need to explicitly link libc?
  9566. #
  9567. case "x$archive_cmds_need_lc" in
  9568. x|xyes)
  9569. # Assume -lc should be added
  9570. archive_cmds_need_lc=yes
  9571. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9572. case $archive_cmds in
  9573. *'~'*)
  9574. # FIXME: we may have to deal with multi-command sequences.
  9575. ;;
  9576. '$CC '*)
  9577. # Test whether the compiler implicitly links with -lc since on some
  9578. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9579. # to ld, don't add -lc before -lgcc.
  9580. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9581. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9582. $RM conftest*
  9583. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9584. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9585. (eval $ac_compile) 2>&5
  9586. ac_status=$?
  9587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9588. (exit $ac_status); } 2>conftest.err; then
  9589. soname=conftest
  9590. lib=conftest
  9591. libobjs=conftest.$ac_objext
  9592. deplibs=
  9593. wl=$lt_prog_compiler_wl
  9594. pic_flag=$lt_prog_compiler_pic
  9595. compiler_flags=-v
  9596. linker_flags=-v
  9597. verstring=
  9598. output_objdir=.
  9599. libname=conftest
  9600. lt_save_allow_undefined_flag=$allow_undefined_flag
  9601. allow_undefined_flag=
  9602. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9603. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9604. ac_status=$?
  9605. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9606. (exit $ac_status); }
  9607. then
  9608. archive_cmds_need_lc=no
  9609. else
  9610. archive_cmds_need_lc=yes
  9611. fi
  9612. allow_undefined_flag=$lt_save_allow_undefined_flag
  9613. else
  9614. cat conftest.err 1>&5
  9615. fi
  9616. $RM conftest*
  9617. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9618. $as_echo "$archive_cmds_need_lc" >&6; }
  9619. ;;
  9620. esac
  9621. fi
  9622. ;;
  9623. esac
  9624. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9625. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9626. if test "$GCC" = yes; then
  9627. case $host_os in
  9628. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9629. *) lt_awk_arg="/^libraries:/" ;;
  9630. esac
  9631. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9632. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9633. # if the path contains ";" then we assume it to be the separator
  9634. # otherwise default to the standard path separator (i.e. ":") - it is
  9635. # assumed that no part of a normal pathname contains ";" but that should
  9636. # okay in the real world where ";" in dirpaths is itself problematic.
  9637. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9638. else
  9639. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9640. fi
  9641. # Ok, now we have the path, separated by spaces, we can step through it
  9642. # and add multilib dir if necessary.
  9643. lt_tmp_lt_search_path_spec=
  9644. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9645. for lt_sys_path in $lt_search_path_spec; do
  9646. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9647. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9648. else
  9649. test -d "$lt_sys_path" && \
  9650. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9651. fi
  9652. done
  9653. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9654. BEGIN {RS=" "; FS="/|\n";} {
  9655. lt_foo="";
  9656. lt_count=0;
  9657. for (lt_i = NF; lt_i > 0; lt_i--) {
  9658. if ($lt_i != "" && $lt_i != ".") {
  9659. if ($lt_i == "..") {
  9660. lt_count++;
  9661. } else {
  9662. if (lt_count == 0) {
  9663. lt_foo="/" $lt_i lt_foo;
  9664. } else {
  9665. lt_count--;
  9666. }
  9667. }
  9668. }
  9669. }
  9670. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9671. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9672. }'`
  9673. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9674. else
  9675. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9676. fi
  9677. library_names_spec=
  9678. libname_spec='lib$name'
  9679. soname_spec=
  9680. shrext_cmds=".so"
  9681. postinstall_cmds=
  9682. postuninstall_cmds=
  9683. finish_cmds=
  9684. finish_eval=
  9685. shlibpath_var=
  9686. shlibpath_overrides_runpath=unknown
  9687. version_type=none
  9688. dynamic_linker="$host_os ld.so"
  9689. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9690. need_lib_prefix=unknown
  9691. hardcode_into_libs=no
  9692. # when you set need_version to no, make sure it does not cause -set_version
  9693. # flags to be left without arguments
  9694. need_version=unknown
  9695. case $host_os in
  9696. aix3*)
  9697. version_type=linux
  9698. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9699. shlibpath_var=LIBPATH
  9700. # AIX 3 has no versioning support, so we append a major version to the name.
  9701. soname_spec='${libname}${release}${shared_ext}$major'
  9702. ;;
  9703. aix[4-9]*)
  9704. version_type=linux
  9705. need_lib_prefix=no
  9706. need_version=no
  9707. hardcode_into_libs=yes
  9708. if test "$host_cpu" = ia64; then
  9709. # AIX 5 supports IA64
  9710. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9711. shlibpath_var=LD_LIBRARY_PATH
  9712. else
  9713. # With GCC up to 2.95.x, collect2 would create an import file
  9714. # for dependence libraries. The import file would start with
  9715. # the line `#! .'. This would cause the generated library to
  9716. # depend on `.', always an invalid library. This was fixed in
  9717. # development snapshots of GCC prior to 3.0.
  9718. case $host_os in
  9719. aix4 | aix4.[01] | aix4.[01].*)
  9720. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9721. echo ' yes '
  9722. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9723. :
  9724. else
  9725. can_build_shared=no
  9726. fi
  9727. ;;
  9728. esac
  9729. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9730. # soname into executable. Probably we can add versioning support to
  9731. # collect2, so additional links can be useful in future.
  9732. if test "$aix_use_runtimelinking" = yes; then
  9733. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9734. # instead of lib<name>.a to let people know that these are not
  9735. # typical AIX shared libraries.
  9736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9737. else
  9738. # We preserve .a as extension for shared libraries through AIX4.2
  9739. # and later when we are not doing run time linking.
  9740. library_names_spec='${libname}${release}.a $libname.a'
  9741. soname_spec='${libname}${release}${shared_ext}$major'
  9742. fi
  9743. shlibpath_var=LIBPATH
  9744. fi
  9745. ;;
  9746. amigaos*)
  9747. case $host_cpu in
  9748. powerpc)
  9749. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9750. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9752. ;;
  9753. m68k)
  9754. library_names_spec='$libname.ixlibrary $libname.a'
  9755. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9756. 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'
  9757. ;;
  9758. esac
  9759. ;;
  9760. beos*)
  9761. library_names_spec='${libname}${shared_ext}'
  9762. dynamic_linker="$host_os ld.so"
  9763. shlibpath_var=LIBRARY_PATH
  9764. ;;
  9765. bsdi[45]*)
  9766. version_type=linux
  9767. need_version=no
  9768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9769. soname_spec='${libname}${release}${shared_ext}$major'
  9770. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9771. shlibpath_var=LD_LIBRARY_PATH
  9772. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9773. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9774. # the default ld.so.conf also contains /usr/contrib/lib and
  9775. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9776. # libtool to hard-code these into programs
  9777. ;;
  9778. cygwin* | mingw* | pw32* | cegcc*)
  9779. version_type=windows
  9780. shrext_cmds=".dll"
  9781. need_version=no
  9782. need_lib_prefix=no
  9783. case $GCC,$host_os in
  9784. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9785. library_names_spec='$libname.dll.a'
  9786. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9787. postinstall_cmds='base_file=`basename \${file}`~
  9788. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9789. dldir=$destdir/`dirname \$dlpath`~
  9790. test -d \$dldir || mkdir -p \$dldir~
  9791. $install_prog $dir/$dlname \$dldir/$dlname~
  9792. chmod a+x \$dldir/$dlname~
  9793. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9794. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9795. fi'
  9796. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9797. dlpath=$dir/\$dldll~
  9798. $RM \$dlpath'
  9799. shlibpath_overrides_runpath=yes
  9800. case $host_os in
  9801. cygwin*)
  9802. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9803. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9804. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9805. ;;
  9806. mingw* | cegcc*)
  9807. # MinGW DLLs use traditional 'lib' prefix
  9808. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9809. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9810. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9811. # It is most probably a Windows format PATH printed by
  9812. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9813. # path with ; separators, and with drive letters. We can handle the
  9814. # drive letters (cygwin fileutils understands them), so leave them,
  9815. # especially as we might pass files found there to a mingw objdump,
  9816. # which wouldn't understand a cygwinified path. Ahh.
  9817. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9818. else
  9819. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9820. fi
  9821. ;;
  9822. pw32*)
  9823. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9824. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9825. ;;
  9826. esac
  9827. ;;
  9828. *)
  9829. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9830. ;;
  9831. esac
  9832. dynamic_linker='Win32 ld.exe'
  9833. # FIXME: first we should search . and the directory the executable is in
  9834. shlibpath_var=PATH
  9835. ;;
  9836. darwin* | rhapsody*)
  9837. dynamic_linker="$host_os dyld"
  9838. version_type=darwin
  9839. need_lib_prefix=no
  9840. need_version=no
  9841. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9842. soname_spec='${libname}${release}${major}$shared_ext'
  9843. shlibpath_overrides_runpath=yes
  9844. shlibpath_var=DYLD_LIBRARY_PATH
  9845. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9846. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9847. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9848. ;;
  9849. dgux*)
  9850. version_type=linux
  9851. need_lib_prefix=no
  9852. need_version=no
  9853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9854. soname_spec='${libname}${release}${shared_ext}$major'
  9855. shlibpath_var=LD_LIBRARY_PATH
  9856. ;;
  9857. freebsd1*)
  9858. dynamic_linker=no
  9859. ;;
  9860. freebsd* | dragonfly*)
  9861. # DragonFly does not have aout. When/if they implement a new
  9862. # versioning mechanism, adjust this.
  9863. if test -x /usr/bin/objformat; then
  9864. objformat=`/usr/bin/objformat`
  9865. else
  9866. case $host_os in
  9867. freebsd[123]*) objformat=aout ;;
  9868. *) objformat=elf ;;
  9869. esac
  9870. fi
  9871. version_type=freebsd-$objformat
  9872. case $version_type in
  9873. freebsd-elf*)
  9874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9875. need_version=no
  9876. need_lib_prefix=no
  9877. ;;
  9878. freebsd-*)
  9879. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9880. need_version=yes
  9881. ;;
  9882. esac
  9883. shlibpath_var=LD_LIBRARY_PATH
  9884. case $host_os in
  9885. freebsd2*)
  9886. shlibpath_overrides_runpath=yes
  9887. ;;
  9888. freebsd3.[01]* | freebsdelf3.[01]*)
  9889. shlibpath_overrides_runpath=yes
  9890. hardcode_into_libs=yes
  9891. ;;
  9892. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9893. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9894. shlibpath_overrides_runpath=no
  9895. hardcode_into_libs=yes
  9896. ;;
  9897. *) # from 4.6 on, and DragonFly
  9898. shlibpath_overrides_runpath=yes
  9899. hardcode_into_libs=yes
  9900. ;;
  9901. esac
  9902. ;;
  9903. gnu*)
  9904. version_type=linux
  9905. need_lib_prefix=no
  9906. need_version=no
  9907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9908. soname_spec='${libname}${release}${shared_ext}$major'
  9909. shlibpath_var=LD_LIBRARY_PATH
  9910. hardcode_into_libs=yes
  9911. ;;
  9912. hpux9* | hpux10* | hpux11*)
  9913. # Give a soname corresponding to the major version so that dld.sl refuses to
  9914. # link against other versions.
  9915. version_type=sunos
  9916. need_lib_prefix=no
  9917. need_version=no
  9918. case $host_cpu in
  9919. ia64*)
  9920. shrext_cmds='.so'
  9921. hardcode_into_libs=yes
  9922. dynamic_linker="$host_os dld.so"
  9923. shlibpath_var=LD_LIBRARY_PATH
  9924. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9926. soname_spec='${libname}${release}${shared_ext}$major'
  9927. if test "X$HPUX_IA64_MODE" = X32; then
  9928. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9929. else
  9930. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9931. fi
  9932. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9933. ;;
  9934. hppa*64*)
  9935. shrext_cmds='.sl'
  9936. hardcode_into_libs=yes
  9937. dynamic_linker="$host_os dld.sl"
  9938. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9939. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9941. soname_spec='${libname}${release}${shared_ext}$major'
  9942. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9943. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9944. ;;
  9945. *)
  9946. shrext_cmds='.sl'
  9947. dynamic_linker="$host_os dld.sl"
  9948. shlibpath_var=SHLIB_PATH
  9949. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9951. soname_spec='${libname}${release}${shared_ext}$major'
  9952. ;;
  9953. esac
  9954. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9955. postinstall_cmds='chmod 555 $lib'
  9956. ;;
  9957. interix[3-9]*)
  9958. version_type=linux
  9959. need_lib_prefix=no
  9960. need_version=no
  9961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9962. soname_spec='${libname}${release}${shared_ext}$major'
  9963. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9964. shlibpath_var=LD_LIBRARY_PATH
  9965. shlibpath_overrides_runpath=no
  9966. hardcode_into_libs=yes
  9967. ;;
  9968. irix5* | irix6* | nonstopux*)
  9969. case $host_os in
  9970. nonstopux*) version_type=nonstopux ;;
  9971. *)
  9972. if test "$lt_cv_prog_gnu_ld" = yes; then
  9973. version_type=linux
  9974. else
  9975. version_type=irix
  9976. fi ;;
  9977. esac
  9978. need_lib_prefix=no
  9979. need_version=no
  9980. soname_spec='${libname}${release}${shared_ext}$major'
  9981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9982. case $host_os in
  9983. irix5* | nonstopux*)
  9984. libsuff= shlibsuff=
  9985. ;;
  9986. *)
  9987. case $LD in # libtool.m4 will add one of these switches to LD
  9988. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9989. libsuff= shlibsuff= libmagic=32-bit;;
  9990. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9991. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9992. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9993. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9994. *) libsuff= shlibsuff= libmagic=never-match;;
  9995. esac
  9996. ;;
  9997. esac
  9998. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9999. shlibpath_overrides_runpath=no
  10000. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10001. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10002. hardcode_into_libs=yes
  10003. ;;
  10004. # No shared lib support for Linux oldld, aout, or coff.
  10005. linux*oldld* | linux*aout* | linux*coff*)
  10006. dynamic_linker=no
  10007. ;;
  10008. # This must be Linux ELF.
  10009. linux* | k*bsd*-gnu)
  10010. version_type=linux
  10011. need_lib_prefix=no
  10012. need_version=no
  10013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10014. soname_spec='${libname}${release}${shared_ext}$major'
  10015. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10016. shlibpath_var=LD_LIBRARY_PATH
  10017. shlibpath_overrides_runpath=no
  10018. # Some binutils ld are patched to set DT_RUNPATH
  10019. save_LDFLAGS=$LDFLAGS
  10020. save_libdir=$libdir
  10021. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10022. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10023. cat >conftest.$ac_ext <<_ACEOF
  10024. /* confdefs.h. */
  10025. _ACEOF
  10026. cat confdefs.h >>conftest.$ac_ext
  10027. cat >>conftest.$ac_ext <<_ACEOF
  10028. /* end confdefs.h. */
  10029. int
  10030. main ()
  10031. {
  10032. ;
  10033. return 0;
  10034. }
  10035. _ACEOF
  10036. rm -f conftest.$ac_objext conftest$ac_exeext
  10037. if { (ac_try="$ac_link"
  10038. case "(($ac_try" in
  10039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10040. *) ac_try_echo=$ac_try;;
  10041. esac
  10042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10043. $as_echo "$ac_try_echo") >&5
  10044. (eval "$ac_link") 2>conftest.er1
  10045. ac_status=$?
  10046. grep -v '^ *+' conftest.er1 >conftest.err
  10047. rm -f conftest.er1
  10048. cat conftest.err >&5
  10049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10050. (exit $ac_status); } && {
  10051. test -z "$ac_c_werror_flag" ||
  10052. test ! -s conftest.err
  10053. } && test -s conftest$ac_exeext && {
  10054. test "$cross_compiling" = yes ||
  10055. $as_test_x conftest$ac_exeext
  10056. }; then
  10057. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  10058. shlibpath_overrides_runpath=yes
  10059. fi
  10060. else
  10061. $as_echo "$as_me: failed program was:" >&5
  10062. sed 's/^/| /' conftest.$ac_ext >&5
  10063. fi
  10064. rm -rf conftest.dSYM
  10065. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10066. conftest$ac_exeext conftest.$ac_ext
  10067. LDFLAGS=$save_LDFLAGS
  10068. libdir=$save_libdir
  10069. # This implies no fast_install, which is unacceptable.
  10070. # Some rework will be needed to allow for fast_install
  10071. # before this can be enabled.
  10072. hardcode_into_libs=yes
  10073. # Add ABI-specific directories to the system library path.
  10074. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10075. # Append ld.so.conf contents to the search path
  10076. if test -f /etc/ld.so.conf; then
  10077. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10078. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10079. fi
  10080. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10081. # powerpc, because MkLinux only supported shared libraries with the
  10082. # GNU dynamic linker. Since this was broken with cross compilers,
  10083. # most powerpc-linux boxes support dynamic linking these days and
  10084. # people can always --disable-shared, the test was removed, and we
  10085. # assume the GNU/Linux dynamic linker is in use.
  10086. dynamic_linker='GNU/Linux ld.so'
  10087. ;;
  10088. netbsd*)
  10089. version_type=sunos
  10090. need_lib_prefix=no
  10091. need_version=no
  10092. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10094. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10095. dynamic_linker='NetBSD (a.out) ld.so'
  10096. else
  10097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10098. soname_spec='${libname}${release}${shared_ext}$major'
  10099. dynamic_linker='NetBSD ld.elf_so'
  10100. fi
  10101. shlibpath_var=LD_LIBRARY_PATH
  10102. shlibpath_overrides_runpath=yes
  10103. hardcode_into_libs=yes
  10104. ;;
  10105. newsos6)
  10106. version_type=linux
  10107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10108. shlibpath_var=LD_LIBRARY_PATH
  10109. shlibpath_overrides_runpath=yes
  10110. ;;
  10111. *nto* | *qnx*)
  10112. version_type=qnx
  10113. need_lib_prefix=no
  10114. need_version=no
  10115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10116. soname_spec='${libname}${release}${shared_ext}$major'
  10117. shlibpath_var=LD_LIBRARY_PATH
  10118. shlibpath_overrides_runpath=no
  10119. hardcode_into_libs=yes
  10120. dynamic_linker='ldqnx.so'
  10121. ;;
  10122. openbsd*)
  10123. version_type=sunos
  10124. sys_lib_dlsearch_path_spec="/usr/lib"
  10125. need_lib_prefix=no
  10126. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10127. case $host_os in
  10128. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10129. *) need_version=no ;;
  10130. esac
  10131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10132. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10133. shlibpath_var=LD_LIBRARY_PATH
  10134. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10135. case $host_os in
  10136. openbsd2.[89] | openbsd2.[89].*)
  10137. shlibpath_overrides_runpath=no
  10138. ;;
  10139. *)
  10140. shlibpath_overrides_runpath=yes
  10141. ;;
  10142. esac
  10143. else
  10144. shlibpath_overrides_runpath=yes
  10145. fi
  10146. ;;
  10147. os2*)
  10148. libname_spec='$name'
  10149. shrext_cmds=".dll"
  10150. need_lib_prefix=no
  10151. library_names_spec='$libname${shared_ext} $libname.a'
  10152. dynamic_linker='OS/2 ld.exe'
  10153. shlibpath_var=LIBPATH
  10154. ;;
  10155. osf3* | osf4* | osf5*)
  10156. version_type=osf
  10157. need_lib_prefix=no
  10158. need_version=no
  10159. soname_spec='${libname}${release}${shared_ext}$major'
  10160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10161. shlibpath_var=LD_LIBRARY_PATH
  10162. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10163. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10164. ;;
  10165. rdos*)
  10166. dynamic_linker=no
  10167. ;;
  10168. solaris*)
  10169. version_type=linux
  10170. need_lib_prefix=no
  10171. need_version=no
  10172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10173. soname_spec='${libname}${release}${shared_ext}$major'
  10174. shlibpath_var=LD_LIBRARY_PATH
  10175. shlibpath_overrides_runpath=yes
  10176. hardcode_into_libs=yes
  10177. # ldd complains unless libraries are executable
  10178. postinstall_cmds='chmod +x $lib'
  10179. ;;
  10180. sunos4*)
  10181. version_type=sunos
  10182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10183. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10184. shlibpath_var=LD_LIBRARY_PATH
  10185. shlibpath_overrides_runpath=yes
  10186. if test "$with_gnu_ld" = yes; then
  10187. need_lib_prefix=no
  10188. fi
  10189. need_version=yes
  10190. ;;
  10191. sysv4 | sysv4.3*)
  10192. version_type=linux
  10193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10194. soname_spec='${libname}${release}${shared_ext}$major'
  10195. shlibpath_var=LD_LIBRARY_PATH
  10196. case $host_vendor in
  10197. sni)
  10198. shlibpath_overrides_runpath=no
  10199. need_lib_prefix=no
  10200. runpath_var=LD_RUN_PATH
  10201. ;;
  10202. siemens)
  10203. need_lib_prefix=no
  10204. ;;
  10205. motorola)
  10206. need_lib_prefix=no
  10207. need_version=no
  10208. shlibpath_overrides_runpath=no
  10209. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10210. ;;
  10211. esac
  10212. ;;
  10213. sysv4*MP*)
  10214. if test -d /usr/nec ;then
  10215. version_type=linux
  10216. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10217. soname_spec='$libname${shared_ext}.$major'
  10218. shlibpath_var=LD_LIBRARY_PATH
  10219. fi
  10220. ;;
  10221. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10222. version_type=freebsd-elf
  10223. need_lib_prefix=no
  10224. need_version=no
  10225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10226. soname_spec='${libname}${release}${shared_ext}$major'
  10227. shlibpath_var=LD_LIBRARY_PATH
  10228. shlibpath_overrides_runpath=yes
  10229. hardcode_into_libs=yes
  10230. if test "$with_gnu_ld" = yes; then
  10231. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10232. else
  10233. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10234. case $host_os in
  10235. sco3.2v5*)
  10236. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10237. ;;
  10238. esac
  10239. fi
  10240. sys_lib_dlsearch_path_spec='/usr/lib'
  10241. ;;
  10242. tpf*)
  10243. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10244. version_type=linux
  10245. need_lib_prefix=no
  10246. need_version=no
  10247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10248. shlibpath_var=LD_LIBRARY_PATH
  10249. shlibpath_overrides_runpath=no
  10250. hardcode_into_libs=yes
  10251. ;;
  10252. uts4*)
  10253. version_type=linux
  10254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10255. soname_spec='${libname}${release}${shared_ext}$major'
  10256. shlibpath_var=LD_LIBRARY_PATH
  10257. ;;
  10258. *)
  10259. dynamic_linker=no
  10260. ;;
  10261. esac
  10262. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10263. $as_echo "$dynamic_linker" >&6; }
  10264. test "$dynamic_linker" = no && can_build_shared=no
  10265. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10266. if test "$GCC" = yes; then
  10267. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10268. fi
  10269. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10270. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10271. fi
  10272. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10273. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10274. fi
  10275. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10276. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10277. hardcode_action=
  10278. if test -n "$hardcode_libdir_flag_spec" ||
  10279. test -n "$runpath_var" ||
  10280. test "X$hardcode_automatic" = "Xyes" ; then
  10281. # We can hardcode non-existent directories.
  10282. if test "$hardcode_direct" != no &&
  10283. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10284. # have to relink, otherwise we might link with an installed library
  10285. # when we should be linking with a yet-to-be-installed one
  10286. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10287. test "$hardcode_minus_L" != no; then
  10288. # Linking always hardcodes the temporary library directory.
  10289. hardcode_action=relink
  10290. else
  10291. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10292. hardcode_action=immediate
  10293. fi
  10294. else
  10295. # We cannot hardcode anything, or else we can only hardcode existing
  10296. # directories.
  10297. hardcode_action=unsupported
  10298. fi
  10299. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10300. $as_echo "$hardcode_action" >&6; }
  10301. if test "$hardcode_action" = relink ||
  10302. test "$inherit_rpath" = yes; then
  10303. # Fast installation is not supported
  10304. enable_fast_install=no
  10305. elif test "$shlibpath_overrides_runpath" = yes ||
  10306. test "$enable_shared" = no; then
  10307. # Fast installation is not necessary
  10308. enable_fast_install=needless
  10309. fi
  10310. if test "x$enable_dlopen" != xyes; then
  10311. enable_dlopen=unknown
  10312. enable_dlopen_self=unknown
  10313. enable_dlopen_self_static=unknown
  10314. else
  10315. lt_cv_dlopen=no
  10316. lt_cv_dlopen_libs=
  10317. case $host_os in
  10318. beos*)
  10319. lt_cv_dlopen="load_add_on"
  10320. lt_cv_dlopen_libs=
  10321. lt_cv_dlopen_self=yes
  10322. ;;
  10323. mingw* | pw32* | cegcc*)
  10324. lt_cv_dlopen="LoadLibrary"
  10325. lt_cv_dlopen_libs=
  10326. ;;
  10327. cygwin*)
  10328. lt_cv_dlopen="dlopen"
  10329. lt_cv_dlopen_libs=
  10330. ;;
  10331. darwin*)
  10332. # if libdl is installed we need to link against it
  10333. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10334. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10335. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10336. $as_echo_n "(cached) " >&6
  10337. else
  10338. ac_check_lib_save_LIBS=$LIBS
  10339. LIBS="-ldl $LIBS"
  10340. cat >conftest.$ac_ext <<_ACEOF
  10341. /* confdefs.h. */
  10342. _ACEOF
  10343. cat confdefs.h >>conftest.$ac_ext
  10344. cat >>conftest.$ac_ext <<_ACEOF
  10345. /* end confdefs.h. */
  10346. /* Override any GCC internal prototype to avoid an error.
  10347. Use char because int might match the return type of a GCC
  10348. builtin and then its argument prototype would still apply. */
  10349. #ifdef __cplusplus
  10350. extern "C"
  10351. #endif
  10352. char dlopen ();
  10353. int
  10354. main ()
  10355. {
  10356. return dlopen ();
  10357. ;
  10358. return 0;
  10359. }
  10360. _ACEOF
  10361. rm -f conftest.$ac_objext conftest$ac_exeext
  10362. if { (ac_try="$ac_link"
  10363. case "(($ac_try" in
  10364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10365. *) ac_try_echo=$ac_try;;
  10366. esac
  10367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10368. $as_echo "$ac_try_echo") >&5
  10369. (eval "$ac_link") 2>conftest.er1
  10370. ac_status=$?
  10371. grep -v '^ *+' conftest.er1 >conftest.err
  10372. rm -f conftest.er1
  10373. cat conftest.err >&5
  10374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10375. (exit $ac_status); } && {
  10376. test -z "$ac_c_werror_flag" ||
  10377. test ! -s conftest.err
  10378. } && test -s conftest$ac_exeext && {
  10379. test "$cross_compiling" = yes ||
  10380. $as_test_x conftest$ac_exeext
  10381. }; then
  10382. ac_cv_lib_dl_dlopen=yes
  10383. else
  10384. $as_echo "$as_me: failed program was:" >&5
  10385. sed 's/^/| /' conftest.$ac_ext >&5
  10386. ac_cv_lib_dl_dlopen=no
  10387. fi
  10388. rm -rf conftest.dSYM
  10389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10390. conftest$ac_exeext conftest.$ac_ext
  10391. LIBS=$ac_check_lib_save_LIBS
  10392. fi
  10393. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10394. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10395. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10396. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10397. else
  10398. lt_cv_dlopen="dyld"
  10399. lt_cv_dlopen_libs=
  10400. lt_cv_dlopen_self=yes
  10401. fi
  10402. ;;
  10403. *)
  10404. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  10405. $as_echo_n "checking for shl_load... " >&6; }
  10406. if test "${ac_cv_func_shl_load+set}" = set; then
  10407. $as_echo_n "(cached) " >&6
  10408. else
  10409. cat >conftest.$ac_ext <<_ACEOF
  10410. /* confdefs.h. */
  10411. _ACEOF
  10412. cat confdefs.h >>conftest.$ac_ext
  10413. cat >>conftest.$ac_ext <<_ACEOF
  10414. /* end confdefs.h. */
  10415. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10416. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10417. #define shl_load innocuous_shl_load
  10418. /* System header to define __stub macros and hopefully few prototypes,
  10419. which can conflict with char shl_load (); below.
  10420. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10421. <limits.h> exists even on freestanding compilers. */
  10422. #ifdef __STDC__
  10423. # include <limits.h>
  10424. #else
  10425. # include <assert.h>
  10426. #endif
  10427. #undef shl_load
  10428. /* Override any GCC internal prototype to avoid an error.
  10429. Use char because int might match the return type of a GCC
  10430. builtin and then its argument prototype would still apply. */
  10431. #ifdef __cplusplus
  10432. extern "C"
  10433. #endif
  10434. char shl_load ();
  10435. /* The GNU C library defines this for functions which it implements
  10436. to always fail with ENOSYS. Some functions are actually named
  10437. something starting with __ and the normal name is an alias. */
  10438. #if defined __stub_shl_load || defined __stub___shl_load
  10439. choke me
  10440. #endif
  10441. int
  10442. main ()
  10443. {
  10444. return shl_load ();
  10445. ;
  10446. return 0;
  10447. }
  10448. _ACEOF
  10449. rm -f conftest.$ac_objext conftest$ac_exeext
  10450. if { (ac_try="$ac_link"
  10451. case "(($ac_try" in
  10452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10453. *) ac_try_echo=$ac_try;;
  10454. esac
  10455. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10456. $as_echo "$ac_try_echo") >&5
  10457. (eval "$ac_link") 2>conftest.er1
  10458. ac_status=$?
  10459. grep -v '^ *+' conftest.er1 >conftest.err
  10460. rm -f conftest.er1
  10461. cat conftest.err >&5
  10462. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10463. (exit $ac_status); } && {
  10464. test -z "$ac_c_werror_flag" ||
  10465. test ! -s conftest.err
  10466. } && test -s conftest$ac_exeext && {
  10467. test "$cross_compiling" = yes ||
  10468. $as_test_x conftest$ac_exeext
  10469. }; then
  10470. ac_cv_func_shl_load=yes
  10471. else
  10472. $as_echo "$as_me: failed program was:" >&5
  10473. sed 's/^/| /' conftest.$ac_ext >&5
  10474. ac_cv_func_shl_load=no
  10475. fi
  10476. rm -rf conftest.dSYM
  10477. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10478. conftest$ac_exeext conftest.$ac_ext
  10479. fi
  10480. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10481. $as_echo "$ac_cv_func_shl_load" >&6; }
  10482. if test "x$ac_cv_func_shl_load" = x""yes; then
  10483. lt_cv_dlopen="shl_load"
  10484. else
  10485. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10486. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10487. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10488. $as_echo_n "(cached) " >&6
  10489. else
  10490. ac_check_lib_save_LIBS=$LIBS
  10491. LIBS="-ldld $LIBS"
  10492. cat >conftest.$ac_ext <<_ACEOF
  10493. /* confdefs.h. */
  10494. _ACEOF
  10495. cat confdefs.h >>conftest.$ac_ext
  10496. cat >>conftest.$ac_ext <<_ACEOF
  10497. /* end confdefs.h. */
  10498. /* Override any GCC internal prototype to avoid an error.
  10499. Use char because int might match the return type of a GCC
  10500. builtin and then its argument prototype would still apply. */
  10501. #ifdef __cplusplus
  10502. extern "C"
  10503. #endif
  10504. char shl_load ();
  10505. int
  10506. main ()
  10507. {
  10508. return shl_load ();
  10509. ;
  10510. return 0;
  10511. }
  10512. _ACEOF
  10513. rm -f conftest.$ac_objext conftest$ac_exeext
  10514. if { (ac_try="$ac_link"
  10515. case "(($ac_try" in
  10516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10517. *) ac_try_echo=$ac_try;;
  10518. esac
  10519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10520. $as_echo "$ac_try_echo") >&5
  10521. (eval "$ac_link") 2>conftest.er1
  10522. ac_status=$?
  10523. grep -v '^ *+' conftest.er1 >conftest.err
  10524. rm -f conftest.er1
  10525. cat conftest.err >&5
  10526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10527. (exit $ac_status); } && {
  10528. test -z "$ac_c_werror_flag" ||
  10529. test ! -s conftest.err
  10530. } && test -s conftest$ac_exeext && {
  10531. test "$cross_compiling" = yes ||
  10532. $as_test_x conftest$ac_exeext
  10533. }; then
  10534. ac_cv_lib_dld_shl_load=yes
  10535. else
  10536. $as_echo "$as_me: failed program was:" >&5
  10537. sed 's/^/| /' conftest.$ac_ext >&5
  10538. ac_cv_lib_dld_shl_load=no
  10539. fi
  10540. rm -rf conftest.dSYM
  10541. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10542. conftest$ac_exeext conftest.$ac_ext
  10543. LIBS=$ac_check_lib_save_LIBS
  10544. fi
  10545. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10546. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10547. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  10548. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10549. else
  10550. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  10551. $as_echo_n "checking for dlopen... " >&6; }
  10552. if test "${ac_cv_func_dlopen+set}" = set; then
  10553. $as_echo_n "(cached) " >&6
  10554. else
  10555. cat >conftest.$ac_ext <<_ACEOF
  10556. /* confdefs.h. */
  10557. _ACEOF
  10558. cat confdefs.h >>conftest.$ac_ext
  10559. cat >>conftest.$ac_ext <<_ACEOF
  10560. /* end confdefs.h. */
  10561. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10562. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10563. #define dlopen innocuous_dlopen
  10564. /* System header to define __stub macros and hopefully few prototypes,
  10565. which can conflict with char dlopen (); below.
  10566. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10567. <limits.h> exists even on freestanding compilers. */
  10568. #ifdef __STDC__
  10569. # include <limits.h>
  10570. #else
  10571. # include <assert.h>
  10572. #endif
  10573. #undef dlopen
  10574. /* Override any GCC internal prototype to avoid an error.
  10575. Use char because int might match the return type of a GCC
  10576. builtin and then its argument prototype would still apply. */
  10577. #ifdef __cplusplus
  10578. extern "C"
  10579. #endif
  10580. char dlopen ();
  10581. /* The GNU C library defines this for functions which it implements
  10582. to always fail with ENOSYS. Some functions are actually named
  10583. something starting with __ and the normal name is an alias. */
  10584. #if defined __stub_dlopen || defined __stub___dlopen
  10585. choke me
  10586. #endif
  10587. int
  10588. main ()
  10589. {
  10590. return dlopen ();
  10591. ;
  10592. return 0;
  10593. }
  10594. _ACEOF
  10595. rm -f conftest.$ac_objext conftest$ac_exeext
  10596. if { (ac_try="$ac_link"
  10597. case "(($ac_try" in
  10598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10599. *) ac_try_echo=$ac_try;;
  10600. esac
  10601. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10602. $as_echo "$ac_try_echo") >&5
  10603. (eval "$ac_link") 2>conftest.er1
  10604. ac_status=$?
  10605. grep -v '^ *+' conftest.er1 >conftest.err
  10606. rm -f conftest.er1
  10607. cat conftest.err >&5
  10608. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10609. (exit $ac_status); } && {
  10610. test -z "$ac_c_werror_flag" ||
  10611. test ! -s conftest.err
  10612. } && test -s conftest$ac_exeext && {
  10613. test "$cross_compiling" = yes ||
  10614. $as_test_x conftest$ac_exeext
  10615. }; then
  10616. ac_cv_func_dlopen=yes
  10617. else
  10618. $as_echo "$as_me: failed program was:" >&5
  10619. sed 's/^/| /' conftest.$ac_ext >&5
  10620. ac_cv_func_dlopen=no
  10621. fi
  10622. rm -rf conftest.dSYM
  10623. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10624. conftest$ac_exeext conftest.$ac_ext
  10625. fi
  10626. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10627. $as_echo "$ac_cv_func_dlopen" >&6; }
  10628. if test "x$ac_cv_func_dlopen" = x""yes; then
  10629. lt_cv_dlopen="dlopen"
  10630. else
  10631. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10632. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10633. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10634. $as_echo_n "(cached) " >&6
  10635. else
  10636. ac_check_lib_save_LIBS=$LIBS
  10637. LIBS="-ldl $LIBS"
  10638. cat >conftest.$ac_ext <<_ACEOF
  10639. /* confdefs.h. */
  10640. _ACEOF
  10641. cat confdefs.h >>conftest.$ac_ext
  10642. cat >>conftest.$ac_ext <<_ACEOF
  10643. /* end confdefs.h. */
  10644. /* Override any GCC internal prototype to avoid an error.
  10645. Use char because int might match the return type of a GCC
  10646. builtin and then its argument prototype would still apply. */
  10647. #ifdef __cplusplus
  10648. extern "C"
  10649. #endif
  10650. char dlopen ();
  10651. int
  10652. main ()
  10653. {
  10654. return dlopen ();
  10655. ;
  10656. return 0;
  10657. }
  10658. _ACEOF
  10659. rm -f conftest.$ac_objext conftest$ac_exeext
  10660. if { (ac_try="$ac_link"
  10661. case "(($ac_try" in
  10662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10663. *) ac_try_echo=$ac_try;;
  10664. esac
  10665. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10666. $as_echo "$ac_try_echo") >&5
  10667. (eval "$ac_link") 2>conftest.er1
  10668. ac_status=$?
  10669. grep -v '^ *+' conftest.er1 >conftest.err
  10670. rm -f conftest.er1
  10671. cat conftest.err >&5
  10672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10673. (exit $ac_status); } && {
  10674. test -z "$ac_c_werror_flag" ||
  10675. test ! -s conftest.err
  10676. } && test -s conftest$ac_exeext && {
  10677. test "$cross_compiling" = yes ||
  10678. $as_test_x conftest$ac_exeext
  10679. }; then
  10680. ac_cv_lib_dl_dlopen=yes
  10681. else
  10682. $as_echo "$as_me: failed program was:" >&5
  10683. sed 's/^/| /' conftest.$ac_ext >&5
  10684. ac_cv_lib_dl_dlopen=no
  10685. fi
  10686. rm -rf conftest.dSYM
  10687. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10688. conftest$ac_exeext conftest.$ac_ext
  10689. LIBS=$ac_check_lib_save_LIBS
  10690. fi
  10691. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10692. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10693. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10694. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10695. else
  10696. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10697. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10698. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10699. $as_echo_n "(cached) " >&6
  10700. else
  10701. ac_check_lib_save_LIBS=$LIBS
  10702. LIBS="-lsvld $LIBS"
  10703. cat >conftest.$ac_ext <<_ACEOF
  10704. /* confdefs.h. */
  10705. _ACEOF
  10706. cat confdefs.h >>conftest.$ac_ext
  10707. cat >>conftest.$ac_ext <<_ACEOF
  10708. /* end confdefs.h. */
  10709. /* Override any GCC internal prototype to avoid an error.
  10710. Use char because int might match the return type of a GCC
  10711. builtin and then its argument prototype would still apply. */
  10712. #ifdef __cplusplus
  10713. extern "C"
  10714. #endif
  10715. char dlopen ();
  10716. int
  10717. main ()
  10718. {
  10719. return dlopen ();
  10720. ;
  10721. return 0;
  10722. }
  10723. _ACEOF
  10724. rm -f conftest.$ac_objext conftest$ac_exeext
  10725. if { (ac_try="$ac_link"
  10726. case "(($ac_try" in
  10727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10728. *) ac_try_echo=$ac_try;;
  10729. esac
  10730. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10731. $as_echo "$ac_try_echo") >&5
  10732. (eval "$ac_link") 2>conftest.er1
  10733. ac_status=$?
  10734. grep -v '^ *+' conftest.er1 >conftest.err
  10735. rm -f conftest.er1
  10736. cat conftest.err >&5
  10737. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10738. (exit $ac_status); } && {
  10739. test -z "$ac_c_werror_flag" ||
  10740. test ! -s conftest.err
  10741. } && test -s conftest$ac_exeext && {
  10742. test "$cross_compiling" = yes ||
  10743. $as_test_x conftest$ac_exeext
  10744. }; then
  10745. ac_cv_lib_svld_dlopen=yes
  10746. else
  10747. $as_echo "$as_me: failed program was:" >&5
  10748. sed 's/^/| /' conftest.$ac_ext >&5
  10749. ac_cv_lib_svld_dlopen=no
  10750. fi
  10751. rm -rf conftest.dSYM
  10752. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10753. conftest$ac_exeext conftest.$ac_ext
  10754. LIBS=$ac_check_lib_save_LIBS
  10755. fi
  10756. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10757. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10758. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10759. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10760. else
  10761. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10762. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10763. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10764. $as_echo_n "(cached) " >&6
  10765. else
  10766. ac_check_lib_save_LIBS=$LIBS
  10767. LIBS="-ldld $LIBS"
  10768. cat >conftest.$ac_ext <<_ACEOF
  10769. /* confdefs.h. */
  10770. _ACEOF
  10771. cat confdefs.h >>conftest.$ac_ext
  10772. cat >>conftest.$ac_ext <<_ACEOF
  10773. /* end confdefs.h. */
  10774. /* Override any GCC internal prototype to avoid an error.
  10775. Use char because int might match the return type of a GCC
  10776. builtin and then its argument prototype would still apply. */
  10777. #ifdef __cplusplus
  10778. extern "C"
  10779. #endif
  10780. char dld_link ();
  10781. int
  10782. main ()
  10783. {
  10784. return dld_link ();
  10785. ;
  10786. return 0;
  10787. }
  10788. _ACEOF
  10789. rm -f conftest.$ac_objext conftest$ac_exeext
  10790. if { (ac_try="$ac_link"
  10791. case "(($ac_try" in
  10792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10793. *) ac_try_echo=$ac_try;;
  10794. esac
  10795. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10796. $as_echo "$ac_try_echo") >&5
  10797. (eval "$ac_link") 2>conftest.er1
  10798. ac_status=$?
  10799. grep -v '^ *+' conftest.er1 >conftest.err
  10800. rm -f conftest.er1
  10801. cat conftest.err >&5
  10802. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10803. (exit $ac_status); } && {
  10804. test -z "$ac_c_werror_flag" ||
  10805. test ! -s conftest.err
  10806. } && test -s conftest$ac_exeext && {
  10807. test "$cross_compiling" = yes ||
  10808. $as_test_x conftest$ac_exeext
  10809. }; then
  10810. ac_cv_lib_dld_dld_link=yes
  10811. else
  10812. $as_echo "$as_me: failed program was:" >&5
  10813. sed 's/^/| /' conftest.$ac_ext >&5
  10814. ac_cv_lib_dld_dld_link=no
  10815. fi
  10816. rm -rf conftest.dSYM
  10817. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10818. conftest$ac_exeext conftest.$ac_ext
  10819. LIBS=$ac_check_lib_save_LIBS
  10820. fi
  10821. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10822. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10823. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10824. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10825. fi
  10826. fi
  10827. fi
  10828. fi
  10829. fi
  10830. fi
  10831. ;;
  10832. esac
  10833. if test "x$lt_cv_dlopen" != xno; then
  10834. enable_dlopen=yes
  10835. else
  10836. enable_dlopen=no
  10837. fi
  10838. case $lt_cv_dlopen in
  10839. dlopen)
  10840. save_CPPFLAGS="$CPPFLAGS"
  10841. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10842. save_LDFLAGS="$LDFLAGS"
  10843. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10844. save_LIBS="$LIBS"
  10845. LIBS="$lt_cv_dlopen_libs $LIBS"
  10846. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10847. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10848. if test "${lt_cv_dlopen_self+set}" = set; then
  10849. $as_echo_n "(cached) " >&6
  10850. else
  10851. if test "$cross_compiling" = yes; then :
  10852. lt_cv_dlopen_self=cross
  10853. else
  10854. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10855. lt_status=$lt_dlunknown
  10856. cat > conftest.$ac_ext <<_LT_EOF
  10857. #line 12553 "configure"
  10858. #include "confdefs.h"
  10859. #if HAVE_DLFCN_H
  10860. #include <dlfcn.h>
  10861. #endif
  10862. #include <stdio.h>
  10863. #ifdef RTLD_GLOBAL
  10864. # define LT_DLGLOBAL RTLD_GLOBAL
  10865. #else
  10866. # ifdef DL_GLOBAL
  10867. # define LT_DLGLOBAL DL_GLOBAL
  10868. # else
  10869. # define LT_DLGLOBAL 0
  10870. # endif
  10871. #endif
  10872. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10873. find out it does not work in some platform. */
  10874. #ifndef LT_DLLAZY_OR_NOW
  10875. # ifdef RTLD_LAZY
  10876. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10877. # else
  10878. # ifdef DL_LAZY
  10879. # define LT_DLLAZY_OR_NOW DL_LAZY
  10880. # else
  10881. # ifdef RTLD_NOW
  10882. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10883. # else
  10884. # ifdef DL_NOW
  10885. # define LT_DLLAZY_OR_NOW DL_NOW
  10886. # else
  10887. # define LT_DLLAZY_OR_NOW 0
  10888. # endif
  10889. # endif
  10890. # endif
  10891. # endif
  10892. #endif
  10893. void fnord() { int i=42;}
  10894. int main ()
  10895. {
  10896. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10897. int status = $lt_dlunknown;
  10898. if (self)
  10899. {
  10900. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10901. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10902. /* dlclose (self); */
  10903. }
  10904. else
  10905. puts (dlerror ());
  10906. return status;
  10907. }
  10908. _LT_EOF
  10909. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10910. (eval $ac_link) 2>&5
  10911. ac_status=$?
  10912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10913. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10914. (./conftest; exit; ) >&5 2>/dev/null
  10915. lt_status=$?
  10916. case x$lt_status in
  10917. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10918. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10919. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10920. esac
  10921. else :
  10922. # compilation failed
  10923. lt_cv_dlopen_self=no
  10924. fi
  10925. fi
  10926. rm -fr conftest*
  10927. fi
  10928. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10929. $as_echo "$lt_cv_dlopen_self" >&6; }
  10930. if test "x$lt_cv_dlopen_self" = xyes; then
  10931. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10932. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10933. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10934. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10935. $as_echo_n "(cached) " >&6
  10936. else
  10937. if test "$cross_compiling" = yes; then :
  10938. lt_cv_dlopen_self_static=cross
  10939. else
  10940. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10941. lt_status=$lt_dlunknown
  10942. cat > conftest.$ac_ext <<_LT_EOF
  10943. #line 12649 "configure"
  10944. #include "confdefs.h"
  10945. #if HAVE_DLFCN_H
  10946. #include <dlfcn.h>
  10947. #endif
  10948. #include <stdio.h>
  10949. #ifdef RTLD_GLOBAL
  10950. # define LT_DLGLOBAL RTLD_GLOBAL
  10951. #else
  10952. # ifdef DL_GLOBAL
  10953. # define LT_DLGLOBAL DL_GLOBAL
  10954. # else
  10955. # define LT_DLGLOBAL 0
  10956. # endif
  10957. #endif
  10958. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10959. find out it does not work in some platform. */
  10960. #ifndef LT_DLLAZY_OR_NOW
  10961. # ifdef RTLD_LAZY
  10962. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10963. # else
  10964. # ifdef DL_LAZY
  10965. # define LT_DLLAZY_OR_NOW DL_LAZY
  10966. # else
  10967. # ifdef RTLD_NOW
  10968. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10969. # else
  10970. # ifdef DL_NOW
  10971. # define LT_DLLAZY_OR_NOW DL_NOW
  10972. # else
  10973. # define LT_DLLAZY_OR_NOW 0
  10974. # endif
  10975. # endif
  10976. # endif
  10977. # endif
  10978. #endif
  10979. void fnord() { int i=42;}
  10980. int main ()
  10981. {
  10982. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10983. int status = $lt_dlunknown;
  10984. if (self)
  10985. {
  10986. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10987. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10988. /* dlclose (self); */
  10989. }
  10990. else
  10991. puts (dlerror ());
  10992. return status;
  10993. }
  10994. _LT_EOF
  10995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10996. (eval $ac_link) 2>&5
  10997. ac_status=$?
  10998. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10999. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11000. (./conftest; exit; ) >&5 2>/dev/null
  11001. lt_status=$?
  11002. case x$lt_status in
  11003. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11004. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11005. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11006. esac
  11007. else :
  11008. # compilation failed
  11009. lt_cv_dlopen_self_static=no
  11010. fi
  11011. fi
  11012. rm -fr conftest*
  11013. fi
  11014. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11015. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11016. fi
  11017. CPPFLAGS="$save_CPPFLAGS"
  11018. LDFLAGS="$save_LDFLAGS"
  11019. LIBS="$save_LIBS"
  11020. ;;
  11021. esac
  11022. case $lt_cv_dlopen_self in
  11023. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11024. *) enable_dlopen_self=unknown ;;
  11025. esac
  11026. case $lt_cv_dlopen_self_static in
  11027. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11028. *) enable_dlopen_self_static=unknown ;;
  11029. esac
  11030. fi
  11031. striplib=
  11032. old_striplib=
  11033. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11034. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11035. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11036. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11037. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11038. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11039. $as_echo "yes" >&6; }
  11040. else
  11041. # FIXME - insert some real tests, host_os isn't really good enough
  11042. case $host_os in
  11043. darwin*)
  11044. if test -n "$STRIP" ; then
  11045. striplib="$STRIP -x"
  11046. old_striplib="$STRIP -S"
  11047. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11048. $as_echo "yes" >&6; }
  11049. else
  11050. { $as_echo "$as_me:$LINENO: result: no" >&5
  11051. $as_echo "no" >&6; }
  11052. fi
  11053. ;;
  11054. *)
  11055. { $as_echo "$as_me:$LINENO: result: no" >&5
  11056. $as_echo "no" >&6; }
  11057. ;;
  11058. esac
  11059. fi
  11060. # Report which library types will actually be built
  11061. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11062. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11063. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11064. $as_echo "$can_build_shared" >&6; }
  11065. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11066. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11067. test "$can_build_shared" = "no" && enable_shared=no
  11068. # On AIX, shared libraries and static libraries use the same namespace, and
  11069. # are all built from PIC.
  11070. case $host_os in
  11071. aix3*)
  11072. test "$enable_shared" = yes && enable_static=no
  11073. if test -n "$RANLIB"; then
  11074. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11075. postinstall_cmds='$RANLIB $lib'
  11076. fi
  11077. ;;
  11078. aix[4-9]*)
  11079. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11080. test "$enable_shared" = yes && enable_static=no
  11081. fi
  11082. ;;
  11083. esac
  11084. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  11085. $as_echo "$enable_shared" >&6; }
  11086. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11087. $as_echo_n "checking whether to build static libraries... " >&6; }
  11088. # Make sure either enable_shared or enable_static is yes.
  11089. test "$enable_shared" = yes || enable_static=yes
  11090. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  11091. $as_echo "$enable_static" >&6; }
  11092. fi
  11093. ac_ext=c
  11094. ac_cpp='$CPP $CPPFLAGS'
  11095. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11096. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11097. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11098. CC="$lt_save_CC"
  11099. ac_ext=cpp
  11100. ac_cpp='$CXXCPP $CPPFLAGS'
  11101. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11102. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11103. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11104. archive_cmds_need_lc_CXX=no
  11105. allow_undefined_flag_CXX=
  11106. always_export_symbols_CXX=no
  11107. archive_expsym_cmds_CXX=
  11108. compiler_needs_object_CXX=no
  11109. export_dynamic_flag_spec_CXX=
  11110. hardcode_direct_CXX=no
  11111. hardcode_direct_absolute_CXX=no
  11112. hardcode_libdir_flag_spec_CXX=
  11113. hardcode_libdir_flag_spec_ld_CXX=
  11114. hardcode_libdir_separator_CXX=
  11115. hardcode_minus_L_CXX=no
  11116. hardcode_shlibpath_var_CXX=unsupported
  11117. hardcode_automatic_CXX=no
  11118. inherit_rpath_CXX=no
  11119. module_cmds_CXX=
  11120. module_expsym_cmds_CXX=
  11121. link_all_deplibs_CXX=unknown
  11122. old_archive_cmds_CXX=$old_archive_cmds
  11123. no_undefined_flag_CXX=
  11124. whole_archive_flag_spec_CXX=
  11125. enable_shared_with_static_runtimes_CXX=no
  11126. # Source file extension for C++ test sources.
  11127. ac_ext=cpp
  11128. # Object file extension for compiled C++ test sources.
  11129. objext=o
  11130. objext_CXX=$objext
  11131. # No sense in running all these tests if we already determined that
  11132. # the CXX compiler isn't working. Some variables (like enable_shared)
  11133. # are currently assumed to apply to all compilers on this platform,
  11134. # and will be corrupted by setting them based on a non-working compiler.
  11135. if test "$_lt_caught_CXX_error" != yes; then
  11136. # Code to be used in simple compile tests
  11137. lt_simple_compile_test_code="int some_variable = 0;"
  11138. # Code to be used in simple link tests
  11139. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11140. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11141. # If no C compiler was specified, use CC.
  11142. LTCC=${LTCC-"$CC"}
  11143. # If no C compiler flags were specified, use CFLAGS.
  11144. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11145. # Allow CC to be a program name with arguments.
  11146. compiler=$CC
  11147. # save warnings/boilerplate of simple test code
  11148. ac_outfile=conftest.$ac_objext
  11149. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11150. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11151. _lt_compiler_boilerplate=`cat conftest.err`
  11152. $RM conftest*
  11153. ac_outfile=conftest.$ac_objext
  11154. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11155. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11156. _lt_linker_boilerplate=`cat conftest.err`
  11157. $RM -r conftest*
  11158. # Allow CC to be a program name with arguments.
  11159. lt_save_CC=$CC
  11160. lt_save_LD=$LD
  11161. lt_save_GCC=$GCC
  11162. GCC=$GXX
  11163. lt_save_with_gnu_ld=$with_gnu_ld
  11164. lt_save_path_LD=$lt_cv_path_LD
  11165. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11166. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11167. else
  11168. $as_unset lt_cv_prog_gnu_ld
  11169. fi
  11170. if test -n "${lt_cv_path_LDCXX+set}"; then
  11171. lt_cv_path_LD=$lt_cv_path_LDCXX
  11172. else
  11173. $as_unset lt_cv_path_LD
  11174. fi
  11175. test -z "${LDCXX+set}" || LD=$LDCXX
  11176. CC=${CXX-"c++"}
  11177. compiler=$CC
  11178. compiler_CXX=$CC
  11179. for cc_temp in $compiler""; do
  11180. case $cc_temp in
  11181. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11182. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11183. \-*) ;;
  11184. *) break;;
  11185. esac
  11186. done
  11187. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11188. if test -n "$compiler"; then
  11189. # We don't want -fno-exception when compiling C++ code, so set the
  11190. # no_builtin_flag separately
  11191. if test "$GXX" = yes; then
  11192. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11193. else
  11194. lt_prog_compiler_no_builtin_flag_CXX=
  11195. fi
  11196. if test "$GXX" = yes; then
  11197. # Set up default GNU C++ configuration
  11198. # Check whether --with-gnu-ld was given.
  11199. if test "${with_gnu_ld+set}" = set; then
  11200. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11201. else
  11202. with_gnu_ld=no
  11203. fi
  11204. ac_prog=ld
  11205. if test "$GCC" = yes; then
  11206. # Check if gcc -print-prog-name=ld gives a path.
  11207. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11208. $as_echo_n "checking for ld used by $CC... " >&6; }
  11209. case $host in
  11210. *-*-mingw*)
  11211. # gcc leaves a trailing carriage return which upsets mingw
  11212. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11213. *)
  11214. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11215. esac
  11216. case $ac_prog in
  11217. # Accept absolute paths.
  11218. [\\/]* | ?:[\\/]*)
  11219. re_direlt='/[^/][^/]*/\.\./'
  11220. # Canonicalize the pathname of ld
  11221. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11222. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11223. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11224. done
  11225. test -z "$LD" && LD="$ac_prog"
  11226. ;;
  11227. "")
  11228. # If it fails, then pretend we aren't using GCC.
  11229. ac_prog=ld
  11230. ;;
  11231. *)
  11232. # If it is relative, then search for the first ld in PATH.
  11233. with_gnu_ld=unknown
  11234. ;;
  11235. esac
  11236. elif test "$with_gnu_ld" = yes; then
  11237. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11238. $as_echo_n "checking for GNU ld... " >&6; }
  11239. else
  11240. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11241. $as_echo_n "checking for non-GNU ld... " >&6; }
  11242. fi
  11243. if test "${lt_cv_path_LD+set}" = set; then
  11244. $as_echo_n "(cached) " >&6
  11245. else
  11246. if test -z "$LD"; then
  11247. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11248. for ac_dir in $PATH; do
  11249. IFS="$lt_save_ifs"
  11250. test -z "$ac_dir" && ac_dir=.
  11251. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11252. lt_cv_path_LD="$ac_dir/$ac_prog"
  11253. # Check to see if the program is GNU ld. I'd rather use --version,
  11254. # but apparently some variants of GNU ld only accept -v.
  11255. # Break only if it was the GNU/non-GNU ld that we prefer.
  11256. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11257. *GNU* | *'with BFD'*)
  11258. test "$with_gnu_ld" != no && break
  11259. ;;
  11260. *)
  11261. test "$with_gnu_ld" != yes && break
  11262. ;;
  11263. esac
  11264. fi
  11265. done
  11266. IFS="$lt_save_ifs"
  11267. else
  11268. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11269. fi
  11270. fi
  11271. LD="$lt_cv_path_LD"
  11272. if test -n "$LD"; then
  11273. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11274. $as_echo "$LD" >&6; }
  11275. else
  11276. { $as_echo "$as_me:$LINENO: result: no" >&5
  11277. $as_echo "no" >&6; }
  11278. fi
  11279. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11280. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11281. { (exit 1); exit 1; }; }
  11282. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11283. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11284. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11285. $as_echo_n "(cached) " >&6
  11286. else
  11287. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11288. case `$LD -v 2>&1 </dev/null` in
  11289. *GNU* | *'with BFD'*)
  11290. lt_cv_prog_gnu_ld=yes
  11291. ;;
  11292. *)
  11293. lt_cv_prog_gnu_ld=no
  11294. ;;
  11295. esac
  11296. fi
  11297. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11298. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11299. with_gnu_ld=$lt_cv_prog_gnu_ld
  11300. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11301. # archiving commands below assume that GNU ld is being used.
  11302. if test "$with_gnu_ld" = yes; then
  11303. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11304. 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'
  11305. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11306. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11307. # If archive_cmds runs LD, not CC, wlarc should be empty
  11308. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11309. # investigate it a little bit more. (MM)
  11310. wlarc='${wl}'
  11311. # ancient GNU ld didn't support --whole-archive et. al.
  11312. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11313. $GREP 'no-whole-archive' > /dev/null; then
  11314. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11315. else
  11316. whole_archive_flag_spec_CXX=
  11317. fi
  11318. else
  11319. with_gnu_ld=no
  11320. wlarc=
  11321. # A generic and very simple default shared library creation
  11322. # command for GNU C++ for the case where it uses the native
  11323. # linker, instead of GNU ld. If possible, this setting should
  11324. # overridden to take advantage of the native linker features on
  11325. # the platform it is being used on.
  11326. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11327. fi
  11328. # Commands to make compiler produce verbose output that lists
  11329. # what "hidden" libraries, object files and flags are used when
  11330. # linking a shared library.
  11331. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11332. else
  11333. GXX=no
  11334. with_gnu_ld=no
  11335. wlarc=
  11336. fi
  11337. # PORTME: fill in a description of your system's C++ link characteristics
  11338. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11339. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11340. ld_shlibs_CXX=yes
  11341. case $host_os in
  11342. aix3*)
  11343. # FIXME: insert proper C++ library support
  11344. ld_shlibs_CXX=no
  11345. ;;
  11346. aix[4-9]*)
  11347. if test "$host_cpu" = ia64; then
  11348. # On IA64, the linker does run time linking by default, so we don't
  11349. # have to do anything special.
  11350. aix_use_runtimelinking=no
  11351. exp_sym_flag='-Bexport'
  11352. no_entry_flag=""
  11353. else
  11354. aix_use_runtimelinking=no
  11355. # Test if we are trying to use run time linking or normal
  11356. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11357. # need to do runtime linking.
  11358. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11359. for ld_flag in $LDFLAGS; do
  11360. case $ld_flag in
  11361. *-brtl*)
  11362. aix_use_runtimelinking=yes
  11363. break
  11364. ;;
  11365. esac
  11366. done
  11367. ;;
  11368. esac
  11369. exp_sym_flag='-bexport'
  11370. no_entry_flag='-bnoentry'
  11371. fi
  11372. # When large executables or shared objects are built, AIX ld can
  11373. # have problems creating the table of contents. If linking a library
  11374. # or program results in "error TOC overflow" add -mminimal-toc to
  11375. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11376. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11377. archive_cmds_CXX=''
  11378. hardcode_direct_CXX=yes
  11379. hardcode_direct_absolute_CXX=yes
  11380. hardcode_libdir_separator_CXX=':'
  11381. link_all_deplibs_CXX=yes
  11382. file_list_spec_CXX='${wl}-f,'
  11383. if test "$GXX" = yes; then
  11384. case $host_os in aix4.[012]|aix4.[012].*)
  11385. # We only want to do this on AIX 4.2 and lower, the check
  11386. # below for broken collect2 doesn't work under 4.3+
  11387. collect2name=`${CC} -print-prog-name=collect2`
  11388. if test -f "$collect2name" &&
  11389. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11390. then
  11391. # We have reworked collect2
  11392. :
  11393. else
  11394. # We have old collect2
  11395. hardcode_direct_CXX=unsupported
  11396. # It fails to find uninstalled libraries when the uninstalled
  11397. # path is not listed in the libpath. Setting hardcode_minus_L
  11398. # to unsupported forces relinking
  11399. hardcode_minus_L_CXX=yes
  11400. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11401. hardcode_libdir_separator_CXX=
  11402. fi
  11403. esac
  11404. shared_flag='-shared'
  11405. if test "$aix_use_runtimelinking" = yes; then
  11406. shared_flag="$shared_flag "'${wl}-G'
  11407. fi
  11408. else
  11409. # not using gcc
  11410. if test "$host_cpu" = ia64; then
  11411. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11412. # chokes on -Wl,-G. The following line is correct:
  11413. shared_flag='-G'
  11414. else
  11415. if test "$aix_use_runtimelinking" = yes; then
  11416. shared_flag='${wl}-G'
  11417. else
  11418. shared_flag='${wl}-bM:SRE'
  11419. fi
  11420. fi
  11421. fi
  11422. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11423. # It seems that -bexpall does not export symbols beginning with
  11424. # underscore (_), so it is better to generate a list of symbols to
  11425. # export.
  11426. always_export_symbols_CXX=yes
  11427. if test "$aix_use_runtimelinking" = yes; then
  11428. # Warning - without using the other runtime loading flags (-brtl),
  11429. # -berok will link without error, but may produce a broken library.
  11430. allow_undefined_flag_CXX='-berok'
  11431. # Determine the default libpath from the value encoded in an empty
  11432. # executable.
  11433. cat >conftest.$ac_ext <<_ACEOF
  11434. /* confdefs.h. */
  11435. _ACEOF
  11436. cat confdefs.h >>conftest.$ac_ext
  11437. cat >>conftest.$ac_ext <<_ACEOF
  11438. /* end confdefs.h. */
  11439. int
  11440. main ()
  11441. {
  11442. ;
  11443. return 0;
  11444. }
  11445. _ACEOF
  11446. rm -f conftest.$ac_objext conftest$ac_exeext
  11447. if { (ac_try="$ac_link"
  11448. case "(($ac_try" in
  11449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11450. *) ac_try_echo=$ac_try;;
  11451. esac
  11452. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11453. $as_echo "$ac_try_echo") >&5
  11454. (eval "$ac_link") 2>conftest.er1
  11455. ac_status=$?
  11456. grep -v '^ *+' conftest.er1 >conftest.err
  11457. rm -f conftest.er1
  11458. cat conftest.err >&5
  11459. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11460. (exit $ac_status); } && {
  11461. test -z "$ac_cxx_werror_flag" ||
  11462. test ! -s conftest.err
  11463. } && test -s conftest$ac_exeext && {
  11464. test "$cross_compiling" = yes ||
  11465. $as_test_x conftest$ac_exeext
  11466. }; then
  11467. lt_aix_libpath_sed='
  11468. /Import File Strings/,/^$/ {
  11469. /^0/ {
  11470. s/^0 *\(.*\)$/\1/
  11471. p
  11472. }
  11473. }'
  11474. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11475. # Check for a 64-bit object if we didn't find anything.
  11476. if test -z "$aix_libpath"; then
  11477. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11478. fi
  11479. else
  11480. $as_echo "$as_me: failed program was:" >&5
  11481. sed 's/^/| /' conftest.$ac_ext >&5
  11482. fi
  11483. rm -rf conftest.dSYM
  11484. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11485. conftest$ac_exeext conftest.$ac_ext
  11486. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11487. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11488. 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11489. else
  11490. if test "$host_cpu" = ia64; then
  11491. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11492. allow_undefined_flag_CXX="-z nodefs"
  11493. 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"
  11494. else
  11495. # Determine the default libpath from the value encoded in an
  11496. # empty executable.
  11497. cat >conftest.$ac_ext <<_ACEOF
  11498. /* confdefs.h. */
  11499. _ACEOF
  11500. cat confdefs.h >>conftest.$ac_ext
  11501. cat >>conftest.$ac_ext <<_ACEOF
  11502. /* end confdefs.h. */
  11503. int
  11504. main ()
  11505. {
  11506. ;
  11507. return 0;
  11508. }
  11509. _ACEOF
  11510. rm -f conftest.$ac_objext conftest$ac_exeext
  11511. if { (ac_try="$ac_link"
  11512. case "(($ac_try" in
  11513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11514. *) ac_try_echo=$ac_try;;
  11515. esac
  11516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11517. $as_echo "$ac_try_echo") >&5
  11518. (eval "$ac_link") 2>conftest.er1
  11519. ac_status=$?
  11520. grep -v '^ *+' conftest.er1 >conftest.err
  11521. rm -f conftest.er1
  11522. cat conftest.err >&5
  11523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11524. (exit $ac_status); } && {
  11525. test -z "$ac_cxx_werror_flag" ||
  11526. test ! -s conftest.err
  11527. } && test -s conftest$ac_exeext && {
  11528. test "$cross_compiling" = yes ||
  11529. $as_test_x conftest$ac_exeext
  11530. }; then
  11531. lt_aix_libpath_sed='
  11532. /Import File Strings/,/^$/ {
  11533. /^0/ {
  11534. s/^0 *\(.*\)$/\1/
  11535. p
  11536. }
  11537. }'
  11538. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11539. # Check for a 64-bit object if we didn't find anything.
  11540. if test -z "$aix_libpath"; then
  11541. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11542. fi
  11543. else
  11544. $as_echo "$as_me: failed program was:" >&5
  11545. sed 's/^/| /' conftest.$ac_ext >&5
  11546. fi
  11547. rm -rf conftest.dSYM
  11548. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11549. conftest$ac_exeext conftest.$ac_ext
  11550. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11551. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11552. # Warning - without using the other run time loading flags,
  11553. # -berok will link without error, but may produce a broken library.
  11554. no_undefined_flag_CXX=' ${wl}-bernotok'
  11555. allow_undefined_flag_CXX=' ${wl}-berok'
  11556. # Exported symbols can be pulled into shared objects from archives
  11557. whole_archive_flag_spec_CXX='$convenience'
  11558. archive_cmds_need_lc_CXX=yes
  11559. # This is similar to how AIX traditionally builds its shared
  11560. # libraries.
  11561. 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'
  11562. fi
  11563. fi
  11564. ;;
  11565. beos*)
  11566. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11567. allow_undefined_flag_CXX=unsupported
  11568. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11569. # support --undefined. This deserves some investigation. FIXME
  11570. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11571. else
  11572. ld_shlibs_CXX=no
  11573. fi
  11574. ;;
  11575. chorus*)
  11576. case $cc_basename in
  11577. *)
  11578. # FIXME: insert proper C++ library support
  11579. ld_shlibs_CXX=no
  11580. ;;
  11581. esac
  11582. ;;
  11583. cygwin* | mingw* | pw32* | cegcc*)
  11584. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11585. # as there is no search path for DLLs.
  11586. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11587. allow_undefined_flag_CXX=unsupported
  11588. always_export_symbols_CXX=no
  11589. enable_shared_with_static_runtimes_CXX=yes
  11590. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11591. 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'
  11592. # If the export-symbols file already is a .def file (1st line
  11593. # is EXPORTS), use it as is; otherwise, prepend...
  11594. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11595. cp $export_symbols $output_objdir/$soname.def;
  11596. else
  11597. echo EXPORTS > $output_objdir/$soname.def;
  11598. cat $export_symbols >> $output_objdir/$soname.def;
  11599. fi~
  11600. $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'
  11601. else
  11602. ld_shlibs_CXX=no
  11603. fi
  11604. ;;
  11605. darwin* | rhapsody*)
  11606. archive_cmds_need_lc_CXX=no
  11607. hardcode_direct_CXX=no
  11608. hardcode_automatic_CXX=yes
  11609. hardcode_shlibpath_var_CXX=unsupported
  11610. whole_archive_flag_spec_CXX=''
  11611. link_all_deplibs_CXX=yes
  11612. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11613. case $cc_basename in
  11614. ifort*) _lt_dar_can_shared=yes ;;
  11615. *) _lt_dar_can_shared=$GCC ;;
  11616. esac
  11617. if test "$_lt_dar_can_shared" = "yes"; then
  11618. output_verbose_link_cmd=echo
  11619. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11620. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11621. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11622. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11623. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11624. 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${_lt_dsymutil}"
  11625. archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
  11626. fi
  11627. else
  11628. ld_shlibs_CXX=no
  11629. fi
  11630. ;;
  11631. dgux*)
  11632. case $cc_basename in
  11633. ec++*)
  11634. # FIXME: insert proper C++ library support
  11635. ld_shlibs_CXX=no
  11636. ;;
  11637. ghcx*)
  11638. # Green Hills C++ Compiler
  11639. # FIXME: insert proper C++ library support
  11640. ld_shlibs_CXX=no
  11641. ;;
  11642. *)
  11643. # FIXME: insert proper C++ library support
  11644. ld_shlibs_CXX=no
  11645. ;;
  11646. esac
  11647. ;;
  11648. freebsd[12]*)
  11649. # C++ shared libraries reported to be fairly broken before
  11650. # switch to ELF
  11651. ld_shlibs_CXX=no
  11652. ;;
  11653. freebsd-elf*)
  11654. archive_cmds_need_lc_CXX=no
  11655. ;;
  11656. freebsd* | dragonfly*)
  11657. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11658. # conventions
  11659. ld_shlibs_CXX=yes
  11660. ;;
  11661. gnu*)
  11662. ;;
  11663. hpux9*)
  11664. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11665. hardcode_libdir_separator_CXX=:
  11666. export_dynamic_flag_spec_CXX='${wl}-E'
  11667. hardcode_direct_CXX=yes
  11668. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11669. # but as the default
  11670. # location of the library.
  11671. case $cc_basename in
  11672. CC*)
  11673. # FIXME: insert proper C++ library support
  11674. ld_shlibs_CXX=no
  11675. ;;
  11676. aCC*)
  11677. 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'
  11678. # Commands to make compiler produce verbose output that lists
  11679. # what "hidden" libraries, object files and flags are used when
  11680. # linking a shared library.
  11681. #
  11682. # There doesn't appear to be a way to prevent this compiler from
  11683. # explicitly linking system object files so we need to strip them
  11684. # from the output so that they don't get included in the library
  11685. # dependencies.
  11686. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11687. ;;
  11688. *)
  11689. if test "$GXX" = yes; then
  11690. 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'
  11691. else
  11692. # FIXME: insert proper C++ library support
  11693. ld_shlibs_CXX=no
  11694. fi
  11695. ;;
  11696. esac
  11697. ;;
  11698. hpux10*|hpux11*)
  11699. if test $with_gnu_ld = no; then
  11700. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11701. hardcode_libdir_separator_CXX=:
  11702. case $host_cpu in
  11703. hppa*64*|ia64*)
  11704. ;;
  11705. *)
  11706. export_dynamic_flag_spec_CXX='${wl}-E'
  11707. ;;
  11708. esac
  11709. fi
  11710. case $host_cpu in
  11711. hppa*64*|ia64*)
  11712. hardcode_direct_CXX=no
  11713. hardcode_shlibpath_var_CXX=no
  11714. ;;
  11715. *)
  11716. hardcode_direct_CXX=yes
  11717. hardcode_direct_absolute_CXX=yes
  11718. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11719. # but as the default
  11720. # location of the library.
  11721. ;;
  11722. esac
  11723. case $cc_basename in
  11724. CC*)
  11725. # FIXME: insert proper C++ library support
  11726. ld_shlibs_CXX=no
  11727. ;;
  11728. aCC*)
  11729. case $host_cpu in
  11730. hppa*64*)
  11731. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11732. ;;
  11733. ia64*)
  11734. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11735. ;;
  11736. *)
  11737. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11738. ;;
  11739. esac
  11740. # Commands to make compiler produce verbose output that lists
  11741. # what "hidden" libraries, object files and flags are used when
  11742. # linking a shared library.
  11743. #
  11744. # There doesn't appear to be a way to prevent this compiler from
  11745. # explicitly linking system object files so we need to strip them
  11746. # from the output so that they don't get included in the library
  11747. # dependencies.
  11748. 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 "X$list" | $Xsed'
  11749. ;;
  11750. *)
  11751. if test "$GXX" = yes; then
  11752. if test $with_gnu_ld = no; then
  11753. case $host_cpu in
  11754. hppa*64*)
  11755. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11756. ;;
  11757. ia64*)
  11758. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11759. ;;
  11760. *)
  11761. 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'
  11762. ;;
  11763. esac
  11764. fi
  11765. else
  11766. # FIXME: insert proper C++ library support
  11767. ld_shlibs_CXX=no
  11768. fi
  11769. ;;
  11770. esac
  11771. ;;
  11772. interix[3-9]*)
  11773. hardcode_direct_CXX=no
  11774. hardcode_shlibpath_var_CXX=no
  11775. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11776. export_dynamic_flag_spec_CXX='${wl}-E'
  11777. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11778. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11779. # default) and relocated if they conflict, which is a slow very memory
  11780. # consuming and fragmenting process. To avoid this, we pick a random,
  11781. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11782. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11783. 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'
  11784. 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'
  11785. ;;
  11786. irix5* | irix6*)
  11787. case $cc_basename in
  11788. CC*)
  11789. # SGI C++
  11790. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11791. # Archives containing C++ object files must be created using
  11792. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11793. # necessary to make sure instantiated templates are included
  11794. # in the archive.
  11795. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11796. ;;
  11797. *)
  11798. if test "$GXX" = yes; then
  11799. if test "$with_gnu_ld" = no; then
  11800. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11801. else
  11802. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  11803. fi
  11804. fi
  11805. link_all_deplibs_CXX=yes
  11806. ;;
  11807. esac
  11808. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11809. hardcode_libdir_separator_CXX=:
  11810. inherit_rpath_CXX=yes
  11811. ;;
  11812. linux* | k*bsd*-gnu)
  11813. case $cc_basename in
  11814. KCC*)
  11815. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11816. # KCC will only create a shared library if the output file
  11817. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11818. # to its proper name (with version) after linking.
  11819. 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'
  11820. 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'
  11821. # Commands to make compiler produce verbose output that lists
  11822. # what "hidden" libraries, object files and flags are used when
  11823. # linking a shared library.
  11824. #
  11825. # There doesn't appear to be a way to prevent this compiler from
  11826. # explicitly linking system object files so we need to strip them
  11827. # from the output so that they don't get included in the library
  11828. # dependencies.
  11829. 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 "X$list" | $Xsed'
  11830. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11831. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11832. # Archives containing C++ object files must be created using
  11833. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11834. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11835. ;;
  11836. icpc* | ecpc* )
  11837. # Intel C++
  11838. with_gnu_ld=yes
  11839. # version 8.0 and above of icpc choke on multiply defined symbols
  11840. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11841. # earlier do not add the objects themselves.
  11842. case `$CC -V 2>&1` in
  11843. *"Version 7."*)
  11844. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11845. 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'
  11846. ;;
  11847. *) # Version 8.0 or newer
  11848. tmp_idyn=
  11849. case $host_cpu in
  11850. ia64*) tmp_idyn=' -i_dynamic';;
  11851. esac
  11852. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11853. 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'
  11854. ;;
  11855. esac
  11856. archive_cmds_need_lc_CXX=no
  11857. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11858. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11859. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11860. ;;
  11861. pgCC* | pgcpp*)
  11862. # Portland Group C++ compiler
  11863. case `$CC -V` in
  11864. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11865. prelink_cmds_CXX='tpldir=Template.dir~
  11866. rm -rf $tpldir~
  11867. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11868. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11869. old_archive_cmds_CXX='tpldir=Template.dir~
  11870. rm -rf $tpldir~
  11871. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11872. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11873. $RANLIB $oldlib'
  11874. archive_cmds_CXX='tpldir=Template.dir~
  11875. rm -rf $tpldir~
  11876. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11877. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11878. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11879. rm -rf $tpldir~
  11880. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11881. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11882. ;;
  11883. *) # Version 6 will use weak symbols
  11884. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11885. 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'
  11886. ;;
  11887. esac
  11888. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11889. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11890. 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'
  11891. ;;
  11892. cxx*)
  11893. # Compaq C++
  11894. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11895. 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'
  11896. runpath_var=LD_RUN_PATH
  11897. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11898. hardcode_libdir_separator_CXX=:
  11899. # Commands to make compiler produce verbose output that lists
  11900. # what "hidden" libraries, object files and flags are used when
  11901. # linking a shared library.
  11902. #
  11903. # There doesn't appear to be a way to prevent this compiler from
  11904. # explicitly linking system object files so we need to strip them
  11905. # from the output so that they don't get included in the library
  11906. # dependencies.
  11907. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
  11908. ;;
  11909. xl*)
  11910. # IBM XL 8.0 on PPC, with GNU ld
  11911. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11912. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11913. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11914. if test "x$supports_anon_versioning" = xyes; then
  11915. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11916. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11917. echo "local: *; };" >> $output_objdir/$libname.ver~
  11918. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11919. fi
  11920. ;;
  11921. *)
  11922. case `$CC -V 2>&1 | sed 5q` in
  11923. *Sun\ C*)
  11924. # Sun C++ 5.9
  11925. no_undefined_flag_CXX=' -zdefs'
  11926. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11927. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11928. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11929. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11930. compiler_needs_object_CXX=yes
  11931. # Not sure whether something based on
  11932. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11933. # would be better.
  11934. output_verbose_link_cmd='echo'
  11935. # Archives containing C++ object files must be created using
  11936. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11937. # necessary to make sure instantiated templates are included
  11938. # in the archive.
  11939. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11940. ;;
  11941. esac
  11942. ;;
  11943. esac
  11944. ;;
  11945. lynxos*)
  11946. # FIXME: insert proper C++ library support
  11947. ld_shlibs_CXX=no
  11948. ;;
  11949. m88k*)
  11950. # FIXME: insert proper C++ library support
  11951. ld_shlibs_CXX=no
  11952. ;;
  11953. mvs*)
  11954. case $cc_basename in
  11955. cxx*)
  11956. # FIXME: insert proper C++ library support
  11957. ld_shlibs_CXX=no
  11958. ;;
  11959. *)
  11960. # FIXME: insert proper C++ library support
  11961. ld_shlibs_CXX=no
  11962. ;;
  11963. esac
  11964. ;;
  11965. netbsd*)
  11966. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11967. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11968. wlarc=
  11969. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11970. hardcode_direct_CXX=yes
  11971. hardcode_shlibpath_var_CXX=no
  11972. fi
  11973. # Workaround some broken pre-1.5 toolchains
  11974. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11975. ;;
  11976. *nto* | *qnx*)
  11977. ld_shlibs_CXX=yes
  11978. ;;
  11979. openbsd2*)
  11980. # C++ shared libraries are fairly broken
  11981. ld_shlibs_CXX=no
  11982. ;;
  11983. openbsd*)
  11984. if test -f /usr/libexec/ld.so; then
  11985. hardcode_direct_CXX=yes
  11986. hardcode_shlibpath_var_CXX=no
  11987. hardcode_direct_absolute_CXX=yes
  11988. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11989. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11990. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11991. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11992. export_dynamic_flag_spec_CXX='${wl}-E'
  11993. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11994. fi
  11995. output_verbose_link_cmd=echo
  11996. else
  11997. ld_shlibs_CXX=no
  11998. fi
  11999. ;;
  12000. osf3* | osf4* | osf5*)
  12001. case $cc_basename in
  12002. KCC*)
  12003. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12004. # KCC will only create a shared library if the output file
  12005. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12006. # to its proper name (with version) after linking.
  12007. 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'
  12008. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12009. hardcode_libdir_separator_CXX=:
  12010. # Archives containing C++ object files must be created using
  12011. # the KAI C++ compiler.
  12012. case $host in
  12013. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12014. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12015. esac
  12016. ;;
  12017. RCC*)
  12018. # Rational C++ 2.4.1
  12019. # FIXME: insert proper C++ library support
  12020. ld_shlibs_CXX=no
  12021. ;;
  12022. cxx*)
  12023. case $host in
  12024. osf3*)
  12025. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12026. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12027. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12028. ;;
  12029. *)
  12030. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12031. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12032. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12033. echo "-hidden">> $lib.exp~
  12034. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  12035. $RM $lib.exp'
  12036. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12037. ;;
  12038. esac
  12039. hardcode_libdir_separator_CXX=:
  12040. # Commands to make compiler produce verbose output that lists
  12041. # what "hidden" libraries, object files and flags are used when
  12042. # linking a shared library.
  12043. #
  12044. # There doesn't appear to be a way to prevent this compiler from
  12045. # explicitly linking system object files so we need to strip them
  12046. # from the output so that they don't get included in the library
  12047. # dependencies.
  12048. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
  12049. ;;
  12050. *)
  12051. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12052. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12053. case $host in
  12054. osf3*)
  12055. 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12056. ;;
  12057. *)
  12058. 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12059. ;;
  12060. esac
  12061. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12062. hardcode_libdir_separator_CXX=:
  12063. # Commands to make compiler produce verbose output that lists
  12064. # what "hidden" libraries, object files and flags are used when
  12065. # linking a shared library.
  12066. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12067. else
  12068. # FIXME: insert proper C++ library support
  12069. ld_shlibs_CXX=no
  12070. fi
  12071. ;;
  12072. esac
  12073. ;;
  12074. psos*)
  12075. # FIXME: insert proper C++ library support
  12076. ld_shlibs_CXX=no
  12077. ;;
  12078. sunos4*)
  12079. case $cc_basename in
  12080. CC*)
  12081. # Sun C++ 4.x
  12082. # FIXME: insert proper C++ library support
  12083. ld_shlibs_CXX=no
  12084. ;;
  12085. lcc*)
  12086. # Lucid
  12087. # FIXME: insert proper C++ library support
  12088. ld_shlibs_CXX=no
  12089. ;;
  12090. *)
  12091. # FIXME: insert proper C++ library support
  12092. ld_shlibs_CXX=no
  12093. ;;
  12094. esac
  12095. ;;
  12096. solaris*)
  12097. case $cc_basename in
  12098. CC*)
  12099. # Sun C++ 4.2, 5.x and Centerline C++
  12100. archive_cmds_need_lc_CXX=yes
  12101. no_undefined_flag_CXX=' -zdefs'
  12102. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12103. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12104. $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'
  12105. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12106. hardcode_shlibpath_var_CXX=no
  12107. case $host_os in
  12108. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12109. *)
  12110. # The compiler driver will combine and reorder linker options,
  12111. # but understands `-z linker_flag'.
  12112. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12113. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12114. ;;
  12115. esac
  12116. link_all_deplibs_CXX=yes
  12117. output_verbose_link_cmd='echo'
  12118. # Archives containing C++ object files must be created using
  12119. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12120. # necessary to make sure instantiated templates are included
  12121. # in the archive.
  12122. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12123. ;;
  12124. gcx*)
  12125. # Green Hills C++ Compiler
  12126. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12127. # The C++ compiler must be used to create the archive.
  12128. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12129. ;;
  12130. *)
  12131. # GNU C++ compiler with Solaris linker
  12132. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12133. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12134. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12135. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12136. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12137. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12138. # Commands to make compiler produce verbose output that lists
  12139. # what "hidden" libraries, object files and flags are used when
  12140. # linking a shared library.
  12141. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12142. else
  12143. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12144. # platform.
  12145. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12146. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12147. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12148. # Commands to make compiler produce verbose output that lists
  12149. # what "hidden" libraries, object files and flags are used when
  12150. # linking a shared library.
  12151. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12152. fi
  12153. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12154. case $host_os in
  12155. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12156. *)
  12157. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12158. ;;
  12159. esac
  12160. fi
  12161. ;;
  12162. esac
  12163. ;;
  12164. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12165. no_undefined_flag_CXX='${wl}-z,text'
  12166. archive_cmds_need_lc_CXX=no
  12167. hardcode_shlibpath_var_CXX=no
  12168. runpath_var='LD_RUN_PATH'
  12169. case $cc_basename in
  12170. CC*)
  12171. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12172. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12173. ;;
  12174. *)
  12175. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12176. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12177. ;;
  12178. esac
  12179. ;;
  12180. sysv5* | sco3.2v5* | sco5v6*)
  12181. # Note: We can NOT use -z defs as we might desire, because we do not
  12182. # link with -lc, and that would cause any symbols used from libc to
  12183. # always be unresolved, which means just about no library would
  12184. # ever link correctly. If we're not using GNU ld we use -z text
  12185. # though, which does catch some bad symbols but isn't as heavy-handed
  12186. # as -z defs.
  12187. no_undefined_flag_CXX='${wl}-z,text'
  12188. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12189. archive_cmds_need_lc_CXX=no
  12190. hardcode_shlibpath_var_CXX=no
  12191. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12192. hardcode_libdir_separator_CXX=':'
  12193. link_all_deplibs_CXX=yes
  12194. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12195. runpath_var='LD_RUN_PATH'
  12196. case $cc_basename in
  12197. CC*)
  12198. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12199. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12200. ;;
  12201. *)
  12202. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12203. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12204. ;;
  12205. esac
  12206. ;;
  12207. tandem*)
  12208. case $cc_basename in
  12209. NCC*)
  12210. # NonStop-UX NCC 3.20
  12211. # FIXME: insert proper C++ library support
  12212. ld_shlibs_CXX=no
  12213. ;;
  12214. *)
  12215. # FIXME: insert proper C++ library support
  12216. ld_shlibs_CXX=no
  12217. ;;
  12218. esac
  12219. ;;
  12220. vxworks*)
  12221. # FIXME: insert proper C++ library support
  12222. ld_shlibs_CXX=no
  12223. ;;
  12224. *)
  12225. # FIXME: insert proper C++ library support
  12226. ld_shlibs_CXX=no
  12227. ;;
  12228. esac
  12229. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12230. $as_echo "$ld_shlibs_CXX" >&6; }
  12231. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12232. GCC_CXX="$GXX"
  12233. LD_CXX="$LD"
  12234. ## CAVEAT EMPTOR:
  12235. ## There is no encapsulation within the following macros, do not change
  12236. ## the running order or otherwise move them around unless you know exactly
  12237. ## what you are doing...
  12238. # Dependencies to place before and after the object being linked:
  12239. predep_objects_CXX=
  12240. postdep_objects_CXX=
  12241. predeps_CXX=
  12242. postdeps_CXX=
  12243. compiler_lib_search_path_CXX=
  12244. cat > conftest.$ac_ext <<_LT_EOF
  12245. class Foo
  12246. {
  12247. public:
  12248. Foo (void) { a = 0; }
  12249. private:
  12250. int a;
  12251. };
  12252. _LT_EOF
  12253. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12254. (eval $ac_compile) 2>&5
  12255. ac_status=$?
  12256. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12257. (exit $ac_status); }; then
  12258. # Parse the compiler output and extract the necessary
  12259. # objects, libraries and library flags.
  12260. # Sentinel used to keep track of whether or not we are before
  12261. # the conftest object file.
  12262. pre_test_object_deps_done=no
  12263. for p in `eval "$output_verbose_link_cmd"`; do
  12264. case $p in
  12265. -L* | -R* | -l*)
  12266. # Some compilers place space between "-{L,R}" and the path.
  12267. # Remove the space.
  12268. if test $p = "-L" ||
  12269. test $p = "-R"; then
  12270. prev=$p
  12271. continue
  12272. else
  12273. prev=
  12274. fi
  12275. if test "$pre_test_object_deps_done" = no; then
  12276. case $p in
  12277. -L* | -R*)
  12278. # Internal compiler library paths should come after those
  12279. # provided the user. The postdeps already come after the
  12280. # user supplied libs so there is no need to process them.
  12281. if test -z "$compiler_lib_search_path_CXX"; then
  12282. compiler_lib_search_path_CXX="${prev}${p}"
  12283. else
  12284. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12285. fi
  12286. ;;
  12287. # The "-l" case would never come before the object being
  12288. # linked, so don't bother handling this case.
  12289. esac
  12290. else
  12291. if test -z "$postdeps_CXX"; then
  12292. postdeps_CXX="${prev}${p}"
  12293. else
  12294. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12295. fi
  12296. fi
  12297. ;;
  12298. *.$objext)
  12299. # This assumes that the test object file only shows up
  12300. # once in the compiler output.
  12301. if test "$p" = "conftest.$objext"; then
  12302. pre_test_object_deps_done=yes
  12303. continue
  12304. fi
  12305. if test "$pre_test_object_deps_done" = no; then
  12306. if test -z "$predep_objects_CXX"; then
  12307. predep_objects_CXX="$p"
  12308. else
  12309. predep_objects_CXX="$predep_objects_CXX $p"
  12310. fi
  12311. else
  12312. if test -z "$postdep_objects_CXX"; then
  12313. postdep_objects_CXX="$p"
  12314. else
  12315. postdep_objects_CXX="$postdep_objects_CXX $p"
  12316. fi
  12317. fi
  12318. ;;
  12319. *) ;; # Ignore the rest.
  12320. esac
  12321. done
  12322. # Clean up.
  12323. rm -f a.out a.exe
  12324. else
  12325. echo "libtool.m4: error: problem compiling CXX test program"
  12326. fi
  12327. $RM -f confest.$objext
  12328. # PORTME: override above test on systems where it is broken
  12329. case $host_os in
  12330. interix[3-9]*)
  12331. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12332. # hack all around it, let's just trust "g++" to DTRT.
  12333. predep_objects_CXX=
  12334. postdep_objects_CXX=
  12335. postdeps_CXX=
  12336. ;;
  12337. linux*)
  12338. case `$CC -V 2>&1 | sed 5q` in
  12339. *Sun\ C*)
  12340. # Sun C++ 5.9
  12341. # The more standards-conforming stlport4 library is
  12342. # incompatible with the Cstd library. Avoid specifying
  12343. # it if it's in CXXFLAGS. Ignore libCrun as
  12344. # -library=stlport4 depends on it.
  12345. case " $CXX $CXXFLAGS " in
  12346. *" -library=stlport4 "*)
  12347. solaris_use_stlport4=yes
  12348. ;;
  12349. esac
  12350. if test "$solaris_use_stlport4" != yes; then
  12351. postdeps_CXX='-library=Cstd -library=Crun'
  12352. fi
  12353. ;;
  12354. esac
  12355. ;;
  12356. solaris*)
  12357. case $cc_basename in
  12358. CC*)
  12359. # The more standards-conforming stlport4 library is
  12360. # incompatible with the Cstd library. Avoid specifying
  12361. # it if it's in CXXFLAGS. Ignore libCrun as
  12362. # -library=stlport4 depends on it.
  12363. case " $CXX $CXXFLAGS " in
  12364. *" -library=stlport4 "*)
  12365. solaris_use_stlport4=yes
  12366. ;;
  12367. esac
  12368. # Adding this requires a known-good setup of shared libraries for
  12369. # Sun compiler versions before 5.6, else PIC objects from an old
  12370. # archive will be linked into the output, leading to subtle bugs.
  12371. if test "$solaris_use_stlport4" != yes; then
  12372. postdeps_CXX='-library=Cstd -library=Crun'
  12373. fi
  12374. ;;
  12375. esac
  12376. ;;
  12377. esac
  12378. case " $postdeps_CXX " in
  12379. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12380. esac
  12381. compiler_lib_search_dirs_CXX=
  12382. if test -n "${compiler_lib_search_path_CXX}"; then
  12383. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12384. fi
  12385. lt_prog_compiler_wl_CXX=
  12386. lt_prog_compiler_pic_CXX=
  12387. lt_prog_compiler_static_CXX=
  12388. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12389. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12390. # C++ specific cases for pic, static, wl, etc.
  12391. if test "$GXX" = yes; then
  12392. lt_prog_compiler_wl_CXX='-Wl,'
  12393. lt_prog_compiler_static_CXX='-static'
  12394. case $host_os in
  12395. aix*)
  12396. # All AIX code is PIC.
  12397. if test "$host_cpu" = ia64; then
  12398. # AIX 5 now supports IA64 processor
  12399. lt_prog_compiler_static_CXX='-Bstatic'
  12400. fi
  12401. ;;
  12402. amigaos*)
  12403. case $host_cpu in
  12404. powerpc)
  12405. # see comment about AmigaOS4 .so support
  12406. lt_prog_compiler_pic_CXX='-fPIC'
  12407. ;;
  12408. m68k)
  12409. # FIXME: we need at least 68020 code to build shared libraries, but
  12410. # adding the `-m68020' flag to GCC prevents building anything better,
  12411. # like `-m68040'.
  12412. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12413. ;;
  12414. esac
  12415. ;;
  12416. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12417. # PIC is the default for these OSes.
  12418. ;;
  12419. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12420. # This hack is so that the source file can tell whether it is being
  12421. # built for inclusion in a dll (and should export symbols for example).
  12422. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12423. # (--disable-auto-import) libraries
  12424. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12425. ;;
  12426. darwin* | rhapsody*)
  12427. # PIC is the default on this platform
  12428. # Common symbols not allowed in MH_DYLIB files
  12429. lt_prog_compiler_pic_CXX='-fno-common'
  12430. ;;
  12431. *djgpp*)
  12432. # DJGPP does not support shared libraries at all
  12433. lt_prog_compiler_pic_CXX=
  12434. ;;
  12435. interix[3-9]*)
  12436. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12437. # Instead, we relocate shared libraries at runtime.
  12438. ;;
  12439. sysv4*MP*)
  12440. if test -d /usr/nec; then
  12441. lt_prog_compiler_pic_CXX=-Kconform_pic
  12442. fi
  12443. ;;
  12444. hpux*)
  12445. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12446. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12447. # sets the default TLS model and affects inlining.
  12448. case $host_cpu in
  12449. hppa*64*)
  12450. ;;
  12451. *)
  12452. lt_prog_compiler_pic_CXX='-fPIC'
  12453. ;;
  12454. esac
  12455. ;;
  12456. *qnx* | *nto*)
  12457. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12458. # it will coredump.
  12459. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12460. ;;
  12461. *)
  12462. lt_prog_compiler_pic_CXX='-fPIC'
  12463. ;;
  12464. esac
  12465. else
  12466. case $host_os in
  12467. aix[4-9]*)
  12468. # All AIX code is PIC.
  12469. if test "$host_cpu" = ia64; then
  12470. # AIX 5 now supports IA64 processor
  12471. lt_prog_compiler_static_CXX='-Bstatic'
  12472. else
  12473. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12474. fi
  12475. ;;
  12476. chorus*)
  12477. case $cc_basename in
  12478. cxch68*)
  12479. # Green Hills C++ Compiler
  12480. # _LT_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"
  12481. ;;
  12482. esac
  12483. ;;
  12484. dgux*)
  12485. case $cc_basename in
  12486. ec++*)
  12487. lt_prog_compiler_pic_CXX='-KPIC'
  12488. ;;
  12489. ghcx*)
  12490. # Green Hills C++ Compiler
  12491. lt_prog_compiler_pic_CXX='-pic'
  12492. ;;
  12493. *)
  12494. ;;
  12495. esac
  12496. ;;
  12497. freebsd* | dragonfly*)
  12498. # FreeBSD uses GNU C++
  12499. ;;
  12500. hpux9* | hpux10* | hpux11*)
  12501. case $cc_basename in
  12502. CC*)
  12503. lt_prog_compiler_wl_CXX='-Wl,'
  12504. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12505. if test "$host_cpu" != ia64; then
  12506. lt_prog_compiler_pic_CXX='+Z'
  12507. fi
  12508. ;;
  12509. aCC*)
  12510. lt_prog_compiler_wl_CXX='-Wl,'
  12511. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12512. case $host_cpu in
  12513. hppa*64*|ia64*)
  12514. # +Z the default
  12515. ;;
  12516. *)
  12517. lt_prog_compiler_pic_CXX='+Z'
  12518. ;;
  12519. esac
  12520. ;;
  12521. *)
  12522. ;;
  12523. esac
  12524. ;;
  12525. interix*)
  12526. # This is c89, which is MS Visual C++ (no shared libs)
  12527. # Anyone wants to do a port?
  12528. ;;
  12529. irix5* | irix6* | nonstopux*)
  12530. case $cc_basename in
  12531. CC*)
  12532. lt_prog_compiler_wl_CXX='-Wl,'
  12533. lt_prog_compiler_static_CXX='-non_shared'
  12534. # CC pic flag -KPIC is the default.
  12535. ;;
  12536. *)
  12537. ;;
  12538. esac
  12539. ;;
  12540. linux* | k*bsd*-gnu)
  12541. case $cc_basename in
  12542. KCC*)
  12543. # KAI C++ Compiler
  12544. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12545. lt_prog_compiler_pic_CXX='-fPIC'
  12546. ;;
  12547. ecpc* )
  12548. # old Intel C++ for x86_64 which still supported -KPIC.
  12549. lt_prog_compiler_wl_CXX='-Wl,'
  12550. lt_prog_compiler_pic_CXX='-KPIC'
  12551. lt_prog_compiler_static_CXX='-static'
  12552. ;;
  12553. icpc* )
  12554. # Intel C++, used to be incompatible with GCC.
  12555. # ICC 10 doesn't accept -KPIC any more.
  12556. lt_prog_compiler_wl_CXX='-Wl,'
  12557. lt_prog_compiler_pic_CXX='-fPIC'
  12558. lt_prog_compiler_static_CXX='-static'
  12559. ;;
  12560. pgCC* | pgcpp*)
  12561. # Portland Group C++ compiler
  12562. lt_prog_compiler_wl_CXX='-Wl,'
  12563. lt_prog_compiler_pic_CXX='-fpic'
  12564. lt_prog_compiler_static_CXX='-Bstatic'
  12565. ;;
  12566. cxx*)
  12567. # Compaq C++
  12568. # Make sure the PIC flag is empty. It appears that all Alpha
  12569. # Linux and Compaq Tru64 Unix objects are PIC.
  12570. lt_prog_compiler_pic_CXX=
  12571. lt_prog_compiler_static_CXX='-non_shared'
  12572. ;;
  12573. xlc* | xlC*)
  12574. # IBM XL 8.0 on PPC
  12575. lt_prog_compiler_wl_CXX='-Wl,'
  12576. lt_prog_compiler_pic_CXX='-qpic'
  12577. lt_prog_compiler_static_CXX='-qstaticlink'
  12578. ;;
  12579. *)
  12580. case `$CC -V 2>&1 | sed 5q` in
  12581. *Sun\ C*)
  12582. # Sun C++ 5.9
  12583. lt_prog_compiler_pic_CXX='-KPIC'
  12584. lt_prog_compiler_static_CXX='-Bstatic'
  12585. lt_prog_compiler_wl_CXX='-Qoption ld '
  12586. ;;
  12587. esac
  12588. ;;
  12589. esac
  12590. ;;
  12591. lynxos*)
  12592. ;;
  12593. m88k*)
  12594. ;;
  12595. mvs*)
  12596. case $cc_basename in
  12597. cxx*)
  12598. lt_prog_compiler_pic_CXX='-W c,exportall'
  12599. ;;
  12600. *)
  12601. ;;
  12602. esac
  12603. ;;
  12604. netbsd*)
  12605. ;;
  12606. *qnx* | *nto*)
  12607. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12608. # it will coredump.
  12609. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12610. ;;
  12611. osf3* | osf4* | osf5*)
  12612. case $cc_basename in
  12613. KCC*)
  12614. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12615. ;;
  12616. RCC*)
  12617. # Rational C++ 2.4.1
  12618. lt_prog_compiler_pic_CXX='-pic'
  12619. ;;
  12620. cxx*)
  12621. # Digital/Compaq C++
  12622. lt_prog_compiler_wl_CXX='-Wl,'
  12623. # Make sure the PIC flag is empty. It appears that all Alpha
  12624. # Linux and Compaq Tru64 Unix objects are PIC.
  12625. lt_prog_compiler_pic_CXX=
  12626. lt_prog_compiler_static_CXX='-non_shared'
  12627. ;;
  12628. *)
  12629. ;;
  12630. esac
  12631. ;;
  12632. psos*)
  12633. ;;
  12634. solaris*)
  12635. case $cc_basename in
  12636. CC*)
  12637. # Sun C++ 4.2, 5.x and Centerline C++
  12638. lt_prog_compiler_pic_CXX='-KPIC'
  12639. lt_prog_compiler_static_CXX='-Bstatic'
  12640. lt_prog_compiler_wl_CXX='-Qoption ld '
  12641. ;;
  12642. gcx*)
  12643. # Green Hills C++ Compiler
  12644. lt_prog_compiler_pic_CXX='-PIC'
  12645. ;;
  12646. *)
  12647. ;;
  12648. esac
  12649. ;;
  12650. sunos4*)
  12651. case $cc_basename in
  12652. CC*)
  12653. # Sun C++ 4.x
  12654. lt_prog_compiler_pic_CXX='-pic'
  12655. lt_prog_compiler_static_CXX='-Bstatic'
  12656. ;;
  12657. lcc*)
  12658. # Lucid
  12659. lt_prog_compiler_pic_CXX='-pic'
  12660. ;;
  12661. *)
  12662. ;;
  12663. esac
  12664. ;;
  12665. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12666. case $cc_basename in
  12667. CC*)
  12668. lt_prog_compiler_wl_CXX='-Wl,'
  12669. lt_prog_compiler_pic_CXX='-KPIC'
  12670. lt_prog_compiler_static_CXX='-Bstatic'
  12671. ;;
  12672. esac
  12673. ;;
  12674. tandem*)
  12675. case $cc_basename in
  12676. NCC*)
  12677. # NonStop-UX NCC 3.20
  12678. lt_prog_compiler_pic_CXX='-KPIC'
  12679. ;;
  12680. *)
  12681. ;;
  12682. esac
  12683. ;;
  12684. vxworks*)
  12685. ;;
  12686. *)
  12687. lt_prog_compiler_can_build_shared_CXX=no
  12688. ;;
  12689. esac
  12690. fi
  12691. case $host_os in
  12692. # For platforms which do not support PIC, -DPIC is meaningless:
  12693. *djgpp*)
  12694. lt_prog_compiler_pic_CXX=
  12695. ;;
  12696. *)
  12697. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12698. ;;
  12699. esac
  12700. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12701. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12702. #
  12703. # Check to make sure the PIC flag actually works.
  12704. #
  12705. if test -n "$lt_prog_compiler_pic_CXX"; then
  12706. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12707. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12708. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12709. $as_echo_n "(cached) " >&6
  12710. else
  12711. lt_cv_prog_compiler_pic_works_CXX=no
  12712. ac_outfile=conftest.$ac_objext
  12713. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12714. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12715. # Insert the option either (1) after the last *FLAGS variable, or
  12716. # (2) before a word containing "conftest.", or (3) at the end.
  12717. # Note that $ac_compile itself does not contain backslashes and begins
  12718. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12719. # The option is referenced via a variable to avoid confusing sed.
  12720. lt_compile=`echo "$ac_compile" | $SED \
  12721. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12722. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12723. -e 's:$: $lt_compiler_flag:'`
  12724. (eval echo "\"\$as_me:14669: $lt_compile\"" >&5)
  12725. (eval "$lt_compile" 2>conftest.err)
  12726. ac_status=$?
  12727. cat conftest.err >&5
  12728. echo "$as_me:14673: \$? = $ac_status" >&5
  12729. if (exit $ac_status) && test -s "$ac_outfile"; then
  12730. # The compiler can only warn and ignore the option if not recognized
  12731. # So say no if there are warnings other than the usual output.
  12732. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12733. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12734. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12735. lt_cv_prog_compiler_pic_works_CXX=yes
  12736. fi
  12737. fi
  12738. $RM conftest*
  12739. fi
  12740. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12741. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12742. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12743. case $lt_prog_compiler_pic_CXX in
  12744. "" | " "*) ;;
  12745. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12746. esac
  12747. else
  12748. lt_prog_compiler_pic_CXX=
  12749. lt_prog_compiler_can_build_shared_CXX=no
  12750. fi
  12751. fi
  12752. #
  12753. # Check to make sure the static flag actually works.
  12754. #
  12755. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12756. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12757. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12758. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12759. $as_echo_n "(cached) " >&6
  12760. else
  12761. lt_cv_prog_compiler_static_works_CXX=no
  12762. save_LDFLAGS="$LDFLAGS"
  12763. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12764. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12765. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12766. # The linker can only warn and ignore the option if not recognized
  12767. # So say no if there are warnings
  12768. if test -s conftest.err; then
  12769. # Append any errors to the config.log.
  12770. cat conftest.err 1>&5
  12771. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12772. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12773. if diff conftest.exp conftest.er2 >/dev/null; then
  12774. lt_cv_prog_compiler_static_works_CXX=yes
  12775. fi
  12776. else
  12777. lt_cv_prog_compiler_static_works_CXX=yes
  12778. fi
  12779. fi
  12780. $RM -r conftest*
  12781. LDFLAGS="$save_LDFLAGS"
  12782. fi
  12783. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12784. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12785. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12786. :
  12787. else
  12788. lt_prog_compiler_static_CXX=
  12789. fi
  12790. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12791. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12792. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12793. $as_echo_n "(cached) " >&6
  12794. else
  12795. lt_cv_prog_compiler_c_o_CXX=no
  12796. $RM -r conftest 2>/dev/null
  12797. mkdir conftest
  12798. cd conftest
  12799. mkdir out
  12800. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12801. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12802. # Insert the option either (1) after the last *FLAGS variable, or
  12803. # (2) before a word containing "conftest.", or (3) at the end.
  12804. # Note that $ac_compile itself does not contain backslashes and begins
  12805. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12806. lt_compile=`echo "$ac_compile" | $SED \
  12807. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12808. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12809. -e 's:$: $lt_compiler_flag:'`
  12810. (eval echo "\"\$as_me:14768: $lt_compile\"" >&5)
  12811. (eval "$lt_compile" 2>out/conftest.err)
  12812. ac_status=$?
  12813. cat out/conftest.err >&5
  12814. echo "$as_me:14772: \$? = $ac_status" >&5
  12815. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12816. then
  12817. # The compiler can only warn and ignore the option if not recognized
  12818. # So say no if there are warnings
  12819. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12820. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12821. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12822. lt_cv_prog_compiler_c_o_CXX=yes
  12823. fi
  12824. fi
  12825. chmod u+w . 2>&5
  12826. $RM conftest*
  12827. # SGI C++ compiler will create directory out/ii_files/ for
  12828. # template instantiation
  12829. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12830. $RM out/* && rmdir out
  12831. cd ..
  12832. $RM -r conftest
  12833. $RM conftest*
  12834. fi
  12835. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12836. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12837. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12838. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12839. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12840. $as_echo_n "(cached) " >&6
  12841. else
  12842. lt_cv_prog_compiler_c_o_CXX=no
  12843. $RM -r conftest 2>/dev/null
  12844. mkdir conftest
  12845. cd conftest
  12846. mkdir out
  12847. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12848. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12849. # Insert the option either (1) after the last *FLAGS variable, or
  12850. # (2) before a word containing "conftest.", or (3) at the end.
  12851. # Note that $ac_compile itself does not contain backslashes and begins
  12852. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12853. lt_compile=`echo "$ac_compile" | $SED \
  12854. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12855. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12856. -e 's:$: $lt_compiler_flag:'`
  12857. (eval echo "\"\$as_me:14820: $lt_compile\"" >&5)
  12858. (eval "$lt_compile" 2>out/conftest.err)
  12859. ac_status=$?
  12860. cat out/conftest.err >&5
  12861. echo "$as_me:14824: \$? = $ac_status" >&5
  12862. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12863. then
  12864. # The compiler can only warn and ignore the option if not recognized
  12865. # So say no if there are warnings
  12866. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12867. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12868. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12869. lt_cv_prog_compiler_c_o_CXX=yes
  12870. fi
  12871. fi
  12872. chmod u+w . 2>&5
  12873. $RM conftest*
  12874. # SGI C++ compiler will create directory out/ii_files/ for
  12875. # template instantiation
  12876. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12877. $RM out/* && rmdir out
  12878. cd ..
  12879. $RM -r conftest
  12880. $RM conftest*
  12881. fi
  12882. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12883. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12884. hard_links="nottested"
  12885. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12886. # do not overwrite the value of need_locks provided by the user
  12887. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12888. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12889. hard_links=yes
  12890. $RM conftest*
  12891. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12892. touch conftest.a
  12893. ln conftest.a conftest.b 2>&5 || hard_links=no
  12894. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12895. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12896. $as_echo "$hard_links" >&6; }
  12897. if test "$hard_links" = no; then
  12898. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12899. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12900. need_locks=warn
  12901. fi
  12902. else
  12903. need_locks=no
  12904. fi
  12905. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12906. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12907. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12908. case $host_os in
  12909. aix[4-9]*)
  12910. # If we're using GNU nm, then we don't want the "-C" option.
  12911. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12912. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12913. 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'
  12914. else
  12915. 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'
  12916. fi
  12917. ;;
  12918. pw32*)
  12919. export_symbols_cmds_CXX="$ltdll_cmds"
  12920. ;;
  12921. cygwin* | mingw* | cegcc*)
  12922. 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'
  12923. ;;
  12924. *)
  12925. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12926. ;;
  12927. esac
  12928. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12929. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12930. $as_echo "$ld_shlibs_CXX" >&6; }
  12931. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12932. with_gnu_ld_CXX=$with_gnu_ld
  12933. #
  12934. # Do we need to explicitly link libc?
  12935. #
  12936. case "x$archive_cmds_need_lc_CXX" in
  12937. x|xyes)
  12938. # Assume -lc should be added
  12939. archive_cmds_need_lc_CXX=yes
  12940. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12941. case $archive_cmds_CXX in
  12942. *'~'*)
  12943. # FIXME: we may have to deal with multi-command sequences.
  12944. ;;
  12945. '$CC '*)
  12946. # Test whether the compiler implicitly links with -lc since on some
  12947. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12948. # to ld, don't add -lc before -lgcc.
  12949. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12950. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12951. $RM conftest*
  12952. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12953. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12954. (eval $ac_compile) 2>&5
  12955. ac_status=$?
  12956. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12957. (exit $ac_status); } 2>conftest.err; then
  12958. soname=conftest
  12959. lib=conftest
  12960. libobjs=conftest.$ac_objext
  12961. deplibs=
  12962. wl=$lt_prog_compiler_wl_CXX
  12963. pic_flag=$lt_prog_compiler_pic_CXX
  12964. compiler_flags=-v
  12965. linker_flags=-v
  12966. verstring=
  12967. output_objdir=.
  12968. libname=conftest
  12969. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12970. allow_undefined_flag_CXX=
  12971. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12972. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12973. ac_status=$?
  12974. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12975. (exit $ac_status); }
  12976. then
  12977. archive_cmds_need_lc_CXX=no
  12978. else
  12979. archive_cmds_need_lc_CXX=yes
  12980. fi
  12981. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12982. else
  12983. cat conftest.err 1>&5
  12984. fi
  12985. $RM conftest*
  12986. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12987. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12988. ;;
  12989. esac
  12990. fi
  12991. ;;
  12992. esac
  12993. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12994. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12995. library_names_spec=
  12996. libname_spec='lib$name'
  12997. soname_spec=
  12998. shrext_cmds=".so"
  12999. postinstall_cmds=
  13000. postuninstall_cmds=
  13001. finish_cmds=
  13002. finish_eval=
  13003. shlibpath_var=
  13004. shlibpath_overrides_runpath=unknown
  13005. version_type=none
  13006. dynamic_linker="$host_os ld.so"
  13007. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13008. need_lib_prefix=unknown
  13009. hardcode_into_libs=no
  13010. # when you set need_version to no, make sure it does not cause -set_version
  13011. # flags to be left without arguments
  13012. need_version=unknown
  13013. case $host_os in
  13014. aix3*)
  13015. version_type=linux
  13016. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13017. shlibpath_var=LIBPATH
  13018. # AIX 3 has no versioning support, so we append a major version to the name.
  13019. soname_spec='${libname}${release}${shared_ext}$major'
  13020. ;;
  13021. aix[4-9]*)
  13022. version_type=linux
  13023. need_lib_prefix=no
  13024. need_version=no
  13025. hardcode_into_libs=yes
  13026. if test "$host_cpu" = ia64; then
  13027. # AIX 5 supports IA64
  13028. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13029. shlibpath_var=LD_LIBRARY_PATH
  13030. else
  13031. # With GCC up to 2.95.x, collect2 would create an import file
  13032. # for dependence libraries. The import file would start with
  13033. # the line `#! .'. This would cause the generated library to
  13034. # depend on `.', always an invalid library. This was fixed in
  13035. # development snapshots of GCC prior to 3.0.
  13036. case $host_os in
  13037. aix4 | aix4.[01] | aix4.[01].*)
  13038. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13039. echo ' yes '
  13040. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13041. :
  13042. else
  13043. can_build_shared=no
  13044. fi
  13045. ;;
  13046. esac
  13047. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13048. # soname into executable. Probably we can add versioning support to
  13049. # collect2, so additional links can be useful in future.
  13050. if test "$aix_use_runtimelinking" = yes; then
  13051. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13052. # instead of lib<name>.a to let people know that these are not
  13053. # typical AIX shared libraries.
  13054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13055. else
  13056. # We preserve .a as extension for shared libraries through AIX4.2
  13057. # and later when we are not doing run time linking.
  13058. library_names_spec='${libname}${release}.a $libname.a'
  13059. soname_spec='${libname}${release}${shared_ext}$major'
  13060. fi
  13061. shlibpath_var=LIBPATH
  13062. fi
  13063. ;;
  13064. amigaos*)
  13065. case $host_cpu in
  13066. powerpc)
  13067. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13068. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13070. ;;
  13071. m68k)
  13072. library_names_spec='$libname.ixlibrary $libname.a'
  13073. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13074. 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'
  13075. ;;
  13076. esac
  13077. ;;
  13078. beos*)
  13079. library_names_spec='${libname}${shared_ext}'
  13080. dynamic_linker="$host_os ld.so"
  13081. shlibpath_var=LIBRARY_PATH
  13082. ;;
  13083. bsdi[45]*)
  13084. version_type=linux
  13085. need_version=no
  13086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13087. soname_spec='${libname}${release}${shared_ext}$major'
  13088. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13089. shlibpath_var=LD_LIBRARY_PATH
  13090. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13091. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13092. # the default ld.so.conf also contains /usr/contrib/lib and
  13093. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13094. # libtool to hard-code these into programs
  13095. ;;
  13096. cygwin* | mingw* | pw32* | cegcc*)
  13097. version_type=windows
  13098. shrext_cmds=".dll"
  13099. need_version=no
  13100. need_lib_prefix=no
  13101. case $GCC,$host_os in
  13102. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13103. library_names_spec='$libname.dll.a'
  13104. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13105. postinstall_cmds='base_file=`basename \${file}`~
  13106. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13107. dldir=$destdir/`dirname \$dlpath`~
  13108. test -d \$dldir || mkdir -p \$dldir~
  13109. $install_prog $dir/$dlname \$dldir/$dlname~
  13110. chmod a+x \$dldir/$dlname~
  13111. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13112. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13113. fi'
  13114. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13115. dlpath=$dir/\$dldll~
  13116. $RM \$dlpath'
  13117. shlibpath_overrides_runpath=yes
  13118. case $host_os in
  13119. cygwin*)
  13120. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13121. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13122. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13123. ;;
  13124. mingw* | cegcc*)
  13125. # MinGW DLLs use traditional 'lib' prefix
  13126. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13127. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13128. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13129. # It is most probably a Windows format PATH printed by
  13130. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13131. # path with ; separators, and with drive letters. We can handle the
  13132. # drive letters (cygwin fileutils understands them), so leave them,
  13133. # especially as we might pass files found there to a mingw objdump,
  13134. # which wouldn't understand a cygwinified path. Ahh.
  13135. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13136. else
  13137. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13138. fi
  13139. ;;
  13140. pw32*)
  13141. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13142. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13143. ;;
  13144. esac
  13145. ;;
  13146. *)
  13147. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13148. ;;
  13149. esac
  13150. dynamic_linker='Win32 ld.exe'
  13151. # FIXME: first we should search . and the directory the executable is in
  13152. shlibpath_var=PATH
  13153. ;;
  13154. darwin* | rhapsody*)
  13155. dynamic_linker="$host_os dyld"
  13156. version_type=darwin
  13157. need_lib_prefix=no
  13158. need_version=no
  13159. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13160. soname_spec='${libname}${release}${major}$shared_ext'
  13161. shlibpath_overrides_runpath=yes
  13162. shlibpath_var=DYLD_LIBRARY_PATH
  13163. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13164. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13165. ;;
  13166. dgux*)
  13167. version_type=linux
  13168. need_lib_prefix=no
  13169. need_version=no
  13170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13171. soname_spec='${libname}${release}${shared_ext}$major'
  13172. shlibpath_var=LD_LIBRARY_PATH
  13173. ;;
  13174. freebsd1*)
  13175. dynamic_linker=no
  13176. ;;
  13177. freebsd* | dragonfly*)
  13178. # DragonFly does not have aout. When/if they implement a new
  13179. # versioning mechanism, adjust this.
  13180. if test -x /usr/bin/objformat; then
  13181. objformat=`/usr/bin/objformat`
  13182. else
  13183. case $host_os in
  13184. freebsd[123]*) objformat=aout ;;
  13185. *) objformat=elf ;;
  13186. esac
  13187. fi
  13188. version_type=freebsd-$objformat
  13189. case $version_type in
  13190. freebsd-elf*)
  13191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13192. need_version=no
  13193. need_lib_prefix=no
  13194. ;;
  13195. freebsd-*)
  13196. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13197. need_version=yes
  13198. ;;
  13199. esac
  13200. shlibpath_var=LD_LIBRARY_PATH
  13201. case $host_os in
  13202. freebsd2*)
  13203. shlibpath_overrides_runpath=yes
  13204. ;;
  13205. freebsd3.[01]* | freebsdelf3.[01]*)
  13206. shlibpath_overrides_runpath=yes
  13207. hardcode_into_libs=yes
  13208. ;;
  13209. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13210. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13211. shlibpath_overrides_runpath=no
  13212. hardcode_into_libs=yes
  13213. ;;
  13214. *) # from 4.6 on, and DragonFly
  13215. shlibpath_overrides_runpath=yes
  13216. hardcode_into_libs=yes
  13217. ;;
  13218. esac
  13219. ;;
  13220. gnu*)
  13221. version_type=linux
  13222. need_lib_prefix=no
  13223. need_version=no
  13224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13225. soname_spec='${libname}${release}${shared_ext}$major'
  13226. shlibpath_var=LD_LIBRARY_PATH
  13227. hardcode_into_libs=yes
  13228. ;;
  13229. hpux9* | hpux10* | hpux11*)
  13230. # Give a soname corresponding to the major version so that dld.sl refuses to
  13231. # link against other versions.
  13232. version_type=sunos
  13233. need_lib_prefix=no
  13234. need_version=no
  13235. case $host_cpu in
  13236. ia64*)
  13237. shrext_cmds='.so'
  13238. hardcode_into_libs=yes
  13239. dynamic_linker="$host_os dld.so"
  13240. shlibpath_var=LD_LIBRARY_PATH
  13241. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13243. soname_spec='${libname}${release}${shared_ext}$major'
  13244. if test "X$HPUX_IA64_MODE" = X32; then
  13245. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13246. else
  13247. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13248. fi
  13249. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13250. ;;
  13251. hppa*64*)
  13252. shrext_cmds='.sl'
  13253. hardcode_into_libs=yes
  13254. dynamic_linker="$host_os dld.sl"
  13255. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13256. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13258. soname_spec='${libname}${release}${shared_ext}$major'
  13259. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13260. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13261. ;;
  13262. *)
  13263. shrext_cmds='.sl'
  13264. dynamic_linker="$host_os dld.sl"
  13265. shlibpath_var=SHLIB_PATH
  13266. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13268. soname_spec='${libname}${release}${shared_ext}$major'
  13269. ;;
  13270. esac
  13271. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13272. postinstall_cmds='chmod 555 $lib'
  13273. ;;
  13274. interix[3-9]*)
  13275. version_type=linux
  13276. need_lib_prefix=no
  13277. need_version=no
  13278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13279. soname_spec='${libname}${release}${shared_ext}$major'
  13280. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13281. shlibpath_var=LD_LIBRARY_PATH
  13282. shlibpath_overrides_runpath=no
  13283. hardcode_into_libs=yes
  13284. ;;
  13285. irix5* | irix6* | nonstopux*)
  13286. case $host_os in
  13287. nonstopux*) version_type=nonstopux ;;
  13288. *)
  13289. if test "$lt_cv_prog_gnu_ld" = yes; then
  13290. version_type=linux
  13291. else
  13292. version_type=irix
  13293. fi ;;
  13294. esac
  13295. need_lib_prefix=no
  13296. need_version=no
  13297. soname_spec='${libname}${release}${shared_ext}$major'
  13298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13299. case $host_os in
  13300. irix5* | nonstopux*)
  13301. libsuff= shlibsuff=
  13302. ;;
  13303. *)
  13304. case $LD in # libtool.m4 will add one of these switches to LD
  13305. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13306. libsuff= shlibsuff= libmagic=32-bit;;
  13307. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13308. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13309. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13310. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13311. *) libsuff= shlibsuff= libmagic=never-match;;
  13312. esac
  13313. ;;
  13314. esac
  13315. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13316. shlibpath_overrides_runpath=no
  13317. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13318. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13319. hardcode_into_libs=yes
  13320. ;;
  13321. # No shared lib support for Linux oldld, aout, or coff.
  13322. linux*oldld* | linux*aout* | linux*coff*)
  13323. dynamic_linker=no
  13324. ;;
  13325. # This must be Linux ELF.
  13326. linux* | k*bsd*-gnu)
  13327. version_type=linux
  13328. need_lib_prefix=no
  13329. need_version=no
  13330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13331. soname_spec='${libname}${release}${shared_ext}$major'
  13332. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13333. shlibpath_var=LD_LIBRARY_PATH
  13334. shlibpath_overrides_runpath=no
  13335. # Some binutils ld are patched to set DT_RUNPATH
  13336. save_LDFLAGS=$LDFLAGS
  13337. save_libdir=$libdir
  13338. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13339. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13340. cat >conftest.$ac_ext <<_ACEOF
  13341. /* confdefs.h. */
  13342. _ACEOF
  13343. cat confdefs.h >>conftest.$ac_ext
  13344. cat >>conftest.$ac_ext <<_ACEOF
  13345. /* end confdefs.h. */
  13346. int
  13347. main ()
  13348. {
  13349. ;
  13350. return 0;
  13351. }
  13352. _ACEOF
  13353. rm -f conftest.$ac_objext conftest$ac_exeext
  13354. if { (ac_try="$ac_link"
  13355. case "(($ac_try" in
  13356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13357. *) ac_try_echo=$ac_try;;
  13358. esac
  13359. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13360. $as_echo "$ac_try_echo") >&5
  13361. (eval "$ac_link") 2>conftest.er1
  13362. ac_status=$?
  13363. grep -v '^ *+' conftest.er1 >conftest.err
  13364. rm -f conftest.er1
  13365. cat conftest.err >&5
  13366. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13367. (exit $ac_status); } && {
  13368. test -z "$ac_cxx_werror_flag" ||
  13369. test ! -s conftest.err
  13370. } && test -s conftest$ac_exeext && {
  13371. test "$cross_compiling" = yes ||
  13372. $as_test_x conftest$ac_exeext
  13373. }; then
  13374. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  13375. shlibpath_overrides_runpath=yes
  13376. fi
  13377. else
  13378. $as_echo "$as_me: failed program was:" >&5
  13379. sed 's/^/| /' conftest.$ac_ext >&5
  13380. fi
  13381. rm -rf conftest.dSYM
  13382. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13383. conftest$ac_exeext conftest.$ac_ext
  13384. LDFLAGS=$save_LDFLAGS
  13385. libdir=$save_libdir
  13386. # This implies no fast_install, which is unacceptable.
  13387. # Some rework will be needed to allow for fast_install
  13388. # before this can be enabled.
  13389. hardcode_into_libs=yes
  13390. # Add ABI-specific directories to the system library path.
  13391. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13392. # Append ld.so.conf contents to the search path
  13393. if test -f /etc/ld.so.conf; then
  13394. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13395. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13396. fi
  13397. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13398. # powerpc, because MkLinux only supported shared libraries with the
  13399. # GNU dynamic linker. Since this was broken with cross compilers,
  13400. # most powerpc-linux boxes support dynamic linking these days and
  13401. # people can always --disable-shared, the test was removed, and we
  13402. # assume the GNU/Linux dynamic linker is in use.
  13403. dynamic_linker='GNU/Linux ld.so'
  13404. ;;
  13405. netbsd*)
  13406. version_type=sunos
  13407. need_lib_prefix=no
  13408. need_version=no
  13409. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13411. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13412. dynamic_linker='NetBSD (a.out) ld.so'
  13413. else
  13414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13415. soname_spec='${libname}${release}${shared_ext}$major'
  13416. dynamic_linker='NetBSD ld.elf_so'
  13417. fi
  13418. shlibpath_var=LD_LIBRARY_PATH
  13419. shlibpath_overrides_runpath=yes
  13420. hardcode_into_libs=yes
  13421. ;;
  13422. newsos6)
  13423. version_type=linux
  13424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13425. shlibpath_var=LD_LIBRARY_PATH
  13426. shlibpath_overrides_runpath=yes
  13427. ;;
  13428. *nto* | *qnx*)
  13429. version_type=qnx
  13430. need_lib_prefix=no
  13431. need_version=no
  13432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13433. soname_spec='${libname}${release}${shared_ext}$major'
  13434. shlibpath_var=LD_LIBRARY_PATH
  13435. shlibpath_overrides_runpath=no
  13436. hardcode_into_libs=yes
  13437. dynamic_linker='ldqnx.so'
  13438. ;;
  13439. openbsd*)
  13440. version_type=sunos
  13441. sys_lib_dlsearch_path_spec="/usr/lib"
  13442. need_lib_prefix=no
  13443. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13444. case $host_os in
  13445. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13446. *) need_version=no ;;
  13447. esac
  13448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13449. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13450. shlibpath_var=LD_LIBRARY_PATH
  13451. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13452. case $host_os in
  13453. openbsd2.[89] | openbsd2.[89].*)
  13454. shlibpath_overrides_runpath=no
  13455. ;;
  13456. *)
  13457. shlibpath_overrides_runpath=yes
  13458. ;;
  13459. esac
  13460. else
  13461. shlibpath_overrides_runpath=yes
  13462. fi
  13463. ;;
  13464. os2*)
  13465. libname_spec='$name'
  13466. shrext_cmds=".dll"
  13467. need_lib_prefix=no
  13468. library_names_spec='$libname${shared_ext} $libname.a'
  13469. dynamic_linker='OS/2 ld.exe'
  13470. shlibpath_var=LIBPATH
  13471. ;;
  13472. osf3* | osf4* | osf5*)
  13473. version_type=osf
  13474. need_lib_prefix=no
  13475. need_version=no
  13476. soname_spec='${libname}${release}${shared_ext}$major'
  13477. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13478. shlibpath_var=LD_LIBRARY_PATH
  13479. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13480. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13481. ;;
  13482. rdos*)
  13483. dynamic_linker=no
  13484. ;;
  13485. solaris*)
  13486. version_type=linux
  13487. need_lib_prefix=no
  13488. need_version=no
  13489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13490. soname_spec='${libname}${release}${shared_ext}$major'
  13491. shlibpath_var=LD_LIBRARY_PATH
  13492. shlibpath_overrides_runpath=yes
  13493. hardcode_into_libs=yes
  13494. # ldd complains unless libraries are executable
  13495. postinstall_cmds='chmod +x $lib'
  13496. ;;
  13497. sunos4*)
  13498. version_type=sunos
  13499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13500. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13501. shlibpath_var=LD_LIBRARY_PATH
  13502. shlibpath_overrides_runpath=yes
  13503. if test "$with_gnu_ld" = yes; then
  13504. need_lib_prefix=no
  13505. fi
  13506. need_version=yes
  13507. ;;
  13508. sysv4 | sysv4.3*)
  13509. version_type=linux
  13510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13511. soname_spec='${libname}${release}${shared_ext}$major'
  13512. shlibpath_var=LD_LIBRARY_PATH
  13513. case $host_vendor in
  13514. sni)
  13515. shlibpath_overrides_runpath=no
  13516. need_lib_prefix=no
  13517. runpath_var=LD_RUN_PATH
  13518. ;;
  13519. siemens)
  13520. need_lib_prefix=no
  13521. ;;
  13522. motorola)
  13523. need_lib_prefix=no
  13524. need_version=no
  13525. shlibpath_overrides_runpath=no
  13526. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13527. ;;
  13528. esac
  13529. ;;
  13530. sysv4*MP*)
  13531. if test -d /usr/nec ;then
  13532. version_type=linux
  13533. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13534. soname_spec='$libname${shared_ext}.$major'
  13535. shlibpath_var=LD_LIBRARY_PATH
  13536. fi
  13537. ;;
  13538. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13539. version_type=freebsd-elf
  13540. need_lib_prefix=no
  13541. need_version=no
  13542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13543. soname_spec='${libname}${release}${shared_ext}$major'
  13544. shlibpath_var=LD_LIBRARY_PATH
  13545. shlibpath_overrides_runpath=yes
  13546. hardcode_into_libs=yes
  13547. if test "$with_gnu_ld" = yes; then
  13548. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13549. else
  13550. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13551. case $host_os in
  13552. sco3.2v5*)
  13553. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13554. ;;
  13555. esac
  13556. fi
  13557. sys_lib_dlsearch_path_spec='/usr/lib'
  13558. ;;
  13559. tpf*)
  13560. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13561. version_type=linux
  13562. need_lib_prefix=no
  13563. need_version=no
  13564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13565. shlibpath_var=LD_LIBRARY_PATH
  13566. shlibpath_overrides_runpath=no
  13567. hardcode_into_libs=yes
  13568. ;;
  13569. uts4*)
  13570. version_type=linux
  13571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13572. soname_spec='${libname}${release}${shared_ext}$major'
  13573. shlibpath_var=LD_LIBRARY_PATH
  13574. ;;
  13575. *)
  13576. dynamic_linker=no
  13577. ;;
  13578. esac
  13579. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13580. $as_echo "$dynamic_linker" >&6; }
  13581. test "$dynamic_linker" = no && can_build_shared=no
  13582. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13583. if test "$GCC" = yes; then
  13584. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13585. fi
  13586. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13587. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13588. fi
  13589. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13590. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13591. fi
  13592. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13593. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13594. hardcode_action_CXX=
  13595. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13596. test -n "$runpath_var_CXX" ||
  13597. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13598. # We can hardcode non-existent directories.
  13599. if test "$hardcode_direct_CXX" != no &&
  13600. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13601. # have to relink, otherwise we might link with an installed library
  13602. # when we should be linking with a yet-to-be-installed one
  13603. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13604. test "$hardcode_minus_L_CXX" != no; then
  13605. # Linking always hardcodes the temporary library directory.
  13606. hardcode_action_CXX=relink
  13607. else
  13608. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13609. hardcode_action_CXX=immediate
  13610. fi
  13611. else
  13612. # We cannot hardcode anything, or else we can only hardcode existing
  13613. # directories.
  13614. hardcode_action_CXX=unsupported
  13615. fi
  13616. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13617. $as_echo "$hardcode_action_CXX" >&6; }
  13618. if test "$hardcode_action_CXX" = relink ||
  13619. test "$inherit_rpath_CXX" = yes; then
  13620. # Fast installation is not supported
  13621. enable_fast_install=no
  13622. elif test "$shlibpath_overrides_runpath" = yes ||
  13623. test "$enable_shared" = no; then
  13624. # Fast installation is not necessary
  13625. enable_fast_install=needless
  13626. fi
  13627. fi # test -n "$compiler"
  13628. CC=$lt_save_CC
  13629. LDCXX=$LD
  13630. LD=$lt_save_LD
  13631. GCC=$lt_save_GCC
  13632. with_gnu_ld=$lt_save_with_gnu_ld
  13633. lt_cv_path_LDCXX=$lt_cv_path_LD
  13634. lt_cv_path_LD=$lt_save_path_LD
  13635. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13636. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13637. fi # test "$_lt_caught_CXX_error" != yes
  13638. ac_ext=c
  13639. ac_cpp='$CPP $CPPFLAGS'
  13640. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13641. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13642. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13643. ac_config_commands="$ac_config_commands libtool"
  13644. # Only expand once:
  13645. # Checks for header files.
  13646. ac_header_dirent=no
  13647. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13648. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13649. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  13650. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13651. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13652. $as_echo_n "(cached) " >&6
  13653. else
  13654. cat >conftest.$ac_ext <<_ACEOF
  13655. /* confdefs.h. */
  13656. _ACEOF
  13657. cat confdefs.h >>conftest.$ac_ext
  13658. cat >>conftest.$ac_ext <<_ACEOF
  13659. /* end confdefs.h. */
  13660. #include <sys/types.h>
  13661. #include <$ac_hdr>
  13662. int
  13663. main ()
  13664. {
  13665. if ((DIR *) 0)
  13666. return 0;
  13667. ;
  13668. return 0;
  13669. }
  13670. _ACEOF
  13671. rm -f conftest.$ac_objext
  13672. if { (ac_try="$ac_compile"
  13673. case "(($ac_try" in
  13674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13675. *) ac_try_echo=$ac_try;;
  13676. esac
  13677. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13678. $as_echo "$ac_try_echo") >&5
  13679. (eval "$ac_compile") 2>conftest.er1
  13680. ac_status=$?
  13681. grep -v '^ *+' conftest.er1 >conftest.err
  13682. rm -f conftest.er1
  13683. cat conftest.err >&5
  13684. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13685. (exit $ac_status); } && {
  13686. test -z "$ac_c_werror_flag" ||
  13687. test ! -s conftest.err
  13688. } && test -s conftest.$ac_objext; then
  13689. eval "$as_ac_Header=yes"
  13690. else
  13691. $as_echo "$as_me: failed program was:" >&5
  13692. sed 's/^/| /' conftest.$ac_ext >&5
  13693. eval "$as_ac_Header=no"
  13694. fi
  13695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13696. fi
  13697. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13698. $as_echo "$as_val"'`
  13699. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13700. $as_echo "$ac_res" >&6; }
  13701. as_val=`eval 'as_val=${'$as_ac_Header'}
  13702. $as_echo "$as_val"'`
  13703. if test "x$as_val" = x""yes; then
  13704. cat >>confdefs.h <<_ACEOF
  13705. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13706. _ACEOF
  13707. ac_header_dirent=$ac_hdr; break
  13708. fi
  13709. done
  13710. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13711. if test $ac_header_dirent = dirent.h; then
  13712. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13713. $as_echo_n "checking for library containing opendir... " >&6; }
  13714. if test "${ac_cv_search_opendir+set}" = set; then
  13715. $as_echo_n "(cached) " >&6
  13716. else
  13717. ac_func_search_save_LIBS=$LIBS
  13718. cat >conftest.$ac_ext <<_ACEOF
  13719. /* confdefs.h. */
  13720. _ACEOF
  13721. cat confdefs.h >>conftest.$ac_ext
  13722. cat >>conftest.$ac_ext <<_ACEOF
  13723. /* end confdefs.h. */
  13724. /* Override any GCC internal prototype to avoid an error.
  13725. Use char because int might match the return type of a GCC
  13726. builtin and then its argument prototype would still apply. */
  13727. #ifdef __cplusplus
  13728. extern "C"
  13729. #endif
  13730. char opendir ();
  13731. int
  13732. main ()
  13733. {
  13734. return opendir ();
  13735. ;
  13736. return 0;
  13737. }
  13738. _ACEOF
  13739. for ac_lib in '' dir; do
  13740. if test -z "$ac_lib"; then
  13741. ac_res="none required"
  13742. else
  13743. ac_res=-l$ac_lib
  13744. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13745. fi
  13746. rm -f conftest.$ac_objext conftest$ac_exeext
  13747. if { (ac_try="$ac_link"
  13748. case "(($ac_try" in
  13749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13750. *) ac_try_echo=$ac_try;;
  13751. esac
  13752. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13753. $as_echo "$ac_try_echo") >&5
  13754. (eval "$ac_link") 2>conftest.er1
  13755. ac_status=$?
  13756. grep -v '^ *+' conftest.er1 >conftest.err
  13757. rm -f conftest.er1
  13758. cat conftest.err >&5
  13759. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13760. (exit $ac_status); } && {
  13761. test -z "$ac_c_werror_flag" ||
  13762. test ! -s conftest.err
  13763. } && test -s conftest$ac_exeext && {
  13764. test "$cross_compiling" = yes ||
  13765. $as_test_x conftest$ac_exeext
  13766. }; then
  13767. ac_cv_search_opendir=$ac_res
  13768. else
  13769. $as_echo "$as_me: failed program was:" >&5
  13770. sed 's/^/| /' conftest.$ac_ext >&5
  13771. fi
  13772. rm -rf conftest.dSYM
  13773. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13774. conftest$ac_exeext
  13775. if test "${ac_cv_search_opendir+set}" = set; then
  13776. break
  13777. fi
  13778. done
  13779. if test "${ac_cv_search_opendir+set}" = set; then
  13780. :
  13781. else
  13782. ac_cv_search_opendir=no
  13783. fi
  13784. rm conftest.$ac_ext
  13785. LIBS=$ac_func_search_save_LIBS
  13786. fi
  13787. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13788. $as_echo "$ac_cv_search_opendir" >&6; }
  13789. ac_res=$ac_cv_search_opendir
  13790. if test "$ac_res" != no; then
  13791. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13792. fi
  13793. else
  13794. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13795. $as_echo_n "checking for library containing opendir... " >&6; }
  13796. if test "${ac_cv_search_opendir+set}" = set; then
  13797. $as_echo_n "(cached) " >&6
  13798. else
  13799. ac_func_search_save_LIBS=$LIBS
  13800. cat >conftest.$ac_ext <<_ACEOF
  13801. /* confdefs.h. */
  13802. _ACEOF
  13803. cat confdefs.h >>conftest.$ac_ext
  13804. cat >>conftest.$ac_ext <<_ACEOF
  13805. /* end confdefs.h. */
  13806. /* Override any GCC internal prototype to avoid an error.
  13807. Use char because int might match the return type of a GCC
  13808. builtin and then its argument prototype would still apply. */
  13809. #ifdef __cplusplus
  13810. extern "C"
  13811. #endif
  13812. char opendir ();
  13813. int
  13814. main ()
  13815. {
  13816. return opendir ();
  13817. ;
  13818. return 0;
  13819. }
  13820. _ACEOF
  13821. for ac_lib in '' x; do
  13822. if test -z "$ac_lib"; then
  13823. ac_res="none required"
  13824. else
  13825. ac_res=-l$ac_lib
  13826. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13827. fi
  13828. rm -f conftest.$ac_objext conftest$ac_exeext
  13829. if { (ac_try="$ac_link"
  13830. case "(($ac_try" in
  13831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13832. *) ac_try_echo=$ac_try;;
  13833. esac
  13834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13835. $as_echo "$ac_try_echo") >&5
  13836. (eval "$ac_link") 2>conftest.er1
  13837. ac_status=$?
  13838. grep -v '^ *+' conftest.er1 >conftest.err
  13839. rm -f conftest.er1
  13840. cat conftest.err >&5
  13841. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13842. (exit $ac_status); } && {
  13843. test -z "$ac_c_werror_flag" ||
  13844. test ! -s conftest.err
  13845. } && test -s conftest$ac_exeext && {
  13846. test "$cross_compiling" = yes ||
  13847. $as_test_x conftest$ac_exeext
  13848. }; then
  13849. ac_cv_search_opendir=$ac_res
  13850. else
  13851. $as_echo "$as_me: failed program was:" >&5
  13852. sed 's/^/| /' conftest.$ac_ext >&5
  13853. fi
  13854. rm -rf conftest.dSYM
  13855. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13856. conftest$ac_exeext
  13857. if test "${ac_cv_search_opendir+set}" = set; then
  13858. break
  13859. fi
  13860. done
  13861. if test "${ac_cv_search_opendir+set}" = set; then
  13862. :
  13863. else
  13864. ac_cv_search_opendir=no
  13865. fi
  13866. rm conftest.$ac_ext
  13867. LIBS=$ac_func_search_save_LIBS
  13868. fi
  13869. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13870. $as_echo "$ac_cv_search_opendir" >&6; }
  13871. ac_res=$ac_cv_search_opendir
  13872. if test "$ac_res" != no; then
  13873. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13874. fi
  13875. fi
  13876. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  13877. $as_echo_n "checking for ANSI C header files... " >&6; }
  13878. if test "${ac_cv_header_stdc+set}" = set; then
  13879. $as_echo_n "(cached) " >&6
  13880. else
  13881. cat >conftest.$ac_ext <<_ACEOF
  13882. /* confdefs.h. */
  13883. _ACEOF
  13884. cat confdefs.h >>conftest.$ac_ext
  13885. cat >>conftest.$ac_ext <<_ACEOF
  13886. /* end confdefs.h. */
  13887. #include <stdlib.h>
  13888. #include <stdarg.h>
  13889. #include <string.h>
  13890. #include <float.h>
  13891. int
  13892. main ()
  13893. {
  13894. ;
  13895. return 0;
  13896. }
  13897. _ACEOF
  13898. rm -f conftest.$ac_objext
  13899. if { (ac_try="$ac_compile"
  13900. case "(($ac_try" in
  13901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13902. *) ac_try_echo=$ac_try;;
  13903. esac
  13904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13905. $as_echo "$ac_try_echo") >&5
  13906. (eval "$ac_compile") 2>conftest.er1
  13907. ac_status=$?
  13908. grep -v '^ *+' conftest.er1 >conftest.err
  13909. rm -f conftest.er1
  13910. cat conftest.err >&5
  13911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13912. (exit $ac_status); } && {
  13913. test -z "$ac_c_werror_flag" ||
  13914. test ! -s conftest.err
  13915. } && test -s conftest.$ac_objext; then
  13916. ac_cv_header_stdc=yes
  13917. else
  13918. $as_echo "$as_me: failed program was:" >&5
  13919. sed 's/^/| /' conftest.$ac_ext >&5
  13920. ac_cv_header_stdc=no
  13921. fi
  13922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13923. if test $ac_cv_header_stdc = yes; then
  13924. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13925. cat >conftest.$ac_ext <<_ACEOF
  13926. /* confdefs.h. */
  13927. _ACEOF
  13928. cat confdefs.h >>conftest.$ac_ext
  13929. cat >>conftest.$ac_ext <<_ACEOF
  13930. /* end confdefs.h. */
  13931. #include <string.h>
  13932. _ACEOF
  13933. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13934. $EGREP "memchr" >/dev/null 2>&1; then
  13935. :
  13936. else
  13937. ac_cv_header_stdc=no
  13938. fi
  13939. rm -f conftest*
  13940. fi
  13941. if test $ac_cv_header_stdc = yes; then
  13942. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13943. cat >conftest.$ac_ext <<_ACEOF
  13944. /* confdefs.h. */
  13945. _ACEOF
  13946. cat confdefs.h >>conftest.$ac_ext
  13947. cat >>conftest.$ac_ext <<_ACEOF
  13948. /* end confdefs.h. */
  13949. #include <stdlib.h>
  13950. _ACEOF
  13951. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13952. $EGREP "free" >/dev/null 2>&1; then
  13953. :
  13954. else
  13955. ac_cv_header_stdc=no
  13956. fi
  13957. rm -f conftest*
  13958. fi
  13959. if test $ac_cv_header_stdc = yes; then
  13960. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13961. if test "$cross_compiling" = yes; then
  13962. :
  13963. else
  13964. cat >conftest.$ac_ext <<_ACEOF
  13965. /* confdefs.h. */
  13966. _ACEOF
  13967. cat confdefs.h >>conftest.$ac_ext
  13968. cat >>conftest.$ac_ext <<_ACEOF
  13969. /* end confdefs.h. */
  13970. #include <ctype.h>
  13971. #include <stdlib.h>
  13972. #if ((' ' & 0x0FF) == 0x020)
  13973. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13974. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13975. #else
  13976. # define ISLOWER(c) \
  13977. (('a' <= (c) && (c) <= 'i') \
  13978. || ('j' <= (c) && (c) <= 'r') \
  13979. || ('s' <= (c) && (c) <= 'z'))
  13980. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13981. #endif
  13982. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13983. int
  13984. main ()
  13985. {
  13986. int i;
  13987. for (i = 0; i < 256; i++)
  13988. if (XOR (islower (i), ISLOWER (i))
  13989. || toupper (i) != TOUPPER (i))
  13990. return 2;
  13991. return 0;
  13992. }
  13993. _ACEOF
  13994. rm -f conftest$ac_exeext
  13995. if { (ac_try="$ac_link"
  13996. case "(($ac_try" in
  13997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13998. *) ac_try_echo=$ac_try;;
  13999. esac
  14000. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14001. $as_echo "$ac_try_echo") >&5
  14002. (eval "$ac_link") 2>&5
  14003. ac_status=$?
  14004. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14005. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14006. { (case "(($ac_try" in
  14007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14008. *) ac_try_echo=$ac_try;;
  14009. esac
  14010. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14011. $as_echo "$ac_try_echo") >&5
  14012. (eval "$ac_try") 2>&5
  14013. ac_status=$?
  14014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14015. (exit $ac_status); }; }; then
  14016. :
  14017. else
  14018. $as_echo "$as_me: program exited with status $ac_status" >&5
  14019. $as_echo "$as_me: failed program was:" >&5
  14020. sed 's/^/| /' conftest.$ac_ext >&5
  14021. ( exit $ac_status )
  14022. ac_cv_header_stdc=no
  14023. fi
  14024. rm -rf conftest.dSYM
  14025. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14026. fi
  14027. fi
  14028. fi
  14029. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  14030. $as_echo "$ac_cv_header_stdc" >&6; }
  14031. if test $ac_cv_header_stdc = yes; then
  14032. cat >>confdefs.h <<\_ACEOF
  14033. #define STDC_HEADERS 1
  14034. _ACEOF
  14035. fi
  14036. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  14037. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  14038. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  14039. $as_echo_n "(cached) " >&6
  14040. else
  14041. cat >conftest.$ac_ext <<_ACEOF
  14042. /* confdefs.h. */
  14043. _ACEOF
  14044. cat confdefs.h >>conftest.$ac_ext
  14045. cat >>conftest.$ac_ext <<_ACEOF
  14046. /* end confdefs.h. */
  14047. #include <sys/types.h>
  14048. #include <sys/wait.h>
  14049. #ifndef WEXITSTATUS
  14050. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  14051. #endif
  14052. #ifndef WIFEXITED
  14053. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  14054. #endif
  14055. int
  14056. main ()
  14057. {
  14058. int s;
  14059. wait (&s);
  14060. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  14061. ;
  14062. return 0;
  14063. }
  14064. _ACEOF
  14065. rm -f conftest.$ac_objext
  14066. if { (ac_try="$ac_compile"
  14067. case "(($ac_try" in
  14068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14069. *) ac_try_echo=$ac_try;;
  14070. esac
  14071. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14072. $as_echo "$ac_try_echo") >&5
  14073. (eval "$ac_compile") 2>conftest.er1
  14074. ac_status=$?
  14075. grep -v '^ *+' conftest.er1 >conftest.err
  14076. rm -f conftest.er1
  14077. cat conftest.err >&5
  14078. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14079. (exit $ac_status); } && {
  14080. test -z "$ac_c_werror_flag" ||
  14081. test ! -s conftest.err
  14082. } && test -s conftest.$ac_objext; then
  14083. ac_cv_header_sys_wait_h=yes
  14084. else
  14085. $as_echo "$as_me: failed program was:" >&5
  14086. sed 's/^/| /' conftest.$ac_ext >&5
  14087. ac_cv_header_sys_wait_h=no
  14088. fi
  14089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14090. fi
  14091. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  14092. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  14093. if test $ac_cv_header_sys_wait_h = yes; then
  14094. cat >>confdefs.h <<\_ACEOF
  14095. #define HAVE_SYS_WAIT_H 1
  14096. _ACEOF
  14097. fi
  14098. for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h inttypes.h
  14099. do
  14100. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14101. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14102. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14103. $as_echo_n "checking for $ac_header... " >&6; }
  14104. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14105. $as_echo_n "(cached) " >&6
  14106. fi
  14107. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14108. $as_echo "$as_val"'`
  14109. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14110. $as_echo "$ac_res" >&6; }
  14111. else
  14112. # Is the header compilable?
  14113. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14114. $as_echo_n "checking $ac_header usability... " >&6; }
  14115. cat >conftest.$ac_ext <<_ACEOF
  14116. /* confdefs.h. */
  14117. _ACEOF
  14118. cat confdefs.h >>conftest.$ac_ext
  14119. cat >>conftest.$ac_ext <<_ACEOF
  14120. /* end confdefs.h. */
  14121. $ac_includes_default
  14122. #include <$ac_header>
  14123. _ACEOF
  14124. rm -f conftest.$ac_objext
  14125. if { (ac_try="$ac_compile"
  14126. case "(($ac_try" in
  14127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14128. *) ac_try_echo=$ac_try;;
  14129. esac
  14130. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14131. $as_echo "$ac_try_echo") >&5
  14132. (eval "$ac_compile") 2>conftest.er1
  14133. ac_status=$?
  14134. grep -v '^ *+' conftest.er1 >conftest.err
  14135. rm -f conftest.er1
  14136. cat conftest.err >&5
  14137. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14138. (exit $ac_status); } && {
  14139. test -z "$ac_c_werror_flag" ||
  14140. test ! -s conftest.err
  14141. } && test -s conftest.$ac_objext; then
  14142. ac_header_compiler=yes
  14143. else
  14144. $as_echo "$as_me: failed program was:" >&5
  14145. sed 's/^/| /' conftest.$ac_ext >&5
  14146. ac_header_compiler=no
  14147. fi
  14148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14149. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14150. $as_echo "$ac_header_compiler" >&6; }
  14151. # Is the header present?
  14152. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14153. $as_echo_n "checking $ac_header presence... " >&6; }
  14154. cat >conftest.$ac_ext <<_ACEOF
  14155. /* confdefs.h. */
  14156. _ACEOF
  14157. cat confdefs.h >>conftest.$ac_ext
  14158. cat >>conftest.$ac_ext <<_ACEOF
  14159. /* end confdefs.h. */
  14160. #include <$ac_header>
  14161. _ACEOF
  14162. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14163. case "(($ac_try" in
  14164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14165. *) ac_try_echo=$ac_try;;
  14166. esac
  14167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14168. $as_echo "$ac_try_echo") >&5
  14169. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14170. ac_status=$?
  14171. grep -v '^ *+' conftest.er1 >conftest.err
  14172. rm -f conftest.er1
  14173. cat conftest.err >&5
  14174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14175. (exit $ac_status); } >/dev/null && {
  14176. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14177. test ! -s conftest.err
  14178. }; then
  14179. ac_header_preproc=yes
  14180. else
  14181. $as_echo "$as_me: failed program was:" >&5
  14182. sed 's/^/| /' conftest.$ac_ext >&5
  14183. ac_header_preproc=no
  14184. fi
  14185. rm -f conftest.err conftest.$ac_ext
  14186. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14187. $as_echo "$ac_header_preproc" >&6; }
  14188. # So? What about this header?
  14189. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14190. yes:no: )
  14191. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14192. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14193. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14194. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14195. ac_header_preproc=yes
  14196. ;;
  14197. no:yes:* )
  14198. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14199. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14200. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14201. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14202. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14203. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14204. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14205. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14206. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14207. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14208. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14209. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14210. ( cat <<\_ASBOX
  14211. ## ------------------------------------------ ##
  14212. ## Report this to http://bugzilla.redhat.com/ ##
  14213. ## ------------------------------------------ ##
  14214. _ASBOX
  14215. ) | sed "s/^/$as_me: WARNING: /" >&2
  14216. ;;
  14217. esac
  14218. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14219. $as_echo_n "checking for $ac_header... " >&6; }
  14220. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14221. $as_echo_n "(cached) " >&6
  14222. else
  14223. eval "$as_ac_Header=\$ac_header_preproc"
  14224. fi
  14225. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14226. $as_echo "$as_val"'`
  14227. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14228. $as_echo "$ac_res" >&6; }
  14229. fi
  14230. as_val=`eval 'as_val=${'$as_ac_Header'}
  14231. $as_echo "$as_val"'`
  14232. if test "x$as_val" = x""yes; then
  14233. cat >>confdefs.h <<_ACEOF
  14234. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14235. _ACEOF
  14236. fi
  14237. done
  14238. # Checks for typedefs, structures, and compiler characteristics.
  14239. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  14240. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14241. if test "${ac_cv_header_stat_broken+set}" = set; then
  14242. $as_echo_n "(cached) " >&6
  14243. else
  14244. cat >conftest.$ac_ext <<_ACEOF
  14245. /* confdefs.h. */
  14246. _ACEOF
  14247. cat confdefs.h >>conftest.$ac_ext
  14248. cat >>conftest.$ac_ext <<_ACEOF
  14249. /* end confdefs.h. */
  14250. #include <sys/types.h>
  14251. #include <sys/stat.h>
  14252. #if defined S_ISBLK && defined S_IFDIR
  14253. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14254. #endif
  14255. #if defined S_ISBLK && defined S_IFCHR
  14256. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14257. #endif
  14258. #if defined S_ISLNK && defined S_IFREG
  14259. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14260. #endif
  14261. #if defined S_ISSOCK && defined S_IFREG
  14262. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14263. #endif
  14264. _ACEOF
  14265. rm -f conftest.$ac_objext
  14266. if { (ac_try="$ac_compile"
  14267. case "(($ac_try" in
  14268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14269. *) ac_try_echo=$ac_try;;
  14270. esac
  14271. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14272. $as_echo "$ac_try_echo") >&5
  14273. (eval "$ac_compile") 2>conftest.er1
  14274. ac_status=$?
  14275. grep -v '^ *+' conftest.er1 >conftest.err
  14276. rm -f conftest.er1
  14277. cat conftest.err >&5
  14278. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14279. (exit $ac_status); } && {
  14280. test -z "$ac_c_werror_flag" ||
  14281. test ! -s conftest.err
  14282. } && test -s conftest.$ac_objext; then
  14283. ac_cv_header_stat_broken=no
  14284. else
  14285. $as_echo "$as_me: failed program was:" >&5
  14286. sed 's/^/| /' conftest.$ac_ext >&5
  14287. ac_cv_header_stat_broken=yes
  14288. fi
  14289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14290. fi
  14291. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  14292. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14293. if test $ac_cv_header_stat_broken = yes; then
  14294. cat >>confdefs.h <<\_ACEOF
  14295. #define STAT_MACROS_BROKEN 1
  14296. _ACEOF
  14297. fi
  14298. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  14299. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14300. if test "${ac_cv_c_const+set}" = set; then
  14301. $as_echo_n "(cached) " >&6
  14302. else
  14303. cat >conftest.$ac_ext <<_ACEOF
  14304. /* confdefs.h. */
  14305. _ACEOF
  14306. cat confdefs.h >>conftest.$ac_ext
  14307. cat >>conftest.$ac_ext <<_ACEOF
  14308. /* end confdefs.h. */
  14309. int
  14310. main ()
  14311. {
  14312. /* FIXME: Include the comments suggested by Paul. */
  14313. #ifndef __cplusplus
  14314. /* Ultrix mips cc rejects this. */
  14315. typedef int charset[2];
  14316. const charset cs;
  14317. /* SunOS 4.1.1 cc rejects this. */
  14318. char const *const *pcpcc;
  14319. char **ppc;
  14320. /* NEC SVR4.0.2 mips cc rejects this. */
  14321. struct point {int x, y;};
  14322. static struct point const zero = {0,0};
  14323. /* AIX XL C 1.02.0.0 rejects this.
  14324. It does not let you subtract one const X* pointer from another in
  14325. an arm of an if-expression whose if-part is not a constant
  14326. expression */
  14327. const char *g = "string";
  14328. pcpcc = &g + (g ? g-g : 0);
  14329. /* HPUX 7.0 cc rejects these. */
  14330. ++pcpcc;
  14331. ppc = (char**) pcpcc;
  14332. pcpcc = (char const *const *) ppc;
  14333. { /* SCO 3.2v4 cc rejects this. */
  14334. char *t;
  14335. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14336. *t++ = 0;
  14337. if (s) return 0;
  14338. }
  14339. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14340. int x[] = {25, 17};
  14341. const int *foo = &x[0];
  14342. ++foo;
  14343. }
  14344. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14345. typedef const int *iptr;
  14346. iptr p = 0;
  14347. ++p;
  14348. }
  14349. { /* AIX XL C 1.02.0.0 rejects this saying
  14350. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14351. struct s { int j; const int *ap[3]; };
  14352. struct s *b; b->j = 5;
  14353. }
  14354. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14355. const int foo = 10;
  14356. if (!foo) return 0;
  14357. }
  14358. return !cs[0] && !zero.x;
  14359. #endif
  14360. ;
  14361. return 0;
  14362. }
  14363. _ACEOF
  14364. rm -f conftest.$ac_objext
  14365. if { (ac_try="$ac_compile"
  14366. case "(($ac_try" in
  14367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14368. *) ac_try_echo=$ac_try;;
  14369. esac
  14370. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14371. $as_echo "$ac_try_echo") >&5
  14372. (eval "$ac_compile") 2>conftest.er1
  14373. ac_status=$?
  14374. grep -v '^ *+' conftest.er1 >conftest.err
  14375. rm -f conftest.er1
  14376. cat conftest.err >&5
  14377. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14378. (exit $ac_status); } && {
  14379. test -z "$ac_c_werror_flag" ||
  14380. test ! -s conftest.err
  14381. } && test -s conftest.$ac_objext; then
  14382. ac_cv_c_const=yes
  14383. else
  14384. $as_echo "$as_me: failed program was:" >&5
  14385. sed 's/^/| /' conftest.$ac_ext >&5
  14386. ac_cv_c_const=no
  14387. fi
  14388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14389. fi
  14390. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  14391. $as_echo "$ac_cv_c_const" >&6; }
  14392. if test $ac_cv_c_const = no; then
  14393. cat >>confdefs.h <<\_ACEOF
  14394. #define const /**/
  14395. _ACEOF
  14396. fi
  14397. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  14398. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14399. if test "${ac_cv_header_stdbool_h+set}" = set; then
  14400. $as_echo_n "(cached) " >&6
  14401. else
  14402. cat >conftest.$ac_ext <<_ACEOF
  14403. /* confdefs.h. */
  14404. _ACEOF
  14405. cat confdefs.h >>conftest.$ac_ext
  14406. cat >>conftest.$ac_ext <<_ACEOF
  14407. /* end confdefs.h. */
  14408. #include <stdbool.h>
  14409. #ifndef bool
  14410. "error: bool is not defined"
  14411. #endif
  14412. #ifndef false
  14413. "error: false is not defined"
  14414. #endif
  14415. #if false
  14416. "error: false is not 0"
  14417. #endif
  14418. #ifndef true
  14419. "error: true is not defined"
  14420. #endif
  14421. #if true != 1
  14422. "error: true is not 1"
  14423. #endif
  14424. #ifndef __bool_true_false_are_defined
  14425. "error: __bool_true_false_are_defined is not defined"
  14426. #endif
  14427. struct s { _Bool s: 1; _Bool t; } s;
  14428. char a[true == 1 ? 1 : -1];
  14429. char b[false == 0 ? 1 : -1];
  14430. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14431. char d[(bool) 0.5 == true ? 1 : -1];
  14432. bool e = &s;
  14433. char f[(_Bool) 0.0 == false ? 1 : -1];
  14434. char g[true];
  14435. char h[sizeof (_Bool)];
  14436. char i[sizeof s.t];
  14437. enum { j = false, k = true, l = false * true, m = true * 256 };
  14438. /* The following fails for
  14439. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14440. _Bool n[m];
  14441. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14442. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14443. # if defined __xlc__ || defined __GNUC__
  14444. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  14445. reported by James Lemley on 2005-10-05; see
  14446. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  14447. This test is not quite right, since xlc is allowed to
  14448. reject this program, as the initializer for xlcbug is
  14449. not one of the forms that C requires support for.
  14450. However, doing the test right would require a runtime
  14451. test, and that would make cross-compilation harder.
  14452. Let us hope that IBM fixes the xlc bug, and also adds
  14453. support for this kind of constant expression. In the
  14454. meantime, this test will reject xlc, which is OK, since
  14455. our stdbool.h substitute should suffice. We also test
  14456. this with GCC, where it should work, to detect more
  14457. quickly whether someone messes up the test in the
  14458. future. */
  14459. char digs[] = "0123456789";
  14460. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  14461. # endif
  14462. /* Catch a bug in an HP-UX C compiler. See
  14463. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14464. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14465. */
  14466. _Bool q = true;
  14467. _Bool *pq = &q;
  14468. int
  14469. main ()
  14470. {
  14471. *pq |= q;
  14472. *pq |= ! q;
  14473. /* Refer to every declared value, to avoid compiler optimizations. */
  14474. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14475. + !m + !n + !o + !p + !q + !pq);
  14476. ;
  14477. return 0;
  14478. }
  14479. _ACEOF
  14480. rm -f conftest.$ac_objext
  14481. if { (ac_try="$ac_compile"
  14482. case "(($ac_try" in
  14483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14484. *) ac_try_echo=$ac_try;;
  14485. esac
  14486. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14487. $as_echo "$ac_try_echo") >&5
  14488. (eval "$ac_compile") 2>conftest.er1
  14489. ac_status=$?
  14490. grep -v '^ *+' conftest.er1 >conftest.err
  14491. rm -f conftest.er1
  14492. cat conftest.err >&5
  14493. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14494. (exit $ac_status); } && {
  14495. test -z "$ac_c_werror_flag" ||
  14496. test ! -s conftest.err
  14497. } && test -s conftest.$ac_objext; then
  14498. ac_cv_header_stdbool_h=yes
  14499. else
  14500. $as_echo "$as_me: failed program was:" >&5
  14501. sed 's/^/| /' conftest.$ac_ext >&5
  14502. ac_cv_header_stdbool_h=no
  14503. fi
  14504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14505. fi
  14506. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  14507. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14508. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  14509. $as_echo_n "checking for _Bool... " >&6; }
  14510. if test "${ac_cv_type__Bool+set}" = set; then
  14511. $as_echo_n "(cached) " >&6
  14512. else
  14513. ac_cv_type__Bool=no
  14514. cat >conftest.$ac_ext <<_ACEOF
  14515. /* confdefs.h. */
  14516. _ACEOF
  14517. cat confdefs.h >>conftest.$ac_ext
  14518. cat >>conftest.$ac_ext <<_ACEOF
  14519. /* end confdefs.h. */
  14520. $ac_includes_default
  14521. int
  14522. main ()
  14523. {
  14524. if (sizeof (_Bool))
  14525. return 0;
  14526. ;
  14527. return 0;
  14528. }
  14529. _ACEOF
  14530. rm -f conftest.$ac_objext
  14531. if { (ac_try="$ac_compile"
  14532. case "(($ac_try" in
  14533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14534. *) ac_try_echo=$ac_try;;
  14535. esac
  14536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14537. $as_echo "$ac_try_echo") >&5
  14538. (eval "$ac_compile") 2>conftest.er1
  14539. ac_status=$?
  14540. grep -v '^ *+' conftest.er1 >conftest.err
  14541. rm -f conftest.er1
  14542. cat conftest.err >&5
  14543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14544. (exit $ac_status); } && {
  14545. test -z "$ac_c_werror_flag" ||
  14546. test ! -s conftest.err
  14547. } && test -s conftest.$ac_objext; then
  14548. cat >conftest.$ac_ext <<_ACEOF
  14549. /* confdefs.h. */
  14550. _ACEOF
  14551. cat confdefs.h >>conftest.$ac_ext
  14552. cat >>conftest.$ac_ext <<_ACEOF
  14553. /* end confdefs.h. */
  14554. $ac_includes_default
  14555. int
  14556. main ()
  14557. {
  14558. if (sizeof ((_Bool)))
  14559. return 0;
  14560. ;
  14561. return 0;
  14562. }
  14563. _ACEOF
  14564. rm -f conftest.$ac_objext
  14565. if { (ac_try="$ac_compile"
  14566. case "(($ac_try" in
  14567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14568. *) ac_try_echo=$ac_try;;
  14569. esac
  14570. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14571. $as_echo "$ac_try_echo") >&5
  14572. (eval "$ac_compile") 2>conftest.er1
  14573. ac_status=$?
  14574. grep -v '^ *+' conftest.er1 >conftest.err
  14575. rm -f conftest.er1
  14576. cat conftest.err >&5
  14577. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14578. (exit $ac_status); } && {
  14579. test -z "$ac_c_werror_flag" ||
  14580. test ! -s conftest.err
  14581. } && test -s conftest.$ac_objext; then
  14582. :
  14583. else
  14584. $as_echo "$as_me: failed program was:" >&5
  14585. sed 's/^/| /' conftest.$ac_ext >&5
  14586. ac_cv_type__Bool=yes
  14587. fi
  14588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14589. else
  14590. $as_echo "$as_me: failed program was:" >&5
  14591. sed 's/^/| /' conftest.$ac_ext >&5
  14592. fi
  14593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14594. fi
  14595. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  14596. $as_echo "$ac_cv_type__Bool" >&6; }
  14597. if test "x$ac_cv_type__Bool" = x""yes; then
  14598. cat >>confdefs.h <<_ACEOF
  14599. #define HAVE__BOOL 1
  14600. _ACEOF
  14601. fi
  14602. if test $ac_cv_header_stdbool_h = yes; then
  14603. cat >>confdefs.h <<\_ACEOF
  14604. #define HAVE_STDBOOL_H 1
  14605. _ACEOF
  14606. fi
  14607. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  14608. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14609. if test "${ac_cv_type_uid_t+set}" = set; then
  14610. $as_echo_n "(cached) " >&6
  14611. else
  14612. cat >conftest.$ac_ext <<_ACEOF
  14613. /* confdefs.h. */
  14614. _ACEOF
  14615. cat confdefs.h >>conftest.$ac_ext
  14616. cat >>conftest.$ac_ext <<_ACEOF
  14617. /* end confdefs.h. */
  14618. #include <sys/types.h>
  14619. _ACEOF
  14620. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14621. $EGREP "uid_t" >/dev/null 2>&1; then
  14622. ac_cv_type_uid_t=yes
  14623. else
  14624. ac_cv_type_uid_t=no
  14625. fi
  14626. rm -f conftest*
  14627. fi
  14628. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  14629. $as_echo "$ac_cv_type_uid_t" >&6; }
  14630. if test $ac_cv_type_uid_t = no; then
  14631. cat >>confdefs.h <<\_ACEOF
  14632. #define uid_t int
  14633. _ACEOF
  14634. cat >>confdefs.h <<\_ACEOF
  14635. #define gid_t int
  14636. _ACEOF
  14637. fi
  14638. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  14639. $as_echo_n "checking for pid_t... " >&6; }
  14640. if test "${ac_cv_type_pid_t+set}" = set; then
  14641. $as_echo_n "(cached) " >&6
  14642. else
  14643. ac_cv_type_pid_t=no
  14644. cat >conftest.$ac_ext <<_ACEOF
  14645. /* confdefs.h. */
  14646. _ACEOF
  14647. cat confdefs.h >>conftest.$ac_ext
  14648. cat >>conftest.$ac_ext <<_ACEOF
  14649. /* end confdefs.h. */
  14650. $ac_includes_default
  14651. int
  14652. main ()
  14653. {
  14654. if (sizeof (pid_t))
  14655. return 0;
  14656. ;
  14657. return 0;
  14658. }
  14659. _ACEOF
  14660. rm -f conftest.$ac_objext
  14661. if { (ac_try="$ac_compile"
  14662. case "(($ac_try" in
  14663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14664. *) ac_try_echo=$ac_try;;
  14665. esac
  14666. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14667. $as_echo "$ac_try_echo") >&5
  14668. (eval "$ac_compile") 2>conftest.er1
  14669. ac_status=$?
  14670. grep -v '^ *+' conftest.er1 >conftest.err
  14671. rm -f conftest.er1
  14672. cat conftest.err >&5
  14673. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14674. (exit $ac_status); } && {
  14675. test -z "$ac_c_werror_flag" ||
  14676. test ! -s conftest.err
  14677. } && test -s conftest.$ac_objext; then
  14678. cat >conftest.$ac_ext <<_ACEOF
  14679. /* confdefs.h. */
  14680. _ACEOF
  14681. cat confdefs.h >>conftest.$ac_ext
  14682. cat >>conftest.$ac_ext <<_ACEOF
  14683. /* end confdefs.h. */
  14684. $ac_includes_default
  14685. int
  14686. main ()
  14687. {
  14688. if (sizeof ((pid_t)))
  14689. return 0;
  14690. ;
  14691. return 0;
  14692. }
  14693. _ACEOF
  14694. rm -f conftest.$ac_objext
  14695. if { (ac_try="$ac_compile"
  14696. case "(($ac_try" in
  14697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14698. *) ac_try_echo=$ac_try;;
  14699. esac
  14700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14701. $as_echo "$ac_try_echo") >&5
  14702. (eval "$ac_compile") 2>conftest.er1
  14703. ac_status=$?
  14704. grep -v '^ *+' conftest.er1 >conftest.err
  14705. rm -f conftest.er1
  14706. cat conftest.err >&5
  14707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14708. (exit $ac_status); } && {
  14709. test -z "$ac_c_werror_flag" ||
  14710. test ! -s conftest.err
  14711. } && test -s conftest.$ac_objext; then
  14712. :
  14713. else
  14714. $as_echo "$as_me: failed program was:" >&5
  14715. sed 's/^/| /' conftest.$ac_ext >&5
  14716. ac_cv_type_pid_t=yes
  14717. fi
  14718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14719. else
  14720. $as_echo "$as_me: failed program was:" >&5
  14721. sed 's/^/| /' conftest.$ac_ext >&5
  14722. fi
  14723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14724. fi
  14725. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  14726. $as_echo "$ac_cv_type_pid_t" >&6; }
  14727. if test "x$ac_cv_type_pid_t" = x""yes; then
  14728. :
  14729. else
  14730. cat >>confdefs.h <<_ACEOF
  14731. #define pid_t int
  14732. _ACEOF
  14733. fi
  14734. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  14735. $as_echo_n "checking for size_t... " >&6; }
  14736. if test "${ac_cv_type_size_t+set}" = set; then
  14737. $as_echo_n "(cached) " >&6
  14738. else
  14739. ac_cv_type_size_t=no
  14740. cat >conftest.$ac_ext <<_ACEOF
  14741. /* confdefs.h. */
  14742. _ACEOF
  14743. cat confdefs.h >>conftest.$ac_ext
  14744. cat >>conftest.$ac_ext <<_ACEOF
  14745. /* end confdefs.h. */
  14746. $ac_includes_default
  14747. int
  14748. main ()
  14749. {
  14750. if (sizeof (size_t))
  14751. return 0;
  14752. ;
  14753. return 0;
  14754. }
  14755. _ACEOF
  14756. rm -f conftest.$ac_objext
  14757. if { (ac_try="$ac_compile"
  14758. case "(($ac_try" in
  14759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14760. *) ac_try_echo=$ac_try;;
  14761. esac
  14762. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14763. $as_echo "$ac_try_echo") >&5
  14764. (eval "$ac_compile") 2>conftest.er1
  14765. ac_status=$?
  14766. grep -v '^ *+' conftest.er1 >conftest.err
  14767. rm -f conftest.er1
  14768. cat conftest.err >&5
  14769. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14770. (exit $ac_status); } && {
  14771. test -z "$ac_c_werror_flag" ||
  14772. test ! -s conftest.err
  14773. } && test -s conftest.$ac_objext; then
  14774. cat >conftest.$ac_ext <<_ACEOF
  14775. /* confdefs.h. */
  14776. _ACEOF
  14777. cat confdefs.h >>conftest.$ac_ext
  14778. cat >>conftest.$ac_ext <<_ACEOF
  14779. /* end confdefs.h. */
  14780. $ac_includes_default
  14781. int
  14782. main ()
  14783. {
  14784. if (sizeof ((size_t)))
  14785. return 0;
  14786. ;
  14787. return 0;
  14788. }
  14789. _ACEOF
  14790. rm -f conftest.$ac_objext
  14791. if { (ac_try="$ac_compile"
  14792. case "(($ac_try" in
  14793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14794. *) ac_try_echo=$ac_try;;
  14795. esac
  14796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14797. $as_echo "$ac_try_echo") >&5
  14798. (eval "$ac_compile") 2>conftest.er1
  14799. ac_status=$?
  14800. grep -v '^ *+' conftest.er1 >conftest.err
  14801. rm -f conftest.er1
  14802. cat conftest.err >&5
  14803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14804. (exit $ac_status); } && {
  14805. test -z "$ac_c_werror_flag" ||
  14806. test ! -s conftest.err
  14807. } && test -s conftest.$ac_objext; then
  14808. :
  14809. else
  14810. $as_echo "$as_me: failed program was:" >&5
  14811. sed 's/^/| /' conftest.$ac_ext >&5
  14812. ac_cv_type_size_t=yes
  14813. fi
  14814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14815. else
  14816. $as_echo "$as_me: failed program was:" >&5
  14817. sed 's/^/| /' conftest.$ac_ext >&5
  14818. fi
  14819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14820. fi
  14821. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  14822. $as_echo "$ac_cv_type_size_t" >&6; }
  14823. if test "x$ac_cv_type_size_t" = x""yes; then
  14824. :
  14825. else
  14826. cat >>confdefs.h <<_ACEOF
  14827. #define size_t unsigned int
  14828. _ACEOF
  14829. fi
  14830. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  14831. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14832. if test "${ac_cv_header_time+set}" = set; then
  14833. $as_echo_n "(cached) " >&6
  14834. else
  14835. cat >conftest.$ac_ext <<_ACEOF
  14836. /* confdefs.h. */
  14837. _ACEOF
  14838. cat confdefs.h >>conftest.$ac_ext
  14839. cat >>conftest.$ac_ext <<_ACEOF
  14840. /* end confdefs.h. */
  14841. #include <sys/types.h>
  14842. #include <sys/time.h>
  14843. #include <time.h>
  14844. int
  14845. main ()
  14846. {
  14847. if ((struct tm *) 0)
  14848. return 0;
  14849. ;
  14850. return 0;
  14851. }
  14852. _ACEOF
  14853. rm -f conftest.$ac_objext
  14854. if { (ac_try="$ac_compile"
  14855. case "(($ac_try" in
  14856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14857. *) ac_try_echo=$ac_try;;
  14858. esac
  14859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14860. $as_echo "$ac_try_echo") >&5
  14861. (eval "$ac_compile") 2>conftest.er1
  14862. ac_status=$?
  14863. grep -v '^ *+' conftest.er1 >conftest.err
  14864. rm -f conftest.er1
  14865. cat conftest.err >&5
  14866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14867. (exit $ac_status); } && {
  14868. test -z "$ac_c_werror_flag" ||
  14869. test ! -s conftest.err
  14870. } && test -s conftest.$ac_objext; then
  14871. ac_cv_header_time=yes
  14872. else
  14873. $as_echo "$as_me: failed program was:" >&5
  14874. sed 's/^/| /' conftest.$ac_ext >&5
  14875. ac_cv_header_time=no
  14876. fi
  14877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14878. fi
  14879. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  14880. $as_echo "$ac_cv_header_time" >&6; }
  14881. if test $ac_cv_header_time = yes; then
  14882. cat >>confdefs.h <<\_ACEOF
  14883. #define TIME_WITH_SYS_TIME 1
  14884. _ACEOF
  14885. fi
  14886. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  14887. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14888. if test "${ac_cv_struct_tm+set}" = set; then
  14889. $as_echo_n "(cached) " >&6
  14890. else
  14891. cat >conftest.$ac_ext <<_ACEOF
  14892. /* confdefs.h. */
  14893. _ACEOF
  14894. cat confdefs.h >>conftest.$ac_ext
  14895. cat >>conftest.$ac_ext <<_ACEOF
  14896. /* end confdefs.h. */
  14897. #include <sys/types.h>
  14898. #include <time.h>
  14899. int
  14900. main ()
  14901. {
  14902. struct tm tm;
  14903. int *p = &tm.tm_sec;
  14904. return !p;
  14905. ;
  14906. return 0;
  14907. }
  14908. _ACEOF
  14909. rm -f conftest.$ac_objext
  14910. if { (ac_try="$ac_compile"
  14911. case "(($ac_try" in
  14912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14913. *) ac_try_echo=$ac_try;;
  14914. esac
  14915. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14916. $as_echo "$ac_try_echo") >&5
  14917. (eval "$ac_compile") 2>conftest.er1
  14918. ac_status=$?
  14919. grep -v '^ *+' conftest.er1 >conftest.err
  14920. rm -f conftest.er1
  14921. cat conftest.err >&5
  14922. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14923. (exit $ac_status); } && {
  14924. test -z "$ac_c_werror_flag" ||
  14925. test ! -s conftest.err
  14926. } && test -s conftest.$ac_objext; then
  14927. ac_cv_struct_tm=time.h
  14928. else
  14929. $as_echo "$as_me: failed program was:" >&5
  14930. sed 's/^/| /' conftest.$ac_ext >&5
  14931. ac_cv_struct_tm=sys/time.h
  14932. fi
  14933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14934. fi
  14935. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  14936. $as_echo "$ac_cv_struct_tm" >&6; }
  14937. if test $ac_cv_struct_tm = sys/time.h; then
  14938. cat >>confdefs.h <<\_ACEOF
  14939. #define TM_IN_SYS_TIME 1
  14940. _ACEOF
  14941. fi
  14942. # Checks for library functions.
  14943. for ac_header in unistd.h
  14944. do
  14945. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14946. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14947. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14948. $as_echo_n "checking for $ac_header... " >&6; }
  14949. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14950. $as_echo_n "(cached) " >&6
  14951. fi
  14952. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14953. $as_echo "$as_val"'`
  14954. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14955. $as_echo "$ac_res" >&6; }
  14956. else
  14957. # Is the header compilable?
  14958. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14959. $as_echo_n "checking $ac_header usability... " >&6; }
  14960. cat >conftest.$ac_ext <<_ACEOF
  14961. /* confdefs.h. */
  14962. _ACEOF
  14963. cat confdefs.h >>conftest.$ac_ext
  14964. cat >>conftest.$ac_ext <<_ACEOF
  14965. /* end confdefs.h. */
  14966. $ac_includes_default
  14967. #include <$ac_header>
  14968. _ACEOF
  14969. rm -f conftest.$ac_objext
  14970. if { (ac_try="$ac_compile"
  14971. case "(($ac_try" in
  14972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14973. *) ac_try_echo=$ac_try;;
  14974. esac
  14975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14976. $as_echo "$ac_try_echo") >&5
  14977. (eval "$ac_compile") 2>conftest.er1
  14978. ac_status=$?
  14979. grep -v '^ *+' conftest.er1 >conftest.err
  14980. rm -f conftest.er1
  14981. cat conftest.err >&5
  14982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14983. (exit $ac_status); } && {
  14984. test -z "$ac_c_werror_flag" ||
  14985. test ! -s conftest.err
  14986. } && test -s conftest.$ac_objext; then
  14987. ac_header_compiler=yes
  14988. else
  14989. $as_echo "$as_me: failed program was:" >&5
  14990. sed 's/^/| /' conftest.$ac_ext >&5
  14991. ac_header_compiler=no
  14992. fi
  14993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14994. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14995. $as_echo "$ac_header_compiler" >&6; }
  14996. # Is the header present?
  14997. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14998. $as_echo_n "checking $ac_header presence... " >&6; }
  14999. cat >conftest.$ac_ext <<_ACEOF
  15000. /* confdefs.h. */
  15001. _ACEOF
  15002. cat confdefs.h >>conftest.$ac_ext
  15003. cat >>conftest.$ac_ext <<_ACEOF
  15004. /* end confdefs.h. */
  15005. #include <$ac_header>
  15006. _ACEOF
  15007. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15008. case "(($ac_try" in
  15009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15010. *) ac_try_echo=$ac_try;;
  15011. esac
  15012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15013. $as_echo "$ac_try_echo") >&5
  15014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15015. ac_status=$?
  15016. grep -v '^ *+' conftest.er1 >conftest.err
  15017. rm -f conftest.er1
  15018. cat conftest.err >&5
  15019. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15020. (exit $ac_status); } >/dev/null && {
  15021. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15022. test ! -s conftest.err
  15023. }; then
  15024. ac_header_preproc=yes
  15025. else
  15026. $as_echo "$as_me: failed program was:" >&5
  15027. sed 's/^/| /' conftest.$ac_ext >&5
  15028. ac_header_preproc=no
  15029. fi
  15030. rm -f conftest.err conftest.$ac_ext
  15031. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15032. $as_echo "$ac_header_preproc" >&6; }
  15033. # So? What about this header?
  15034. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15035. yes:no: )
  15036. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15037. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15038. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15039. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15040. ac_header_preproc=yes
  15041. ;;
  15042. no:yes:* )
  15043. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15044. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15045. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15046. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15047. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15048. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15049. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15050. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15051. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15052. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15053. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15054. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15055. ( cat <<\_ASBOX
  15056. ## ------------------------------------------ ##
  15057. ## Report this to http://bugzilla.redhat.com/ ##
  15058. ## ------------------------------------------ ##
  15059. _ASBOX
  15060. ) | sed "s/^/$as_me: WARNING: /" >&2
  15061. ;;
  15062. esac
  15063. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15064. $as_echo_n "checking for $ac_header... " >&6; }
  15065. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15066. $as_echo_n "(cached) " >&6
  15067. else
  15068. eval "$as_ac_Header=\$ac_header_preproc"
  15069. fi
  15070. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15071. $as_echo "$as_val"'`
  15072. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15073. $as_echo "$ac_res" >&6; }
  15074. fi
  15075. as_val=`eval 'as_val=${'$as_ac_Header'}
  15076. $as_echo "$as_val"'`
  15077. if test "x$as_val" = x""yes; then
  15078. cat >>confdefs.h <<_ACEOF
  15079. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15080. _ACEOF
  15081. fi
  15082. done
  15083. { $as_echo "$as_me:$LINENO: checking for working chown" >&5
  15084. $as_echo_n "checking for working chown... " >&6; }
  15085. if test "${ac_cv_func_chown_works+set}" = set; then
  15086. $as_echo_n "(cached) " >&6
  15087. else
  15088. if test "$cross_compiling" = yes; then
  15089. ac_cv_func_chown_works=no
  15090. else
  15091. cat >conftest.$ac_ext <<_ACEOF
  15092. /* confdefs.h. */
  15093. _ACEOF
  15094. cat confdefs.h >>conftest.$ac_ext
  15095. cat >>conftest.$ac_ext <<_ACEOF
  15096. /* end confdefs.h. */
  15097. $ac_includes_default
  15098. #include <fcntl.h>
  15099. int
  15100. main ()
  15101. {
  15102. char *f = "conftest.chown";
  15103. struct stat before, after;
  15104. if (creat (f, 0600) < 0)
  15105. return 1;
  15106. if (stat (f, &before) < 0)
  15107. return 1;
  15108. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  15109. return 1;
  15110. if (stat (f, &after) < 0)
  15111. return 1;
  15112. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  15113. ;
  15114. return 0;
  15115. }
  15116. _ACEOF
  15117. rm -f conftest$ac_exeext
  15118. if { (ac_try="$ac_link"
  15119. case "(($ac_try" in
  15120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15121. *) ac_try_echo=$ac_try;;
  15122. esac
  15123. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15124. $as_echo "$ac_try_echo") >&5
  15125. (eval "$ac_link") 2>&5
  15126. ac_status=$?
  15127. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15128. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15129. { (case "(($ac_try" in
  15130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15131. *) ac_try_echo=$ac_try;;
  15132. esac
  15133. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15134. $as_echo "$ac_try_echo") >&5
  15135. (eval "$ac_try") 2>&5
  15136. ac_status=$?
  15137. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15138. (exit $ac_status); }; }; then
  15139. ac_cv_func_chown_works=yes
  15140. else
  15141. $as_echo "$as_me: program exited with status $ac_status" >&5
  15142. $as_echo "$as_me: failed program was:" >&5
  15143. sed 's/^/| /' conftest.$ac_ext >&5
  15144. ( exit $ac_status )
  15145. ac_cv_func_chown_works=no
  15146. fi
  15147. rm -rf conftest.dSYM
  15148. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15149. fi
  15150. rm -f conftest.chown
  15151. fi
  15152. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  15153. $as_echo "$ac_cv_func_chown_works" >&6; }
  15154. if test $ac_cv_func_chown_works = yes; then
  15155. cat >>confdefs.h <<\_ACEOF
  15156. #define HAVE_CHOWN 1
  15157. _ACEOF
  15158. fi
  15159. { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  15160. $as_echo_n "checking whether closedir returns void... " >&6; }
  15161. if test "${ac_cv_func_closedir_void+set}" = set; then
  15162. $as_echo_n "(cached) " >&6
  15163. else
  15164. if test "$cross_compiling" = yes; then
  15165. ac_cv_func_closedir_void=yes
  15166. else
  15167. cat >conftest.$ac_ext <<_ACEOF
  15168. /* confdefs.h. */
  15169. _ACEOF
  15170. cat confdefs.h >>conftest.$ac_ext
  15171. cat >>conftest.$ac_ext <<_ACEOF
  15172. /* end confdefs.h. */
  15173. $ac_includes_default
  15174. #include <$ac_header_dirent>
  15175. #ifndef __cplusplus
  15176. int closedir ();
  15177. #endif
  15178. int
  15179. main ()
  15180. {
  15181. return closedir (opendir (".")) != 0;
  15182. ;
  15183. return 0;
  15184. }
  15185. _ACEOF
  15186. rm -f conftest$ac_exeext
  15187. if { (ac_try="$ac_link"
  15188. case "(($ac_try" in
  15189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15190. *) ac_try_echo=$ac_try;;
  15191. esac
  15192. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15193. $as_echo "$ac_try_echo") >&5
  15194. (eval "$ac_link") 2>&5
  15195. ac_status=$?
  15196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15197. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15198. { (case "(($ac_try" in
  15199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15200. *) ac_try_echo=$ac_try;;
  15201. esac
  15202. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15203. $as_echo "$ac_try_echo") >&5
  15204. (eval "$ac_try") 2>&5
  15205. ac_status=$?
  15206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15207. (exit $ac_status); }; }; then
  15208. ac_cv_func_closedir_void=no
  15209. else
  15210. $as_echo "$as_me: program exited with status $ac_status" >&5
  15211. $as_echo "$as_me: failed program was:" >&5
  15212. sed 's/^/| /' conftest.$ac_ext >&5
  15213. ( exit $ac_status )
  15214. ac_cv_func_closedir_void=yes
  15215. fi
  15216. rm -rf conftest.dSYM
  15217. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15218. fi
  15219. fi
  15220. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  15221. $as_echo "$ac_cv_func_closedir_void" >&6; }
  15222. if test $ac_cv_func_closedir_void = yes; then
  15223. cat >>confdefs.h <<\_ACEOF
  15224. #define CLOSEDIR_VOID 1
  15225. _ACEOF
  15226. fi
  15227. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  15228. $as_echo_n "checking for error_at_line... " >&6; }
  15229. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15230. $as_echo_n "(cached) " >&6
  15231. else
  15232. cat >conftest.$ac_ext <<_ACEOF
  15233. /* confdefs.h. */
  15234. _ACEOF
  15235. cat confdefs.h >>conftest.$ac_ext
  15236. cat >>conftest.$ac_ext <<_ACEOF
  15237. /* end confdefs.h. */
  15238. #include <error.h>
  15239. int
  15240. main ()
  15241. {
  15242. error_at_line (0, 0, "", 0, "an error occurred");
  15243. ;
  15244. return 0;
  15245. }
  15246. _ACEOF
  15247. rm -f conftest.$ac_objext conftest$ac_exeext
  15248. if { (ac_try="$ac_link"
  15249. case "(($ac_try" in
  15250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15251. *) ac_try_echo=$ac_try;;
  15252. esac
  15253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15254. $as_echo "$ac_try_echo") >&5
  15255. (eval "$ac_link") 2>conftest.er1
  15256. ac_status=$?
  15257. grep -v '^ *+' conftest.er1 >conftest.err
  15258. rm -f conftest.er1
  15259. cat conftest.err >&5
  15260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15261. (exit $ac_status); } && {
  15262. test -z "$ac_c_werror_flag" ||
  15263. test ! -s conftest.err
  15264. } && test -s conftest$ac_exeext && {
  15265. test "$cross_compiling" = yes ||
  15266. $as_test_x conftest$ac_exeext
  15267. }; then
  15268. ac_cv_lib_error_at_line=yes
  15269. else
  15270. $as_echo "$as_me: failed program was:" >&5
  15271. sed 's/^/| /' conftest.$ac_ext >&5
  15272. ac_cv_lib_error_at_line=no
  15273. fi
  15274. rm -rf conftest.dSYM
  15275. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15276. conftest$ac_exeext conftest.$ac_ext
  15277. fi
  15278. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15279. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  15280. if test $ac_cv_lib_error_at_line = no; then
  15281. case " $LIBOBJS " in
  15282. *" error.$ac_objext "* ) ;;
  15283. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15284. ;;
  15285. esac
  15286. fi
  15287. for ac_header in vfork.h
  15288. do
  15289. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15290. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15291. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15292. $as_echo_n "checking for $ac_header... " >&6; }
  15293. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15294. $as_echo_n "(cached) " >&6
  15295. fi
  15296. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15297. $as_echo "$as_val"'`
  15298. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15299. $as_echo "$ac_res" >&6; }
  15300. else
  15301. # Is the header compilable?
  15302. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15303. $as_echo_n "checking $ac_header usability... " >&6; }
  15304. cat >conftest.$ac_ext <<_ACEOF
  15305. /* confdefs.h. */
  15306. _ACEOF
  15307. cat confdefs.h >>conftest.$ac_ext
  15308. cat >>conftest.$ac_ext <<_ACEOF
  15309. /* end confdefs.h. */
  15310. $ac_includes_default
  15311. #include <$ac_header>
  15312. _ACEOF
  15313. rm -f conftest.$ac_objext
  15314. if { (ac_try="$ac_compile"
  15315. case "(($ac_try" in
  15316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15317. *) ac_try_echo=$ac_try;;
  15318. esac
  15319. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15320. $as_echo "$ac_try_echo") >&5
  15321. (eval "$ac_compile") 2>conftest.er1
  15322. ac_status=$?
  15323. grep -v '^ *+' conftest.er1 >conftest.err
  15324. rm -f conftest.er1
  15325. cat conftest.err >&5
  15326. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15327. (exit $ac_status); } && {
  15328. test -z "$ac_c_werror_flag" ||
  15329. test ! -s conftest.err
  15330. } && test -s conftest.$ac_objext; then
  15331. ac_header_compiler=yes
  15332. else
  15333. $as_echo "$as_me: failed program was:" >&5
  15334. sed 's/^/| /' conftest.$ac_ext >&5
  15335. ac_header_compiler=no
  15336. fi
  15337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15338. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15339. $as_echo "$ac_header_compiler" >&6; }
  15340. # Is the header present?
  15341. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15342. $as_echo_n "checking $ac_header presence... " >&6; }
  15343. cat >conftest.$ac_ext <<_ACEOF
  15344. /* confdefs.h. */
  15345. _ACEOF
  15346. cat confdefs.h >>conftest.$ac_ext
  15347. cat >>conftest.$ac_ext <<_ACEOF
  15348. /* end confdefs.h. */
  15349. #include <$ac_header>
  15350. _ACEOF
  15351. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15352. case "(($ac_try" in
  15353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15354. *) ac_try_echo=$ac_try;;
  15355. esac
  15356. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15357. $as_echo "$ac_try_echo") >&5
  15358. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15359. ac_status=$?
  15360. grep -v '^ *+' conftest.er1 >conftest.err
  15361. rm -f conftest.er1
  15362. cat conftest.err >&5
  15363. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15364. (exit $ac_status); } >/dev/null && {
  15365. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15366. test ! -s conftest.err
  15367. }; then
  15368. ac_header_preproc=yes
  15369. else
  15370. $as_echo "$as_me: failed program was:" >&5
  15371. sed 's/^/| /' conftest.$ac_ext >&5
  15372. ac_header_preproc=no
  15373. fi
  15374. rm -f conftest.err conftest.$ac_ext
  15375. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15376. $as_echo "$ac_header_preproc" >&6; }
  15377. # So? What about this header?
  15378. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15379. yes:no: )
  15380. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15381. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15382. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15383. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15384. ac_header_preproc=yes
  15385. ;;
  15386. no:yes:* )
  15387. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15388. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15389. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15390. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15391. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15392. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15393. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15394. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15395. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15396. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15397. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15398. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15399. ( cat <<\_ASBOX
  15400. ## ------------------------------------------ ##
  15401. ## Report this to http://bugzilla.redhat.com/ ##
  15402. ## ------------------------------------------ ##
  15403. _ASBOX
  15404. ) | sed "s/^/$as_me: WARNING: /" >&2
  15405. ;;
  15406. esac
  15407. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15408. $as_echo_n "checking for $ac_header... " >&6; }
  15409. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15410. $as_echo_n "(cached) " >&6
  15411. else
  15412. eval "$as_ac_Header=\$ac_header_preproc"
  15413. fi
  15414. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15415. $as_echo "$as_val"'`
  15416. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15417. $as_echo "$ac_res" >&6; }
  15418. fi
  15419. as_val=`eval 'as_val=${'$as_ac_Header'}
  15420. $as_echo "$as_val"'`
  15421. if test "x$as_val" = x""yes; then
  15422. cat >>confdefs.h <<_ACEOF
  15423. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15424. _ACEOF
  15425. fi
  15426. done
  15427. for ac_func in fork vfork
  15428. do
  15429. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15430. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15431. $as_echo_n "checking for $ac_func... " >&6; }
  15432. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15433. $as_echo_n "(cached) " >&6
  15434. else
  15435. cat >conftest.$ac_ext <<_ACEOF
  15436. /* confdefs.h. */
  15437. _ACEOF
  15438. cat confdefs.h >>conftest.$ac_ext
  15439. cat >>conftest.$ac_ext <<_ACEOF
  15440. /* end confdefs.h. */
  15441. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15442. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15443. #define $ac_func innocuous_$ac_func
  15444. /* System header to define __stub macros and hopefully few prototypes,
  15445. which can conflict with char $ac_func (); below.
  15446. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15447. <limits.h> exists even on freestanding compilers. */
  15448. #ifdef __STDC__
  15449. # include <limits.h>
  15450. #else
  15451. # include <assert.h>
  15452. #endif
  15453. #undef $ac_func
  15454. /* Override any GCC internal prototype to avoid an error.
  15455. Use char because int might match the return type of a GCC
  15456. builtin and then its argument prototype would still apply. */
  15457. #ifdef __cplusplus
  15458. extern "C"
  15459. #endif
  15460. char $ac_func ();
  15461. /* The GNU C library defines this for functions which it implements
  15462. to always fail with ENOSYS. Some functions are actually named
  15463. something starting with __ and the normal name is an alias. */
  15464. #if defined __stub_$ac_func || defined __stub___$ac_func
  15465. choke me
  15466. #endif
  15467. int
  15468. main ()
  15469. {
  15470. return $ac_func ();
  15471. ;
  15472. return 0;
  15473. }
  15474. _ACEOF
  15475. rm -f conftest.$ac_objext conftest$ac_exeext
  15476. if { (ac_try="$ac_link"
  15477. case "(($ac_try" in
  15478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15479. *) ac_try_echo=$ac_try;;
  15480. esac
  15481. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15482. $as_echo "$ac_try_echo") >&5
  15483. (eval "$ac_link") 2>conftest.er1
  15484. ac_status=$?
  15485. grep -v '^ *+' conftest.er1 >conftest.err
  15486. rm -f conftest.er1
  15487. cat conftest.err >&5
  15488. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15489. (exit $ac_status); } && {
  15490. test -z "$ac_c_werror_flag" ||
  15491. test ! -s conftest.err
  15492. } && test -s conftest$ac_exeext && {
  15493. test "$cross_compiling" = yes ||
  15494. $as_test_x conftest$ac_exeext
  15495. }; then
  15496. eval "$as_ac_var=yes"
  15497. else
  15498. $as_echo "$as_me: failed program was:" >&5
  15499. sed 's/^/| /' conftest.$ac_ext >&5
  15500. eval "$as_ac_var=no"
  15501. fi
  15502. rm -rf conftest.dSYM
  15503. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15504. conftest$ac_exeext conftest.$ac_ext
  15505. fi
  15506. ac_res=`eval 'as_val=${'$as_ac_var'}
  15507. $as_echo "$as_val"'`
  15508. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15509. $as_echo "$ac_res" >&6; }
  15510. as_val=`eval 'as_val=${'$as_ac_var'}
  15511. $as_echo "$as_val"'`
  15512. if test "x$as_val" = x""yes; then
  15513. cat >>confdefs.h <<_ACEOF
  15514. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15515. _ACEOF
  15516. fi
  15517. done
  15518. if test "x$ac_cv_func_fork" = xyes; then
  15519. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  15520. $as_echo_n "checking for working fork... " >&6; }
  15521. if test "${ac_cv_func_fork_works+set}" = set; then
  15522. $as_echo_n "(cached) " >&6
  15523. else
  15524. if test "$cross_compiling" = yes; then
  15525. ac_cv_func_fork_works=cross
  15526. else
  15527. cat >conftest.$ac_ext <<_ACEOF
  15528. /* confdefs.h. */
  15529. _ACEOF
  15530. cat confdefs.h >>conftest.$ac_ext
  15531. cat >>conftest.$ac_ext <<_ACEOF
  15532. /* end confdefs.h. */
  15533. $ac_includes_default
  15534. int
  15535. main ()
  15536. {
  15537. /* By Ruediger Kuhlmann. */
  15538. return fork () < 0;
  15539. ;
  15540. return 0;
  15541. }
  15542. _ACEOF
  15543. rm -f conftest$ac_exeext
  15544. if { (ac_try="$ac_link"
  15545. case "(($ac_try" in
  15546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15547. *) ac_try_echo=$ac_try;;
  15548. esac
  15549. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15550. $as_echo "$ac_try_echo") >&5
  15551. (eval "$ac_link") 2>&5
  15552. ac_status=$?
  15553. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15554. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15555. { (case "(($ac_try" in
  15556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15557. *) ac_try_echo=$ac_try;;
  15558. esac
  15559. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15560. $as_echo "$ac_try_echo") >&5
  15561. (eval "$ac_try") 2>&5
  15562. ac_status=$?
  15563. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15564. (exit $ac_status); }; }; then
  15565. ac_cv_func_fork_works=yes
  15566. else
  15567. $as_echo "$as_me: program exited with status $ac_status" >&5
  15568. $as_echo "$as_me: failed program was:" >&5
  15569. sed 's/^/| /' conftest.$ac_ext >&5
  15570. ( exit $ac_status )
  15571. ac_cv_func_fork_works=no
  15572. fi
  15573. rm -rf conftest.dSYM
  15574. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15575. fi
  15576. fi
  15577. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  15578. $as_echo "$ac_cv_func_fork_works" >&6; }
  15579. else
  15580. ac_cv_func_fork_works=$ac_cv_func_fork
  15581. fi
  15582. if test "x$ac_cv_func_fork_works" = xcross; then
  15583. case $host in
  15584. *-*-amigaos* | *-*-msdosdjgpp*)
  15585. # Override, as these systems have only a dummy fork() stub
  15586. ac_cv_func_fork_works=no
  15587. ;;
  15588. *)
  15589. ac_cv_func_fork_works=yes
  15590. ;;
  15591. esac
  15592. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  15593. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  15594. fi
  15595. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15596. if test "x$ac_cv_func_vfork" = xyes; then
  15597. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  15598. $as_echo_n "checking for working vfork... " >&6; }
  15599. if test "${ac_cv_func_vfork_works+set}" = set; then
  15600. $as_echo_n "(cached) " >&6
  15601. else
  15602. if test "$cross_compiling" = yes; then
  15603. ac_cv_func_vfork_works=cross
  15604. else
  15605. cat >conftest.$ac_ext <<_ACEOF
  15606. /* confdefs.h. */
  15607. _ACEOF
  15608. cat confdefs.h >>conftest.$ac_ext
  15609. cat >>conftest.$ac_ext <<_ACEOF
  15610. /* end confdefs.h. */
  15611. /* Thanks to Paul Eggert for this test. */
  15612. $ac_includes_default
  15613. #include <sys/wait.h>
  15614. #ifdef HAVE_VFORK_H
  15615. # include <vfork.h>
  15616. #endif
  15617. /* On some sparc systems, changes by the child to local and incoming
  15618. argument registers are propagated back to the parent. The compiler
  15619. is told about this with #include <vfork.h>, but some compilers
  15620. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  15621. static variable whose address is put into a register that is
  15622. clobbered by the vfork. */
  15623. static void
  15624. #ifdef __cplusplus
  15625. sparc_address_test (int arg)
  15626. # else
  15627. sparc_address_test (arg) int arg;
  15628. #endif
  15629. {
  15630. static pid_t child;
  15631. if (!child) {
  15632. child = vfork ();
  15633. if (child < 0) {
  15634. perror ("vfork");
  15635. _exit(2);
  15636. }
  15637. if (!child) {
  15638. arg = getpid();
  15639. write(-1, "", 0);
  15640. _exit (arg);
  15641. }
  15642. }
  15643. }
  15644. int
  15645. main ()
  15646. {
  15647. pid_t parent = getpid ();
  15648. pid_t child;
  15649. sparc_address_test (0);
  15650. child = vfork ();
  15651. if (child == 0) {
  15652. /* Here is another test for sparc vfork register problems. This
  15653. test uses lots of local variables, at least as many local
  15654. variables as main has allocated so far including compiler
  15655. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  15656. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  15657. reuse the register of parent for one of the local variables,
  15658. since it will think that parent can't possibly be used any more
  15659. in this routine. Assigning to the local variable will thus
  15660. munge parent in the parent process. */
  15661. pid_t
  15662. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  15663. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  15664. /* Convince the compiler that p..p7 are live; otherwise, it might
  15665. use the same hardware register for all 8 local variables. */
  15666. if (p != p1 || p != p2 || p != p3 || p != p4
  15667. || p != p5 || p != p6 || p != p7)
  15668. _exit(1);
  15669. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  15670. from child file descriptors. If the child closes a descriptor
  15671. before it execs or exits, this munges the parent's descriptor
  15672. as well. Test for this by closing stdout in the child. */
  15673. _exit(close(fileno(stdout)) != 0);
  15674. } else {
  15675. int status;
  15676. struct stat st;
  15677. while (wait(&status) != child)
  15678. ;
  15679. return (
  15680. /* Was there some problem with vforking? */
  15681. child < 0
  15682. /* Did the child fail? (This shouldn't happen.) */
  15683. || status
  15684. /* Did the vfork/compiler bug occur? */
  15685. || parent != getpid()
  15686. /* Did the file descriptor bug occur? */
  15687. || fstat(fileno(stdout), &st) != 0
  15688. );
  15689. }
  15690. }
  15691. _ACEOF
  15692. rm -f conftest$ac_exeext
  15693. if { (ac_try="$ac_link"
  15694. case "(($ac_try" in
  15695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15696. *) ac_try_echo=$ac_try;;
  15697. esac
  15698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15699. $as_echo "$ac_try_echo") >&5
  15700. (eval "$ac_link") 2>&5
  15701. ac_status=$?
  15702. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15703. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15704. { (case "(($ac_try" in
  15705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15706. *) ac_try_echo=$ac_try;;
  15707. esac
  15708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15709. $as_echo "$ac_try_echo") >&5
  15710. (eval "$ac_try") 2>&5
  15711. ac_status=$?
  15712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15713. (exit $ac_status); }; }; then
  15714. ac_cv_func_vfork_works=yes
  15715. else
  15716. $as_echo "$as_me: program exited with status $ac_status" >&5
  15717. $as_echo "$as_me: failed program was:" >&5
  15718. sed 's/^/| /' conftest.$ac_ext >&5
  15719. ( exit $ac_status )
  15720. ac_cv_func_vfork_works=no
  15721. fi
  15722. rm -rf conftest.dSYM
  15723. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15724. fi
  15725. fi
  15726. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  15727. $as_echo "$ac_cv_func_vfork_works" >&6; }
  15728. fi;
  15729. if test "x$ac_cv_func_fork_works" = xcross; then
  15730. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15731. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  15732. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  15733. fi
  15734. if test "x$ac_cv_func_vfork_works" = xyes; then
  15735. cat >>confdefs.h <<\_ACEOF
  15736. #define HAVE_WORKING_VFORK 1
  15737. _ACEOF
  15738. else
  15739. cat >>confdefs.h <<\_ACEOF
  15740. #define vfork fork
  15741. _ACEOF
  15742. fi
  15743. if test "x$ac_cv_func_fork_works" = xyes; then
  15744. cat >>confdefs.h <<\_ACEOF
  15745. #define HAVE_WORKING_FORK 1
  15746. _ACEOF
  15747. fi
  15748. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15749. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15750. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15751. $as_echo_n "(cached) " >&6
  15752. else
  15753. rm -f conftest.sym conftest.file
  15754. echo >conftest.file
  15755. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15756. if test "$cross_compiling" = yes; then
  15757. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15758. else
  15759. cat >conftest.$ac_ext <<_ACEOF
  15760. /* confdefs.h. */
  15761. _ACEOF
  15762. cat confdefs.h >>conftest.$ac_ext
  15763. cat >>conftest.$ac_ext <<_ACEOF
  15764. /* end confdefs.h. */
  15765. $ac_includes_default
  15766. int
  15767. main ()
  15768. {
  15769. struct stat sbuf;
  15770. /* Linux will dereference the symlink and fail.
  15771. That is better in the sense that it means we will not
  15772. have to compile and use the lstat wrapper. */
  15773. return lstat ("conftest.sym/", &sbuf) == 0;
  15774. ;
  15775. return 0;
  15776. }
  15777. _ACEOF
  15778. rm -f conftest$ac_exeext
  15779. if { (ac_try="$ac_link"
  15780. case "(($ac_try" in
  15781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15782. *) ac_try_echo=$ac_try;;
  15783. esac
  15784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15785. $as_echo "$ac_try_echo") >&5
  15786. (eval "$ac_link") 2>&5
  15787. ac_status=$?
  15788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15789. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15790. { (case "(($ac_try" in
  15791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15792. *) ac_try_echo=$ac_try;;
  15793. esac
  15794. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15795. $as_echo "$ac_try_echo") >&5
  15796. (eval "$ac_try") 2>&5
  15797. ac_status=$?
  15798. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15799. (exit $ac_status); }; }; then
  15800. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15801. else
  15802. $as_echo "$as_me: program exited with status $ac_status" >&5
  15803. $as_echo "$as_me: failed program was:" >&5
  15804. sed 's/^/| /' conftest.$ac_ext >&5
  15805. ( exit $ac_status )
  15806. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15807. fi
  15808. rm -rf conftest.dSYM
  15809. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15810. fi
  15811. else
  15812. # If the `ln -s' command failed, then we probably don't even
  15813. # have an lstat function.
  15814. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15815. fi
  15816. rm -f conftest.sym conftest.file
  15817. fi
  15818. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15819. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15820. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15821. cat >>confdefs.h <<_ACEOF
  15822. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15823. _ACEOF
  15824. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15825. case " $LIBOBJS " in
  15826. *" lstat.$ac_objext "* ) ;;
  15827. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15828. ;;
  15829. esac
  15830. fi
  15831. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  15832. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  15833. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  15834. $as_echo_n "(cached) " >&6
  15835. else
  15836. if test "$cross_compiling" = yes; then
  15837. ac_cv_func_lstat_empty_string_bug=yes
  15838. else
  15839. cat >conftest.$ac_ext <<_ACEOF
  15840. /* confdefs.h. */
  15841. _ACEOF
  15842. cat confdefs.h >>conftest.$ac_ext
  15843. cat >>conftest.$ac_ext <<_ACEOF
  15844. /* end confdefs.h. */
  15845. $ac_includes_default
  15846. int
  15847. main ()
  15848. {
  15849. struct stat sbuf;
  15850. return lstat ("", &sbuf) == 0;
  15851. ;
  15852. return 0;
  15853. }
  15854. _ACEOF
  15855. rm -f conftest$ac_exeext
  15856. if { (ac_try="$ac_link"
  15857. case "(($ac_try" in
  15858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15859. *) ac_try_echo=$ac_try;;
  15860. esac
  15861. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15862. $as_echo "$ac_try_echo") >&5
  15863. (eval "$ac_link") 2>&5
  15864. ac_status=$?
  15865. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15866. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15867. { (case "(($ac_try" in
  15868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15869. *) ac_try_echo=$ac_try;;
  15870. esac
  15871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15872. $as_echo "$ac_try_echo") >&5
  15873. (eval "$ac_try") 2>&5
  15874. ac_status=$?
  15875. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15876. (exit $ac_status); }; }; then
  15877. ac_cv_func_lstat_empty_string_bug=no
  15878. else
  15879. $as_echo "$as_me: program exited with status $ac_status" >&5
  15880. $as_echo "$as_me: failed program was:" >&5
  15881. sed 's/^/| /' conftest.$ac_ext >&5
  15882. ( exit $ac_status )
  15883. ac_cv_func_lstat_empty_string_bug=yes
  15884. fi
  15885. rm -rf conftest.dSYM
  15886. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15887. fi
  15888. fi
  15889. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  15890. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  15891. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  15892. case " $LIBOBJS " in
  15893. *" lstat.$ac_objext "* ) ;;
  15894. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15895. ;;
  15896. esac
  15897. cat >>confdefs.h <<_ACEOF
  15898. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  15899. _ACEOF
  15900. fi
  15901. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15902. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15903. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15904. $as_echo_n "(cached) " >&6
  15905. else
  15906. rm -f conftest.sym conftest.file
  15907. echo >conftest.file
  15908. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15909. if test "$cross_compiling" = yes; then
  15910. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15911. else
  15912. cat >conftest.$ac_ext <<_ACEOF
  15913. /* confdefs.h. */
  15914. _ACEOF
  15915. cat confdefs.h >>conftest.$ac_ext
  15916. cat >>conftest.$ac_ext <<_ACEOF
  15917. /* end confdefs.h. */
  15918. $ac_includes_default
  15919. int
  15920. main ()
  15921. {
  15922. struct stat sbuf;
  15923. /* Linux will dereference the symlink and fail.
  15924. That is better in the sense that it means we will not
  15925. have to compile and use the lstat wrapper. */
  15926. return lstat ("conftest.sym/", &sbuf) == 0;
  15927. ;
  15928. return 0;
  15929. }
  15930. _ACEOF
  15931. rm -f conftest$ac_exeext
  15932. if { (ac_try="$ac_link"
  15933. case "(($ac_try" in
  15934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15935. *) ac_try_echo=$ac_try;;
  15936. esac
  15937. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15938. $as_echo "$ac_try_echo") >&5
  15939. (eval "$ac_link") 2>&5
  15940. ac_status=$?
  15941. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15942. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15943. { (case "(($ac_try" in
  15944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15945. *) ac_try_echo=$ac_try;;
  15946. esac
  15947. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15948. $as_echo "$ac_try_echo") >&5
  15949. (eval "$ac_try") 2>&5
  15950. ac_status=$?
  15951. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15952. (exit $ac_status); }; }; then
  15953. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15954. else
  15955. $as_echo "$as_me: program exited with status $ac_status" >&5
  15956. $as_echo "$as_me: failed program was:" >&5
  15957. sed 's/^/| /' conftest.$ac_ext >&5
  15958. ( exit $ac_status )
  15959. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15960. fi
  15961. rm -rf conftest.dSYM
  15962. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15963. fi
  15964. else
  15965. # If the `ln -s' command failed, then we probably don't even
  15966. # have an lstat function.
  15967. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15968. fi
  15969. rm -f conftest.sym conftest.file
  15970. fi
  15971. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15972. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15973. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15974. cat >>confdefs.h <<_ACEOF
  15975. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15976. _ACEOF
  15977. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15978. case " $LIBOBJS " in
  15979. *" lstat.$ac_objext "* ) ;;
  15980. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15981. ;;
  15982. esac
  15983. fi
  15984. for ac_header in stdlib.h
  15985. do
  15986. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15987. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15988. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15989. $as_echo_n "checking for $ac_header... " >&6; }
  15990. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15991. $as_echo_n "(cached) " >&6
  15992. fi
  15993. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15994. $as_echo "$as_val"'`
  15995. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15996. $as_echo "$ac_res" >&6; }
  15997. else
  15998. # Is the header compilable?
  15999. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16000. $as_echo_n "checking $ac_header usability... " >&6; }
  16001. cat >conftest.$ac_ext <<_ACEOF
  16002. /* confdefs.h. */
  16003. _ACEOF
  16004. cat confdefs.h >>conftest.$ac_ext
  16005. cat >>conftest.$ac_ext <<_ACEOF
  16006. /* end confdefs.h. */
  16007. $ac_includes_default
  16008. #include <$ac_header>
  16009. _ACEOF
  16010. rm -f conftest.$ac_objext
  16011. if { (ac_try="$ac_compile"
  16012. case "(($ac_try" in
  16013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16014. *) ac_try_echo=$ac_try;;
  16015. esac
  16016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16017. $as_echo "$ac_try_echo") >&5
  16018. (eval "$ac_compile") 2>conftest.er1
  16019. ac_status=$?
  16020. grep -v '^ *+' conftest.er1 >conftest.err
  16021. rm -f conftest.er1
  16022. cat conftest.err >&5
  16023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16024. (exit $ac_status); } && {
  16025. test -z "$ac_c_werror_flag" ||
  16026. test ! -s conftest.err
  16027. } && test -s conftest.$ac_objext; then
  16028. ac_header_compiler=yes
  16029. else
  16030. $as_echo "$as_me: failed program was:" >&5
  16031. sed 's/^/| /' conftest.$ac_ext >&5
  16032. ac_header_compiler=no
  16033. fi
  16034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16035. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16036. $as_echo "$ac_header_compiler" >&6; }
  16037. # Is the header present?
  16038. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16039. $as_echo_n "checking $ac_header presence... " >&6; }
  16040. cat >conftest.$ac_ext <<_ACEOF
  16041. /* confdefs.h. */
  16042. _ACEOF
  16043. cat confdefs.h >>conftest.$ac_ext
  16044. cat >>conftest.$ac_ext <<_ACEOF
  16045. /* end confdefs.h. */
  16046. #include <$ac_header>
  16047. _ACEOF
  16048. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16049. case "(($ac_try" in
  16050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16051. *) ac_try_echo=$ac_try;;
  16052. esac
  16053. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16054. $as_echo "$ac_try_echo") >&5
  16055. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16056. ac_status=$?
  16057. grep -v '^ *+' conftest.er1 >conftest.err
  16058. rm -f conftest.er1
  16059. cat conftest.err >&5
  16060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16061. (exit $ac_status); } >/dev/null && {
  16062. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16063. test ! -s conftest.err
  16064. }; then
  16065. ac_header_preproc=yes
  16066. else
  16067. $as_echo "$as_me: failed program was:" >&5
  16068. sed 's/^/| /' conftest.$ac_ext >&5
  16069. ac_header_preproc=no
  16070. fi
  16071. rm -f conftest.err conftest.$ac_ext
  16072. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16073. $as_echo "$ac_header_preproc" >&6; }
  16074. # So? What about this header?
  16075. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16076. yes:no: )
  16077. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16078. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16079. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16080. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16081. ac_header_preproc=yes
  16082. ;;
  16083. no:yes:* )
  16084. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16085. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16086. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16087. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16088. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16089. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16090. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16091. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16092. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16093. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16094. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16095. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16096. ( cat <<\_ASBOX
  16097. ## ------------------------------------------ ##
  16098. ## Report this to http://bugzilla.redhat.com/ ##
  16099. ## ------------------------------------------ ##
  16100. _ASBOX
  16101. ) | sed "s/^/$as_me: WARNING: /" >&2
  16102. ;;
  16103. esac
  16104. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16105. $as_echo_n "checking for $ac_header... " >&6; }
  16106. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16107. $as_echo_n "(cached) " >&6
  16108. else
  16109. eval "$as_ac_Header=\$ac_header_preproc"
  16110. fi
  16111. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16112. $as_echo "$as_val"'`
  16113. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16114. $as_echo "$ac_res" >&6; }
  16115. fi
  16116. as_val=`eval 'as_val=${'$as_ac_Header'}
  16117. $as_echo "$as_val"'`
  16118. if test "x$as_val" = x""yes; then
  16119. cat >>confdefs.h <<_ACEOF
  16120. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16121. _ACEOF
  16122. fi
  16123. done
  16124. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16125. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  16126. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16127. $as_echo_n "(cached) " >&6
  16128. else
  16129. if test "$cross_compiling" = yes; then
  16130. ac_cv_func_malloc_0_nonnull=no
  16131. else
  16132. cat >conftest.$ac_ext <<_ACEOF
  16133. /* confdefs.h. */
  16134. _ACEOF
  16135. cat confdefs.h >>conftest.$ac_ext
  16136. cat >>conftest.$ac_ext <<_ACEOF
  16137. /* end confdefs.h. */
  16138. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16139. # include <stdlib.h>
  16140. #else
  16141. char *malloc ();
  16142. #endif
  16143. int
  16144. main ()
  16145. {
  16146. return ! malloc (0);
  16147. ;
  16148. return 0;
  16149. }
  16150. _ACEOF
  16151. rm -f conftest$ac_exeext
  16152. if { (ac_try="$ac_link"
  16153. case "(($ac_try" in
  16154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16155. *) ac_try_echo=$ac_try;;
  16156. esac
  16157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16158. $as_echo "$ac_try_echo") >&5
  16159. (eval "$ac_link") 2>&5
  16160. ac_status=$?
  16161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16162. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16163. { (case "(($ac_try" in
  16164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16165. *) ac_try_echo=$ac_try;;
  16166. esac
  16167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16168. $as_echo "$ac_try_echo") >&5
  16169. (eval "$ac_try") 2>&5
  16170. ac_status=$?
  16171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16172. (exit $ac_status); }; }; then
  16173. ac_cv_func_malloc_0_nonnull=yes
  16174. else
  16175. $as_echo "$as_me: program exited with status $ac_status" >&5
  16176. $as_echo "$as_me: failed program was:" >&5
  16177. sed 's/^/| /' conftest.$ac_ext >&5
  16178. ( exit $ac_status )
  16179. ac_cv_func_malloc_0_nonnull=no
  16180. fi
  16181. rm -rf conftest.dSYM
  16182. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16183. fi
  16184. fi
  16185. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16186. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  16187. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16188. cat >>confdefs.h <<\_ACEOF
  16189. #define HAVE_MALLOC 1
  16190. _ACEOF
  16191. else
  16192. cat >>confdefs.h <<\_ACEOF
  16193. #define HAVE_MALLOC 0
  16194. _ACEOF
  16195. case " $LIBOBJS " in
  16196. *" malloc.$ac_objext "* ) ;;
  16197. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16198. ;;
  16199. esac
  16200. cat >>confdefs.h <<\_ACEOF
  16201. #define malloc rpl_malloc
  16202. _ACEOF
  16203. fi
  16204. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  16205. $as_echo_n "checking for working memcmp... " >&6; }
  16206. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16207. $as_echo_n "(cached) " >&6
  16208. else
  16209. if test "$cross_compiling" = yes; then
  16210. ac_cv_func_memcmp_working=no
  16211. else
  16212. cat >conftest.$ac_ext <<_ACEOF
  16213. /* confdefs.h. */
  16214. _ACEOF
  16215. cat confdefs.h >>conftest.$ac_ext
  16216. cat >>conftest.$ac_ext <<_ACEOF
  16217. /* end confdefs.h. */
  16218. $ac_includes_default
  16219. int
  16220. main ()
  16221. {
  16222. /* Some versions of memcmp are not 8-bit clean. */
  16223. char c0 = '\100', c1 = '\200', c2 = '\201';
  16224. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16225. return 1;
  16226. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16227. or more and with at least one buffer not starting on a 4-byte boundary.
  16228. William Lewis provided this test program. */
  16229. {
  16230. char foo[21];
  16231. char bar[21];
  16232. int i;
  16233. for (i = 0; i < 4; i++)
  16234. {
  16235. char *a = foo + i;
  16236. char *b = bar + i;
  16237. strcpy (a, "--------01111111");
  16238. strcpy (b, "--------10000000");
  16239. if (memcmp (a, b, 16) >= 0)
  16240. return 1;
  16241. }
  16242. return 0;
  16243. }
  16244. ;
  16245. return 0;
  16246. }
  16247. _ACEOF
  16248. rm -f conftest$ac_exeext
  16249. if { (ac_try="$ac_link"
  16250. case "(($ac_try" in
  16251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16252. *) ac_try_echo=$ac_try;;
  16253. esac
  16254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16255. $as_echo "$ac_try_echo") >&5
  16256. (eval "$ac_link") 2>&5
  16257. ac_status=$?
  16258. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16259. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16260. { (case "(($ac_try" in
  16261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16262. *) ac_try_echo=$ac_try;;
  16263. esac
  16264. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16265. $as_echo "$ac_try_echo") >&5
  16266. (eval "$ac_try") 2>&5
  16267. ac_status=$?
  16268. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16269. (exit $ac_status); }; }; then
  16270. ac_cv_func_memcmp_working=yes
  16271. else
  16272. $as_echo "$as_me: program exited with status $ac_status" >&5
  16273. $as_echo "$as_me: failed program was:" >&5
  16274. sed 's/^/| /' conftest.$ac_ext >&5
  16275. ( exit $ac_status )
  16276. ac_cv_func_memcmp_working=no
  16277. fi
  16278. rm -rf conftest.dSYM
  16279. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16280. fi
  16281. fi
  16282. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16283. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  16284. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16285. *" memcmp.$ac_objext "* ) ;;
  16286. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16287. ;;
  16288. esac
  16289. for ac_header in stdlib.h unistd.h
  16290. do
  16291. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16292. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16293. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16294. $as_echo_n "checking for $ac_header... " >&6; }
  16295. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16296. $as_echo_n "(cached) " >&6
  16297. fi
  16298. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16299. $as_echo "$as_val"'`
  16300. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16301. $as_echo "$ac_res" >&6; }
  16302. else
  16303. # Is the header compilable?
  16304. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16305. $as_echo_n "checking $ac_header usability... " >&6; }
  16306. cat >conftest.$ac_ext <<_ACEOF
  16307. /* confdefs.h. */
  16308. _ACEOF
  16309. cat confdefs.h >>conftest.$ac_ext
  16310. cat >>conftest.$ac_ext <<_ACEOF
  16311. /* end confdefs.h. */
  16312. $ac_includes_default
  16313. #include <$ac_header>
  16314. _ACEOF
  16315. rm -f conftest.$ac_objext
  16316. if { (ac_try="$ac_compile"
  16317. case "(($ac_try" in
  16318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16319. *) ac_try_echo=$ac_try;;
  16320. esac
  16321. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16322. $as_echo "$ac_try_echo") >&5
  16323. (eval "$ac_compile") 2>conftest.er1
  16324. ac_status=$?
  16325. grep -v '^ *+' conftest.er1 >conftest.err
  16326. rm -f conftest.er1
  16327. cat conftest.err >&5
  16328. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16329. (exit $ac_status); } && {
  16330. test -z "$ac_c_werror_flag" ||
  16331. test ! -s conftest.err
  16332. } && test -s conftest.$ac_objext; then
  16333. ac_header_compiler=yes
  16334. else
  16335. $as_echo "$as_me: failed program was:" >&5
  16336. sed 's/^/| /' conftest.$ac_ext >&5
  16337. ac_header_compiler=no
  16338. fi
  16339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16340. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16341. $as_echo "$ac_header_compiler" >&6; }
  16342. # Is the header present?
  16343. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16344. $as_echo_n "checking $ac_header presence... " >&6; }
  16345. cat >conftest.$ac_ext <<_ACEOF
  16346. /* confdefs.h. */
  16347. _ACEOF
  16348. cat confdefs.h >>conftest.$ac_ext
  16349. cat >>conftest.$ac_ext <<_ACEOF
  16350. /* end confdefs.h. */
  16351. #include <$ac_header>
  16352. _ACEOF
  16353. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16354. case "(($ac_try" in
  16355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16356. *) ac_try_echo=$ac_try;;
  16357. esac
  16358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16359. $as_echo "$ac_try_echo") >&5
  16360. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16361. ac_status=$?
  16362. grep -v '^ *+' conftest.er1 >conftest.err
  16363. rm -f conftest.er1
  16364. cat conftest.err >&5
  16365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16366. (exit $ac_status); } >/dev/null && {
  16367. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16368. test ! -s conftest.err
  16369. }; then
  16370. ac_header_preproc=yes
  16371. else
  16372. $as_echo "$as_me: failed program was:" >&5
  16373. sed 's/^/| /' conftest.$ac_ext >&5
  16374. ac_header_preproc=no
  16375. fi
  16376. rm -f conftest.err conftest.$ac_ext
  16377. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16378. $as_echo "$ac_header_preproc" >&6; }
  16379. # So? What about this header?
  16380. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16381. yes:no: )
  16382. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16383. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16384. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16385. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16386. ac_header_preproc=yes
  16387. ;;
  16388. no:yes:* )
  16389. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16390. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16391. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16392. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16393. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16394. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16395. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16396. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16397. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16398. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16399. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16400. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16401. ( cat <<\_ASBOX
  16402. ## ------------------------------------------ ##
  16403. ## Report this to http://bugzilla.redhat.com/ ##
  16404. ## ------------------------------------------ ##
  16405. _ASBOX
  16406. ) | sed "s/^/$as_me: WARNING: /" >&2
  16407. ;;
  16408. esac
  16409. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16410. $as_echo_n "checking for $ac_header... " >&6; }
  16411. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16412. $as_echo_n "(cached) " >&6
  16413. else
  16414. eval "$as_ac_Header=\$ac_header_preproc"
  16415. fi
  16416. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16417. $as_echo "$as_val"'`
  16418. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16419. $as_echo "$ac_res" >&6; }
  16420. fi
  16421. as_val=`eval 'as_val=${'$as_ac_Header'}
  16422. $as_echo "$as_val"'`
  16423. if test "x$as_val" = x""yes; then
  16424. cat >>confdefs.h <<_ACEOF
  16425. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16426. _ACEOF
  16427. fi
  16428. done
  16429. for ac_func in getpagesize
  16430. do
  16431. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16432. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16433. $as_echo_n "checking for $ac_func... " >&6; }
  16434. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16435. $as_echo_n "(cached) " >&6
  16436. else
  16437. cat >conftest.$ac_ext <<_ACEOF
  16438. /* confdefs.h. */
  16439. _ACEOF
  16440. cat confdefs.h >>conftest.$ac_ext
  16441. cat >>conftest.$ac_ext <<_ACEOF
  16442. /* end confdefs.h. */
  16443. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16444. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16445. #define $ac_func innocuous_$ac_func
  16446. /* System header to define __stub macros and hopefully few prototypes,
  16447. which can conflict with char $ac_func (); below.
  16448. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16449. <limits.h> exists even on freestanding compilers. */
  16450. #ifdef __STDC__
  16451. # include <limits.h>
  16452. #else
  16453. # include <assert.h>
  16454. #endif
  16455. #undef $ac_func
  16456. /* Override any GCC internal prototype to avoid an error.
  16457. Use char because int might match the return type of a GCC
  16458. builtin and then its argument prototype would still apply. */
  16459. #ifdef __cplusplus
  16460. extern "C"
  16461. #endif
  16462. char $ac_func ();
  16463. /* The GNU C library defines this for functions which it implements
  16464. to always fail with ENOSYS. Some functions are actually named
  16465. something starting with __ and the normal name is an alias. */
  16466. #if defined __stub_$ac_func || defined __stub___$ac_func
  16467. choke me
  16468. #endif
  16469. int
  16470. main ()
  16471. {
  16472. return $ac_func ();
  16473. ;
  16474. return 0;
  16475. }
  16476. _ACEOF
  16477. rm -f conftest.$ac_objext conftest$ac_exeext
  16478. if { (ac_try="$ac_link"
  16479. case "(($ac_try" in
  16480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16481. *) ac_try_echo=$ac_try;;
  16482. esac
  16483. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16484. $as_echo "$ac_try_echo") >&5
  16485. (eval "$ac_link") 2>conftest.er1
  16486. ac_status=$?
  16487. grep -v '^ *+' conftest.er1 >conftest.err
  16488. rm -f conftest.er1
  16489. cat conftest.err >&5
  16490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16491. (exit $ac_status); } && {
  16492. test -z "$ac_c_werror_flag" ||
  16493. test ! -s conftest.err
  16494. } && test -s conftest$ac_exeext && {
  16495. test "$cross_compiling" = yes ||
  16496. $as_test_x conftest$ac_exeext
  16497. }; then
  16498. eval "$as_ac_var=yes"
  16499. else
  16500. $as_echo "$as_me: failed program was:" >&5
  16501. sed 's/^/| /' conftest.$ac_ext >&5
  16502. eval "$as_ac_var=no"
  16503. fi
  16504. rm -rf conftest.dSYM
  16505. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16506. conftest$ac_exeext conftest.$ac_ext
  16507. fi
  16508. ac_res=`eval 'as_val=${'$as_ac_var'}
  16509. $as_echo "$as_val"'`
  16510. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16511. $as_echo "$ac_res" >&6; }
  16512. as_val=`eval 'as_val=${'$as_ac_var'}
  16513. $as_echo "$as_val"'`
  16514. if test "x$as_val" = x""yes; then
  16515. cat >>confdefs.h <<_ACEOF
  16516. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16517. _ACEOF
  16518. fi
  16519. done
  16520. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  16521. $as_echo_n "checking for working mmap... " >&6; }
  16522. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16523. $as_echo_n "(cached) " >&6
  16524. else
  16525. if test "$cross_compiling" = yes; then
  16526. ac_cv_func_mmap_fixed_mapped=no
  16527. else
  16528. cat >conftest.$ac_ext <<_ACEOF
  16529. /* confdefs.h. */
  16530. _ACEOF
  16531. cat confdefs.h >>conftest.$ac_ext
  16532. cat >>conftest.$ac_ext <<_ACEOF
  16533. /* end confdefs.h. */
  16534. $ac_includes_default
  16535. /* malloc might have been renamed as rpl_malloc. */
  16536. #undef malloc
  16537. /* Thanks to Mike Haertel and Jim Avera for this test.
  16538. Here is a matrix of mmap possibilities:
  16539. mmap private not fixed
  16540. mmap private fixed at somewhere currently unmapped
  16541. mmap private fixed at somewhere already mapped
  16542. mmap shared not fixed
  16543. mmap shared fixed at somewhere currently unmapped
  16544. mmap shared fixed at somewhere already mapped
  16545. For private mappings, we should verify that changes cannot be read()
  16546. back from the file, nor mmap's back from the file at a different
  16547. address. (There have been systems where private was not correctly
  16548. implemented like the infamous i386 svr4.0, and systems where the
  16549. VM page cache was not coherent with the file system buffer cache
  16550. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16551. For shared mappings, we should conversely verify that changes get
  16552. propagated back to all the places they're supposed to be.
  16553. Grep wants private fixed already mapped.
  16554. The main things grep needs to know about mmap are:
  16555. * does it exist and is it safe to write into the mmap'd area
  16556. * how to use it (BSD variants) */
  16557. #include <fcntl.h>
  16558. #include <sys/mman.h>
  16559. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16560. char *malloc ();
  16561. #endif
  16562. /* This mess was copied from the GNU getpagesize.h. */
  16563. #ifndef HAVE_GETPAGESIZE
  16564. /* Assume that all systems that can run configure have sys/param.h. */
  16565. # ifndef HAVE_SYS_PARAM_H
  16566. # define HAVE_SYS_PARAM_H 1
  16567. # endif
  16568. # ifdef _SC_PAGESIZE
  16569. # define getpagesize() sysconf(_SC_PAGESIZE)
  16570. # else /* no _SC_PAGESIZE */
  16571. # ifdef HAVE_SYS_PARAM_H
  16572. # include <sys/param.h>
  16573. # ifdef EXEC_PAGESIZE
  16574. # define getpagesize() EXEC_PAGESIZE
  16575. # else /* no EXEC_PAGESIZE */
  16576. # ifdef NBPG
  16577. # define getpagesize() NBPG * CLSIZE
  16578. # ifndef CLSIZE
  16579. # define CLSIZE 1
  16580. # endif /* no CLSIZE */
  16581. # else /* no NBPG */
  16582. # ifdef NBPC
  16583. # define getpagesize() NBPC
  16584. # else /* no NBPC */
  16585. # ifdef PAGESIZE
  16586. # define getpagesize() PAGESIZE
  16587. # endif /* PAGESIZE */
  16588. # endif /* no NBPC */
  16589. # endif /* no NBPG */
  16590. # endif /* no EXEC_PAGESIZE */
  16591. # else /* no HAVE_SYS_PARAM_H */
  16592. # define getpagesize() 8192 /* punt totally */
  16593. # endif /* no HAVE_SYS_PARAM_H */
  16594. # endif /* no _SC_PAGESIZE */
  16595. #endif /* no HAVE_GETPAGESIZE */
  16596. int
  16597. main ()
  16598. {
  16599. char *data, *data2, *data3;
  16600. int i, pagesize;
  16601. int fd;
  16602. pagesize = getpagesize ();
  16603. /* First, make a file with some known garbage in it. */
  16604. data = (char *) malloc (pagesize);
  16605. if (!data)
  16606. return 1;
  16607. for (i = 0; i < pagesize; ++i)
  16608. *(data + i) = rand ();
  16609. umask (0);
  16610. fd = creat ("conftest.mmap", 0600);
  16611. if (fd < 0)
  16612. return 1;
  16613. if (write (fd, data, pagesize) != pagesize)
  16614. return 1;
  16615. close (fd);
  16616. /* Next, try to mmap the file at a fixed address which already has
  16617. something else allocated at it. If we can, also make sure that
  16618. we see the same garbage. */
  16619. fd = open ("conftest.mmap", O_RDWR);
  16620. if (fd < 0)
  16621. return 1;
  16622. data2 = (char *) malloc (2 * pagesize);
  16623. if (!data2)
  16624. return 1;
  16625. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16626. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16627. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16628. return 1;
  16629. for (i = 0; i < pagesize; ++i)
  16630. if (*(data + i) != *(data2 + i))
  16631. return 1;
  16632. /* Finally, make sure that changes to the mapped area do not
  16633. percolate back to the file as seen by read(). (This is a bug on
  16634. some variants of i386 svr4.0.) */
  16635. for (i = 0; i < pagesize; ++i)
  16636. *(data2 + i) = *(data2 + i) + 1;
  16637. data3 = (char *) malloc (pagesize);
  16638. if (!data3)
  16639. return 1;
  16640. if (read (fd, data3, pagesize) != pagesize)
  16641. return 1;
  16642. for (i = 0; i < pagesize; ++i)
  16643. if (*(data + i) != *(data3 + i))
  16644. return 1;
  16645. close (fd);
  16646. return 0;
  16647. }
  16648. _ACEOF
  16649. rm -f conftest$ac_exeext
  16650. if { (ac_try="$ac_link"
  16651. case "(($ac_try" in
  16652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16653. *) ac_try_echo=$ac_try;;
  16654. esac
  16655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16656. $as_echo "$ac_try_echo") >&5
  16657. (eval "$ac_link") 2>&5
  16658. ac_status=$?
  16659. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16660. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16661. { (case "(($ac_try" in
  16662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16663. *) ac_try_echo=$ac_try;;
  16664. esac
  16665. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16666. $as_echo "$ac_try_echo") >&5
  16667. (eval "$ac_try") 2>&5
  16668. ac_status=$?
  16669. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16670. (exit $ac_status); }; }; then
  16671. ac_cv_func_mmap_fixed_mapped=yes
  16672. else
  16673. $as_echo "$as_me: program exited with status $ac_status" >&5
  16674. $as_echo "$as_me: failed program was:" >&5
  16675. sed 's/^/| /' conftest.$ac_ext >&5
  16676. ( exit $ac_status )
  16677. ac_cv_func_mmap_fixed_mapped=no
  16678. fi
  16679. rm -rf conftest.dSYM
  16680. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16681. fi
  16682. fi
  16683. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16684. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  16685. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16686. cat >>confdefs.h <<\_ACEOF
  16687. #define HAVE_MMAP 1
  16688. _ACEOF
  16689. fi
  16690. rm -f conftest.mmap
  16691. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  16692. $as_echo_n "checking return type of signal handlers... " >&6; }
  16693. if test "${ac_cv_type_signal+set}" = set; then
  16694. $as_echo_n "(cached) " >&6
  16695. else
  16696. cat >conftest.$ac_ext <<_ACEOF
  16697. /* confdefs.h. */
  16698. _ACEOF
  16699. cat confdefs.h >>conftest.$ac_ext
  16700. cat >>conftest.$ac_ext <<_ACEOF
  16701. /* end confdefs.h. */
  16702. #include <sys/types.h>
  16703. #include <signal.h>
  16704. int
  16705. main ()
  16706. {
  16707. return *(signal (0, 0)) (0) == 1;
  16708. ;
  16709. return 0;
  16710. }
  16711. _ACEOF
  16712. rm -f conftest.$ac_objext
  16713. if { (ac_try="$ac_compile"
  16714. case "(($ac_try" in
  16715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16716. *) ac_try_echo=$ac_try;;
  16717. esac
  16718. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16719. $as_echo "$ac_try_echo") >&5
  16720. (eval "$ac_compile") 2>conftest.er1
  16721. ac_status=$?
  16722. grep -v '^ *+' conftest.er1 >conftest.err
  16723. rm -f conftest.er1
  16724. cat conftest.err >&5
  16725. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16726. (exit $ac_status); } && {
  16727. test -z "$ac_c_werror_flag" ||
  16728. test ! -s conftest.err
  16729. } && test -s conftest.$ac_objext; then
  16730. ac_cv_type_signal=int
  16731. else
  16732. $as_echo "$as_me: failed program was:" >&5
  16733. sed 's/^/| /' conftest.$ac_ext >&5
  16734. ac_cv_type_signal=void
  16735. fi
  16736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16737. fi
  16738. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  16739. $as_echo "$ac_cv_type_signal" >&6; }
  16740. cat >>confdefs.h <<_ACEOF
  16741. #define RETSIGTYPE $ac_cv_type_signal
  16742. _ACEOF
  16743. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  16744. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  16745. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  16746. $as_echo_n "(cached) " >&6
  16747. else
  16748. if test "$cross_compiling" = yes; then
  16749. ac_cv_func_stat_empty_string_bug=yes
  16750. else
  16751. cat >conftest.$ac_ext <<_ACEOF
  16752. /* confdefs.h. */
  16753. _ACEOF
  16754. cat confdefs.h >>conftest.$ac_ext
  16755. cat >>conftest.$ac_ext <<_ACEOF
  16756. /* end confdefs.h. */
  16757. $ac_includes_default
  16758. int
  16759. main ()
  16760. {
  16761. struct stat sbuf;
  16762. return stat ("", &sbuf) == 0;
  16763. ;
  16764. return 0;
  16765. }
  16766. _ACEOF
  16767. rm -f conftest$ac_exeext
  16768. if { (ac_try="$ac_link"
  16769. case "(($ac_try" in
  16770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16771. *) ac_try_echo=$ac_try;;
  16772. esac
  16773. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16774. $as_echo "$ac_try_echo") >&5
  16775. (eval "$ac_link") 2>&5
  16776. ac_status=$?
  16777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16778. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16779. { (case "(($ac_try" in
  16780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16781. *) ac_try_echo=$ac_try;;
  16782. esac
  16783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16784. $as_echo "$ac_try_echo") >&5
  16785. (eval "$ac_try") 2>&5
  16786. ac_status=$?
  16787. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16788. (exit $ac_status); }; }; then
  16789. ac_cv_func_stat_empty_string_bug=no
  16790. else
  16791. $as_echo "$as_me: program exited with status $ac_status" >&5
  16792. $as_echo "$as_me: failed program was:" >&5
  16793. sed 's/^/| /' conftest.$ac_ext >&5
  16794. ( exit $ac_status )
  16795. ac_cv_func_stat_empty_string_bug=yes
  16796. fi
  16797. rm -rf conftest.dSYM
  16798. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16799. fi
  16800. fi
  16801. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  16802. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  16803. if test $ac_cv_func_stat_empty_string_bug = yes; then
  16804. case " $LIBOBJS " in
  16805. *" stat.$ac_objext "* ) ;;
  16806. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  16807. ;;
  16808. esac
  16809. cat >>confdefs.h <<_ACEOF
  16810. #define HAVE_STAT_EMPTY_STRING_BUG 1
  16811. _ACEOF
  16812. fi
  16813. { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  16814. $as_echo_n "checking whether strerror_r is declared... " >&6; }
  16815. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  16816. $as_echo_n "(cached) " >&6
  16817. else
  16818. cat >conftest.$ac_ext <<_ACEOF
  16819. /* confdefs.h. */
  16820. _ACEOF
  16821. cat confdefs.h >>conftest.$ac_ext
  16822. cat >>conftest.$ac_ext <<_ACEOF
  16823. /* end confdefs.h. */
  16824. $ac_includes_default
  16825. int
  16826. main ()
  16827. {
  16828. #ifndef strerror_r
  16829. (void) strerror_r;
  16830. #endif
  16831. ;
  16832. return 0;
  16833. }
  16834. _ACEOF
  16835. rm -f conftest.$ac_objext
  16836. if { (ac_try="$ac_compile"
  16837. case "(($ac_try" in
  16838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16839. *) ac_try_echo=$ac_try;;
  16840. esac
  16841. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16842. $as_echo "$ac_try_echo") >&5
  16843. (eval "$ac_compile") 2>conftest.er1
  16844. ac_status=$?
  16845. grep -v '^ *+' conftest.er1 >conftest.err
  16846. rm -f conftest.er1
  16847. cat conftest.err >&5
  16848. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16849. (exit $ac_status); } && {
  16850. test -z "$ac_c_werror_flag" ||
  16851. test ! -s conftest.err
  16852. } && test -s conftest.$ac_objext; then
  16853. ac_cv_have_decl_strerror_r=yes
  16854. else
  16855. $as_echo "$as_me: failed program was:" >&5
  16856. sed 's/^/| /' conftest.$ac_ext >&5
  16857. ac_cv_have_decl_strerror_r=no
  16858. fi
  16859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16860. fi
  16861. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  16862. $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
  16863. if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
  16864. cat >>confdefs.h <<_ACEOF
  16865. #define HAVE_DECL_STRERROR_R 1
  16866. _ACEOF
  16867. else
  16868. cat >>confdefs.h <<_ACEOF
  16869. #define HAVE_DECL_STRERROR_R 0
  16870. _ACEOF
  16871. fi
  16872. for ac_func in strerror_r
  16873. do
  16874. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16875. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16876. $as_echo_n "checking for $ac_func... " >&6; }
  16877. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16878. $as_echo_n "(cached) " >&6
  16879. else
  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. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16887. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16888. #define $ac_func innocuous_$ac_func
  16889. /* System header to define __stub macros and hopefully few prototypes,
  16890. which can conflict with char $ac_func (); below.
  16891. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16892. <limits.h> exists even on freestanding compilers. */
  16893. #ifdef __STDC__
  16894. # include <limits.h>
  16895. #else
  16896. # include <assert.h>
  16897. #endif
  16898. #undef $ac_func
  16899. /* Override any GCC internal prototype to avoid an error.
  16900. Use char because int might match the return type of a GCC
  16901. builtin and then its argument prototype would still apply. */
  16902. #ifdef __cplusplus
  16903. extern "C"
  16904. #endif
  16905. char $ac_func ();
  16906. /* The GNU C library defines this for functions which it implements
  16907. to always fail with ENOSYS. Some functions are actually named
  16908. something starting with __ and the normal name is an alias. */
  16909. #if defined __stub_$ac_func || defined __stub___$ac_func
  16910. choke me
  16911. #endif
  16912. int
  16913. main ()
  16914. {
  16915. return $ac_func ();
  16916. ;
  16917. return 0;
  16918. }
  16919. _ACEOF
  16920. rm -f conftest.$ac_objext conftest$ac_exeext
  16921. if { (ac_try="$ac_link"
  16922. case "(($ac_try" in
  16923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16924. *) ac_try_echo=$ac_try;;
  16925. esac
  16926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16927. $as_echo "$ac_try_echo") >&5
  16928. (eval "$ac_link") 2>conftest.er1
  16929. ac_status=$?
  16930. grep -v '^ *+' conftest.er1 >conftest.err
  16931. rm -f conftest.er1
  16932. cat conftest.err >&5
  16933. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16934. (exit $ac_status); } && {
  16935. test -z "$ac_c_werror_flag" ||
  16936. test ! -s conftest.err
  16937. } && test -s conftest$ac_exeext && {
  16938. test "$cross_compiling" = yes ||
  16939. $as_test_x conftest$ac_exeext
  16940. }; then
  16941. eval "$as_ac_var=yes"
  16942. else
  16943. $as_echo "$as_me: failed program was:" >&5
  16944. sed 's/^/| /' conftest.$ac_ext >&5
  16945. eval "$as_ac_var=no"
  16946. fi
  16947. rm -rf conftest.dSYM
  16948. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16949. conftest$ac_exeext conftest.$ac_ext
  16950. fi
  16951. ac_res=`eval 'as_val=${'$as_ac_var'}
  16952. $as_echo "$as_val"'`
  16953. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16954. $as_echo "$ac_res" >&6; }
  16955. as_val=`eval 'as_val=${'$as_ac_var'}
  16956. $as_echo "$as_val"'`
  16957. if test "x$as_val" = x""yes; then
  16958. cat >>confdefs.h <<_ACEOF
  16959. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16960. _ACEOF
  16961. fi
  16962. done
  16963. { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  16964. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  16965. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  16966. $as_echo_n "(cached) " >&6
  16967. else
  16968. ac_cv_func_strerror_r_char_p=no
  16969. if test $ac_cv_have_decl_strerror_r = yes; then
  16970. cat >conftest.$ac_ext <<_ACEOF
  16971. /* confdefs.h. */
  16972. _ACEOF
  16973. cat confdefs.h >>conftest.$ac_ext
  16974. cat >>conftest.$ac_ext <<_ACEOF
  16975. /* end confdefs.h. */
  16976. $ac_includes_default
  16977. int
  16978. main ()
  16979. {
  16980. char buf[100];
  16981. char x = *strerror_r (0, buf, sizeof buf);
  16982. char *p = strerror_r (0, buf, sizeof buf);
  16983. return !p || x;
  16984. ;
  16985. return 0;
  16986. }
  16987. _ACEOF
  16988. rm -f conftest.$ac_objext
  16989. if { (ac_try="$ac_compile"
  16990. case "(($ac_try" in
  16991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16992. *) ac_try_echo=$ac_try;;
  16993. esac
  16994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16995. $as_echo "$ac_try_echo") >&5
  16996. (eval "$ac_compile") 2>conftest.er1
  16997. ac_status=$?
  16998. grep -v '^ *+' conftest.er1 >conftest.err
  16999. rm -f conftest.er1
  17000. cat conftest.err >&5
  17001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17002. (exit $ac_status); } && {
  17003. test -z "$ac_c_werror_flag" ||
  17004. test ! -s conftest.err
  17005. } && test -s conftest.$ac_objext; then
  17006. ac_cv_func_strerror_r_char_p=yes
  17007. else
  17008. $as_echo "$as_me: failed program was:" >&5
  17009. sed 's/^/| /' conftest.$ac_ext >&5
  17010. fi
  17011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17012. else
  17013. # strerror_r is not declared. Choose between
  17014. # systems that have relatively inaccessible declarations for the
  17015. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  17016. # former has a strerror_r that returns char*, while the latter
  17017. # has a strerror_r that returns `int'.
  17018. # This test should segfault on the DEC system.
  17019. if test "$cross_compiling" = yes; then
  17020. :
  17021. else
  17022. cat >conftest.$ac_ext <<_ACEOF
  17023. /* confdefs.h. */
  17024. _ACEOF
  17025. cat confdefs.h >>conftest.$ac_ext
  17026. cat >>conftest.$ac_ext <<_ACEOF
  17027. /* end confdefs.h. */
  17028. $ac_includes_default
  17029. extern char *strerror_r ();
  17030. int
  17031. main ()
  17032. {
  17033. char buf[100];
  17034. char x = *strerror_r (0, buf, sizeof buf);
  17035. return ! isalpha (x);
  17036. ;
  17037. return 0;
  17038. }
  17039. _ACEOF
  17040. rm -f conftest$ac_exeext
  17041. if { (ac_try="$ac_link"
  17042. case "(($ac_try" in
  17043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17044. *) ac_try_echo=$ac_try;;
  17045. esac
  17046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17047. $as_echo "$ac_try_echo") >&5
  17048. (eval "$ac_link") 2>&5
  17049. ac_status=$?
  17050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17051. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17052. { (case "(($ac_try" in
  17053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17054. *) ac_try_echo=$ac_try;;
  17055. esac
  17056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17057. $as_echo "$ac_try_echo") >&5
  17058. (eval "$ac_try") 2>&5
  17059. ac_status=$?
  17060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17061. (exit $ac_status); }; }; then
  17062. ac_cv_func_strerror_r_char_p=yes
  17063. else
  17064. $as_echo "$as_me: program exited with status $ac_status" >&5
  17065. $as_echo "$as_me: failed program was:" >&5
  17066. sed 's/^/| /' conftest.$ac_ext >&5
  17067. fi
  17068. rm -rf conftest.dSYM
  17069. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17070. fi
  17071. fi
  17072. fi
  17073. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  17074. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  17075. if test $ac_cv_func_strerror_r_char_p = yes; then
  17076. cat >>confdefs.h <<\_ACEOF
  17077. #define STRERROR_R_CHAR_P 1
  17078. _ACEOF
  17079. fi
  17080. for ac_func in strftime
  17081. do
  17082. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17083. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17084. $as_echo_n "checking for $ac_func... " >&6; }
  17085. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17086. $as_echo_n "(cached) " >&6
  17087. else
  17088. cat >conftest.$ac_ext <<_ACEOF
  17089. /* confdefs.h. */
  17090. _ACEOF
  17091. cat confdefs.h >>conftest.$ac_ext
  17092. cat >>conftest.$ac_ext <<_ACEOF
  17093. /* end confdefs.h. */
  17094. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17095. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17096. #define $ac_func innocuous_$ac_func
  17097. /* System header to define __stub macros and hopefully few prototypes,
  17098. which can conflict with char $ac_func (); below.
  17099. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17100. <limits.h> exists even on freestanding compilers. */
  17101. #ifdef __STDC__
  17102. # include <limits.h>
  17103. #else
  17104. # include <assert.h>
  17105. #endif
  17106. #undef $ac_func
  17107. /* Override any GCC internal prototype to avoid an error.
  17108. Use char because int might match the return type of a GCC
  17109. builtin and then its argument prototype would still apply. */
  17110. #ifdef __cplusplus
  17111. extern "C"
  17112. #endif
  17113. char $ac_func ();
  17114. /* The GNU C library defines this for functions which it implements
  17115. to always fail with ENOSYS. Some functions are actually named
  17116. something starting with __ and the normal name is an alias. */
  17117. #if defined __stub_$ac_func || defined __stub___$ac_func
  17118. choke me
  17119. #endif
  17120. int
  17121. main ()
  17122. {
  17123. return $ac_func ();
  17124. ;
  17125. return 0;
  17126. }
  17127. _ACEOF
  17128. rm -f conftest.$ac_objext conftest$ac_exeext
  17129. if { (ac_try="$ac_link"
  17130. case "(($ac_try" in
  17131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17132. *) ac_try_echo=$ac_try;;
  17133. esac
  17134. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17135. $as_echo "$ac_try_echo") >&5
  17136. (eval "$ac_link") 2>conftest.er1
  17137. ac_status=$?
  17138. grep -v '^ *+' conftest.er1 >conftest.err
  17139. rm -f conftest.er1
  17140. cat conftest.err >&5
  17141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17142. (exit $ac_status); } && {
  17143. test -z "$ac_c_werror_flag" ||
  17144. test ! -s conftest.err
  17145. } && test -s conftest$ac_exeext && {
  17146. test "$cross_compiling" = yes ||
  17147. $as_test_x conftest$ac_exeext
  17148. }; then
  17149. eval "$as_ac_var=yes"
  17150. else
  17151. $as_echo "$as_me: failed program was:" >&5
  17152. sed 's/^/| /' conftest.$ac_ext >&5
  17153. eval "$as_ac_var=no"
  17154. fi
  17155. rm -rf conftest.dSYM
  17156. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17157. conftest$ac_exeext conftest.$ac_ext
  17158. fi
  17159. ac_res=`eval 'as_val=${'$as_ac_var'}
  17160. $as_echo "$as_val"'`
  17161. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17162. $as_echo "$ac_res" >&6; }
  17163. as_val=`eval 'as_val=${'$as_ac_var'}
  17164. $as_echo "$as_val"'`
  17165. if test "x$as_val" = x""yes; then
  17166. cat >>confdefs.h <<_ACEOF
  17167. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17168. _ACEOF
  17169. else
  17170. # strftime is in -lintl on SCO UNIX.
  17171. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17172. $as_echo_n "checking for strftime in -lintl... " >&6; }
  17173. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17174. $as_echo_n "(cached) " >&6
  17175. else
  17176. ac_check_lib_save_LIBS=$LIBS
  17177. LIBS="-lintl $LIBS"
  17178. cat >conftest.$ac_ext <<_ACEOF
  17179. /* confdefs.h. */
  17180. _ACEOF
  17181. cat confdefs.h >>conftest.$ac_ext
  17182. cat >>conftest.$ac_ext <<_ACEOF
  17183. /* end confdefs.h. */
  17184. /* Override any GCC internal prototype to avoid an error.
  17185. Use char because int might match the return type of a GCC
  17186. builtin and then its argument prototype would still apply. */
  17187. #ifdef __cplusplus
  17188. extern "C"
  17189. #endif
  17190. char strftime ();
  17191. int
  17192. main ()
  17193. {
  17194. return strftime ();
  17195. ;
  17196. return 0;
  17197. }
  17198. _ACEOF
  17199. rm -f conftest.$ac_objext conftest$ac_exeext
  17200. if { (ac_try="$ac_link"
  17201. case "(($ac_try" in
  17202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17203. *) ac_try_echo=$ac_try;;
  17204. esac
  17205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17206. $as_echo "$ac_try_echo") >&5
  17207. (eval "$ac_link") 2>conftest.er1
  17208. ac_status=$?
  17209. grep -v '^ *+' conftest.er1 >conftest.err
  17210. rm -f conftest.er1
  17211. cat conftest.err >&5
  17212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17213. (exit $ac_status); } && {
  17214. test -z "$ac_c_werror_flag" ||
  17215. test ! -s conftest.err
  17216. } && test -s conftest$ac_exeext && {
  17217. test "$cross_compiling" = yes ||
  17218. $as_test_x conftest$ac_exeext
  17219. }; then
  17220. ac_cv_lib_intl_strftime=yes
  17221. else
  17222. $as_echo "$as_me: failed program was:" >&5
  17223. sed 's/^/| /' conftest.$ac_ext >&5
  17224. ac_cv_lib_intl_strftime=no
  17225. fi
  17226. rm -rf conftest.dSYM
  17227. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17228. conftest$ac_exeext conftest.$ac_ext
  17229. LIBS=$ac_check_lib_save_LIBS
  17230. fi
  17231. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17232. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  17233. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  17234. cat >>confdefs.h <<\_ACEOF
  17235. #define HAVE_STRFTIME 1
  17236. _ACEOF
  17237. LIBS="-lintl $LIBS"
  17238. fi
  17239. fi
  17240. done
  17241. for ac_func in vprintf
  17242. do
  17243. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17244. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17245. $as_echo_n "checking for $ac_func... " >&6; }
  17246. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17247. $as_echo_n "(cached) " >&6
  17248. else
  17249. cat >conftest.$ac_ext <<_ACEOF
  17250. /* confdefs.h. */
  17251. _ACEOF
  17252. cat confdefs.h >>conftest.$ac_ext
  17253. cat >>conftest.$ac_ext <<_ACEOF
  17254. /* end confdefs.h. */
  17255. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17256. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17257. #define $ac_func innocuous_$ac_func
  17258. /* System header to define __stub macros and hopefully few prototypes,
  17259. which can conflict with char $ac_func (); below.
  17260. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17261. <limits.h> exists even on freestanding compilers. */
  17262. #ifdef __STDC__
  17263. # include <limits.h>
  17264. #else
  17265. # include <assert.h>
  17266. #endif
  17267. #undef $ac_func
  17268. /* Override any GCC internal prototype to avoid an error.
  17269. Use char because int might match the return type of a GCC
  17270. builtin and then its argument prototype would still apply. */
  17271. #ifdef __cplusplus
  17272. extern "C"
  17273. #endif
  17274. char $ac_func ();
  17275. /* The GNU C library defines this for functions which it implements
  17276. to always fail with ENOSYS. Some functions are actually named
  17277. something starting with __ and the normal name is an alias. */
  17278. #if defined __stub_$ac_func || defined __stub___$ac_func
  17279. choke me
  17280. #endif
  17281. int
  17282. main ()
  17283. {
  17284. return $ac_func ();
  17285. ;
  17286. return 0;
  17287. }
  17288. _ACEOF
  17289. rm -f conftest.$ac_objext conftest$ac_exeext
  17290. if { (ac_try="$ac_link"
  17291. case "(($ac_try" in
  17292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17293. *) ac_try_echo=$ac_try;;
  17294. esac
  17295. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17296. $as_echo "$ac_try_echo") >&5
  17297. (eval "$ac_link") 2>conftest.er1
  17298. ac_status=$?
  17299. grep -v '^ *+' conftest.er1 >conftest.err
  17300. rm -f conftest.er1
  17301. cat conftest.err >&5
  17302. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17303. (exit $ac_status); } && {
  17304. test -z "$ac_c_werror_flag" ||
  17305. test ! -s conftest.err
  17306. } && test -s conftest$ac_exeext && {
  17307. test "$cross_compiling" = yes ||
  17308. $as_test_x conftest$ac_exeext
  17309. }; then
  17310. eval "$as_ac_var=yes"
  17311. else
  17312. $as_echo "$as_me: failed program was:" >&5
  17313. sed 's/^/| /' conftest.$ac_ext >&5
  17314. eval "$as_ac_var=no"
  17315. fi
  17316. rm -rf conftest.dSYM
  17317. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17318. conftest$ac_exeext conftest.$ac_ext
  17319. fi
  17320. ac_res=`eval 'as_val=${'$as_ac_var'}
  17321. $as_echo "$as_val"'`
  17322. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17323. $as_echo "$ac_res" >&6; }
  17324. as_val=`eval 'as_val=${'$as_ac_var'}
  17325. $as_echo "$as_val"'`
  17326. if test "x$as_val" = x""yes; then
  17327. cat >>confdefs.h <<_ACEOF
  17328. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17329. _ACEOF
  17330. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  17331. $as_echo_n "checking for _doprnt... " >&6; }
  17332. if test "${ac_cv_func__doprnt+set}" = set; then
  17333. $as_echo_n "(cached) " >&6
  17334. else
  17335. cat >conftest.$ac_ext <<_ACEOF
  17336. /* confdefs.h. */
  17337. _ACEOF
  17338. cat confdefs.h >>conftest.$ac_ext
  17339. cat >>conftest.$ac_ext <<_ACEOF
  17340. /* end confdefs.h. */
  17341. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17342. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17343. #define _doprnt innocuous__doprnt
  17344. /* System header to define __stub macros and hopefully few prototypes,
  17345. which can conflict with char _doprnt (); below.
  17346. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17347. <limits.h> exists even on freestanding compilers. */
  17348. #ifdef __STDC__
  17349. # include <limits.h>
  17350. #else
  17351. # include <assert.h>
  17352. #endif
  17353. #undef _doprnt
  17354. /* Override any GCC internal prototype to avoid an error.
  17355. Use char because int might match the return type of a GCC
  17356. builtin and then its argument prototype would still apply. */
  17357. #ifdef __cplusplus
  17358. extern "C"
  17359. #endif
  17360. char _doprnt ();
  17361. /* The GNU C library defines this for functions which it implements
  17362. to always fail with ENOSYS. Some functions are actually named
  17363. something starting with __ and the normal name is an alias. */
  17364. #if defined __stub__doprnt || defined __stub____doprnt
  17365. choke me
  17366. #endif
  17367. int
  17368. main ()
  17369. {
  17370. return _doprnt ();
  17371. ;
  17372. return 0;
  17373. }
  17374. _ACEOF
  17375. rm -f conftest.$ac_objext conftest$ac_exeext
  17376. if { (ac_try="$ac_link"
  17377. case "(($ac_try" in
  17378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17379. *) ac_try_echo=$ac_try;;
  17380. esac
  17381. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17382. $as_echo "$ac_try_echo") >&5
  17383. (eval "$ac_link") 2>conftest.er1
  17384. ac_status=$?
  17385. grep -v '^ *+' conftest.er1 >conftest.err
  17386. rm -f conftest.er1
  17387. cat conftest.err >&5
  17388. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17389. (exit $ac_status); } && {
  17390. test -z "$ac_c_werror_flag" ||
  17391. test ! -s conftest.err
  17392. } && test -s conftest$ac_exeext && {
  17393. test "$cross_compiling" = yes ||
  17394. $as_test_x conftest$ac_exeext
  17395. }; then
  17396. ac_cv_func__doprnt=yes
  17397. else
  17398. $as_echo "$as_me: failed program was:" >&5
  17399. sed 's/^/| /' conftest.$ac_ext >&5
  17400. ac_cv_func__doprnt=no
  17401. fi
  17402. rm -rf conftest.dSYM
  17403. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17404. conftest$ac_exeext conftest.$ac_ext
  17405. fi
  17406. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17407. $as_echo "$ac_cv_func__doprnt" >&6; }
  17408. if test "x$ac_cv_func__doprnt" = x""yes; then
  17409. cat >>confdefs.h <<\_ACEOF
  17410. #define HAVE_DOPRNT 1
  17411. _ACEOF
  17412. fi
  17413. fi
  17414. done
  17415. 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
  17416. do
  17417. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17418. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17419. $as_echo_n "checking for $ac_func... " >&6; }
  17420. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17421. $as_echo_n "(cached) " >&6
  17422. else
  17423. cat >conftest.$ac_ext <<_ACEOF
  17424. /* confdefs.h. */
  17425. _ACEOF
  17426. cat confdefs.h >>conftest.$ac_ext
  17427. cat >>conftest.$ac_ext <<_ACEOF
  17428. /* end confdefs.h. */
  17429. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17430. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17431. #define $ac_func innocuous_$ac_func
  17432. /* System header to define __stub macros and hopefully few prototypes,
  17433. which can conflict with char $ac_func (); below.
  17434. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17435. <limits.h> exists even on freestanding compilers. */
  17436. #ifdef __STDC__
  17437. # include <limits.h>
  17438. #else
  17439. # include <assert.h>
  17440. #endif
  17441. #undef $ac_func
  17442. /* Override any GCC internal prototype to avoid an error.
  17443. Use char because int might match the return type of a GCC
  17444. builtin and then its argument prototype would still apply. */
  17445. #ifdef __cplusplus
  17446. extern "C"
  17447. #endif
  17448. char $ac_func ();
  17449. /* The GNU C library defines this for functions which it implements
  17450. to always fail with ENOSYS. Some functions are actually named
  17451. something starting with __ and the normal name is an alias. */
  17452. #if defined __stub_$ac_func || defined __stub___$ac_func
  17453. choke me
  17454. #endif
  17455. int
  17456. main ()
  17457. {
  17458. return $ac_func ();
  17459. ;
  17460. return 0;
  17461. }
  17462. _ACEOF
  17463. rm -f conftest.$ac_objext conftest$ac_exeext
  17464. if { (ac_try="$ac_link"
  17465. case "(($ac_try" in
  17466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17467. *) ac_try_echo=$ac_try;;
  17468. esac
  17469. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17470. $as_echo "$ac_try_echo") >&5
  17471. (eval "$ac_link") 2>conftest.er1
  17472. ac_status=$?
  17473. grep -v '^ *+' conftest.er1 >conftest.err
  17474. rm -f conftest.er1
  17475. cat conftest.err >&5
  17476. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17477. (exit $ac_status); } && {
  17478. test -z "$ac_c_werror_flag" ||
  17479. test ! -s conftest.err
  17480. } && test -s conftest$ac_exeext && {
  17481. test "$cross_compiling" = yes ||
  17482. $as_test_x conftest$ac_exeext
  17483. }; then
  17484. eval "$as_ac_var=yes"
  17485. else
  17486. $as_echo "$as_me: failed program was:" >&5
  17487. sed 's/^/| /' conftest.$ac_ext >&5
  17488. eval "$as_ac_var=no"
  17489. fi
  17490. rm -rf conftest.dSYM
  17491. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17492. conftest$ac_exeext conftest.$ac_ext
  17493. fi
  17494. ac_res=`eval 'as_val=${'$as_ac_var'}
  17495. $as_echo "$as_val"'`
  17496. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17497. $as_echo "$ac_res" >&6; }
  17498. as_val=`eval 'as_val=${'$as_ac_var'}
  17499. $as_echo "$as_val"'`
  17500. if test "x$as_val" = x""yes; then
  17501. cat >>confdefs.h <<_ACEOF
  17502. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17503. _ACEOF
  17504. fi
  17505. done
  17506. { $as_echo "$as_me:$LINENO: checking for --enable-debug" >&5
  17507. $as_echo_n "checking for --enable-debug... " >&6; }
  17508. # Check whether --enable-debug was given.
  17509. if test "${enable_debug+set}" = set; then
  17510. enableval=$enable_debug;
  17511. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17512. $as_echo "yes" >&6; }
  17513. debug_defs="-DDEBUG -DMCC_DEBUG"
  17514. else
  17515. { $as_echo "$as_me:$LINENO: result: no" >&5
  17516. $as_echo "no" >&6; }
  17517. debug_defs=""
  17518. fi
  17519. # Used for legacy style packaging where we bundle all of the dependencies.
  17520. { $as_echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  17521. $as_echo_n "checking for --enable-bundle... " >&6; }
  17522. # Check whether --enable-bundle was given.
  17523. if test "${enable_bundle+set}" = set; then
  17524. enableval=$enable_bundle;
  17525. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17526. $as_echo "yes" >&6; }
  17527. bundle="1";
  17528. else
  17529. { $as_echo "$as_me:$LINENO: result: no" >&5
  17530. $as_echo "no" >&6; }
  17531. bundle="";
  17532. fi
  17533. if test "$bundle" = "1"; then
  17534. BUNDLE_TRUE=
  17535. BUNDLE_FALSE='#'
  17536. else
  17537. BUNDLE_TRUE='#'
  17538. BUNDLE_FALSE=
  17539. fi
  17540. # these enables are for optional or experimental features
  17541. if test -z "$enable_pam_passthru" ; then
  17542. enable_pam_passthru=yes # if not set on cmdline, set default
  17543. fi
  17544. { $as_echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  17545. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  17546. # Check whether --enable-pam-passthru was given.
  17547. if test "${enable_pam_passthru+set}" = set; then
  17548. enableval=$enable_pam_passthru;
  17549. fi
  17550. if test "$enable_pam_passthru" = yes ; then
  17551. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17552. $as_echo "yes" >&6; }
  17553. cat >>confdefs.h <<\_ACEOF
  17554. #define ENABLE_PAM_PASSTHRU 1
  17555. _ACEOF
  17556. else
  17557. { $as_echo "$as_me:$LINENO: result: no" >&5
  17558. $as_echo "no" >&6; }
  17559. fi
  17560. if test "$enable_pam_passthru" = "yes"; then
  17561. enable_pam_passthru_TRUE=
  17562. enable_pam_passthru_FALSE='#'
  17563. else
  17564. enable_pam_passthru_TRUE='#'
  17565. enable_pam_passthru_FALSE=
  17566. fi
  17567. if test -z "$enable_dna" ; then
  17568. enable_dna=yes # if not set on cmdline, set default
  17569. fi
  17570. { $as_echo "$as_me:$LINENO: checking for --enable-dna" >&5
  17571. $as_echo_n "checking for --enable-dna... " >&6; }
  17572. # Check whether --enable-dna was given.
  17573. if test "${enable_dna+set}" = set; then
  17574. enableval=$enable_dna;
  17575. fi
  17576. if test "$enable_dna" = yes ; then
  17577. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17578. $as_echo "yes" >&6; }
  17579. cat >>confdefs.h <<\_ACEOF
  17580. #define ENABLE_DNA 1
  17581. _ACEOF
  17582. else
  17583. { $as_echo "$as_me:$LINENO: result: no" >&5
  17584. $as_echo "no" >&6; }
  17585. fi
  17586. if test "$enable_dna" = "yes"; then
  17587. enable_dna_TRUE=
  17588. enable_dna_FALSE='#'
  17589. else
  17590. enable_dna_TRUE='#'
  17591. enable_dna_FALSE=
  17592. fi
  17593. if test -z "$enable_ldapi" ; then
  17594. enable_ldapi=yes # if not set on cmdline, set default
  17595. fi
  17596. { $as_echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  17597. $as_echo_n "checking for --enable-ldapi... " >&6; }
  17598. # Check whether --enable-ldapi was given.
  17599. if test "${enable_ldapi+set}" = set; then
  17600. enableval=$enable_ldapi;
  17601. fi
  17602. if test "$enable_ldapi" = yes ; then
  17603. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17604. $as_echo "yes" >&6; }
  17605. cat >>confdefs.h <<\_ACEOF
  17606. #define ENABLE_LDAPI 1
  17607. _ACEOF
  17608. else
  17609. { $as_echo "$as_me:$LINENO: result: no" >&5
  17610. $as_echo "no" >&6; }
  17611. fi
  17612. if test "$enable_ldapi" = "yes"; then
  17613. enable_ldapi_TRUE=
  17614. enable_ldapi_FALSE='#'
  17615. else
  17616. enable_ldapi_TRUE='#'
  17617. enable_ldapi_FALSE=
  17618. fi
  17619. if test -z "$enable_autobind" ; then
  17620. enable_autobind=no # if not set on cmdline, set default
  17621. fi
  17622. { $as_echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  17623. $as_echo_n "checking for --enable-autobind... " >&6; }
  17624. # Check whether --enable-autobind was given.
  17625. if test "${enable_autobind+set}" = set; then
  17626. enableval=$enable_autobind;
  17627. fi
  17628. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  17629. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17630. $as_echo "yes" >&6; }
  17631. cat >>confdefs.h <<\_ACEOF
  17632. #define ENABLE_AUTOBIND 1
  17633. _ACEOF
  17634. else
  17635. { $as_echo "$as_me:$LINENO: result: no" >&5
  17636. $as_echo "no" >&6; }
  17637. fi
  17638. if test "$enable_autobind" = "yes"; then
  17639. enable_autobind_TRUE=
  17640. enable_autobind_FALSE='#'
  17641. else
  17642. enable_autobind_TRUE='#'
  17643. enable_autobind_FALSE=
  17644. fi
  17645. if test -z "$enable_auto_dn_suffix" ; then
  17646. enable_auto_dn_suffix=no # if not set on cmdline, set default
  17647. fi
  17648. { $as_echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  17649. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  17650. # Check whether --enable-autobind was given.
  17651. if test "${enable_autobind+set}" = set; then
  17652. enableval=$enable_autobind;
  17653. fi
  17654. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  17655. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17656. $as_echo "yes" >&6; }
  17657. cat >>confdefs.h <<\_ACEOF
  17658. #define ENABLE_AUTO_DN_SUFFIX 1
  17659. _ACEOF
  17660. else
  17661. { $as_echo "$as_me:$LINENO: result: no" >&5
  17662. $as_echo "no" >&6; }
  17663. fi
  17664. if test "$enable_auto_dn_suffix" = "yes"; then
  17665. enable_auto_dn_suffix_TRUE=
  17666. enable_auto_dn_suffix_FALSE='#'
  17667. else
  17668. enable_auto_dn_suffix_TRUE='#'
  17669. enable_auto_dn_suffix_FALSE=
  17670. fi
  17671. if test -z "$enable_bitwise" ; then
  17672. enable_bitwise=yes # if not set on cmdline, set default
  17673. fi
  17674. { $as_echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  17675. $as_echo_n "checking for --enable-bitwise... " >&6; }
  17676. # Check whether --enable-bitwise was given.
  17677. if test "${enable_bitwise+set}" = set; then
  17678. enableval=$enable_bitwise;
  17679. fi
  17680. if test "$enable_bitwise" = yes ; then
  17681. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17682. $as_echo "yes" >&6; }
  17683. cat >>confdefs.h <<\_ACEOF
  17684. #define ENABLE_BITWISE 1
  17685. _ACEOF
  17686. else
  17687. { $as_echo "$as_me:$LINENO: result: no" >&5
  17688. $as_echo "no" >&6; }
  17689. fi
  17690. if test "$enable_bitwise" = "yes"; then
  17691. enable_bitwise_TRUE=
  17692. enable_bitwise_FALSE='#'
  17693. else
  17694. enable_bitwise_TRUE='#'
  17695. enable_bitwise_FALSE=
  17696. fi
  17697. if test -z "$enable_presence" ; then
  17698. enable_presence=no # if not set on cmdline, set default
  17699. fi
  17700. { $as_echo "$as_me:$LINENO: checking for --enable-presence" >&5
  17701. $as_echo_n "checking for --enable-presence... " >&6; }
  17702. # Check whether --enable-presence was given.
  17703. if test "${enable_presence+set}" = set; then
  17704. enableval=$enable_presence;
  17705. fi
  17706. if test "$enable_presence" = yes ; then
  17707. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17708. $as_echo "yes" >&6; }
  17709. cat >>confdefs.h <<\_ACEOF
  17710. #define ENABLE_PRESENCE 1
  17711. _ACEOF
  17712. else
  17713. { $as_echo "$as_me:$LINENO: result: no" >&5
  17714. $as_echo "no" >&6; }
  17715. fi
  17716. if test "$enable_presence" = "yes"; then
  17717. enable_presence_TRUE=
  17718. enable_presence_FALSE='#'
  17719. else
  17720. enable_presence_TRUE='#'
  17721. enable_presence_FALSE=
  17722. fi
  17723. # the default prefix - override with --prefix or --with-fhs
  17724. # BEGIN COPYRIGHT BLOCK
  17725. # Copyright (C) 2006 Red Hat, Inc.
  17726. # All rights reserved.
  17727. #
  17728. # This program is free software; you can redistribute it and/or
  17729. # modify it under the terms of the GNU General Public License
  17730. # as published by the Free Software Foundation; either version 2
  17731. # of the License, or (at your option) any later version.
  17732. #
  17733. # This program is distributed in the hope that it will be useful,
  17734. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17735. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17736. # GNU General Public License for more details.
  17737. #
  17738. # You should have received a copy of the GNU General Public License
  17739. # along with this program; if not, write to the Free Software
  17740. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17741. #
  17742. # END COPYRIGHT BLOCK
  17743. { $as_echo "$as_me:$LINENO: checking for FHS..." >&5
  17744. $as_echo "$as_me: checking for FHS..." >&6;}
  17745. # check for --with-fhs
  17746. { $as_echo "$as_me:$LINENO: checking for --with-fhs" >&5
  17747. $as_echo_n "checking for --with-fhs... " >&6; }
  17748. # Check whether --with-fhs was given.
  17749. if test "${with_fhs+set}" = set; then
  17750. withval=$with_fhs;
  17751. with_fhs=yes
  17752. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17753. $as_echo "yes" >&6; }
  17754. else
  17755. { $as_echo "$as_me:$LINENO: result: no" >&5
  17756. $as_echo "no" >&6; }
  17757. fi
  17758. if test "$with_fhs" = "yes"; then
  17759. cat >>confdefs.h <<\_ACEOF
  17760. #define IS_FHS 1
  17761. _ACEOF
  17762. fi
  17763. # check for --with-fhs-opt
  17764. { $as_echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  17765. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  17766. # Check whether --with-fhs-opt was given.
  17767. if test "${with_fhs_opt+set}" = set; then
  17768. withval=$with_fhs_opt;
  17769. with_fhs_opt=yes
  17770. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17771. $as_echo "yes" >&6; }
  17772. else
  17773. { $as_echo "$as_me:$LINENO: result: no" >&5
  17774. $as_echo "no" >&6; }
  17775. fi
  17776. if test "$with_fhs_opt" = "yes"; then
  17777. cat >>confdefs.h <<\_ACEOF
  17778. #define IS_FHS_OPT 1
  17779. _ACEOF
  17780. fi
  17781. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  17782. { { $as_echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  17783. $as_echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  17784. { (exit 1); exit 1; }; }
  17785. fi
  17786. # installation paths - by default, we store everything
  17787. # under the prefix. The with-fhs option will use /usr,
  17788. # /etc, and /var. The with-fhs-opt option will use the
  17789. # prefix, but it's sysconfdir and localstatedir will be
  17790. # /etc/opt, and /var/opt.
  17791. if test "$with_fhs_opt" = "yes"; then
  17792. # Override sysconfdir and localstatedir if FHS optional
  17793. # package was requested.
  17794. sysconfdir='/etc/opt'
  17795. localstatedir='/var/opt'
  17796. # relative to datadir
  17797. sampledatadir=/data
  17798. # relative to datadir
  17799. scripttemplatedir=/script-templates
  17800. # relative to datadir
  17801. updatedir=/updates
  17802. # relative to libdir
  17803. serverdir=
  17804. # relative to libdir
  17805. serverplugindir=/plugins
  17806. # relative to datadir
  17807. infdir=/inf
  17808. # relative to datadir
  17809. mibdir=/mibs
  17810. # location of property/resource files, relative to datadir
  17811. propertydir=/properties
  17812. # relative to libdir
  17813. perldir=/perl
  17814. else
  17815. if test "$with_fhs" = "yes"; then
  17816. ac_default_prefix=/usr
  17817. prefix=$ac_default_prefix
  17818. exec_prefix=$prefix
  17819. sysconfdir='/etc'
  17820. localstatedir='/var'
  17821. fi
  17822. # relative to datadir
  17823. sampledatadir=/$PACKAGE_NAME/data
  17824. # relative to datadir
  17825. scripttemplatedir=/$PACKAGE_NAME/script-templates
  17826. # relative to datadir
  17827. updatedir=/$PACKAGE_NAME/updates
  17828. # relative to libdir
  17829. serverdir=/$PACKAGE_NAME
  17830. # relative to libdir
  17831. serverplugindir=/$PACKAGE_NAME/plugins
  17832. # relative to datadir
  17833. infdir=/$PACKAGE_NAME/inf
  17834. # relative to datadir
  17835. mibdir=/$PACKAGE_NAME/mibs
  17836. # location of property/resource files, relative to datadir
  17837. propertydir=/$PACKAGE_NAME/properties
  17838. # relative to libdir
  17839. perldir=/$PACKAGE_NAME/perl
  17840. fi
  17841. # if mandir is the default value, override it
  17842. # otherwise, the user must have set it - just use it
  17843. if test X"$mandir" = X'${prefix}/man' ; then
  17844. mandir='$(datadir)/man'
  17845. fi
  17846. # Shared paths for all layouts
  17847. # relative to sysconfdir
  17848. configdir=/$PACKAGE_NAME/config
  17849. # relative to sysconfdir
  17850. schemadir=/$PACKAGE_NAME/schema
  17851. # default user, group
  17852. defaultuser=nobody
  17853. defaultgroup=nobody
  17854. # check for --with-instconfigdir
  17855. { $as_echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  17856. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  17857. # Check whether --with-instconfigdir was given.
  17858. if test "${with_instconfigdir+set}" = set; then
  17859. withval=$with_instconfigdir;
  17860. if test $withval = yes ; then
  17861. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  17862. $as_echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  17863. { (exit 1); exit 1; }; }
  17864. fi
  17865. instconfigdir="$withval"
  17866. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  17867. $as_echo "$withval" >&6; }
  17868. else
  17869. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  17870. { $as_echo "$as_me:$LINENO: result: no" >&5
  17871. $as_echo "no" >&6; }
  17872. fi
  17873. # WINNT should be true if building on Windows system not using
  17874. # cygnus, mingw, or the like and using cmd.exe as the shell
  17875. if false; then
  17876. WINNT_TRUE=
  17877. WINNT_FALSE='#'
  17878. else
  17879. WINNT_TRUE='#'
  17880. WINNT_FALSE=
  17881. fi
  17882. # Deal with platform dependent defines
  17883. # initdir is the location for the SysV init scripts - very heavily platform
  17884. # dependent and not specified in fhs or lsb
  17885. initdir='$(sysconfdir)/rc.d'
  17886. { $as_echo "$as_me:$LINENO: checking for --with-initddir" >&5
  17887. $as_echo_n "checking for --with-initddir... " >&6; }
  17888. # Check whether --with-initddir was given.
  17889. if test "${with_initddir+set}" = set; then
  17890. withval=$with_initddir;
  17891. if test "$withval" = yes -o "$withval" = no ; then
  17892. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-initddir" >&5
  17893. $as_echo "$as_me: error: Please specify a full path with --with-initddir" >&2;}
  17894. { (exit 1); exit 1; }; }
  17895. fi
  17896. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  17897. $as_echo "$withval" >&6; }
  17898. else
  17899. { $as_echo "$as_me:$LINENO: result: no" >&5
  17900. $as_echo "no" >&6; }
  17901. fi
  17902. # on most platforms, we will just use perl from PATH
  17903. # On some platforms, we cannot. Why not just use any old
  17904. # perl? Because of perldap. We use a perldap that is
  17905. # compiled to either 32bit or 64bit, so we must use a native
  17906. # perl binary compiled with the same bitsize. On Solaris
  17907. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  17908. # those with our 64 bit compiled product.
  17909. perlexec='/usr/bin/env perl'
  17910. case $host in
  17911. *-*-linux*)
  17912. cat >>confdefs.h <<\_ACEOF
  17913. #define XP_UNIX 1
  17914. _ACEOF
  17915. cat >>confdefs.h <<\_ACEOF
  17916. #define Linux 1
  17917. _ACEOF
  17918. cat >>confdefs.h <<\_ACEOF
  17919. #define LINUX 1
  17920. _ACEOF
  17921. cat >>confdefs.h <<\_ACEOF
  17922. #define LINUX2_0 1
  17923. _ACEOF
  17924. cat >>confdefs.h <<\_ACEOF
  17925. #define LINUX2_2 1
  17926. _ACEOF
  17927. cat >>confdefs.h <<\_ACEOF
  17928. #define LINUX2_4 1
  17929. _ACEOF
  17930. cat >>confdefs.h <<\_ACEOF
  17931. #define _GNU_SOURCE 1
  17932. _ACEOF
  17933. platform="linux"
  17934. initdir='$(sysconfdir)/rc.d/init.d'
  17935. # do arch specific linux stuff here
  17936. case $host in
  17937. i*86-*-linux*)
  17938. cat >>confdefs.h <<\_ACEOF
  17939. #define CPU_x86 /**/
  17940. _ACEOF
  17941. cat >>confdefs.h <<\_ACEOF
  17942. #define ATOMIC_64BIT_OPERATIONS 1
  17943. _ACEOF
  17944. { $as_echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  17945. $as_echo_n "checking whether __sync_add_and_fetch is declared... " >&6; }
  17946. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  17947. $as_echo_n "(cached) " >&6
  17948. else
  17949. cat >conftest.$ac_ext <<_ACEOF
  17950. /* confdefs.h. */
  17951. _ACEOF
  17952. cat confdefs.h >>conftest.$ac_ext
  17953. cat >>conftest.$ac_ext <<_ACEOF
  17954. /* end confdefs.h. */
  17955. $ac_includes_default
  17956. int
  17957. main ()
  17958. {
  17959. #ifndef __sync_add_and_fetch
  17960. (void) __sync_add_and_fetch;
  17961. #endif
  17962. ;
  17963. return 0;
  17964. }
  17965. _ACEOF
  17966. rm -f conftest.$ac_objext
  17967. if { (ac_try="$ac_compile"
  17968. case "(($ac_try" in
  17969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17970. *) ac_try_echo=$ac_try;;
  17971. esac
  17972. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17973. $as_echo "$ac_try_echo") >&5
  17974. (eval "$ac_compile") 2>conftest.er1
  17975. ac_status=$?
  17976. grep -v '^ *+' conftest.er1 >conftest.err
  17977. rm -f conftest.er1
  17978. cat conftest.err >&5
  17979. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17980. (exit $ac_status); } && {
  17981. test -z "$ac_c_werror_flag" ||
  17982. test ! -s conftest.err
  17983. } && test -s conftest.$ac_objext; then
  17984. ac_cv_have_decl___sync_add_and_fetch=yes
  17985. else
  17986. $as_echo "$as_me: failed program was:" >&5
  17987. sed 's/^/| /' conftest.$ac_ext >&5
  17988. ac_cv_have_decl___sync_add_and_fetch=no
  17989. fi
  17990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17991. fi
  17992. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  17993. $as_echo "$ac_cv_have_decl___sync_add_and_fetch" >&6; }
  17994. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then
  17995. cat >>confdefs.h <<_ACEOF
  17996. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  17997. _ACEOF
  17998. else
  17999. cat >>confdefs.h <<_ACEOF
  18000. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  18001. _ACEOF
  18002. fi
  18003. ;;
  18004. x86_64-*-linux*)
  18005. cat >>confdefs.h <<\_ACEOF
  18006. #define CPU_x86_64 /**/
  18007. _ACEOF
  18008. cat >>confdefs.h <<\_ACEOF
  18009. #define ATOMIC_64BIT_OPERATIONS 1
  18010. _ACEOF
  18011. { $as_echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  18012. $as_echo_n "checking whether __sync_add_and_fetch is declared... " >&6; }
  18013. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  18014. $as_echo_n "(cached) " >&6
  18015. else
  18016. cat >conftest.$ac_ext <<_ACEOF
  18017. /* confdefs.h. */
  18018. _ACEOF
  18019. cat confdefs.h >>conftest.$ac_ext
  18020. cat >>conftest.$ac_ext <<_ACEOF
  18021. /* end confdefs.h. */
  18022. $ac_includes_default
  18023. int
  18024. main ()
  18025. {
  18026. #ifndef __sync_add_and_fetch
  18027. (void) __sync_add_and_fetch;
  18028. #endif
  18029. ;
  18030. return 0;
  18031. }
  18032. _ACEOF
  18033. rm -f conftest.$ac_objext
  18034. if { (ac_try="$ac_compile"
  18035. case "(($ac_try" in
  18036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18037. *) ac_try_echo=$ac_try;;
  18038. esac
  18039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18040. $as_echo "$ac_try_echo") >&5
  18041. (eval "$ac_compile") 2>conftest.er1
  18042. ac_status=$?
  18043. grep -v '^ *+' conftest.er1 >conftest.err
  18044. rm -f conftest.er1
  18045. cat conftest.err >&5
  18046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18047. (exit $ac_status); } && {
  18048. test -z "$ac_c_werror_flag" ||
  18049. test ! -s conftest.err
  18050. } && test -s conftest.$ac_objext; then
  18051. ac_cv_have_decl___sync_add_and_fetch=yes
  18052. else
  18053. $as_echo "$as_me: failed program was:" >&5
  18054. sed 's/^/| /' conftest.$ac_ext >&5
  18055. ac_cv_have_decl___sync_add_and_fetch=no
  18056. fi
  18057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18058. fi
  18059. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  18060. $as_echo "$ac_cv_have_decl___sync_add_and_fetch" >&6; }
  18061. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then
  18062. cat >>confdefs.h <<_ACEOF
  18063. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  18064. _ACEOF
  18065. else
  18066. cat >>confdefs.h <<_ACEOF
  18067. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  18068. _ACEOF
  18069. fi
  18070. ;;
  18071. esac
  18072. # some programs use the native thread library directly
  18073. THREADLIB=-lpthread
  18074. THREADLIB=$THREADLIB
  18075. LIBCRYPT=-lcrypt
  18076. LIBCRYPT=$LIBCRYPT
  18077. ;;
  18078. ia64-hp-hpux*)
  18079. cat >>confdefs.h <<\_ACEOF
  18080. #define XP_UNIX 1
  18081. _ACEOF
  18082. cat >>confdefs.h <<\_ACEOF
  18083. #define hpux 1
  18084. _ACEOF
  18085. cat >>confdefs.h <<\_ACEOF
  18086. #define HPUX 1
  18087. _ACEOF
  18088. cat >>confdefs.h <<\_ACEOF
  18089. #define HPUX11 1
  18090. _ACEOF
  18091. cat >>confdefs.h <<\_ACEOF
  18092. #define HPUX11_23 1
  18093. _ACEOF
  18094. cat >>confdefs.h <<\_ACEOF
  18095. #define CPU_ia64 /**/
  18096. _ACEOF
  18097. cat >>confdefs.h <<\_ACEOF
  18098. #define OS_hpux 1
  18099. _ACEOF
  18100. cat >>confdefs.h <<\_ACEOF
  18101. #define _POSIX_C_SOURCE 199506L
  18102. _ACEOF
  18103. cat >>confdefs.h <<\_ACEOF
  18104. #define _HPUX_SOURCE 1
  18105. _ACEOF
  18106. cat >>confdefs.h <<\_ACEOF
  18107. #define _INCLUDE_STDC__SOURCE_199901 1
  18108. _ACEOF
  18109. cat >>confdefs.h <<\_ACEOF
  18110. #define ATOMIC_64BIT_OPERATIONS 1
  18111. _ACEOF
  18112. # assume 64 bit
  18113. perlexec='/opt/perl_64/bin/perl'
  18114. platform="hpux"
  18115. initconfigdir="/$PACKAGE_NAME/config"
  18116. # HPUX doesn't use /etc for this
  18117. initdir=/init.d
  18118. ;;
  18119. hppa*-hp-hpux*)
  18120. cat >>confdefs.h <<\_ACEOF
  18121. #define XP_UNIX 1
  18122. _ACEOF
  18123. cat >>confdefs.h <<\_ACEOF
  18124. #define hpux 1
  18125. _ACEOF
  18126. cat >>confdefs.h <<\_ACEOF
  18127. #define HPUX 1
  18128. _ACEOF
  18129. cat >>confdefs.h <<\_ACEOF
  18130. #define HPUX11 1
  18131. _ACEOF
  18132. cat >>confdefs.h <<\_ACEOF
  18133. #define HPUX11_11 1
  18134. _ACEOF
  18135. cat >>confdefs.h <<\_ACEOF
  18136. #define CPU_hppa /**/
  18137. _ACEOF
  18138. cat >>confdefs.h <<\_ACEOF
  18139. #define OS_hpux 1
  18140. _ACEOF
  18141. cat >>confdefs.h <<\_ACEOF
  18142. #define _POSIX_C_SOURCE 199506L
  18143. _ACEOF
  18144. cat >>confdefs.h <<\_ACEOF
  18145. #define _HPUX_SOURCE 1
  18146. _ACEOF
  18147. cat >>confdefs.h <<\_ACEOF
  18148. #define _INCLUDE_STDC__SOURCE_199901 1
  18149. _ACEOF
  18150. cat >>confdefs.h <<\_ACEOF
  18151. #define ATOMIC_64BIT_OPERATIONS 1
  18152. _ACEOF
  18153. # assume 64 bit
  18154. initconfigdir="/$PACKAGE_NAME/config"
  18155. perlexec='/opt/perl_64/bin/perl'
  18156. platform="hpux"
  18157. # HPUX doesn't use /etc for this
  18158. initdir=/init.d
  18159. ;;
  18160. sparc-sun-solaris*)
  18161. cat >>confdefs.h <<\_ACEOF
  18162. #define XP_UNIX 1
  18163. _ACEOF
  18164. cat >>confdefs.h <<\_ACEOF
  18165. #define SVR4 1
  18166. _ACEOF
  18167. cat >>confdefs.h <<\_ACEOF
  18168. #define __svr4 1
  18169. _ACEOF
  18170. cat >>confdefs.h <<\_ACEOF
  18171. #define __svr4__ 1
  18172. _ACEOF
  18173. cat >>confdefs.h <<\_ACEOF
  18174. #define _SVID_GETTOD 1
  18175. _ACEOF
  18176. cat >>confdefs.h <<\_ACEOF
  18177. #define SOLARIS 1
  18178. _ACEOF
  18179. cat >>confdefs.h <<\_ACEOF
  18180. #define CPU_sparc /**/
  18181. _ACEOF
  18182. cat >>confdefs.h <<\_ACEOF
  18183. #define OS_solaris 1
  18184. _ACEOF
  18185. cat >>confdefs.h <<\_ACEOF
  18186. #define sunos5 1
  18187. _ACEOF
  18188. cat >>confdefs.h <<\_ACEOF
  18189. #define OSVERSION 509
  18190. _ACEOF
  18191. cat >>confdefs.h <<\_ACEOF
  18192. #define _REENTRANT 1
  18193. _ACEOF
  18194. cat >>confdefs.h <<\_ACEOF
  18195. #define NO_DOMAINNAME 1
  18196. _ACEOF
  18197. cat >>confdefs.h <<\_ACEOF
  18198. #define ATOMIC_64BIT_OPERATIONS 1
  18199. _ACEOF
  18200. LIBSOCKET=-lsocket
  18201. LIBSOCKET=$LIBSOCKET
  18202. LIBNSL=-lnsl
  18203. LIBNSL=$LIBNSL
  18204. LIBDL=-ldl
  18205. LIBDL=$LIBDL
  18206. LIBCSTD=-lCstd
  18207. LIBCSTD=$LIBCSTD
  18208. LIBCRUN=-lCrun
  18209. LIBCRUN=$LIBCRUN
  18210. platform="solaris"
  18211. # assume 64 bit
  18212. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  18213. initdir='$(sysconfdir)/init.d'
  18214. ;;
  18215. *)
  18216. platform=""
  18217. ;;
  18218. esac
  18219. # cmd line overrides default setting above
  18220. if test -n "$with_initddir" ; then
  18221. initdir="$with_initddir"
  18222. fi
  18223. # set default initconfigdir if not already set
  18224. # value will be set so as to be relative to $(sysconfdir)
  18225. if test -z "$initconfigdir" ; then
  18226. if test -d /etc/sysconfig ; then
  18227. initconfigdir=/sysconfig
  18228. elif test -d /etc/default ; then
  18229. initconfigdir=/default
  18230. else
  18231. initconfigdir="/$PACKAGE_NAME/config"
  18232. fi
  18233. fi
  18234. if test "$platform" = "hpux"; then
  18235. HPUX_TRUE=
  18236. HPUX_FALSE='#'
  18237. else
  18238. HPUX_TRUE='#'
  18239. HPUX_FALSE=
  18240. fi
  18241. if test "$platform" = "solaris"; then
  18242. SOLARIS_TRUE=
  18243. SOLARIS_FALSE='#'
  18244. else
  18245. SOLARIS_TRUE='#'
  18246. SOLARIS_FALSE=
  18247. fi
  18248. # Check for library dependencies
  18249. # BEGIN COPYRIGHT BLOCK
  18250. # Copyright (C) 2007 Red Hat, Inc.
  18251. # All rights reserved.
  18252. #
  18253. # This program is free software; you can redistribute it and/or
  18254. # modify it under the terms of the GNU General Public License
  18255. # as published by the Free Software Foundation; either version 2
  18256. # of the License, or (at your option) any later version.
  18257. #
  18258. # This program is distributed in the hope that it will be useful,
  18259. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18260. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18261. # GNU General Public License for more details.
  18262. #
  18263. # You should have received a copy of the GNU General Public License
  18264. # along with this program; if not, write to the Free Software
  18265. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18266. #
  18267. # END COPYRIGHT BLOCK
  18268. { $as_echo "$as_me:$LINENO: checking for NSPR..." >&5
  18269. $as_echo "$as_me: checking for NSPR..." >&6;}
  18270. # check for --with-nspr
  18271. { $as_echo "$as_me:$LINENO: checking for --with-nspr" >&5
  18272. $as_echo_n "checking for --with-nspr... " >&6; }
  18273. # Check whether --with-nspr was given.
  18274. if test "${with_nspr+set}" = set; then
  18275. withval=$with_nspr;
  18276. if test "$withval" = "yes"
  18277. then
  18278. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18279. $as_echo "yes" >&6; }
  18280. elif test "$withval" = "no"
  18281. then
  18282. { $as_echo "$as_me:$LINENO: result: no" >&5
  18283. $as_echo "no" >&6; }
  18284. { { $as_echo "$as_me:$LINENO: error: NSPR is required." >&5
  18285. $as_echo "$as_me: error: NSPR is required." >&2;}
  18286. { (exit 1); exit 1; }; }
  18287. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  18288. then
  18289. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18290. $as_echo "using $withval" >&6; }
  18291. NSPRDIR=$withval
  18292. nspr_inc="-I$NSPRDIR/include"
  18293. nspr_lib="-L$NSPRDIR/lib"
  18294. nspr_libdir="$NSPRDIR/lib"
  18295. else
  18296. echo
  18297. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18298. $as_echo "$as_me: error: $withval not found" >&2;}
  18299. { (exit 1); exit 1; }; }
  18300. fi
  18301. else
  18302. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18303. $as_echo "yes" >&6; }
  18304. fi
  18305. # check for --with-nspr-inc
  18306. { $as_echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  18307. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  18308. # Check whether --with-nspr-inc was given.
  18309. if test "${with_nspr_inc+set}" = set; then
  18310. withval=$with_nspr_inc;
  18311. if test -e "$withval"/nspr.h
  18312. then
  18313. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18314. $as_echo "using $withval" >&6; }
  18315. nspr_inc="-I$withval"
  18316. else
  18317. echo
  18318. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18319. $as_echo "$as_me: error: $withval not found" >&2;}
  18320. { (exit 1); exit 1; }; }
  18321. fi
  18322. else
  18323. { $as_echo "$as_me:$LINENO: result: no" >&5
  18324. $as_echo "no" >&6; }
  18325. fi
  18326. # check for --with-nspr-lib
  18327. { $as_echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  18328. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  18329. # Check whether --with-nspr-lib was given.
  18330. if test "${with_nspr_lib+set}" = set; then
  18331. withval=$with_nspr_lib;
  18332. if test -d "$withval"
  18333. then
  18334. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18335. $as_echo "using $withval" >&6; }
  18336. nspr_lib="-L$withval"
  18337. nspr_libdir="$withval"
  18338. else
  18339. echo
  18340. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18341. $as_echo "$as_me: error: $withval not found" >&2;}
  18342. { (exit 1); exit 1; }; }
  18343. fi
  18344. else
  18345. { $as_echo "$as_me:$LINENO: result: no" >&5
  18346. $as_echo "no" >&6; }
  18347. fi
  18348. # if NSPR is not found yet, try pkg-config
  18349. # last resort
  18350. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  18351. # Extract the first word of "pkg-config", so it can be a program name with args.
  18352. set dummy pkg-config; ac_word=$2
  18353. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18354. $as_echo_n "checking for $ac_word... " >&6; }
  18355. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18356. $as_echo_n "(cached) " >&6
  18357. else
  18358. case $PKG_CONFIG in
  18359. [\\/]* | ?:[\\/]*)
  18360. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18361. ;;
  18362. *)
  18363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18364. for as_dir in $PATH
  18365. do
  18366. IFS=$as_save_IFS
  18367. test -z "$as_dir" && as_dir=.
  18368. for ac_exec_ext in '' $ac_executable_extensions; do
  18369. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18370. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18371. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18372. break 2
  18373. fi
  18374. done
  18375. done
  18376. IFS=$as_save_IFS
  18377. ;;
  18378. esac
  18379. fi
  18380. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18381. if test -n "$PKG_CONFIG"; then
  18382. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18383. $as_echo "$PKG_CONFIG" >&6; }
  18384. else
  18385. { $as_echo "$as_me:$LINENO: result: no" >&5
  18386. $as_echo "no" >&6; }
  18387. fi
  18388. { $as_echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  18389. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  18390. if test -n "$PKG_CONFIG"; then
  18391. if $PKG_CONFIG --exists nspr; then
  18392. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  18393. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  18394. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  18395. { $as_echo "$as_me:$LINENO: result: using system NSPR" >&5
  18396. $as_echo "using system NSPR" >&6; }
  18397. elif $PKG_CONFIG --exists dirsec-nspr; then
  18398. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  18399. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  18400. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  18401. { $as_echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  18402. $as_echo "using system dirsec NSPR" >&6; }
  18403. else
  18404. { { $as_echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  18405. $as_echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  18406. { (exit 1); exit 1; }; }
  18407. fi
  18408. fi
  18409. fi
  18410. # BEGIN COPYRIGHT BLOCK
  18411. # Copyright (C) 2007 Red Hat, Inc.
  18412. # All rights reserved.
  18413. #
  18414. # This program is free software; you can redistribute it and/or
  18415. # modify it under the terms of the GNU General Public License
  18416. # as published by the Free Software Foundation; either version 2
  18417. # of the License, or (at your option) any later version.
  18418. #
  18419. # This program is distributed in the hope that it will be useful,
  18420. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18421. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18422. # GNU General Public License for more details.
  18423. #
  18424. # You should have received a copy of the GNU General Public License
  18425. # along with this program; if not, write to the Free Software
  18426. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18427. #
  18428. # END COPYRIGHT BLOCK
  18429. { $as_echo "$as_me:$LINENO: checking for NSS..." >&5
  18430. $as_echo "$as_me: checking for NSS..." >&6;}
  18431. # check for --with-nss
  18432. { $as_echo "$as_me:$LINENO: checking for --with-nss" >&5
  18433. $as_echo_n "checking for --with-nss... " >&6; }
  18434. # Check whether --with-nss was given.
  18435. if test "${with_nss+set}" = set; then
  18436. withval=$with_nss;
  18437. if test "$withval" = "yes"
  18438. then
  18439. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18440. $as_echo "yes" >&6; }
  18441. elif test "$withval" = "no"
  18442. then
  18443. { $as_echo "$as_me:$LINENO: result: no" >&5
  18444. $as_echo "no" >&6; }
  18445. { { $as_echo "$as_me:$LINENO: error: NSS is required." >&5
  18446. $as_echo "$as_me: error: NSS is required." >&2;}
  18447. { (exit 1); exit 1; }; }
  18448. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  18449. then
  18450. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18451. $as_echo "using $withval" >&6; }
  18452. NSSDIR=$withval
  18453. nss_inc="-I$NSSDIR/include"
  18454. nss_lib="-L$NSSDIR/lib"
  18455. nss_libdir="$NSSDIR/lib"
  18456. else
  18457. echo
  18458. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18459. $as_echo "$as_me: error: $withval not found" >&2;}
  18460. { (exit 1); exit 1; }; }
  18461. fi
  18462. else
  18463. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18464. $as_echo "yes" >&6; }
  18465. fi
  18466. # check for --with-nss-inc
  18467. { $as_echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  18468. $as_echo_n "checking for --with-nss-inc... " >&6; }
  18469. # Check whether --with-nss-inc was given.
  18470. if test "${with_nss_inc+set}" = set; then
  18471. withval=$with_nss_inc;
  18472. if test -e "$withval"/nss.h
  18473. then
  18474. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18475. $as_echo "using $withval" >&6; }
  18476. nss_inc="-I$withval"
  18477. else
  18478. echo
  18479. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18480. $as_echo "$as_me: error: $withval not found" >&2;}
  18481. { (exit 1); exit 1; }; }
  18482. fi
  18483. else
  18484. { $as_echo "$as_me:$LINENO: result: no" >&5
  18485. $as_echo "no" >&6; }
  18486. fi
  18487. # check for --with-nss-lib
  18488. { $as_echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  18489. $as_echo_n "checking for --with-nss-lib... " >&6; }
  18490. # Check whether --with-nss-lib was given.
  18491. if test "${with_nss_lib+set}" = set; then
  18492. withval=$with_nss_lib;
  18493. if test -d "$withval"
  18494. then
  18495. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18496. $as_echo "using $withval" >&6; }
  18497. nss_lib="-L$withval"
  18498. nss_libdir="$withval"
  18499. else
  18500. echo
  18501. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18502. $as_echo "$as_me: error: $withval not found" >&2;}
  18503. { (exit 1); exit 1; }; }
  18504. fi
  18505. else
  18506. { $as_echo "$as_me:$LINENO: result: no" >&5
  18507. $as_echo "no" >&6; }
  18508. fi
  18509. # if NSS is not found yet, try pkg-config
  18510. # last resort
  18511. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  18512. # Extract the first word of "pkg-config", so it can be a program name with args.
  18513. set dummy pkg-config; ac_word=$2
  18514. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18515. $as_echo_n "checking for $ac_word... " >&6; }
  18516. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18517. $as_echo_n "(cached) " >&6
  18518. else
  18519. case $PKG_CONFIG in
  18520. [\\/]* | ?:[\\/]*)
  18521. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18522. ;;
  18523. *)
  18524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18525. for as_dir in $PATH
  18526. do
  18527. IFS=$as_save_IFS
  18528. test -z "$as_dir" && as_dir=.
  18529. for ac_exec_ext in '' $ac_executable_extensions; do
  18530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18531. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18532. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18533. break 2
  18534. fi
  18535. done
  18536. done
  18537. IFS=$as_save_IFS
  18538. ;;
  18539. esac
  18540. fi
  18541. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18542. if test -n "$PKG_CONFIG"; then
  18543. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18544. $as_echo "$PKG_CONFIG" >&6; }
  18545. else
  18546. { $as_echo "$as_me:$LINENO: result: no" >&5
  18547. $as_echo "no" >&6; }
  18548. fi
  18549. { $as_echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  18550. $as_echo_n "checking for nss with pkg-config... " >&6; }
  18551. if test -n "$PKG_CONFIG"; then
  18552. if $PKG_CONFIG --exists nss; then
  18553. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  18554. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  18555. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  18556. { $as_echo "$as_me:$LINENO: result: using system NSS" >&5
  18557. $as_echo "using system NSS" >&6; }
  18558. elif $PKG_CONFIG --exists dirsec-nss; then
  18559. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  18560. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  18561. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  18562. { $as_echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  18563. $as_echo "using system dirsec NSS" >&6; }
  18564. else
  18565. { { $as_echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  18566. $as_echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  18567. { (exit 1); exit 1; }; }
  18568. fi
  18569. fi
  18570. fi
  18571. # BEGIN COPYRIGHT BLOCK
  18572. # Copyright (C) 2009 Red Hat, Inc.
  18573. # All rights reserved.
  18574. #
  18575. # This program is free software; you can redistribute it and/or
  18576. # modify it under the terms of the GNU General Public License
  18577. # as published by the Free Software Foundation; either version 2
  18578. # of the License, or (at your option) any later version.
  18579. #
  18580. # This program is distributed in the hope that it will be useful,
  18581. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18582. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18583. # GNU General Public License for more details.
  18584. #
  18585. # You should have received a copy of the GNU General Public License
  18586. # along with this program; if not, write to the Free Software
  18587. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18588. #
  18589. # END COPYRIGHT BLOCK
  18590. { $as_echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  18591. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  18592. # check for --with-openldap
  18593. { $as_echo "$as_me:$LINENO: checking for --with-openldap" >&5
  18594. $as_echo_n "checking for --with-openldap... " >&6; }
  18595. # Check whether --with-openldap was given.
  18596. if test "${with_openldap+set}" = set; then
  18597. withval=$with_openldap;
  18598. if test "$withval" = yes
  18599. then
  18600. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  18601. $as_echo "using system OpenLDAP" >&6; }
  18602. elif test "$withval" = no
  18603. then
  18604. { $as_echo "$as_me:$LINENO: result: no" >&5
  18605. $as_echo "no" >&6; }
  18606. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  18607. then
  18608. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18609. $as_echo "using $withval" >&6; }
  18610. OPENLDAPDIR=$withval
  18611. openldap_incdir="$OPENLDAPDIR/include"
  18612. openldap_inc="-I$openldap_incdir"
  18613. openldap_lib="-L$OPENLDAPDIR/lib"
  18614. openldap_libdir="$OPENLDAPDIR/lib"
  18615. openldap_bindir="$OPENLDAPDIR/bin"
  18616. with_openldap=yes
  18617. else
  18618. echo
  18619. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18620. $as_echo "$as_me: error: $withval not found" >&2;}
  18621. { (exit 1); exit 1; }; }
  18622. fi
  18623. else
  18624. { $as_echo "$as_me:$LINENO: result: no" >&5
  18625. $as_echo "no" >&6; }
  18626. fi
  18627. # check for --with-openldap-inc
  18628. { $as_echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  18629. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  18630. # Check whether --with-openldap-inc was given.
  18631. if test "${with_openldap_inc+set}" = set; then
  18632. withval=$with_openldap_inc;
  18633. if test -e "$withval"/ldap.h
  18634. then
  18635. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18636. $as_echo "using $withval" >&6; }
  18637. openldap_incdir="$withval"
  18638. openldap_inc="-I$withval"
  18639. with_openldap=yes
  18640. else
  18641. echo
  18642. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18643. $as_echo "$as_me: error: $withval not found" >&2;}
  18644. { (exit 1); exit 1; }; }
  18645. fi
  18646. else
  18647. { $as_echo "$as_me:$LINENO: result: no" >&5
  18648. $as_echo "no" >&6; }
  18649. fi
  18650. # check for --with-openldap-lib
  18651. { $as_echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  18652. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  18653. # Check whether --with-openldap-lib was given.
  18654. if test "${with_openldap_lib+set}" = set; then
  18655. withval=$with_openldap_lib;
  18656. if test -d "$withval"
  18657. then
  18658. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18659. $as_echo "using $withval" >&6; }
  18660. openldap_lib="-L$withval"
  18661. openldap_libdir="$withval"
  18662. with_openldap=yes
  18663. else
  18664. echo
  18665. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18666. $as_echo "$as_me: error: $withval not found" >&2;}
  18667. { (exit 1); exit 1; }; }
  18668. fi
  18669. else
  18670. { $as_echo "$as_me:$LINENO: result: no" >&5
  18671. $as_echo "no" >&6; }
  18672. fi
  18673. # check for --with-openldap-bin
  18674. { $as_echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  18675. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  18676. # Check whether --with-openldap-bin was given.
  18677. if test "${with_openldap_bin+set}" = set; then
  18678. withval=$with_openldap_bin;
  18679. if test -d "$withval"
  18680. then
  18681. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18682. $as_echo "using $withval" >&6; }
  18683. openldap_bindir="$withval"
  18684. with_openldap=yes
  18685. else
  18686. echo
  18687. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18688. $as_echo "$as_me: error: $withval not found" >&2;}
  18689. { (exit 1); exit 1; }; }
  18690. fi
  18691. else
  18692. { $as_echo "$as_me:$LINENO: result: no" >&5
  18693. $as_echo "no" >&6; }
  18694. fi
  18695. # if OPENLDAP is not found yet, try pkg-config
  18696. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  18697. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  18698. # Extract the first word of "pkg-config", so it can be a program name with args.
  18699. set dummy pkg-config; ac_word=$2
  18700. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18701. $as_echo_n "checking for $ac_word... " >&6; }
  18702. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18703. $as_echo_n "(cached) " >&6
  18704. else
  18705. case $PKG_CONFIG in
  18706. [\\/]* | ?:[\\/]*)
  18707. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18708. ;;
  18709. *)
  18710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18711. for as_dir in $PATH
  18712. do
  18713. IFS=$as_save_IFS
  18714. test -z "$as_dir" && as_dir=.
  18715. for ac_exec_ext in '' $ac_executable_extensions; do
  18716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18717. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18718. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18719. break 2
  18720. fi
  18721. done
  18722. done
  18723. IFS=$as_save_IFS
  18724. ;;
  18725. esac
  18726. fi
  18727. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18728. if test -n "$PKG_CONFIG"; then
  18729. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18730. $as_echo "$PKG_CONFIG" >&6; }
  18731. else
  18732. { $as_echo "$as_me:$LINENO: result: no" >&5
  18733. $as_echo "no" >&6; }
  18734. fi
  18735. { $as_echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  18736. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  18737. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  18738. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  18739. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  18740. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  18741. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  18742. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  18743. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  18744. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  18745. else
  18746. openldap_incdir="/usr/include"
  18747. openldap_inc="-I$openldap_incdir"
  18748. { $as_echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  18749. $as_echo "no OpenLDAP pkg-config files" >&6; }
  18750. fi
  18751. fi
  18752. fi
  18753. if test "$with_openldap" = yes ; then
  18754. save_cppflags="$CPPFLAGS"
  18755. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  18756. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  18757. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  18758. $as_echo_n "checking for ldap_features.h... " >&6; }
  18759. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  18760. $as_echo_n "(cached) " >&6
  18761. fi
  18762. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  18763. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  18764. else
  18765. # Is the header compilable?
  18766. { $as_echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  18767. $as_echo_n "checking ldap_features.h usability... " >&6; }
  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. #include <ldap_features.h>
  18776. _ACEOF
  18777. rm -f conftest.$ac_objext
  18778. if { (ac_try="$ac_compile"
  18779. case "(($ac_try" in
  18780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18781. *) ac_try_echo=$ac_try;;
  18782. esac
  18783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18784. $as_echo "$ac_try_echo") >&5
  18785. (eval "$ac_compile") 2>conftest.er1
  18786. ac_status=$?
  18787. grep -v '^ *+' conftest.er1 >conftest.err
  18788. rm -f conftest.er1
  18789. cat conftest.err >&5
  18790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18791. (exit $ac_status); } && {
  18792. test -z "$ac_c_werror_flag" ||
  18793. test ! -s conftest.err
  18794. } && test -s conftest.$ac_objext; then
  18795. ac_header_compiler=yes
  18796. else
  18797. $as_echo "$as_me: failed program was:" >&5
  18798. sed 's/^/| /' conftest.$ac_ext >&5
  18799. ac_header_compiler=no
  18800. fi
  18801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18802. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18803. $as_echo "$ac_header_compiler" >&6; }
  18804. # Is the header present?
  18805. { $as_echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  18806. $as_echo_n "checking ldap_features.h presence... " >&6; }
  18807. cat >conftest.$ac_ext <<_ACEOF
  18808. /* confdefs.h. */
  18809. _ACEOF
  18810. cat confdefs.h >>conftest.$ac_ext
  18811. cat >>conftest.$ac_ext <<_ACEOF
  18812. /* end confdefs.h. */
  18813. #include <ldap_features.h>
  18814. _ACEOF
  18815. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18816. case "(($ac_try" in
  18817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18818. *) ac_try_echo=$ac_try;;
  18819. esac
  18820. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18821. $as_echo "$ac_try_echo") >&5
  18822. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18823. ac_status=$?
  18824. grep -v '^ *+' conftest.er1 >conftest.err
  18825. rm -f conftest.er1
  18826. cat conftest.err >&5
  18827. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18828. (exit $ac_status); } >/dev/null && {
  18829. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18830. test ! -s conftest.err
  18831. }; then
  18832. ac_header_preproc=yes
  18833. else
  18834. $as_echo "$as_me: failed program was:" >&5
  18835. sed 's/^/| /' conftest.$ac_ext >&5
  18836. ac_header_preproc=no
  18837. fi
  18838. rm -f conftest.err conftest.$ac_ext
  18839. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18840. $as_echo "$ac_header_preproc" >&6; }
  18841. # So? What about this header?
  18842. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18843. yes:no: )
  18844. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  18845. $as_echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18846. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  18847. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  18848. ac_header_preproc=yes
  18849. ;;
  18850. no:yes:* )
  18851. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  18852. $as_echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  18853. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  18854. $as_echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  18855. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  18856. $as_echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  18857. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  18858. $as_echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  18859. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  18860. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  18861. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  18862. $as_echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  18863. ( cat <<\_ASBOX
  18864. ## ------------------------------------------ ##
  18865. ## Report this to http://bugzilla.redhat.com/ ##
  18866. ## ------------------------------------------ ##
  18867. _ASBOX
  18868. ) | sed "s/^/$as_me: WARNING: /" >&2
  18869. ;;
  18870. esac
  18871. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  18872. $as_echo_n "checking for ldap_features.h... " >&6; }
  18873. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  18874. $as_echo_n "(cached) " >&6
  18875. else
  18876. ac_cv_header_ldap_features_h=$ac_header_preproc
  18877. fi
  18878. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  18879. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  18880. fi
  18881. if test "x$ac_cv_header_ldap_features_h" = x""yes; then
  18882. :
  18883. else
  18884. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  18885. $as_echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  18886. { (exit 1); exit 1; }; }
  18887. fi
  18888. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  18889. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  18890. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  18891. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  18892. save_ldflags="$LDFLAGS"
  18893. LDFLAGS="$openldap_lib $LDFLAGS"
  18894. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  18895. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  18896. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  18897. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  18898. $as_echo_n "(cached) " >&6
  18899. else
  18900. ac_check_lib_save_LIBS=$LIBS
  18901. LIBS="-lldap$ol_libver $LIBS"
  18902. cat >conftest.$ac_ext <<_ACEOF
  18903. /* confdefs.h. */
  18904. _ACEOF
  18905. cat confdefs.h >>conftest.$ac_ext
  18906. cat >>conftest.$ac_ext <<_ACEOF
  18907. /* end confdefs.h. */
  18908. /* Override any GCC internal prototype to avoid an error.
  18909. Use char because int might match the return type of a GCC
  18910. builtin and then its argument prototype would still apply. */
  18911. #ifdef __cplusplus
  18912. extern "C"
  18913. #endif
  18914. char ldap_initialize ();
  18915. int
  18916. main ()
  18917. {
  18918. return ldap_initialize ();
  18919. ;
  18920. return 0;
  18921. }
  18922. _ACEOF
  18923. rm -f conftest.$ac_objext conftest$ac_exeext
  18924. if { (ac_try="$ac_link"
  18925. case "(($ac_try" in
  18926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18927. *) ac_try_echo=$ac_try;;
  18928. esac
  18929. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18930. $as_echo "$ac_try_echo") >&5
  18931. (eval "$ac_link") 2>conftest.er1
  18932. ac_status=$?
  18933. grep -v '^ *+' conftest.er1 >conftest.err
  18934. rm -f conftest.er1
  18935. cat conftest.err >&5
  18936. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18937. (exit $ac_status); } && {
  18938. test -z "$ac_c_werror_flag" ||
  18939. test ! -s conftest.err
  18940. } && test -s conftest$ac_exeext && {
  18941. test "$cross_compiling" = yes ||
  18942. $as_test_x conftest$ac_exeext
  18943. }; then
  18944. eval "$as_ac_Lib=yes"
  18945. else
  18946. $as_echo "$as_me: failed program was:" >&5
  18947. sed 's/^/| /' conftest.$ac_ext >&5
  18948. eval "$as_ac_Lib=no"
  18949. fi
  18950. rm -rf conftest.dSYM
  18951. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18952. conftest$ac_exeext conftest.$ac_ext
  18953. LIBS=$ac_check_lib_save_LIBS
  18954. fi
  18955. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  18956. $as_echo "$as_val"'`
  18957. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18958. $as_echo "$ac_res" >&6; }
  18959. as_val=`eval 'as_val=${'$as_ac_Lib'}
  18960. $as_echo "$as_val"'`
  18961. if test "x$as_val" = x""yes; then
  18962. have_ldap_lib=1
  18963. fi
  18964. if test -z "$have_ldap_lib" ; then
  18965. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  18966. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  18967. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  18968. $as_echo_n "(cached) " >&6
  18969. else
  18970. ac_check_lib_save_LIBS=$LIBS
  18971. LIBS="-lldap $LIBS"
  18972. cat >conftest.$ac_ext <<_ACEOF
  18973. /* confdefs.h. */
  18974. _ACEOF
  18975. cat confdefs.h >>conftest.$ac_ext
  18976. cat >>conftest.$ac_ext <<_ACEOF
  18977. /* end confdefs.h. */
  18978. /* Override any GCC internal prototype to avoid an error.
  18979. Use char because int might match the return type of a GCC
  18980. builtin and then its argument prototype would still apply. */
  18981. #ifdef __cplusplus
  18982. extern "C"
  18983. #endif
  18984. char ldap_initialize ();
  18985. int
  18986. main ()
  18987. {
  18988. return ldap_initialize ();
  18989. ;
  18990. return 0;
  18991. }
  18992. _ACEOF
  18993. rm -f conftest.$ac_objext conftest$ac_exeext
  18994. if { (ac_try="$ac_link"
  18995. case "(($ac_try" in
  18996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18997. *) ac_try_echo=$ac_try;;
  18998. esac
  18999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19000. $as_echo "$ac_try_echo") >&5
  19001. (eval "$ac_link") 2>conftest.er1
  19002. ac_status=$?
  19003. grep -v '^ *+' conftest.er1 >conftest.err
  19004. rm -f conftest.er1
  19005. cat conftest.err >&5
  19006. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19007. (exit $ac_status); } && {
  19008. test -z "$ac_c_werror_flag" ||
  19009. test ! -s conftest.err
  19010. } && test -s conftest$ac_exeext && {
  19011. test "$cross_compiling" = yes ||
  19012. $as_test_x conftest$ac_exeext
  19013. }; then
  19014. ac_cv_lib_ldap_ldap_initialize=yes
  19015. else
  19016. $as_echo "$as_me: failed program was:" >&5
  19017. sed 's/^/| /' conftest.$ac_ext >&5
  19018. ac_cv_lib_ldap_ldap_initialize=no
  19019. fi
  19020. rm -rf conftest.dSYM
  19021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19022. conftest$ac_exeext conftest.$ac_ext
  19023. LIBS=$ac_check_lib_save_LIBS
  19024. fi
  19025. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  19026. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  19027. if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then
  19028. unset ol_libver
  19029. else
  19030. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  19031. $as_echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  19032. { (exit 1); exit 1; }; }
  19033. fi
  19034. fi
  19035. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  19036. { $as_echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  19037. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  19038. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19039. $as_echo_n "(cached) " >&6
  19040. else
  19041. ac_check_lib_save_LIBS=$LIBS
  19042. LIBS="-lldap$ol_libver $LIBS"
  19043. cat >conftest.$ac_ext <<_ACEOF
  19044. /* confdefs.h. */
  19045. _ACEOF
  19046. cat confdefs.h >>conftest.$ac_ext
  19047. cat >>conftest.$ac_ext <<_ACEOF
  19048. /* end confdefs.h. */
  19049. /* Override any GCC internal prototype to avoid an error.
  19050. Use char because int might match the return type of a GCC
  19051. builtin and then its argument prototype would still apply. */
  19052. #ifdef __cplusplus
  19053. extern "C"
  19054. #endif
  19055. char ldap_url_parse_ext ();
  19056. int
  19057. main ()
  19058. {
  19059. return ldap_url_parse_ext ();
  19060. ;
  19061. return 0;
  19062. }
  19063. _ACEOF
  19064. rm -f conftest.$ac_objext conftest$ac_exeext
  19065. if { (ac_try="$ac_link"
  19066. case "(($ac_try" in
  19067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19068. *) ac_try_echo=$ac_try;;
  19069. esac
  19070. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19071. $as_echo "$ac_try_echo") >&5
  19072. (eval "$ac_link") 2>conftest.er1
  19073. ac_status=$?
  19074. grep -v '^ *+' conftest.er1 >conftest.err
  19075. rm -f conftest.er1
  19076. cat conftest.err >&5
  19077. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19078. (exit $ac_status); } && {
  19079. test -z "$ac_c_werror_flag" ||
  19080. test ! -s conftest.err
  19081. } && test -s conftest$ac_exeext && {
  19082. test "$cross_compiling" = yes ||
  19083. $as_test_x conftest$ac_exeext
  19084. }; then
  19085. eval "$as_ac_Lib=yes"
  19086. else
  19087. $as_echo "$as_me: failed program was:" >&5
  19088. sed 's/^/| /' conftest.$ac_ext >&5
  19089. eval "$as_ac_Lib=no"
  19090. fi
  19091. rm -rf conftest.dSYM
  19092. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19093. conftest$ac_exeext conftest.$ac_ext
  19094. LIBS=$ac_check_lib_save_LIBS
  19095. fi
  19096. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19097. $as_echo "$as_val"'`
  19098. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19099. $as_echo "$ac_res" >&6; }
  19100. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19101. $as_echo "$as_val"'`
  19102. if test "x$as_val" = x""yes; then
  19103. cat >>confdefs.h <<\_ACEOF
  19104. #define HAVE_LDAP_URL_PARSE_EXT 1
  19105. _ACEOF
  19106. fi
  19107. LDFLAGS="$save_ldflags"
  19108. CPPFLAGS="$save_cppflags"
  19109. cat >>confdefs.h <<\_ACEOF
  19110. #define USE_OPENLDAP 1
  19111. _ACEOF
  19112. fi
  19113. # BEGIN COPYRIGHT BLOCK
  19114. # Copyright (C) 2007 Red Hat, Inc.
  19115. # All rights reserved.
  19116. #
  19117. # This program is free software; you can redistribute it and/or
  19118. # modify it under the terms of the GNU General Public License
  19119. # as published by the Free Software Foundation; either version 2
  19120. # of the License, or (at your option) any later version.
  19121. #
  19122. # This program is distributed in the hope that it will be useful,
  19123. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19124. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19125. # GNU General Public License for more details.
  19126. #
  19127. # You should have received a copy of the GNU General Public License
  19128. # along with this program; if not, write to the Free Software
  19129. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19130. #
  19131. # END COPYRIGHT BLOCK
  19132. { $as_echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  19133. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  19134. # check for --with-ldapsdk
  19135. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  19136. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  19137. # Check whether --with-ldapsdk was given.
  19138. if test "${with_ldapsdk+set}" = set; then
  19139. withval=$with_ldapsdk;
  19140. if test "$withval" = yes
  19141. then
  19142. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19143. $as_echo "yes" >&6; }
  19144. elif test "$withval" = no
  19145. then
  19146. { $as_echo "$as_me:$LINENO: result: no" >&5
  19147. $as_echo "no" >&6; }
  19148. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  19149. then
  19150. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19151. $as_echo "using $withval" >&6; }
  19152. LDAPSDKDIR=$withval
  19153. ldapsdk_inc="-I$LDAPSDKDIR/include"
  19154. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  19155. ldapsdk_libdir="$LDAPSDKDIR/lib"
  19156. ldapsdk_bindir="$LDAPSDKDIR/bin"
  19157. with_ldapsdk=yes
  19158. else
  19159. echo
  19160. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19161. $as_echo "$as_me: error: $withval not found" >&2;}
  19162. { (exit 1); exit 1; }; }
  19163. fi
  19164. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  19165. then
  19166. { { $as_echo "$as_me:$LINENO: error: Cannot use both LDAPSDK and OpenLDAP." >&5
  19167. $as_echo "$as_me: error: Cannot use both LDAPSDK and OpenLDAP." >&2;}
  19168. { (exit 1); exit 1; }; }
  19169. fi
  19170. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  19171. then
  19172. { { $as_echo "$as_me:$LINENO: error: Either LDAPSDK or OpenLDAP must be used." >&5
  19173. $as_echo "$as_me: error: Either LDAPSDK or OpenLDAP must be used." >&2;}
  19174. { (exit 1); exit 1; }; }
  19175. fi
  19176. else
  19177. if test "$with_openldap" = yes
  19178. then
  19179. { $as_echo "$as_me:$LINENO: result: no" >&5
  19180. $as_echo "no" >&6; }
  19181. else
  19182. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19183. $as_echo "yes" >&6; }
  19184. with_ldapsdk=yes
  19185. fi
  19186. fi
  19187. # check for --with-ldapsdk-inc
  19188. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  19189. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  19190. # Check whether --with-ldapsdk-inc was given.
  19191. if test "${with_ldapsdk_inc+set}" = set; then
  19192. withval=$with_ldapsdk_inc;
  19193. if test -e "$withval"/ldap.h
  19194. then
  19195. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19196. $as_echo "using $withval" >&6; }
  19197. ldapsdk_inc="-I$withval"
  19198. with_ldapsdk=yes
  19199. else
  19200. echo
  19201. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19202. $as_echo "$as_me: error: $withval not found" >&2;}
  19203. { (exit 1); exit 1; }; }
  19204. fi
  19205. else
  19206. { $as_echo "$as_me:$LINENO: result: no" >&5
  19207. $as_echo "no" >&6; }
  19208. fi
  19209. # check for --with-ldapsdk-lib
  19210. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  19211. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  19212. # Check whether --with-ldapsdk-lib was given.
  19213. if test "${with_ldapsdk_lib+set}" = set; then
  19214. withval=$with_ldapsdk_lib;
  19215. if test -d "$withval"
  19216. then
  19217. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19218. $as_echo "using $withval" >&6; }
  19219. ldapsdk_lib="-L$withval"
  19220. ldapsdk_libdir="$withval"
  19221. with_ldapsdk=yes
  19222. else
  19223. echo
  19224. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19225. $as_echo "$as_me: error: $withval not found" >&2;}
  19226. { (exit 1); exit 1; }; }
  19227. fi
  19228. else
  19229. { $as_echo "$as_me:$LINENO: result: no" >&5
  19230. $as_echo "no" >&6; }
  19231. fi
  19232. # check for --with-ldapsdk-bin
  19233. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  19234. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  19235. # Check whether --with-ldapsdk-bin was given.
  19236. if test "${with_ldapsdk_bin+set}" = set; then
  19237. withval=$with_ldapsdk_bin;
  19238. if test -d "$withval"
  19239. then
  19240. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19241. $as_echo "using $withval" >&6; }
  19242. ldapsdk_bindir="$withval"
  19243. with_ldapsdk=yes
  19244. else
  19245. echo
  19246. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19247. $as_echo "$as_me: error: $withval not found" >&2;}
  19248. { (exit 1); exit 1; }; }
  19249. fi
  19250. else
  19251. { $as_echo "$as_me:$LINENO: result: no" >&5
  19252. $as_echo "no" >&6; }
  19253. fi
  19254. # if LDAPSDK is not found yet, try pkg-config
  19255. # last resort
  19256. if test "$with_ldapsdk" = yes ; then
  19257. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  19258. # Extract the first word of "pkg-config", so it can be a program name with args.
  19259. set dummy pkg-config; ac_word=$2
  19260. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19261. $as_echo_n "checking for $ac_word... " >&6; }
  19262. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  19263. $as_echo_n "(cached) " >&6
  19264. else
  19265. case $PKG_CONFIG in
  19266. [\\/]* | ?:[\\/]*)
  19267. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19268. ;;
  19269. *)
  19270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19271. for as_dir in $PATH
  19272. do
  19273. IFS=$as_save_IFS
  19274. test -z "$as_dir" && as_dir=.
  19275. for ac_exec_ext in '' $ac_executable_extensions; do
  19276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19277. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19278. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19279. break 2
  19280. fi
  19281. done
  19282. done
  19283. IFS=$as_save_IFS
  19284. ;;
  19285. esac
  19286. fi
  19287. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19288. if test -n "$PKG_CONFIG"; then
  19289. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  19290. $as_echo "$PKG_CONFIG" >&6; }
  19291. else
  19292. { $as_echo "$as_me:$LINENO: result: no" >&5
  19293. $as_echo "no" >&6; }
  19294. fi
  19295. { $as_echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  19296. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  19297. if test -n "$PKG_CONFIG"; then
  19298. if $PKG_CONFIG --exists mozldap6; then
  19299. mozldappkg=mozldap6
  19300. elif $PKG_CONFIG --exists mozldap; then
  19301. mozldappkg=mozldap
  19302. else
  19303. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  19304. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  19305. { (exit 1); exit 1; }; }
  19306. fi
  19307. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  19308. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  19309. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  19310. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  19311. { $as_echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  19312. $as_echo "using system $mozldappkg" >&6; }
  19313. fi
  19314. fi
  19315. fi
  19316. if test "$with_ldapsdk" = yes ; then
  19317. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  19318. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  19319. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  19320. { (exit 1); exit 1; }; }
  19321. fi
  19322. if test -z "$ldapsdk_bindir" ; then
  19323. if -d $libdir/mozldap6 ; then
  19324. ldapsdk_bindir=$libdir/mozldap6
  19325. else
  19326. ldapsdk_bindir=$libdir/mozldap
  19327. fi
  19328. fi
  19329. save_cppflags="$CPPFLAGS"
  19330. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  19331. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  19332. $as_echo_n "checking for ldap.h... " >&6; }
  19333. if test "${ac_cv_header_ldap_h+set}" = set; then
  19334. $as_echo_n "(cached) " >&6
  19335. else
  19336. cat >conftest.$ac_ext <<_ACEOF
  19337. /* confdefs.h. */
  19338. _ACEOF
  19339. cat confdefs.h >>conftest.$ac_ext
  19340. cat >>conftest.$ac_ext <<_ACEOF
  19341. /* end confdefs.h. */
  19342. #include <ldap-standard.h>
  19343. #if LDAP_VENDOR_VERSION < 600
  19344. #error The LDAP C SDK version is not supported
  19345. #endif
  19346. #include <ldap.h>
  19347. _ACEOF
  19348. rm -f conftest.$ac_objext
  19349. if { (ac_try="$ac_compile"
  19350. case "(($ac_try" in
  19351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19352. *) ac_try_echo=$ac_try;;
  19353. esac
  19354. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19355. $as_echo "$ac_try_echo") >&5
  19356. (eval "$ac_compile") 2>conftest.er1
  19357. ac_status=$?
  19358. grep -v '^ *+' conftest.er1 >conftest.err
  19359. rm -f conftest.er1
  19360. cat conftest.err >&5
  19361. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19362. (exit $ac_status); } && {
  19363. test -z "$ac_c_werror_flag" ||
  19364. test ! -s conftest.err
  19365. } && test -s conftest.$ac_objext; then
  19366. ac_cv_header_ldap_h=yes
  19367. else
  19368. $as_echo "$as_me: failed program was:" >&5
  19369. sed 's/^/| /' conftest.$ac_ext >&5
  19370. ac_cv_header_ldap_h=no
  19371. fi
  19372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19373. fi
  19374. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  19375. $as_echo "$ac_cv_header_ldap_h" >&6; }
  19376. if test "x$ac_cv_header_ldap_h" = x""yes; then
  19377. isversion6=1
  19378. else
  19379. isversion6=
  19380. fi
  19381. CPPFLAGS="$save_cppflags"
  19382. if test -z "$isversion6" ; then
  19383. { { $as_echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  19384. $as_echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  19385. { (exit 1); exit 1; }; }
  19386. fi
  19387. cat >>confdefs.h <<\_ACEOF
  19388. #define USE_MOZLDAP 1
  19389. _ACEOF
  19390. cat >>confdefs.h <<\_ACEOF
  19391. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  19392. _ACEOF
  19393. fi
  19394. # BEGIN COPYRIGHT BLOCK
  19395. # Copyright (C) 2007 Red Hat, Inc.
  19396. # All rights reserved.
  19397. #
  19398. # This program is free software; you can redistribute it and/or
  19399. # modify it under the terms of the GNU General Public License
  19400. # as published by the Free Software Foundation; either version 2
  19401. # of the License, or (at your option) any later version.
  19402. #
  19403. # This program is distributed in the hope that it will be useful,
  19404. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19405. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19406. # GNU General Public License for more details.
  19407. #
  19408. # You should have received a copy of the GNU General Public License
  19409. # along with this program; if not, write to the Free Software
  19410. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19411. #
  19412. # END COPYRIGHT BLOCK
  19413. { $as_echo "$as_me:$LINENO: checking for db..." >&5
  19414. $as_echo "$as_me: checking for db..." >&6;}
  19415. { $as_echo "$as_me:$LINENO: checking for --with-db" >&5
  19416. $as_echo_n "checking for --with-db... " >&6; }
  19417. # Check whether --with-db was given.
  19418. if test "${with_db+set}" = set; then
  19419. withval=$with_db;
  19420. if test "$withval" = "yes"; then
  19421. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19422. $as_echo "yes" >&6; }
  19423. elif test "$withval" = "no"; then
  19424. { $as_echo "$as_me:$LINENO: result: no" >&5
  19425. $as_echo "no" >&6; }
  19426. { { $as_echo "$as_me:$LINENO: error: db is required." >&5
  19427. $as_echo "$as_me: error: db is required." >&2;}
  19428. { (exit 1); exit 1; }; }
  19429. elif test -d "$withval"/include -a -d "$withval"/lib; then
  19430. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19431. $as_echo "using $withval" >&6; }
  19432. DBDIR=$withval
  19433. db_lib="-L$DBDIR/lib"
  19434. db_libdir="$DBDIR/lib"
  19435. db_incdir="$DBDIR/include"
  19436. if ! test -e "$db_incdir/db.h" ; then
  19437. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  19438. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  19439. { (exit 1); exit 1; }; }
  19440. fi
  19441. db_inc="-I$db_incdir"
  19442. else
  19443. echo
  19444. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19445. $as_echo "$as_me: error: $withval not found" >&2;}
  19446. { (exit 1); exit 1; }; }
  19447. fi
  19448. else
  19449. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19450. $as_echo "yes" >&6; }
  19451. fi
  19452. # check for --with-db-inc
  19453. { $as_echo "$as_me:$LINENO: checking for --with-db-inc" >&5
  19454. $as_echo_n "checking for --with-db-inc... " >&6; }
  19455. # Check whether --with-db-inc was given.
  19456. if test "${with_db_inc+set}" = set; then
  19457. withval=$with_db_inc;
  19458. if test -e "$withval"/db.h
  19459. then
  19460. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19461. $as_echo "using $withval" >&6; }
  19462. db_incdir="$withval"
  19463. db_inc="-I$withval"
  19464. else
  19465. echo
  19466. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19467. $as_echo "$as_me: error: $withval not found" >&2;}
  19468. { (exit 1); exit 1; }; }
  19469. fi
  19470. else
  19471. { $as_echo "$as_me:$LINENO: result: no" >&5
  19472. $as_echo "no" >&6; }
  19473. fi
  19474. # check for --with-db-lib
  19475. { $as_echo "$as_me:$LINENO: checking for --with-db-lib" >&5
  19476. $as_echo_n "checking for --with-db-lib... " >&6; }
  19477. # Check whether --with-db-lib was given.
  19478. if test "${with_db_lib+set}" = set; then
  19479. withval=$with_db_lib;
  19480. if test -d "$withval"
  19481. then
  19482. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19483. $as_echo "using $withval" >&6; }
  19484. db_lib="-L$withval"
  19485. db_libdir="$withval"
  19486. else
  19487. echo
  19488. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19489. $as_echo "$as_me: error: $withval not found" >&2;}
  19490. { (exit 1); exit 1; }; }
  19491. fi
  19492. else
  19493. { $as_echo "$as_me:$LINENO: result: no" >&5
  19494. $as_echo "no" >&6; }
  19495. fi
  19496. if test -z "$db_inc"; then
  19497. { $as_echo "$as_me:$LINENO: checking for db.h" >&5
  19498. $as_echo_n "checking for db.h... " >&6; }
  19499. if test -f "/usr/include/db4/db.h"; then
  19500. { $as_echo "$as_me:$LINENO: result: using /usr/include/db4/db.h" >&5
  19501. $as_echo "using /usr/include/db4/db.h" >&6; }
  19502. db_incdir="/usr/include/db4"
  19503. db_inc="-I/usr/include/db4"
  19504. db_lib='-L$(libdir)'
  19505. db_libdir='$(libdir)'
  19506. elif test -f "/usr/include/db.h"; then
  19507. { $as_echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  19508. $as_echo "using /usr/include/db.h" >&6; }
  19509. db_incdir="/usr/include"
  19510. db_inc="-I/usr/include"
  19511. db_lib='-L$(libdir)'
  19512. db_libdir='$(libdir)'
  19513. else
  19514. { $as_echo "$as_me:$LINENO: result: no" >&5
  19515. $as_echo "no" >&6; }
  19516. { { $as_echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  19517. $as_echo "$as_me: error: db not found, specify with --with-db." >&2;}
  19518. { (exit 1); exit 1; }; }
  19519. fi
  19520. fi
  19521. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  19522. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  19523. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  19524. db_libver=${db_ver_maj}.${db_ver_min}
  19525. save_ldflags="$LDFLAGS"
  19526. LDFLAGS="$db_lib $LDFLAGS"
  19527. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  19528. { $as_echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  19529. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  19530. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19531. $as_echo_n "(cached) " >&6
  19532. else
  19533. ac_check_lib_save_LIBS=$LIBS
  19534. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  19535. cat >conftest.$ac_ext <<_ACEOF
  19536. /* confdefs.h. */
  19537. _ACEOF
  19538. cat confdefs.h >>conftest.$ac_ext
  19539. cat >>conftest.$ac_ext <<_ACEOF
  19540. /* end confdefs.h. */
  19541. /* Override any GCC internal prototype to avoid an error.
  19542. Use char because int might match the return type of a GCC
  19543. builtin and then its argument prototype would still apply. */
  19544. #ifdef __cplusplus
  19545. extern "C"
  19546. #endif
  19547. char db_create ();
  19548. int
  19549. main ()
  19550. {
  19551. return db_create ();
  19552. ;
  19553. return 0;
  19554. }
  19555. _ACEOF
  19556. rm -f conftest.$ac_objext conftest$ac_exeext
  19557. if { (ac_try="$ac_link"
  19558. case "(($ac_try" in
  19559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19560. *) ac_try_echo=$ac_try;;
  19561. esac
  19562. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19563. $as_echo "$ac_try_echo") >&5
  19564. (eval "$ac_link") 2>conftest.er1
  19565. ac_status=$?
  19566. grep -v '^ *+' conftest.er1 >conftest.err
  19567. rm -f conftest.er1
  19568. cat conftest.err >&5
  19569. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19570. (exit $ac_status); } && {
  19571. test -z "$ac_c_werror_flag" ||
  19572. test ! -s conftest.err
  19573. } && test -s conftest$ac_exeext && {
  19574. test "$cross_compiling" = yes ||
  19575. $as_test_x conftest$ac_exeext
  19576. }; then
  19577. eval "$as_ac_Lib=yes"
  19578. else
  19579. $as_echo "$as_me: failed program was:" >&5
  19580. sed 's/^/| /' conftest.$ac_ext >&5
  19581. eval "$as_ac_Lib=no"
  19582. fi
  19583. rm -rf conftest.dSYM
  19584. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19585. conftest$ac_exeext conftest.$ac_ext
  19586. LIBS=$ac_check_lib_save_LIBS
  19587. fi
  19588. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19589. $as_echo "$as_val"'`
  19590. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19591. $as_echo "$ac_res" >&6; }
  19592. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19593. $as_echo "$as_val"'`
  19594. if test "x$as_val" = x""yes; then
  19595. true
  19596. else
  19597. { { $as_echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  19598. $as_echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  19599. { (exit 1); exit 1; }; }
  19600. fi
  19601. LDFLAGS="$save_ldflags"
  19602. # if DB is not found yet, try pkg-config
  19603. # last resort
  19604. # Although the other db_* variables are correctly assigned at this point,
  19605. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  19606. if test -n "$PKG_CONFIG"; then
  19607. if $PKG_CONFIG --exists db; then
  19608. db_bindir=`$PKG_CONFIG --variable=bindir db`
  19609. else
  19610. db_bindir=/usr/bin
  19611. fi
  19612. else
  19613. db_bindir=/usr/bin
  19614. fi
  19615. # BEGIN COPYRIGHT BLOCK
  19616. # Copyright (C) 2007 Red Hat, Inc.
  19617. # All rights reserved.
  19618. #
  19619. # This program is free software; you can redistribute it and/or
  19620. # modify it under the terms of the GNU General Public License
  19621. # as published by the Free Software Foundation; either version 2
  19622. # of the License, or (at your option) any later version.
  19623. #
  19624. # This program is distributed in the hope that it will be useful,
  19625. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19626. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19627. # GNU General Public License for more details.
  19628. #
  19629. # You should have received a copy of the GNU General Public License
  19630. # along with this program; if not, write to the Free Software
  19631. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19632. #
  19633. # END COPYRIGHT BLOCK
  19634. # -*- tab-width: 4; -*-
  19635. # Configure paths for SASL
  19636. { $as_echo "$as_me:$LINENO: checking for SASL..." >&5
  19637. $as_echo "$as_me: checking for SASL..." >&6;}
  19638. { $as_echo "$as_me:$LINENO: checking for --with-sasl" >&5
  19639. $as_echo_n "checking for --with-sasl... " >&6; }
  19640. # Check whether --with-sasl was given.
  19641. if test "${with_sasl+set}" = set; then
  19642. withval=$with_sasl;
  19643. if test "$withval" = "yes"; then
  19644. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19645. $as_echo "yes" >&6; }
  19646. elif test "$withval" = "no"; then
  19647. { $as_echo "$as_me:$LINENO: result: no" >&5
  19648. $as_echo "no" >&6; }
  19649. { { $as_echo "$as_me:$LINENO: error: SASL is required." >&5
  19650. $as_echo "$as_me: error: SASL is required." >&2;}
  19651. { (exit 1); exit 1; }; }
  19652. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  19653. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19654. $as_echo "using $withval" >&6; }
  19655. if test -f "$withval/include/sasl/sasl.h"; then
  19656. sasl_inc="-I$withval/include/sasl"
  19657. elif test -f "$withval/include/sasl.h"; then
  19658. sasl_inc="-I$withval/include"
  19659. else
  19660. { { $as_echo "$as_me:$LINENO: error: sasl.h not found" >&5
  19661. $as_echo "$as_me: error: sasl.h not found" >&2;}
  19662. { (exit 1); exit 1; }; }
  19663. fi
  19664. sasl_lib="-L$withval/lib"
  19665. sasl_libdir="$withval/lib"
  19666. else
  19667. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19668. $as_echo "yes" >&6; }
  19669. { { $as_echo "$as_me:$LINENO: error: SASL not found in $withval" >&5
  19670. $as_echo "$as_me: error: SASL not found in $withval" >&2;}
  19671. { (exit 1); exit 1; }; }
  19672. fi
  19673. else
  19674. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19675. $as_echo "yes" >&6; }
  19676. fi
  19677. { $as_echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  19678. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  19679. # Check whether --with-sasl-inc was given.
  19680. if test "${with_sasl_inc+set}" = set; then
  19681. withval=$with_sasl_inc;
  19682. if test -f "$withval"/sasl.h; then
  19683. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19684. $as_echo "using $withval" >&6; }
  19685. sasl_inc="-I$withval"
  19686. else
  19687. echo
  19688. { { $as_echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  19689. $as_echo "$as_me: error: $withval/sasl.h not found" >&2;}
  19690. { (exit 1); exit 1; }; }
  19691. fi
  19692. else
  19693. { $as_echo "$as_me:$LINENO: result: no" >&5
  19694. $as_echo "no" >&6; }
  19695. fi
  19696. { $as_echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  19697. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  19698. # Check whether --with-sasl-lib was given.
  19699. if test "${with_sasl_lib+set}" = set; then
  19700. withval=$with_sasl_lib;
  19701. if test -d "$withval"; then
  19702. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19703. $as_echo "using $withval" >&6; }
  19704. sasl_lib="-L$withval"
  19705. sasl_libdir="$withval"
  19706. else
  19707. echo
  19708. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19709. $as_echo "$as_me: error: $withval not found" >&2;}
  19710. { (exit 1); exit 1; }; }
  19711. fi
  19712. else
  19713. { $as_echo "$as_me:$LINENO: result: no" >&5
  19714. $as_echo "no" >&6; }
  19715. fi
  19716. if test -z "$sasl_inc"; then
  19717. { $as_echo "$as_me:$LINENO: checking for sasl.h" >&5
  19718. $as_echo_n "checking for sasl.h... " >&6; }
  19719. if test -f /usr/include/sasl/sasl.h; then
  19720. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  19721. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  19722. sasl_inc="-I/usr/include/sasl"
  19723. elif test -f /usr/include/sasl.h; then
  19724. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  19725. $as_echo "using /usr/include/sasl.h" >&6; }
  19726. sasl_inc="-I/usr/include"
  19727. else
  19728. { $as_echo "$as_me:$LINENO: result: no" >&5
  19729. $as_echo "no" >&6; }
  19730. { { $as_echo "$as_me:$LINENO: error: SASL not found, specify with --with-sasl." >&5
  19731. $as_echo "$as_me: error: SASL not found, specify with --with-sasl." >&2;}
  19732. { (exit 1); exit 1; }; }
  19733. fi
  19734. fi
  19735. # BEGIN COPYRIGHT BLOCK
  19736. # Copyright (C) 2007 Red Hat, Inc.
  19737. # All rights reserved.
  19738. #
  19739. # This program is free software; you can redistribute it and/or
  19740. # modify it under the terms of the GNU General Public License
  19741. # as published by the Free Software Foundation; either version 2
  19742. # of the License, or (at your option) any later version.
  19743. #
  19744. # This program is distributed in the hope that it will be useful,
  19745. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19746. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19747. # GNU General Public License for more details.
  19748. #
  19749. # You should have received a copy of the GNU General Public License
  19750. # along with this program; if not, write to the Free Software
  19751. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19752. #
  19753. # END COPYRIGHT BLOCK
  19754. #
  19755. # Configure paths for SVRCORE
  19756. { $as_echo "$as_me:$LINENO: checking for SVRCORE..." >&5
  19757. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  19758. { $as_echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  19759. $as_echo_n "checking for --with-svrcore... " >&6; }
  19760. # Check whether --with-svrcore was given.
  19761. if test "${with_svrcore+set}" = set; then
  19762. withval=$with_svrcore;
  19763. if test "$withval" = "yes"; then
  19764. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19765. $as_echo "yes" >&6; }
  19766. elif test "$withval" = "no"; then
  19767. { $as_echo "$as_me:$LINENO: result: no" >&5
  19768. $as_echo "no" >&6; }
  19769. { { $as_echo "$as_me:$LINENO: error: SVRCORE is required." >&5
  19770. $as_echo "$as_me: error: SVRCORE is required." >&2;}
  19771. { (exit 1); exit 1; }; }
  19772. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  19773. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19774. $as_echo "using $withval" >&6; }
  19775. if test -f "$withval/include/svrcore.h"; then
  19776. svrcore_inc="-I$withval/include"
  19777. else
  19778. { { $as_echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  19779. $as_echo "$as_me: error: svrcore.h not found" >&2;}
  19780. { (exit 1); exit 1; }; }
  19781. fi
  19782. svrcore_lib="-L$withval/lib"
  19783. else
  19784. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19785. $as_echo "yes" >&6; }
  19786. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found in $withval" >&5
  19787. $as_echo "$as_me: error: SVRCORE not found in $withval" >&2;}
  19788. { (exit 1); exit 1; }; }
  19789. fi
  19790. else
  19791. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19792. $as_echo "yes" >&6; }
  19793. fi
  19794. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  19795. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  19796. # Check whether --with-svrcore-inc was given.
  19797. if test "${with_svrcore_inc+set}" = set; then
  19798. withval=$with_svrcore_inc;
  19799. if test -f "$withval"/svrcore.h; then
  19800. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19801. $as_echo "using $withval" >&6; }
  19802. svrcore_inc="-I$withval"
  19803. else
  19804. echo
  19805. { { $as_echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  19806. $as_echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  19807. { (exit 1); exit 1; }; }
  19808. fi
  19809. else
  19810. { $as_echo "$as_me:$LINENO: result: no" >&5
  19811. $as_echo "no" >&6; }
  19812. fi
  19813. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  19814. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  19815. # Check whether --with-svrcore-lib was given.
  19816. if test "${with_svrcore_lib+set}" = set; then
  19817. withval=$with_svrcore_lib;
  19818. if test -d "$withval"; then
  19819. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19820. $as_echo "using $withval" >&6; }
  19821. svrcore_lib="-L$withval"
  19822. else
  19823. echo
  19824. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19825. $as_echo "$as_me: error: $withval not found" >&2;}
  19826. { (exit 1); exit 1; }; }
  19827. fi
  19828. else
  19829. { $as_echo "$as_me:$LINENO: result: no" >&5
  19830. $as_echo "no" >&6; }
  19831. fi
  19832. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  19833. # Extract the first word of "pkg-config", so it can be a program name with args.
  19834. set dummy pkg-config; ac_word=$2
  19835. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19836. $as_echo_n "checking for $ac_word... " >&6; }
  19837. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  19838. $as_echo_n "(cached) " >&6
  19839. else
  19840. case $PKG_CONFIG in
  19841. [\\/]* | ?:[\\/]*)
  19842. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19843. ;;
  19844. *)
  19845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19846. for as_dir in $PATH
  19847. do
  19848. IFS=$as_save_IFS
  19849. test -z "$as_dir" && as_dir=.
  19850. for ac_exec_ext in '' $ac_executable_extensions; do
  19851. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19852. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19853. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19854. break 2
  19855. fi
  19856. done
  19857. done
  19858. IFS=$as_save_IFS
  19859. ;;
  19860. esac
  19861. fi
  19862. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19863. if test -n "$PKG_CONFIG"; then
  19864. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  19865. $as_echo "$PKG_CONFIG" >&6; }
  19866. else
  19867. { $as_echo "$as_me:$LINENO: result: no" >&5
  19868. $as_echo "no" >&6; }
  19869. fi
  19870. { $as_echo "$as_me:$LINENO: checking for SVRCORE with pkg-config" >&5
  19871. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  19872. if test -n "$PKG_CONFIG"; then
  19873. if $PKG_CONFIG --exists svrcore; then
  19874. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  19875. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  19876. { $as_echo "$as_me:$LINENO: result: using system svrcore" >&5
  19877. $as_echo "using system svrcore" >&6; }
  19878. fi
  19879. fi
  19880. fi
  19881. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  19882. { $as_echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  19883. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  19884. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  19885. $as_echo_n "(cached) " >&6
  19886. else
  19887. ac_check_lib_save_LIBS=$LIBS
  19888. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  19889. cat >conftest.$ac_ext <<_ACEOF
  19890. /* confdefs.h. */
  19891. _ACEOF
  19892. cat confdefs.h >>conftest.$ac_ext
  19893. cat >>conftest.$ac_ext <<_ACEOF
  19894. /* end confdefs.h. */
  19895. /* Override any GCC internal prototype to avoid an error.
  19896. Use char because int might match the return type of a GCC
  19897. builtin and then its argument prototype would still apply. */
  19898. #ifdef __cplusplus
  19899. extern "C"
  19900. #endif
  19901. char SVRCORE_GetRegisteredPinObj ();
  19902. int
  19903. main ()
  19904. {
  19905. return SVRCORE_GetRegisteredPinObj ();
  19906. ;
  19907. return 0;
  19908. }
  19909. _ACEOF
  19910. rm -f conftest.$ac_objext conftest$ac_exeext
  19911. if { (ac_try="$ac_link"
  19912. case "(($ac_try" in
  19913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19914. *) ac_try_echo=$ac_try;;
  19915. esac
  19916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19917. $as_echo "$ac_try_echo") >&5
  19918. (eval "$ac_link") 2>conftest.er1
  19919. ac_status=$?
  19920. grep -v '^ *+' conftest.er1 >conftest.err
  19921. rm -f conftest.er1
  19922. cat conftest.err >&5
  19923. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19924. (exit $ac_status); } && {
  19925. test -z "$ac_c_werror_flag" ||
  19926. test ! -s conftest.err
  19927. } && test -s conftest$ac_exeext && {
  19928. test "$cross_compiling" = yes ||
  19929. $as_test_x conftest$ac_exeext
  19930. }; then
  19931. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  19932. else
  19933. $as_echo "$as_me: failed program was:" >&5
  19934. sed 's/^/| /' conftest.$ac_ext >&5
  19935. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  19936. fi
  19937. rm -rf conftest.dSYM
  19938. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19939. conftest$ac_exeext conftest.$ac_ext
  19940. LIBS=$ac_check_lib_save_LIBS
  19941. fi
  19942. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  19943. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  19944. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = x""yes; then
  19945. havesvrcore=1
  19946. fi
  19947. if test -n "$havesvrcore" ; then
  19948. save_cppflags="$CPPFLAGS"
  19949. CPPFLAGS="$nss_inc $nspr_inc"
  19950. if test "${ac_cv_header_svrcore_h+set}" = set; then
  19951. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  19952. $as_echo_n "checking for svrcore.h... " >&6; }
  19953. if test "${ac_cv_header_svrcore_h+set}" = set; then
  19954. $as_echo_n "(cached) " >&6
  19955. fi
  19956. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  19957. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  19958. else
  19959. # Is the header compilable?
  19960. { $as_echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  19961. $as_echo_n "checking svrcore.h usability... " >&6; }
  19962. cat >conftest.$ac_ext <<_ACEOF
  19963. /* confdefs.h. */
  19964. _ACEOF
  19965. cat confdefs.h >>conftest.$ac_ext
  19966. cat >>conftest.$ac_ext <<_ACEOF
  19967. /* end confdefs.h. */
  19968. $ac_includes_default
  19969. #include <svrcore.h>
  19970. _ACEOF
  19971. rm -f conftest.$ac_objext
  19972. if { (ac_try="$ac_compile"
  19973. case "(($ac_try" in
  19974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19975. *) ac_try_echo=$ac_try;;
  19976. esac
  19977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19978. $as_echo "$ac_try_echo") >&5
  19979. (eval "$ac_compile") 2>conftest.er1
  19980. ac_status=$?
  19981. grep -v '^ *+' conftest.er1 >conftest.err
  19982. rm -f conftest.er1
  19983. cat conftest.err >&5
  19984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19985. (exit $ac_status); } && {
  19986. test -z "$ac_c_werror_flag" ||
  19987. test ! -s conftest.err
  19988. } && test -s conftest.$ac_objext; then
  19989. ac_header_compiler=yes
  19990. else
  19991. $as_echo "$as_me: failed program was:" >&5
  19992. sed 's/^/| /' conftest.$ac_ext >&5
  19993. ac_header_compiler=no
  19994. fi
  19995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19996. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19997. $as_echo "$ac_header_compiler" >&6; }
  19998. # Is the header present?
  19999. { $as_echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  20000. $as_echo_n "checking svrcore.h presence... " >&6; }
  20001. cat >conftest.$ac_ext <<_ACEOF
  20002. /* confdefs.h. */
  20003. _ACEOF
  20004. cat confdefs.h >>conftest.$ac_ext
  20005. cat >>conftest.$ac_ext <<_ACEOF
  20006. /* end confdefs.h. */
  20007. #include <svrcore.h>
  20008. _ACEOF
  20009. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20010. case "(($ac_try" in
  20011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20012. *) ac_try_echo=$ac_try;;
  20013. esac
  20014. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20015. $as_echo "$ac_try_echo") >&5
  20016. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20017. ac_status=$?
  20018. grep -v '^ *+' conftest.er1 >conftest.err
  20019. rm -f conftest.er1
  20020. cat conftest.err >&5
  20021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20022. (exit $ac_status); } >/dev/null && {
  20023. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20024. test ! -s conftest.err
  20025. }; then
  20026. ac_header_preproc=yes
  20027. else
  20028. $as_echo "$as_me: failed program was:" >&5
  20029. sed 's/^/| /' conftest.$ac_ext >&5
  20030. ac_header_preproc=no
  20031. fi
  20032. rm -f conftest.err conftest.$ac_ext
  20033. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20034. $as_echo "$ac_header_preproc" >&6; }
  20035. # So? What about this header?
  20036. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20037. yes:no: )
  20038. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  20039. $as_echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20040. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  20041. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  20042. ac_header_preproc=yes
  20043. ;;
  20044. no:yes:* )
  20045. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  20046. $as_echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  20047. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  20048. $as_echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  20049. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  20050. $as_echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  20051. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  20052. $as_echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  20053. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  20054. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  20055. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  20056. $as_echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  20057. ( cat <<\_ASBOX
  20058. ## ------------------------------------------ ##
  20059. ## Report this to http://bugzilla.redhat.com/ ##
  20060. ## ------------------------------------------ ##
  20061. _ASBOX
  20062. ) | sed "s/^/$as_me: WARNING: /" >&2
  20063. ;;
  20064. esac
  20065. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  20066. $as_echo_n "checking for svrcore.h... " >&6; }
  20067. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20068. $as_echo_n "(cached) " >&6
  20069. else
  20070. ac_cv_header_svrcore_h=$ac_header_preproc
  20071. fi
  20072. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  20073. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  20074. fi
  20075. if test "x$ac_cv_header_svrcore_h" = x""yes; then
  20076. havesvrcore=1
  20077. else
  20078. havesvrcore=
  20079. fi
  20080. CPPFLAGS="$save_cppflags"
  20081. fi
  20082. if test -z "$havesvrcore" ; then
  20083. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  20084. $as_echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  20085. { (exit 1); exit 1; }; }
  20086. fi
  20087. fi
  20088. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  20089. if test -f /usr/include/svrcore.h; then
  20090. svrcore_inc="-I/usr/include"
  20091. svrcore_lib="-L/usr/lib"
  20092. else
  20093. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  20094. $as_echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  20095. { (exit 1); exit 1; }; }
  20096. fi
  20097. fi
  20098. # BEGIN COPYRIGHT BLOCK
  20099. # Copyright (C) 2006 Red Hat, Inc.
  20100. # All rights reserved.
  20101. #
  20102. # This program is free software; you can redistribute it and/or
  20103. # modify it under the terms of the GNU General Public License
  20104. # as published by the Free Software Foundation; either version 2
  20105. # of the License, or (at your option) any later version.
  20106. #
  20107. # This program is distributed in the hope that it will be useful,
  20108. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20109. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20110. # GNU General Public License for more details.
  20111. #
  20112. # You should have received a copy of the GNU General Public License
  20113. # along with this program; if not, write to the Free Software
  20114. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20115. #
  20116. # END COPYRIGHT BLOCK
  20117. { $as_echo "$as_me:$LINENO: checking for LIBICU..." >&5
  20118. $as_echo "$as_me: checking for LIBICU..." >&6;}
  20119. # check for --with-icu
  20120. { $as_echo "$as_me:$LINENO: checking for --with-icu" >&5
  20121. $as_echo_n "checking for --with-icu... " >&6; }
  20122. # Check whether --with-icu was given.
  20123. if test "${with_icu+set}" = set; then
  20124. withval=$with_icu;
  20125. if test "$withval" = "yes"
  20126. then
  20127. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20128. $as_echo "yes" >&6; }
  20129. elif test "$withval" = "no"
  20130. then
  20131. { $as_echo "$as_me:$LINENO: result: no" >&5
  20132. $as_echo "no" >&6; }
  20133. { { $as_echo "$as_me:$LINENO: error: ICU is required." >&5
  20134. $as_echo "$as_me: error: ICU is required." >&2;}
  20135. { (exit 1); exit 1; }; }
  20136. elif test -d "$withval"/lib
  20137. then
  20138. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20139. $as_echo "using $withval" >&6; }
  20140. ICUDIR=$withval
  20141. icu_lib="-L$ICUDIR/lib"
  20142. icu_inc="-I$withval/include"
  20143. icu_bin="$withval/bin"
  20144. else
  20145. echo
  20146. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20147. $as_echo "$as_me: error: $withval not found" >&2;}
  20148. { (exit 1); exit 1; }; }
  20149. fi
  20150. else
  20151. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20152. $as_echo "yes" >&6; }
  20153. fi
  20154. # check for --with-icu-inc
  20155. { $as_echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  20156. $as_echo_n "checking for --with-icu-inc... " >&6; }
  20157. # Check whether --with-icu-inc was given.
  20158. if test "${with_icu_inc+set}" = set; then
  20159. withval=$with_icu_inc;
  20160. if test -d "$withval"
  20161. then
  20162. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20163. $as_echo "using $withval" >&6; }
  20164. icu_inc="-I$withval"
  20165. else
  20166. echo
  20167. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20168. $as_echo "$as_me: error: $withval not found" >&2;}
  20169. { (exit 1); exit 1; }; }
  20170. fi
  20171. else
  20172. { $as_echo "$as_me:$LINENO: result: no" >&5
  20173. $as_echo "no" >&6; }
  20174. fi
  20175. # check for --with-icu-lib
  20176. { $as_echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  20177. $as_echo_n "checking for --with-icu-lib... " >&6; }
  20178. # Check whether --with-icu-lib was given.
  20179. if test "${with_icu_lib+set}" = set; then
  20180. withval=$with_icu_lib;
  20181. if test -d "$withval"
  20182. then
  20183. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20184. $as_echo "using $withval" >&6; }
  20185. icu_lib="-L$withval"
  20186. else
  20187. echo
  20188. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20189. $as_echo "$as_me: error: $withval not found" >&2;}
  20190. { (exit 1); exit 1; }; }
  20191. fi
  20192. else
  20193. { $as_echo "$as_me:$LINENO: result: no" >&5
  20194. $as_echo "no" >&6; }
  20195. fi
  20196. # check for --with-icu-bin
  20197. { $as_echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  20198. $as_echo_n "checking for --with-icu-bin... " >&6; }
  20199. # Check whether --with-icu-bin was given.
  20200. if test "${with_icu_bin+set}" = set; then
  20201. withval=$with_icu_bin;
  20202. if test -d "$withval"
  20203. then
  20204. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20205. $as_echo "using $withval" >&6; }
  20206. icu_bin="$withval"
  20207. else
  20208. echo
  20209. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20210. $as_echo "$as_me: error: $withval not found" >&2;}
  20211. { (exit 1); exit 1; }; }
  20212. fi
  20213. else
  20214. { $as_echo "$as_me:$LINENO: result: no" >&5
  20215. $as_echo "no" >&6; }
  20216. fi
  20217. # if ICU is not found yet, try pkg-config
  20218. # last resort
  20219. if test -z "$icu_lib"; then
  20220. # Extract the first word of "icu-config", so it can be a program name with args.
  20221. set dummy icu-config; ac_word=$2
  20222. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20223. $as_echo_n "checking for $ac_word... " >&6; }
  20224. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  20225. $as_echo_n "(cached) " >&6
  20226. else
  20227. case $ICU_CONFIG in
  20228. [\\/]* | ?:[\\/]*)
  20229. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  20230. ;;
  20231. *)
  20232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20233. for as_dir in $PATH
  20234. do
  20235. IFS=$as_save_IFS
  20236. test -z "$as_dir" && as_dir=.
  20237. for ac_exec_ext in '' $ac_executable_extensions; do
  20238. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20239. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20240. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20241. break 2
  20242. fi
  20243. done
  20244. done
  20245. IFS=$as_save_IFS
  20246. ;;
  20247. esac
  20248. fi
  20249. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  20250. if test -n "$ICU_CONFIG"; then
  20251. { $as_echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  20252. $as_echo "$ICU_CONFIG" >&6; }
  20253. else
  20254. { $as_echo "$as_me:$LINENO: result: no" >&5
  20255. $as_echo "no" >&6; }
  20256. fi
  20257. { $as_echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  20258. $as_echo_n "checking for icu with icu-config... " >&6; }
  20259. if test -n "$ICU_CONFIG"; then
  20260. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  20261. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  20262. icu_bin=`$ICU_CONFIG --bindir`
  20263. { $as_echo "$as_me:$LINENO: result: using system ICU" >&5
  20264. $as_echo "using system ICU" >&6; }
  20265. else
  20266. { { $as_echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  20267. $as_echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  20268. { (exit 1); exit 1; }; }
  20269. fi
  20270. fi
  20271. # BEGIN COPYRIGHT BLOCK
  20272. # Copyright (C) 2006 Red Hat, Inc.
  20273. # All rights reserved.
  20274. #
  20275. # This program is free software; you can redistribute it and/or
  20276. # modify it under the terms of the GNU General Public License
  20277. # as published by the Free Software Foundation; either version 2
  20278. # of the License, or (at your option) any later version.
  20279. #
  20280. # This program is distributed in the hope that it will be useful,
  20281. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20282. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20283. # GNU General Public License for more details.
  20284. #
  20285. # You should have received a copy of the GNU General Public License
  20286. # along with this program; if not, write to the Free Software
  20287. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20288. #
  20289. # END COPYRIGHT BLOCK
  20290. { $as_echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  20291. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  20292. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  20293. $as_echo_n "checking for --with-netsnmp... " >&6; }
  20294. # Check whether --with-netsnmp was given.
  20295. if test "${with_netsnmp+set}" = set; then
  20296. withval=$with_netsnmp;
  20297. if test "$withval" = "yes"; then
  20298. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20299. $as_echo "yes" >&6; }
  20300. elif test "$withval" = "no"; then
  20301. { $as_echo "$as_me:$LINENO: result: no" >&5
  20302. $as_echo "no" >&6; }
  20303. { { $as_echo "$as_me:$LINENO: error: Net-SNMP is required." >&5
  20304. $as_echo "$as_me: error: Net-SNMP is required." >&2;}
  20305. { (exit 1); exit 1; }; }
  20306. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  20307. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20308. $as_echo "using $withval" >&6; }
  20309. NETSNMPDIR=$withval
  20310. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  20311. netsnmp_inc="-I$withval/include"
  20312. else
  20313. { { $as_echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  20314. $as_echo "$as_me: error: net-snmp-config.h not found" >&2;}
  20315. { (exit 1); exit 1; }; }
  20316. fi
  20317. netsnmp_lib="-L$withval/lib"
  20318. netsnmp_libdir="$withval/lib"
  20319. else
  20320. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20321. $as_echo "yes" >&6; }
  20322. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20323. $as_echo "$as_me: error: $withval not found" >&2;}
  20324. { (exit 1); exit 1; }; }
  20325. fi
  20326. else
  20327. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20328. $as_echo "yes" >&6; }
  20329. fi
  20330. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  20331. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  20332. # Check whether --with-netsnmp-inc was given.
  20333. if test "${with_netsnmp_inc+set}" = set; then
  20334. withval=$with_netsnmp_inc;
  20335. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  20336. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20337. $as_echo "using $withval" >&6; }
  20338. netsnmp_inc="-I$withval"
  20339. else
  20340. echo
  20341. { { $as_echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  20342. $as_echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  20343. { (exit 1); exit 1; }; }
  20344. fi
  20345. else
  20346. { $as_echo "$as_me:$LINENO: result: no" >&5
  20347. $as_echo "no" >&6; }
  20348. fi
  20349. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  20350. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  20351. # Check whether --with-netsnmp-lib was given.
  20352. if test "${with_netsnmp_lib+set}" = set; then
  20353. withval=$with_netsnmp_lib;
  20354. if test -d "$withval"
  20355. then
  20356. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20357. $as_echo "using $withval" >&6; }
  20358. netsnmp_lib="-L$withval"
  20359. netsnmp_libdir="$withval"
  20360. else
  20361. echo
  20362. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20363. $as_echo "$as_me: error: $withval not found" >&2;}
  20364. { (exit 1); exit 1; }; }
  20365. fi
  20366. else
  20367. { $as_echo "$as_me:$LINENO: result: no" >&5
  20368. $as_echo "no" >&6; }
  20369. fi
  20370. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  20371. { $as_echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  20372. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  20373. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  20374. { $as_echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  20375. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  20376. netsnmp_inc="-I/usr/include"
  20377. else
  20378. { $as_echo "$as_me:$LINENO: result: no" >&5
  20379. $as_echo "no" >&6; }
  20380. { { $as_echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  20381. $as_echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  20382. { (exit 1); exit 1; }; }
  20383. fi
  20384. fi
  20385. if test -n "$netsnmp_inc"; then
  20386. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  20387. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  20388. else
  20389. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  20390. set dummy net-snmp-config; ac_word=$2
  20391. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20392. $as_echo_n "checking for $ac_word... " >&6; }
  20393. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  20394. $as_echo_n "(cached) " >&6
  20395. else
  20396. case $NETSNMP_CONFIG in
  20397. [\\/]* | ?:[\\/]*)
  20398. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  20399. ;;
  20400. *)
  20401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20402. for as_dir in $PATH
  20403. do
  20404. IFS=$as_save_IFS
  20405. test -z "$as_dir" && as_dir=.
  20406. for ac_exec_ext in '' $ac_executable_extensions; do
  20407. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20408. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20409. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20410. break 2
  20411. fi
  20412. done
  20413. done
  20414. IFS=$as_save_IFS
  20415. ;;
  20416. esac
  20417. fi
  20418. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  20419. if test -n "$NETSNMP_CONFIG"; then
  20420. { $as_echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  20421. $as_echo "$NETSNMP_CONFIG" >&6; }
  20422. else
  20423. { $as_echo "$as_me:$LINENO: result: no" >&5
  20424. $as_echo "no" >&6; }
  20425. fi
  20426. fi
  20427. if test -n "$NETSNMP_CONFIG"; then
  20428. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  20429. else
  20430. { { $as_echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  20431. $as_echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  20432. { (exit 1); exit 1; }; }
  20433. fi
  20434. else
  20435. { { $as_echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  20436. $as_echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  20437. { (exit 1); exit 1; }; }
  20438. fi
  20439. # BEGIN COPYRIGHT BLOCK
  20440. # Copyright (C) 2008 Red Hat, Inc.
  20441. # All rights reserved.
  20442. #
  20443. # This program is free software; you can redistribute it and/or
  20444. # modify it under the terms of the GNU General Public License
  20445. # as published by the Free Software Foundation; either version 2
  20446. # of the License, or (at your option) any later version.
  20447. #
  20448. # This program is distributed in the hope that it will be useful,
  20449. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20450. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20451. # GNU General Public License for more details.
  20452. #
  20453. # You should have received a copy of the GNU General Public License
  20454. # along with this program; if not, write to the Free Software
  20455. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20456. #
  20457. # END COPYRIGHT BLOCK
  20458. # -*- tab-width: 4; -*-
  20459. # Configure paths for Kerberos
  20460. { $as_echo "$as_me:$LINENO: checking for Kerberos..." >&5
  20461. $as_echo "$as_me: checking for Kerberos..." >&6;}
  20462. if test -z "$with_kerberos" ; then
  20463. with_kerberos=yes # if not set on cmdline, set default
  20464. fi
  20465. { $as_echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  20466. $as_echo_n "checking for --with-kerberos... " >&6; }
  20467. # Check whether --with-kerberos was given.
  20468. if test "${with_kerberos+set}" = set; then
  20469. withval=$with_kerberos;
  20470. if test "x$withval" = "xyes"; then
  20471. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20472. $as_echo "yes" >&6; }
  20473. elif test "x$withval" = "xno"; then
  20474. { $as_echo "$as_me:$LINENO: result: no" >&5
  20475. $as_echo "no" >&6; }
  20476. with_kerberos=
  20477. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  20478. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20479. $as_echo "using $withval" >&6; }
  20480. kerberos_incdir="$withval/include"
  20481. kerberos_libdir="$withval/lib"
  20482. else
  20483. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20484. $as_echo "yes" >&6; }
  20485. { { $as_echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  20486. $as_echo "$as_me: error: kerberos not found in $withval" >&2;}
  20487. { (exit 1); exit 1; }; }
  20488. fi
  20489. else
  20490. { $as_echo "$as_me:$LINENO: result: no" >&5
  20491. $as_echo "no" >&6; }
  20492. with_kerberos=
  20493. fi
  20494. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  20495. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  20496. # Check whether --with-kerberos-inc was given.
  20497. if test "${with_kerberos_inc+set}" = set; then
  20498. withval=$with_kerberos_inc;
  20499. if test -f "$withval"/krb5.h; then
  20500. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20501. $as_echo "using $withval" >&6; }
  20502. kerberos_incdir="$withval"
  20503. with_kerberos=yes # implies use of kerberos
  20504. else
  20505. echo
  20506. { { $as_echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  20507. $as_echo "$as_me: error: $withval/krb5.h not found" >&2;}
  20508. { (exit 1); exit 1; }; }
  20509. fi
  20510. else
  20511. { $as_echo "$as_me:$LINENO: result: no" >&5
  20512. $as_echo "no" >&6; }
  20513. fi
  20514. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  20515. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  20516. # Check whether --with-kerberos-lib was given.
  20517. if test "${with_kerberos_lib+set}" = set; then
  20518. withval=$with_kerberos_lib;
  20519. if test -d "$withval"; then
  20520. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20521. $as_echo "using $withval" >&6; }
  20522. kerberos_libdir="$withval"
  20523. with_kerberos=yes # implies use of kerberos
  20524. else
  20525. echo
  20526. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20527. $as_echo "$as_me: error: $withval not found" >&2;}
  20528. { (exit 1); exit 1; }; }
  20529. fi
  20530. else
  20531. { $as_echo "$as_me:$LINENO: result: no" >&5
  20532. $as_echo "no" >&6; }
  20533. fi
  20534. if test -n "$with_kerberos" ; then
  20535. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  20536. if test -z "$KRB5_CONFIG_BIN" ; then
  20537. # Extract the first word of "krb5-config", so it can be a program name with args.
  20538. set dummy krb5-config; ac_word=$2
  20539. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20540. $as_echo_n "checking for $ac_word... " >&6; }
  20541. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  20542. $as_echo_n "(cached) " >&6
  20543. else
  20544. case $KRB5_CONFIG_BIN in
  20545. [\\/]* | ?:[\\/]*)
  20546. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  20547. ;;
  20548. *)
  20549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20550. for as_dir in $PATH
  20551. do
  20552. IFS=$as_save_IFS
  20553. test -z "$as_dir" && as_dir=.
  20554. for ac_exec_ext in '' $ac_executable_extensions; do
  20555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20556. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  20557. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20558. break 2
  20559. fi
  20560. done
  20561. done
  20562. IFS=$as_save_IFS
  20563. ;;
  20564. esac
  20565. fi
  20566. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  20567. if test -n "$KRB5_CONFIG_BIN"; then
  20568. { $as_echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  20569. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  20570. else
  20571. { $as_echo "$as_me:$LINENO: result: no" >&5
  20572. $as_echo "no" >&6; }
  20573. fi
  20574. fi
  20575. if test -n "$KRB5_CONFIG_BIN" ; then
  20576. { $as_echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  20577. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  20578. if test -z "$kerberos_libdir" ; then
  20579. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  20580. fi
  20581. if test -z "$kerberos_incdir" ; then
  20582. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  20583. fi
  20584. if test -n "$kerberos_lib" ; then
  20585. { $as_echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  20586. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  20587. have_krb5=yes
  20588. fi
  20589. fi
  20590. fi
  20591. fi
  20592. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  20593. # save these in order to set them to use the check macros below
  20594. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  20595. save_CPPFLAGS="$CPPFLAGS"
  20596. if test -n "$kerberos_incdir" ; then
  20597. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  20598. fi
  20599. save_LDFLAGS="$LDFLAGS"
  20600. if test -n "$kerberos_libdir" ; then
  20601. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  20602. fi
  20603. krb5_impl=mit
  20604. for ac_header in heim_err.h
  20605. do
  20606. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20607. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20608. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20609. $as_echo_n "checking for $ac_header... " >&6; }
  20610. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20611. $as_echo_n "(cached) " >&6
  20612. fi
  20613. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20614. $as_echo "$as_val"'`
  20615. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20616. $as_echo "$ac_res" >&6; }
  20617. else
  20618. # Is the header compilable?
  20619. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20620. $as_echo_n "checking $ac_header usability... " >&6; }
  20621. cat >conftest.$ac_ext <<_ACEOF
  20622. /* confdefs.h. */
  20623. _ACEOF
  20624. cat confdefs.h >>conftest.$ac_ext
  20625. cat >>conftest.$ac_ext <<_ACEOF
  20626. /* end confdefs.h. */
  20627. $ac_includes_default
  20628. #include <$ac_header>
  20629. _ACEOF
  20630. rm -f conftest.$ac_objext
  20631. if { (ac_try="$ac_compile"
  20632. case "(($ac_try" in
  20633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20634. *) ac_try_echo=$ac_try;;
  20635. esac
  20636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20637. $as_echo "$ac_try_echo") >&5
  20638. (eval "$ac_compile") 2>conftest.er1
  20639. ac_status=$?
  20640. grep -v '^ *+' conftest.er1 >conftest.err
  20641. rm -f conftest.er1
  20642. cat conftest.err >&5
  20643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20644. (exit $ac_status); } && {
  20645. test -z "$ac_c_werror_flag" ||
  20646. test ! -s conftest.err
  20647. } && test -s conftest.$ac_objext; then
  20648. ac_header_compiler=yes
  20649. else
  20650. $as_echo "$as_me: failed program was:" >&5
  20651. sed 's/^/| /' conftest.$ac_ext >&5
  20652. ac_header_compiler=no
  20653. fi
  20654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20655. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20656. $as_echo "$ac_header_compiler" >&6; }
  20657. # Is the header present?
  20658. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20659. $as_echo_n "checking $ac_header presence... " >&6; }
  20660. cat >conftest.$ac_ext <<_ACEOF
  20661. /* confdefs.h. */
  20662. _ACEOF
  20663. cat confdefs.h >>conftest.$ac_ext
  20664. cat >>conftest.$ac_ext <<_ACEOF
  20665. /* end confdefs.h. */
  20666. #include <$ac_header>
  20667. _ACEOF
  20668. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20669. case "(($ac_try" in
  20670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20671. *) ac_try_echo=$ac_try;;
  20672. esac
  20673. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20674. $as_echo "$ac_try_echo") >&5
  20675. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20676. ac_status=$?
  20677. grep -v '^ *+' conftest.er1 >conftest.err
  20678. rm -f conftest.er1
  20679. cat conftest.err >&5
  20680. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20681. (exit $ac_status); } >/dev/null && {
  20682. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20683. test ! -s conftest.err
  20684. }; then
  20685. ac_header_preproc=yes
  20686. else
  20687. $as_echo "$as_me: failed program was:" >&5
  20688. sed 's/^/| /' conftest.$ac_ext >&5
  20689. ac_header_preproc=no
  20690. fi
  20691. rm -f conftest.err conftest.$ac_ext
  20692. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20693. $as_echo "$ac_header_preproc" >&6; }
  20694. # So? What about this header?
  20695. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20696. yes:no: )
  20697. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20698. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20699. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20700. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20701. ac_header_preproc=yes
  20702. ;;
  20703. no:yes:* )
  20704. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20705. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20706. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20707. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20708. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20709. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20710. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20711. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20712. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20713. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20714. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20715. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20716. ( cat <<\_ASBOX
  20717. ## ------------------------------------------ ##
  20718. ## Report this to http://bugzilla.redhat.com/ ##
  20719. ## ------------------------------------------ ##
  20720. _ASBOX
  20721. ) | sed "s/^/$as_me: WARNING: /" >&2
  20722. ;;
  20723. esac
  20724. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20725. $as_echo_n "checking for $ac_header... " >&6; }
  20726. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20727. $as_echo_n "(cached) " >&6
  20728. else
  20729. eval "$as_ac_Header=\$ac_header_preproc"
  20730. fi
  20731. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20732. $as_echo "$as_val"'`
  20733. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20734. $as_echo "$ac_res" >&6; }
  20735. fi
  20736. as_val=`eval 'as_val=${'$as_ac_Header'}
  20737. $as_echo "$as_val"'`
  20738. if test "x$as_val" = x""yes; then
  20739. cat >>confdefs.h <<_ACEOF
  20740. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20741. _ACEOF
  20742. fi
  20743. done
  20744. if test $ac_cv_header_heim_err_h = yes ; then
  20745. krb5_impl=heimdal
  20746. fi
  20747. if test "x$krb5_impl" = "xmit"; then
  20748. { $as_echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  20749. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  20750. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  20751. $as_echo_n "(cached) " >&6
  20752. else
  20753. ac_check_lib_save_LIBS=$LIBS
  20754. LIBS="-lk5crypto $LIBS"
  20755. cat >conftest.$ac_ext <<_ACEOF
  20756. /* confdefs.h. */
  20757. _ACEOF
  20758. cat confdefs.h >>conftest.$ac_ext
  20759. cat >>conftest.$ac_ext <<_ACEOF
  20760. /* end confdefs.h. */
  20761. int
  20762. main ()
  20763. {
  20764. return main ();
  20765. ;
  20766. return 0;
  20767. }
  20768. _ACEOF
  20769. rm -f conftest.$ac_objext conftest$ac_exeext
  20770. if { (ac_try="$ac_link"
  20771. case "(($ac_try" in
  20772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20773. *) ac_try_echo=$ac_try;;
  20774. esac
  20775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20776. $as_echo "$ac_try_echo") >&5
  20777. (eval "$ac_link") 2>conftest.er1
  20778. ac_status=$?
  20779. grep -v '^ *+' conftest.er1 >conftest.err
  20780. rm -f conftest.er1
  20781. cat conftest.err >&5
  20782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20783. (exit $ac_status); } && {
  20784. test -z "$ac_c_werror_flag" ||
  20785. test ! -s conftest.err
  20786. } && test -s conftest$ac_exeext && {
  20787. test "$cross_compiling" = yes ||
  20788. $as_test_x conftest$ac_exeext
  20789. }; then
  20790. ac_cv_lib_k5crypto_main=yes
  20791. else
  20792. $as_echo "$as_me: failed program was:" >&5
  20793. sed 's/^/| /' conftest.$ac_ext >&5
  20794. ac_cv_lib_k5crypto_main=no
  20795. fi
  20796. rm -rf conftest.dSYM
  20797. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20798. conftest$ac_exeext conftest.$ac_ext
  20799. LIBS=$ac_check_lib_save_LIBS
  20800. fi
  20801. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  20802. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  20803. if test "x$ac_cv_lib_k5crypto_main" = x""yes; then
  20804. krb5crypto=k5crypto
  20805. else
  20806. krb5crypto=crypto
  20807. fi
  20808. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  20809. $as_echo_n "checking for main in -lkrb5... " >&6; }
  20810. if test "${ac_cv_lib_krb5_main+set}" = set; then
  20811. $as_echo_n "(cached) " >&6
  20812. else
  20813. ac_check_lib_save_LIBS=$LIBS
  20814. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  20815. cat >conftest.$ac_ext <<_ACEOF
  20816. /* confdefs.h. */
  20817. _ACEOF
  20818. cat confdefs.h >>conftest.$ac_ext
  20819. cat >>conftest.$ac_ext <<_ACEOF
  20820. /* end confdefs.h. */
  20821. int
  20822. main ()
  20823. {
  20824. return main ();
  20825. ;
  20826. return 0;
  20827. }
  20828. _ACEOF
  20829. rm -f conftest.$ac_objext conftest$ac_exeext
  20830. if { (ac_try="$ac_link"
  20831. case "(($ac_try" in
  20832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20833. *) ac_try_echo=$ac_try;;
  20834. esac
  20835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20836. $as_echo "$ac_try_echo") >&5
  20837. (eval "$ac_link") 2>conftest.er1
  20838. ac_status=$?
  20839. grep -v '^ *+' conftest.er1 >conftest.err
  20840. rm -f conftest.er1
  20841. cat conftest.err >&5
  20842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20843. (exit $ac_status); } && {
  20844. test -z "$ac_c_werror_flag" ||
  20845. test ! -s conftest.err
  20846. } && test -s conftest$ac_exeext && {
  20847. test "$cross_compiling" = yes ||
  20848. $as_test_x conftest$ac_exeext
  20849. }; then
  20850. ac_cv_lib_krb5_main=yes
  20851. else
  20852. $as_echo "$as_me: failed program was:" >&5
  20853. sed 's/^/| /' conftest.$ac_ext >&5
  20854. ac_cv_lib_krb5_main=no
  20855. fi
  20856. rm -rf conftest.dSYM
  20857. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20858. conftest$ac_exeext conftest.$ac_ext
  20859. LIBS=$ac_check_lib_save_LIBS
  20860. fi
  20861. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  20862. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  20863. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  20864. have_krb5=yes
  20865. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  20866. else
  20867. have_krb5=no
  20868. fi
  20869. elif test "x$krb5_impl" = "xheimdal"; then
  20870. { $as_echo "$as_me:$LINENO: checking for main in -ldes" >&5
  20871. $as_echo_n "checking for main in -ldes... " >&6; }
  20872. if test "${ac_cv_lib_des_main+set}" = set; then
  20873. $as_echo_n "(cached) " >&6
  20874. else
  20875. ac_check_lib_save_LIBS=$LIBS
  20876. LIBS="-ldes $LIBS"
  20877. cat >conftest.$ac_ext <<_ACEOF
  20878. /* confdefs.h. */
  20879. _ACEOF
  20880. cat confdefs.h >>conftest.$ac_ext
  20881. cat >>conftest.$ac_ext <<_ACEOF
  20882. /* end confdefs.h. */
  20883. int
  20884. main ()
  20885. {
  20886. return main ();
  20887. ;
  20888. return 0;
  20889. }
  20890. _ACEOF
  20891. rm -f conftest.$ac_objext conftest$ac_exeext
  20892. if { (ac_try="$ac_link"
  20893. case "(($ac_try" in
  20894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20895. *) ac_try_echo=$ac_try;;
  20896. esac
  20897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20898. $as_echo "$ac_try_echo") >&5
  20899. (eval "$ac_link") 2>conftest.er1
  20900. ac_status=$?
  20901. grep -v '^ *+' conftest.er1 >conftest.err
  20902. rm -f conftest.er1
  20903. cat conftest.err >&5
  20904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20905. (exit $ac_status); } && {
  20906. test -z "$ac_c_werror_flag" ||
  20907. test ! -s conftest.err
  20908. } && test -s conftest$ac_exeext && {
  20909. test "$cross_compiling" = yes ||
  20910. $as_test_x conftest$ac_exeext
  20911. }; then
  20912. ac_cv_lib_des_main=yes
  20913. else
  20914. $as_echo "$as_me: failed program was:" >&5
  20915. sed 's/^/| /' conftest.$ac_ext >&5
  20916. ac_cv_lib_des_main=no
  20917. fi
  20918. rm -rf conftest.dSYM
  20919. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20920. conftest$ac_exeext conftest.$ac_ext
  20921. LIBS=$ac_check_lib_save_LIBS
  20922. fi
  20923. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  20924. $as_echo "$ac_cv_lib_des_main" >&6; }
  20925. if test "x$ac_cv_lib_des_main" = x""yes; then
  20926. krb5crypto=des
  20927. else
  20928. krb5crypto=crypto
  20929. fi
  20930. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  20931. $as_echo_n "checking for main in -lkrb5... " >&6; }
  20932. if test "${ac_cv_lib_krb5_main+set}" = set; then
  20933. $as_echo_n "(cached) " >&6
  20934. else
  20935. ac_check_lib_save_LIBS=$LIBS
  20936. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  20937. cat >conftest.$ac_ext <<_ACEOF
  20938. /* confdefs.h. */
  20939. _ACEOF
  20940. cat confdefs.h >>conftest.$ac_ext
  20941. cat >>conftest.$ac_ext <<_ACEOF
  20942. /* end confdefs.h. */
  20943. int
  20944. main ()
  20945. {
  20946. return main ();
  20947. ;
  20948. return 0;
  20949. }
  20950. _ACEOF
  20951. rm -f conftest.$ac_objext conftest$ac_exeext
  20952. if { (ac_try="$ac_link"
  20953. case "(($ac_try" in
  20954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20955. *) ac_try_echo=$ac_try;;
  20956. esac
  20957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20958. $as_echo "$ac_try_echo") >&5
  20959. (eval "$ac_link") 2>conftest.er1
  20960. ac_status=$?
  20961. grep -v '^ *+' conftest.er1 >conftest.err
  20962. rm -f conftest.er1
  20963. cat conftest.err >&5
  20964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20965. (exit $ac_status); } && {
  20966. test -z "$ac_c_werror_flag" ||
  20967. test ! -s conftest.err
  20968. } && test -s conftest$ac_exeext && {
  20969. test "$cross_compiling" = yes ||
  20970. $as_test_x conftest$ac_exeext
  20971. }; then
  20972. ac_cv_lib_krb5_main=yes
  20973. else
  20974. $as_echo "$as_me: failed program was:" >&5
  20975. sed 's/^/| /' conftest.$ac_ext >&5
  20976. ac_cv_lib_krb5_main=no
  20977. fi
  20978. rm -rf conftest.dSYM
  20979. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20980. conftest$ac_exeext conftest.$ac_ext
  20981. LIBS=$ac_check_lib_save_LIBS
  20982. fi
  20983. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  20984. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  20985. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  20986. have_krb5=yes
  20987. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  20988. else
  20989. have_krb5=no
  20990. fi
  20991. cat >>confdefs.h <<\_ACEOF
  20992. #define HAVE_HEIMDAL_KERBEROS 1
  20993. _ACEOF
  20994. else
  20995. have_krb5=no
  20996. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  20997. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  20998. fi
  20999. # reset to original values
  21000. CPPFLAGS="$save_CPPFLAGS"
  21001. LDFLAGS="$save_LDFLAGS"
  21002. if test -n "$kerberos_incdir" ; then
  21003. kerberos_inc="-I$kerberos_incdir"
  21004. fi
  21005. if test -n "$kerberos_libdir" ; then
  21006. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  21007. fi
  21008. fi
  21009. if test -n "$with_kerberos" ; then
  21010. if test "x$have_krb5" = "xyes" ; then
  21011. cat >>confdefs.h <<\_ACEOF
  21012. #define HAVE_KRB5 1
  21013. _ACEOF
  21014. else
  21015. { { $as_echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  21016. $as_echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  21017. { (exit 1); exit 1; }; }
  21018. fi
  21019. save_LIBS="$LIBS"
  21020. LIBS="$kerberos_lib"
  21021. save_CPPFLAGS="$CPPFLAGS"
  21022. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  21023. for ac_func in krb5_cc_new_unique
  21024. do
  21025. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21026. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  21027. $as_echo_n "checking for $ac_func... " >&6; }
  21028. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21029. $as_echo_n "(cached) " >&6
  21030. else
  21031. cat >conftest.$ac_ext <<_ACEOF
  21032. /* confdefs.h. */
  21033. _ACEOF
  21034. cat confdefs.h >>conftest.$ac_ext
  21035. cat >>conftest.$ac_ext <<_ACEOF
  21036. /* end confdefs.h. */
  21037. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21038. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21039. #define $ac_func innocuous_$ac_func
  21040. /* System header to define __stub macros and hopefully few prototypes,
  21041. which can conflict with char $ac_func (); below.
  21042. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21043. <limits.h> exists even on freestanding compilers. */
  21044. #ifdef __STDC__
  21045. # include <limits.h>
  21046. #else
  21047. # include <assert.h>
  21048. #endif
  21049. #undef $ac_func
  21050. /* Override any GCC internal prototype to avoid an error.
  21051. Use char because int might match the return type of a GCC
  21052. builtin and then its argument prototype would still apply. */
  21053. #ifdef __cplusplus
  21054. extern "C"
  21055. #endif
  21056. char $ac_func ();
  21057. /* The GNU C library defines this for functions which it implements
  21058. to always fail with ENOSYS. Some functions are actually named
  21059. something starting with __ and the normal name is an alias. */
  21060. #if defined __stub_$ac_func || defined __stub___$ac_func
  21061. choke me
  21062. #endif
  21063. int
  21064. main ()
  21065. {
  21066. return $ac_func ();
  21067. ;
  21068. return 0;
  21069. }
  21070. _ACEOF
  21071. rm -f conftest.$ac_objext conftest$ac_exeext
  21072. if { (ac_try="$ac_link"
  21073. case "(($ac_try" in
  21074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21075. *) ac_try_echo=$ac_try;;
  21076. esac
  21077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21078. $as_echo "$ac_try_echo") >&5
  21079. (eval "$ac_link") 2>conftest.er1
  21080. ac_status=$?
  21081. grep -v '^ *+' conftest.er1 >conftest.err
  21082. rm -f conftest.er1
  21083. cat conftest.err >&5
  21084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21085. (exit $ac_status); } && {
  21086. test -z "$ac_c_werror_flag" ||
  21087. test ! -s conftest.err
  21088. } && test -s conftest$ac_exeext && {
  21089. test "$cross_compiling" = yes ||
  21090. $as_test_x conftest$ac_exeext
  21091. }; then
  21092. eval "$as_ac_var=yes"
  21093. else
  21094. $as_echo "$as_me: failed program was:" >&5
  21095. sed 's/^/| /' conftest.$ac_ext >&5
  21096. eval "$as_ac_var=no"
  21097. fi
  21098. rm -rf conftest.dSYM
  21099. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21100. conftest$ac_exeext conftest.$ac_ext
  21101. fi
  21102. ac_res=`eval 'as_val=${'$as_ac_var'}
  21103. $as_echo "$as_val"'`
  21104. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21105. $as_echo "$ac_res" >&6; }
  21106. as_val=`eval 'as_val=${'$as_ac_var'}
  21107. $as_echo "$as_val"'`
  21108. if test "x$as_val" = x""yes; then
  21109. cat >>confdefs.h <<_ACEOF
  21110. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21111. _ACEOF
  21112. fi
  21113. done
  21114. LIBS="$save_LIBS"
  21115. CPPFLAGS="$save_CPPFLAGS"
  21116. fi
  21117. # BEGIN COPYRIGHT BLOCK
  21118. # Copyright (C) 2007 Red Hat, Inc.
  21119. # All rights reserved.
  21120. #
  21121. # This program is free software; you can redistribute it and/or
  21122. # modify it under the terms of the GNU General Public License
  21123. # as published by the Free Software Foundation; either version 2
  21124. # of the License, or (at your option) any later version.
  21125. #
  21126. # This program is distributed in the hope that it will be useful,
  21127. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21128. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21129. # GNU General Public License for more details.
  21130. #
  21131. # You should have received a copy of the GNU General Public License
  21132. # along with this program; if not, write to the Free Software
  21133. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21134. #
  21135. # END COPYRIGHT BLOCK
  21136. { $as_echo "$as_me:$LINENO: checking for PCRE..." >&5
  21137. $as_echo "$as_me: checking for PCRE..." >&6;}
  21138. { $as_echo "$as_me:$LINENO: checking for --with-pcre" >&5
  21139. $as_echo_n "checking for --with-pcre... " >&6; }
  21140. # Check whether --with-pcre was given.
  21141. if test "${with_pcre+set}" = set; then
  21142. withval=$with_pcre;
  21143. if test "$withval" = "yes"; then
  21144. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21145. $as_echo "yes" >&6; }
  21146. elif test "$withval" = "no"; then
  21147. { $as_echo "$as_me:$LINENO: result: no" >&5
  21148. $as_echo "no" >&6; }
  21149. { { $as_echo "$as_me:$LINENO: error: PCRE is required." >&5
  21150. $as_echo "$as_me: error: PCRE is required." >&2;}
  21151. { (exit 1); exit 1; }; }
  21152. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21153. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  21154. $as_echo "using $withval" >&6; }
  21155. PCREDIR=$withval
  21156. pcre_lib="-L$PCREDIR/lib"
  21157. pcre_libdir="$PCREDIR/lib"
  21158. pcre_incdir="$PCREDIR/include"
  21159. if ! test -e "$pcre_incdir/pcre.h" ; then
  21160. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21161. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  21162. { (exit 1); exit 1; }; }
  21163. fi
  21164. pcre_inc="-I$pcre_incdir"
  21165. else
  21166. echo
  21167. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  21168. $as_echo "$as_me: error: $withval not found" >&2;}
  21169. { (exit 1); exit 1; }; }
  21170. fi
  21171. else
  21172. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21173. $as_echo "yes" >&6; }
  21174. fi
  21175. #
  21176. # if PCRE is not found yet, try pkg-config
  21177. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  21178. # Extract the first word of "pkg-config", so it can be a program name with args.
  21179. set dummy pkg-config; ac_word=$2
  21180. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21181. $as_echo_n "checking for $ac_word... " >&6; }
  21182. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21183. $as_echo_n "(cached) " >&6
  21184. else
  21185. case $PKG_CONFIG in
  21186. [\\/]* | ?:[\\/]*)
  21187. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21188. ;;
  21189. *)
  21190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21191. for as_dir in $PATH
  21192. do
  21193. IFS=$as_save_IFS
  21194. test -z "$as_dir" && as_dir=.
  21195. for ac_exec_ext in '' $ac_executable_extensions; do
  21196. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21197. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21198. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21199. break 2
  21200. fi
  21201. done
  21202. done
  21203. IFS=$as_save_IFS
  21204. ;;
  21205. esac
  21206. fi
  21207. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21208. if test -n "$PKG_CONFIG"; then
  21209. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21210. $as_echo "$PKG_CONFIG" >&6; }
  21211. else
  21212. { $as_echo "$as_me:$LINENO: result: no" >&5
  21213. $as_echo "no" >&6; }
  21214. fi
  21215. { $as_echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  21216. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  21217. if test -n "$PKG_CONFIG"; then
  21218. if $PKG_CONFIG --exists pcre; then
  21219. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  21220. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  21221. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  21222. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  21223. $as_echo "using system PCRE" >&6; }
  21224. elif $PKG_CONFIG --exists libpcre; then
  21225. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  21226. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  21227. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  21228. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  21229. $as_echo "using system PCRE" >&6; }
  21230. else
  21231. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  21232. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  21233. { (exit 1); exit 1; }; }
  21234. fi
  21235. fi
  21236. fi
  21237. if test -z "$pcre_inc"; then
  21238. { $as_echo "$as_me:$LINENO: checking for pcre.h" >&5
  21239. $as_echo_n "checking for pcre.h... " >&6; }
  21240. if test -f "/usr/include/pcre/pcre.h"; then
  21241. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre/pcre.h" >&5
  21242. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  21243. pcre_incdir="/usr/include/pcre"
  21244. pcre_inc="-I/usr/include/pcre"
  21245. pcre_lib='-L$(libdir)'
  21246. pcre_libdir='$(libdir)'
  21247. elif test -f "/usr/include/pcre.h"; then
  21248. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  21249. $as_echo "using /usr/include/pcre.h" >&6; }
  21250. pcre_incdir="/usr/include"
  21251. pcre_inc="-I/usr/include"
  21252. pcre_lib='-L$(libdir)'
  21253. pcre_libdir='$(libdir)'
  21254. else
  21255. { $as_echo "$as_me:$LINENO: result: no" >&5
  21256. $as_echo "no" >&6; }
  21257. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  21258. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  21259. { (exit 1); exit 1; }; }
  21260. fi
  21261. fi
  21262. # BEGIN COPYRIGHT BLOCK
  21263. # Copyright (C) 2009 Red Hat, Inc.
  21264. # All rights reserved.
  21265. #
  21266. # This program is free software; you can redistribute it and/or
  21267. # modify it under the terms of the GNU General Public License
  21268. # as published by the Free Software Foundation; either version 2
  21269. # of the License, or (at your option) any later version.
  21270. #
  21271. # This program is distributed in the hope that it will be useful,
  21272. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21273. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21274. # GNU General Public License for more details.
  21275. #
  21276. # You should have received a copy of the GNU General Public License
  21277. # along with this program; if not, write to the Free Software
  21278. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21279. #
  21280. # END COPYRIGHT BLOCK
  21281. { $as_echo "$as_me:$LINENO: checking for SELinux..." >&5
  21282. $as_echo "$as_me: checking for SELinux..." >&6;}
  21283. # check for --with-selinux
  21284. { $as_echo "$as_me:$LINENO: checking for --with-selinux" >&5
  21285. $as_echo_n "checking for --with-selinux... " >&6; }
  21286. # Check whether --with-selinux was given.
  21287. if test "${with_selinux+set}" = set; then
  21288. withval=$with_selinux;
  21289. if test "$withval" = "no"; then
  21290. { $as_echo "$as_me:$LINENO: result: no" >&5
  21291. $as_echo "no" >&6; }
  21292. else
  21293. with_selinux=yes
  21294. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21295. $as_echo "yes" >&6; }
  21296. if test ! -f "/usr/share/selinux/devel/Makefile"; then
  21297. { { $as_echo "$as_me:$LINENO: error: SELinux development tools (selinux-policy) not found" >&5
  21298. $as_echo "$as_me: error: SELinux development tools (selinux-policy) not found" >&2;}
  21299. { (exit 1); exit 1; }; }
  21300. fi
  21301. fi
  21302. else
  21303. { $as_echo "$as_me:$LINENO: result: no" >&5
  21304. $as_echo "no" >&6; }
  21305. fi
  21306. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  21307. # set sasl_path for wrapper scripts
  21308. if test -z "$sasl_libdir" ; then
  21309. sasl_path="$libdir/sasl2"
  21310. else
  21311. sasl_path="$sasl_libdir/sasl2"
  21312. fi
  21313. if test "$with_selinux" = "yes"; then
  21314. SELINUX_TRUE=
  21315. SELINUX_FALSE='#'
  21316. else
  21317. SELINUX_TRUE='#'
  21318. SELINUX_FALSE=
  21319. fi
  21320. if test "$with_openldap" = "yes"; then
  21321. OPENLDAP_TRUE=
  21322. OPENLDAP_FALSE='#'
  21323. else
  21324. OPENLDAP_TRUE='#'
  21325. OPENLDAP_FALSE=
  21326. fi
  21327. # write out paths for binary components
  21328. cat >>confdefs.h <<\_ACEOF
  21329. #define LDAP_DEBUG 1
  21330. _ACEOF
  21331. cat >>confdefs.h <<\_ACEOF
  21332. #define LDAP_DONT_USE_SMARTHEAP 1
  21333. _ACEOF
  21334. # libtool on fedora/rhel contains some gcc-isms which cause problems
  21335. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  21336. # we remove them here
  21337. if test "$GCC" != yes ; then
  21338. { $as_echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  21339. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  21340. cp -p libtool libtool.orig
  21341. cp -p libtool libtool.tmp
  21342. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  21343. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  21344. # perl produced write-only code . . .
  21345. sed -e '/^gcc_dir/ d' \
  21346. -e '/^gcc_ver/ d' \
  21347. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  21348. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  21349. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  21350. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  21351. libtool > libtool.tmp
  21352. cp -p libtool.tmp libtool
  21353. rm -f libtool.tmp
  21354. fi
  21355. ac_config_files="$ac_config_files Makefile"
  21356. cat >confcache <<\_ACEOF
  21357. # This file is a shell script that caches the results of configure
  21358. # tests run on this system so they can be shared between configure
  21359. # scripts and configure runs, see configure's option --config-cache.
  21360. # It is not useful on other systems. If it contains results you don't
  21361. # want to keep, you may remove or edit it.
  21362. #
  21363. # config.status only pays attention to the cache file if you give it
  21364. # the --recheck option to rerun configure.
  21365. #
  21366. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21367. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21368. # following values.
  21369. _ACEOF
  21370. # The following way of writing the cache mishandles newlines in values,
  21371. # but we know of no workaround that is simple, portable, and efficient.
  21372. # So, we kill variables containing newlines.
  21373. # Ultrix sh set writes to stderr and can't be redirected directly,
  21374. # and sets the high bit in the cache file unless we assign to the vars.
  21375. (
  21376. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21377. eval ac_val=\$$ac_var
  21378. case $ac_val in #(
  21379. *${as_nl}*)
  21380. case $ac_var in #(
  21381. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  21382. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21383. esac
  21384. case $ac_var in #(
  21385. _ | IFS | as_nl) ;; #(
  21386. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21387. *) $as_unset $ac_var ;;
  21388. esac ;;
  21389. esac
  21390. done
  21391. (set) 2>&1 |
  21392. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21393. *${as_nl}ac_space=\ *)
  21394. # `set' does not quote correctly, so add quotes (double-quote
  21395. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21396. sed -n \
  21397. "s/'/'\\\\''/g;
  21398. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21399. ;; #(
  21400. *)
  21401. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21402. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21403. ;;
  21404. esac |
  21405. sort
  21406. ) |
  21407. sed '
  21408. /^ac_cv_env_/b end
  21409. t clear
  21410. :clear
  21411. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21412. t end
  21413. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21414. :end' >>confcache
  21415. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21416. if test -w "$cache_file"; then
  21417. test "x$cache_file" != "x/dev/null" &&
  21418. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21419. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21420. cat confcache >$cache_file
  21421. else
  21422. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21423. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21424. fi
  21425. fi
  21426. rm -f confcache
  21427. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21428. # Let make expand exec_prefix.
  21429. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21430. DEFS=-DHAVE_CONFIG_H
  21431. ac_libobjs=
  21432. ac_ltlibobjs=
  21433. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21434. # 1. Remove the extension, and $U if already installed.
  21435. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21436. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21437. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21438. # will be set to the directory where LIBOBJS objects are built.
  21439. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21440. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21441. done
  21442. LIBOBJS=$ac_libobjs
  21443. LTLIBOBJS=$ac_ltlibobjs
  21444. if test -n "$EXEEXT"; then
  21445. am__EXEEXT_TRUE=
  21446. am__EXEEXT_FALSE='#'
  21447. else
  21448. am__EXEEXT_TRUE='#'
  21449. am__EXEEXT_FALSE=
  21450. fi
  21451. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21452. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  21453. Usually this means the macro was only invoked conditionally." >&5
  21454. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  21455. Usually this means the macro was only invoked conditionally." >&2;}
  21456. { (exit 1); exit 1; }; }
  21457. fi
  21458. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21459. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21460. Usually this means the macro was only invoked conditionally." >&5
  21461. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21462. Usually this means the macro was only invoked conditionally." >&2;}
  21463. { (exit 1); exit 1; }; }
  21464. fi
  21465. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21466. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21467. Usually this means the macro was only invoked conditionally." >&5
  21468. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21469. Usually this means the macro was only invoked conditionally." >&2;}
  21470. { (exit 1); exit 1; }; }
  21471. fi
  21472. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21473. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21474. Usually this means the macro was only invoked conditionally." >&5
  21475. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21476. Usually this means the macro was only invoked conditionally." >&2;}
  21477. { (exit 1); exit 1; }; }
  21478. fi
  21479. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  21480. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  21481. Usually this means the macro was only invoked conditionally." >&5
  21482. $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  21483. Usually this means the macro was only invoked conditionally." >&2;}
  21484. { (exit 1); exit 1; }; }
  21485. fi
  21486. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21487. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21488. Usually this means the macro was only invoked conditionally." >&5
  21489. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21490. Usually this means the macro was only invoked conditionally." >&2;}
  21491. { (exit 1); exit 1; }; }
  21492. fi
  21493. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  21494. { { $as_echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  21495. Usually this means the macro was only invoked conditionally." >&5
  21496. $as_echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  21497. Usually this means the macro was only invoked conditionally." >&2;}
  21498. { (exit 1); exit 1; }; }
  21499. fi
  21500. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  21501. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  21502. Usually this means the macro was only invoked conditionally." >&5
  21503. $as_echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  21504. Usually this means the macro was only invoked conditionally." >&2;}
  21505. { (exit 1); exit 1; }; }
  21506. fi
  21507. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  21508. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  21509. Usually this means the macro was only invoked conditionally." >&5
  21510. $as_echo "$as_me: error: conditional \"enable_dna\" was never defined.
  21511. Usually this means the macro was only invoked conditionally." >&2;}
  21512. { (exit 1); exit 1; }; }
  21513. fi
  21514. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  21515. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  21516. Usually this means the macro was only invoked conditionally." >&5
  21517. $as_echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  21518. Usually this means the macro was only invoked conditionally." >&2;}
  21519. { (exit 1); exit 1; }; }
  21520. fi
  21521. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  21522. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  21523. Usually this means the macro was only invoked conditionally." >&5
  21524. $as_echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  21525. Usually this means the macro was only invoked conditionally." >&2;}
  21526. { (exit 1); exit 1; }; }
  21527. fi
  21528. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  21529. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  21530. Usually this means the macro was only invoked conditionally." >&5
  21531. $as_echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  21532. Usually this means the macro was only invoked conditionally." >&2;}
  21533. { (exit 1); exit 1; }; }
  21534. fi
  21535. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  21536. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  21537. Usually this means the macro was only invoked conditionally." >&5
  21538. $as_echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  21539. Usually this means the macro was only invoked conditionally." >&2;}
  21540. { (exit 1); exit 1; }; }
  21541. fi
  21542. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  21543. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  21544. Usually this means the macro was only invoked conditionally." >&5
  21545. $as_echo "$as_me: error: conditional \"enable_presence\" was never defined.
  21546. Usually this means the macro was only invoked conditionally." >&2;}
  21547. { (exit 1); exit 1; }; }
  21548. fi
  21549. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  21550. { { $as_echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  21551. Usually this means the macro was only invoked conditionally." >&5
  21552. $as_echo "$as_me: error: conditional \"WINNT\" was never defined.
  21553. Usually this means the macro was only invoked conditionally." >&2;}
  21554. { (exit 1); exit 1; }; }
  21555. fi
  21556. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  21557. { { $as_echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  21558. Usually this means the macro was only invoked conditionally." >&5
  21559. $as_echo "$as_me: error: conditional \"HPUX\" was never defined.
  21560. Usually this means the macro was only invoked conditionally." >&2;}
  21561. { (exit 1); exit 1; }; }
  21562. fi
  21563. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  21564. { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  21565. Usually this means the macro was only invoked conditionally." >&5
  21566. $as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  21567. Usually this means the macro was only invoked conditionally." >&2;}
  21568. { (exit 1); exit 1; }; }
  21569. fi
  21570. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  21571. { { $as_echo "$as_me:$LINENO: error: conditional \"SELINUX\" was never defined.
  21572. Usually this means the macro was only invoked conditionally." >&5
  21573. $as_echo "$as_me: error: conditional \"SELINUX\" was never defined.
  21574. Usually this means the macro was only invoked conditionally." >&2;}
  21575. { (exit 1); exit 1; }; }
  21576. fi
  21577. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  21578. { { $as_echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  21579. Usually this means the macro was only invoked conditionally." >&5
  21580. $as_echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  21581. Usually this means the macro was only invoked conditionally." >&2;}
  21582. { (exit 1); exit 1; }; }
  21583. fi
  21584. : ${CONFIG_STATUS=./config.status}
  21585. ac_write_fail=0
  21586. ac_clean_files_save=$ac_clean_files
  21587. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21588. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21589. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21590. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21591. #! $SHELL
  21592. # Generated by $as_me.
  21593. # Run this file to recreate the current configuration.
  21594. # Compiler output produced by configure, useful for debugging
  21595. # configure, is in config.log if it exists.
  21596. debug=false
  21597. ac_cs_recheck=false
  21598. ac_cs_silent=false
  21599. SHELL=\${CONFIG_SHELL-$SHELL}
  21600. _ACEOF
  21601. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21602. ## --------------------- ##
  21603. ## M4sh Initialization. ##
  21604. ## --------------------- ##
  21605. # Be more Bourne compatible
  21606. DUALCASE=1; export DUALCASE # for MKS sh
  21607. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21608. emulate sh
  21609. NULLCMD=:
  21610. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21611. # is contrary to our usage. Disable this feature.
  21612. alias -g '${1+"$@"}'='"$@"'
  21613. setopt NO_GLOB_SUBST
  21614. else
  21615. case `(set -o) 2>/dev/null` in
  21616. *posix*) set -o posix ;;
  21617. esac
  21618. fi
  21619. # PATH needs CR
  21620. # Avoid depending upon Character Ranges.
  21621. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21622. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21623. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21624. as_cr_digits='0123456789'
  21625. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21626. as_nl='
  21627. '
  21628. export as_nl
  21629. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21630. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21631. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21632. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21633. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21634. as_echo='printf %s\n'
  21635. as_echo_n='printf %s'
  21636. else
  21637. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21638. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21639. as_echo_n='/usr/ucb/echo -n'
  21640. else
  21641. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21642. as_echo_n_body='eval
  21643. arg=$1;
  21644. case $arg in
  21645. *"$as_nl"*)
  21646. expr "X$arg" : "X\\(.*\\)$as_nl";
  21647. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21648. esac;
  21649. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21650. '
  21651. export as_echo_n_body
  21652. as_echo_n='sh -c $as_echo_n_body as_echo'
  21653. fi
  21654. export as_echo_body
  21655. as_echo='sh -c $as_echo_body as_echo'
  21656. fi
  21657. # The user is always right.
  21658. if test "${PATH_SEPARATOR+set}" != set; then
  21659. PATH_SEPARATOR=:
  21660. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21661. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21662. PATH_SEPARATOR=';'
  21663. }
  21664. fi
  21665. # Support unset when possible.
  21666. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21667. as_unset=unset
  21668. else
  21669. as_unset=false
  21670. fi
  21671. # IFS
  21672. # We need space, tab and new line, in precisely that order. Quoting is
  21673. # there to prevent editors from complaining about space-tab.
  21674. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21675. # splitting by setting IFS to empty value.)
  21676. IFS=" "" $as_nl"
  21677. # Find who we are. Look in the path if we contain no directory separator.
  21678. case $0 in
  21679. *[\\/]* ) as_myself=$0 ;;
  21680. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21681. for as_dir in $PATH
  21682. do
  21683. IFS=$as_save_IFS
  21684. test -z "$as_dir" && as_dir=.
  21685. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21686. done
  21687. IFS=$as_save_IFS
  21688. ;;
  21689. esac
  21690. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21691. # in which case we are not to be found in the path.
  21692. if test "x$as_myself" = x; then
  21693. as_myself=$0
  21694. fi
  21695. if test ! -f "$as_myself"; then
  21696. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21697. { (exit 1); exit 1; }
  21698. fi
  21699. # Work around bugs in pre-3.0 UWIN ksh.
  21700. for as_var in ENV MAIL MAILPATH
  21701. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21702. done
  21703. PS1='$ '
  21704. PS2='> '
  21705. PS4='+ '
  21706. # NLS nuisances.
  21707. LC_ALL=C
  21708. export LC_ALL
  21709. LANGUAGE=C
  21710. export LANGUAGE
  21711. # Required to use basename.
  21712. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21713. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21714. as_expr=expr
  21715. else
  21716. as_expr=false
  21717. fi
  21718. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21719. as_basename=basename
  21720. else
  21721. as_basename=false
  21722. fi
  21723. # Name of the executable.
  21724. as_me=`$as_basename -- "$0" ||
  21725. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21726. X"$0" : 'X\(//\)$' \| \
  21727. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21728. $as_echo X/"$0" |
  21729. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21730. s//\1/
  21731. q
  21732. }
  21733. /^X\/\(\/\/\)$/{
  21734. s//\1/
  21735. q
  21736. }
  21737. /^X\/\(\/\).*/{
  21738. s//\1/
  21739. q
  21740. }
  21741. s/.*/./; q'`
  21742. # CDPATH.
  21743. $as_unset CDPATH
  21744. as_lineno_1=$LINENO
  21745. as_lineno_2=$LINENO
  21746. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21747. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21748. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21749. # uniformly replaced by the line number. The first 'sed' inserts a
  21750. # line-number line after each line using $LINENO; the second 'sed'
  21751. # does the real work. The second script uses 'N' to pair each
  21752. # line-number line with the line containing $LINENO, and appends
  21753. # trailing '-' during substitution so that $LINENO is not a special
  21754. # case at line end.
  21755. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21756. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21757. # E. McMahon (1931-1989) for sed's syntax. :-)
  21758. sed -n '
  21759. p
  21760. /[$]LINENO/=
  21761. ' <$as_myself |
  21762. sed '
  21763. s/[$]LINENO.*/&-/
  21764. t lineno
  21765. b
  21766. :lineno
  21767. N
  21768. :loop
  21769. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21770. t loop
  21771. s/-\n.*//
  21772. ' >$as_me.lineno &&
  21773. chmod +x "$as_me.lineno" ||
  21774. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21775. { (exit 1); exit 1; }; }
  21776. # Don't try to exec as it changes $[0], causing all sort of problems
  21777. # (the dirname of $[0] is not the place where we might find the
  21778. # original and so on. Autoconf is especially sensitive to this).
  21779. . "./$as_me.lineno"
  21780. # Exit status is that of the last command.
  21781. exit
  21782. }
  21783. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21784. as_dirname=dirname
  21785. else
  21786. as_dirname=false
  21787. fi
  21788. ECHO_C= ECHO_N= ECHO_T=
  21789. case `echo -n x` in
  21790. -n*)
  21791. case `echo 'x\c'` in
  21792. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21793. *) ECHO_C='\c';;
  21794. esac;;
  21795. *)
  21796. ECHO_N='-n';;
  21797. esac
  21798. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21799. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21800. as_expr=expr
  21801. else
  21802. as_expr=false
  21803. fi
  21804. rm -f conf$$ conf$$.exe conf$$.file
  21805. if test -d conf$$.dir; then
  21806. rm -f conf$$.dir/conf$$.file
  21807. else
  21808. rm -f conf$$.dir
  21809. mkdir conf$$.dir 2>/dev/null
  21810. fi
  21811. if (echo >conf$$.file) 2>/dev/null; then
  21812. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21813. as_ln_s='ln -s'
  21814. # ... but there are two gotchas:
  21815. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21816. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21817. # In both cases, we have to default to `cp -p'.
  21818. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21819. as_ln_s='cp -p'
  21820. elif ln conf$$.file conf$$ 2>/dev/null; then
  21821. as_ln_s=ln
  21822. else
  21823. as_ln_s='cp -p'
  21824. fi
  21825. else
  21826. as_ln_s='cp -p'
  21827. fi
  21828. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21829. rmdir conf$$.dir 2>/dev/null
  21830. if mkdir -p . 2>/dev/null; then
  21831. as_mkdir_p=:
  21832. else
  21833. test -d ./-p && rmdir ./-p
  21834. as_mkdir_p=false
  21835. fi
  21836. if test -x / >/dev/null 2>&1; then
  21837. as_test_x='test -x'
  21838. else
  21839. if ls -dL / >/dev/null 2>&1; then
  21840. as_ls_L_option=L
  21841. else
  21842. as_ls_L_option=
  21843. fi
  21844. as_test_x='
  21845. eval sh -c '\''
  21846. if test -d "$1"; then
  21847. test -d "$1/.";
  21848. else
  21849. case $1 in
  21850. -*)set "./$1";;
  21851. esac;
  21852. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21853. ???[sx]*):;;*)false;;esac;fi
  21854. '\'' sh
  21855. '
  21856. fi
  21857. as_executable_p=$as_test_x
  21858. # Sed expression to map a string onto a valid CPP name.
  21859. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21860. # Sed expression to map a string onto a valid variable name.
  21861. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21862. exec 6>&1
  21863. # Save the log message, to keep $[0] and so on meaningful, and to
  21864. # report actual input values of CONFIG_FILES etc. instead of their
  21865. # values after options handling.
  21866. ac_log="
  21867. This file was extended by dirsrv $as_me 1.0, which was
  21868. generated by GNU Autoconf 2.63. Invocation command line was
  21869. CONFIG_FILES = $CONFIG_FILES
  21870. CONFIG_HEADERS = $CONFIG_HEADERS
  21871. CONFIG_LINKS = $CONFIG_LINKS
  21872. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21873. $ $0 $@
  21874. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21875. "
  21876. _ACEOF
  21877. case $ac_config_files in *"
  21878. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21879. esac
  21880. case $ac_config_headers in *"
  21881. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21882. esac
  21883. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21884. # Files that config.status was made for.
  21885. config_files="$ac_config_files"
  21886. config_headers="$ac_config_headers"
  21887. config_commands="$ac_config_commands"
  21888. _ACEOF
  21889. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21890. ac_cs_usage="\
  21891. \`$as_me' instantiates files from templates according to the
  21892. current configuration.
  21893. Usage: $0 [OPTION]... [FILE]...
  21894. -h, --help print this help, then exit
  21895. -V, --version print version number and configuration settings, then exit
  21896. -q, --quiet, --silent
  21897. do not print progress messages
  21898. -d, --debug don't remove temporary files
  21899. --recheck update $as_me by reconfiguring in the same conditions
  21900. --file=FILE[:TEMPLATE]
  21901. instantiate the configuration file FILE
  21902. --header=FILE[:TEMPLATE]
  21903. instantiate the configuration header FILE
  21904. Configuration files:
  21905. $config_files
  21906. Configuration headers:
  21907. $config_headers
  21908. Configuration commands:
  21909. $config_commands
  21910. Report bugs to <[email protected]>."
  21911. _ACEOF
  21912. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21913. ac_cs_version="\\
  21914. dirsrv config.status 1.0
  21915. configured by $0, generated by GNU Autoconf 2.63,
  21916. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21917. Copyright (C) 2008 Free Software Foundation, Inc.
  21918. This config.status script is free software; the Free Software Foundation
  21919. gives unlimited permission to copy, distribute and modify it."
  21920. ac_pwd='$ac_pwd'
  21921. srcdir='$srcdir'
  21922. INSTALL='$INSTALL'
  21923. MKDIR_P='$MKDIR_P'
  21924. AWK='$AWK'
  21925. test -n "\$AWK" || AWK=awk
  21926. _ACEOF
  21927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21928. # The default lists apply if the user does not specify any file.
  21929. ac_need_defaults=:
  21930. while test $# != 0
  21931. do
  21932. case $1 in
  21933. --*=*)
  21934. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21935. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21936. ac_shift=:
  21937. ;;
  21938. *)
  21939. ac_option=$1
  21940. ac_optarg=$2
  21941. ac_shift=shift
  21942. ;;
  21943. esac
  21944. case $ac_option in
  21945. # Handling of the options.
  21946. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21947. ac_cs_recheck=: ;;
  21948. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21949. $as_echo "$ac_cs_version"; exit ;;
  21950. --debug | --debu | --deb | --de | --d | -d )
  21951. debug=: ;;
  21952. --file | --fil | --fi | --f )
  21953. $ac_shift
  21954. case $ac_optarg in
  21955. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21956. esac
  21957. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  21958. ac_need_defaults=false;;
  21959. --header | --heade | --head | --hea )
  21960. $ac_shift
  21961. case $ac_optarg in
  21962. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21963. esac
  21964. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  21965. ac_need_defaults=false;;
  21966. --he | --h)
  21967. # Conflict between --help and --header
  21968. { $as_echo "$as_me: error: ambiguous option: $1
  21969. Try \`$0 --help' for more information." >&2
  21970. { (exit 1); exit 1; }; };;
  21971. --help | --hel | -h )
  21972. $as_echo "$ac_cs_usage"; exit ;;
  21973. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21974. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21975. ac_cs_silent=: ;;
  21976. # This is an error.
  21977. -*) { $as_echo "$as_me: error: unrecognized option: $1
  21978. Try \`$0 --help' for more information." >&2
  21979. { (exit 1); exit 1; }; } ;;
  21980. *) ac_config_targets="$ac_config_targets $1"
  21981. ac_need_defaults=false ;;
  21982. esac
  21983. shift
  21984. done
  21985. ac_configure_extra_args=
  21986. if $ac_cs_silent; then
  21987. exec 6>/dev/null
  21988. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21989. fi
  21990. _ACEOF
  21991. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21992. if \$ac_cs_recheck; then
  21993. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21994. shift
  21995. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21996. CONFIG_SHELL='$SHELL'
  21997. export CONFIG_SHELL
  21998. exec "\$@"
  21999. fi
  22000. _ACEOF
  22001. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22002. exec 5>>config.log
  22003. {
  22004. echo
  22005. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22006. ## Running $as_me. ##
  22007. _ASBOX
  22008. $as_echo "$ac_log"
  22009. } >&5
  22010. _ACEOF
  22011. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22012. #
  22013. # INIT-COMMANDS
  22014. #
  22015. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22016. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22017. # if CDPATH is set.
  22018. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22019. sed_quote_subst='$sed_quote_subst'
  22020. double_quote_subst='$double_quote_subst'
  22021. delay_variable_subst='$delay_variable_subst'
  22022. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  22023. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  22024. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  22025. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  22026. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  22027. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  22028. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22029. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  22030. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  22031. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22032. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  22033. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  22034. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  22035. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  22036. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  22037. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22038. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22039. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  22040. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  22041. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  22042. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  22043. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  22044. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  22045. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  22046. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  22047. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  22048. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22049. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22050. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  22051. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  22052. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  22053. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  22054. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22055. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  22056. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  22057. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22058. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22059. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22060. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  22061. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22062. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  22063. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  22064. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  22065. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  22066. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  22067. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22068. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  22069. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  22070. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  22071. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  22072. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22073. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  22074. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  22075. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  22076. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  22077. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  22078. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  22079. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  22080. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  22081. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  22082. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  22083. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  22084. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22085. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22086. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  22087. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  22088. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22089. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22090. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  22091. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22092. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22093. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22094. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22095. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22096. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22097. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22098. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22099. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22100. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22101. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22102. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  22103. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  22104. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  22105. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  22106. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22107. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  22108. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  22109. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  22110. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  22111. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  22112. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22113. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22114. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22115. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22116. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22117. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  22118. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22119. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  22120. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  22121. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22122. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22123. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  22124. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22125. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22126. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22127. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22128. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22129. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22130. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  22131. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  22132. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22133. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22134. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  22135. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  22136. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  22137. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  22138. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22139. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22140. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  22141. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22142. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22143. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  22144. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  22145. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  22146. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22147. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22148. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22149. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22150. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22151. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22152. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22153. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22154. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22155. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22156. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22157. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22158. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22159. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22160. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22161. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22162. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22163. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22164. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22165. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22166. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22167. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22168. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22169. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22170. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22171. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22172. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22173. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22174. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22175. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22176. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22177. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22178. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22179. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22180. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22181. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22182. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22183. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22184. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22185. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22186. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22187. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22188. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22189. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22190. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22191. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22192. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22193. LTCC='$LTCC'
  22194. LTCFLAGS='$LTCFLAGS'
  22195. compiler='$compiler_DEFAULT'
  22196. # Quote evaled strings.
  22197. for var in SED \
  22198. GREP \
  22199. EGREP \
  22200. FGREP \
  22201. LD \
  22202. NM \
  22203. LN_S \
  22204. lt_SP2NL \
  22205. lt_NL2SP \
  22206. reload_flag \
  22207. OBJDUMP \
  22208. deplibs_check_method \
  22209. file_magic_cmd \
  22210. AR \
  22211. AR_FLAGS \
  22212. STRIP \
  22213. RANLIB \
  22214. CC \
  22215. CFLAGS \
  22216. compiler \
  22217. lt_cv_sys_global_symbol_pipe \
  22218. lt_cv_sys_global_symbol_to_cdecl \
  22219. lt_cv_sys_global_symbol_to_c_name_address \
  22220. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22221. SHELL \
  22222. ECHO \
  22223. lt_prog_compiler_no_builtin_flag \
  22224. lt_prog_compiler_wl \
  22225. lt_prog_compiler_pic \
  22226. lt_prog_compiler_static \
  22227. lt_cv_prog_compiler_c_o \
  22228. need_locks \
  22229. DSYMUTIL \
  22230. NMEDIT \
  22231. LIPO \
  22232. OTOOL \
  22233. OTOOL64 \
  22234. shrext_cmds \
  22235. export_dynamic_flag_spec \
  22236. whole_archive_flag_spec \
  22237. compiler_needs_object \
  22238. with_gnu_ld \
  22239. allow_undefined_flag \
  22240. no_undefined_flag \
  22241. hardcode_libdir_flag_spec \
  22242. hardcode_libdir_flag_spec_ld \
  22243. hardcode_libdir_separator \
  22244. fix_srcfile_path \
  22245. exclude_expsyms \
  22246. include_expsyms \
  22247. file_list_spec \
  22248. variables_saved_for_relink \
  22249. libname_spec \
  22250. library_names_spec \
  22251. soname_spec \
  22252. finish_eval \
  22253. old_striplib \
  22254. striplib \
  22255. compiler_lib_search_dirs \
  22256. predep_objects \
  22257. postdep_objects \
  22258. predeps \
  22259. postdeps \
  22260. compiler_lib_search_path \
  22261. LD_CXX \
  22262. compiler_CXX \
  22263. lt_prog_compiler_no_builtin_flag_CXX \
  22264. lt_prog_compiler_wl_CXX \
  22265. lt_prog_compiler_pic_CXX \
  22266. lt_prog_compiler_static_CXX \
  22267. lt_cv_prog_compiler_c_o_CXX \
  22268. export_dynamic_flag_spec_CXX \
  22269. whole_archive_flag_spec_CXX \
  22270. compiler_needs_object_CXX \
  22271. with_gnu_ld_CXX \
  22272. allow_undefined_flag_CXX \
  22273. no_undefined_flag_CXX \
  22274. hardcode_libdir_flag_spec_CXX \
  22275. hardcode_libdir_flag_spec_ld_CXX \
  22276. hardcode_libdir_separator_CXX \
  22277. fix_srcfile_path_CXX \
  22278. exclude_expsyms_CXX \
  22279. include_expsyms_CXX \
  22280. file_list_spec_CXX \
  22281. compiler_lib_search_dirs_CXX \
  22282. predep_objects_CXX \
  22283. postdep_objects_CXX \
  22284. predeps_CXX \
  22285. postdeps_CXX \
  22286. compiler_lib_search_path_CXX; do
  22287. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22288. *[\\\\\\\`\\"\\\$]*)
  22289. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22290. ;;
  22291. *)
  22292. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22293. ;;
  22294. esac
  22295. done
  22296. # Double-quote double-evaled strings.
  22297. for var in reload_cmds \
  22298. old_postinstall_cmds \
  22299. old_postuninstall_cmds \
  22300. old_archive_cmds \
  22301. extract_expsyms_cmds \
  22302. old_archive_from_new_cmds \
  22303. old_archive_from_expsyms_cmds \
  22304. archive_cmds \
  22305. archive_expsym_cmds \
  22306. module_cmds \
  22307. module_expsym_cmds \
  22308. export_symbols_cmds \
  22309. prelink_cmds \
  22310. postinstall_cmds \
  22311. postuninstall_cmds \
  22312. finish_cmds \
  22313. sys_lib_search_path_spec \
  22314. sys_lib_dlsearch_path_spec \
  22315. old_archive_cmds_CXX \
  22316. old_archive_from_new_cmds_CXX \
  22317. old_archive_from_expsyms_cmds_CXX \
  22318. archive_cmds_CXX \
  22319. archive_expsym_cmds_CXX \
  22320. module_cmds_CXX \
  22321. module_expsym_cmds_CXX \
  22322. export_symbols_cmds_CXX \
  22323. prelink_cmds_CXX; do
  22324. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22325. *[\\\\\\\`\\"\\\$]*)
  22326. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22327. ;;
  22328. *)
  22329. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22330. ;;
  22331. esac
  22332. done
  22333. # Fix-up fallback echo if it was mangled by the above quoting rules.
  22334. case \$lt_ECHO in
  22335. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  22336. ;;
  22337. esac
  22338. ac_aux_dir='$ac_aux_dir'
  22339. xsi_shell='$xsi_shell'
  22340. lt_shell_append='$lt_shell_append'
  22341. # See if we are running on zsh, and set the options which allow our
  22342. # commands through without removal of \ escapes INIT.
  22343. if test -n "\${ZSH_VERSION+set}" ; then
  22344. setopt NO_GLOB_SUBST
  22345. fi
  22346. PACKAGE='$PACKAGE'
  22347. VERSION='$VERSION'
  22348. TIMESTAMP='$TIMESTAMP'
  22349. RM='$RM'
  22350. ofile='$ofile'
  22351. _ACEOF
  22352. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22353. # Handling of arguments.
  22354. for ac_config_target in $ac_config_targets
  22355. do
  22356. case $ac_config_target in
  22357. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22358. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22359. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22360. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22361. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  22362. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  22363. { (exit 1); exit 1; }; };;
  22364. esac
  22365. done
  22366. # If the user did not use the arguments to specify the items to instantiate,
  22367. # then the envvar interface is used. Set only those that are not.
  22368. # We use the long form for the default assignment because of an extremely
  22369. # bizarre bug on SunOS 4.1.3.
  22370. if $ac_need_defaults; then
  22371. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22372. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22373. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22374. fi
  22375. # Have a temporary directory for convenience. Make it in the build tree
  22376. # simply because there is no reason against having it here, and in addition,
  22377. # creating and moving files from /tmp can sometimes cause problems.
  22378. # Hook for its removal unless debugging.
  22379. # Note that there is a small window in which the directory will not be cleaned:
  22380. # after its creation but before its name has been assigned to `$tmp'.
  22381. $debug ||
  22382. {
  22383. tmp=
  22384. trap 'exit_status=$?
  22385. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  22386. ' 0
  22387. trap '{ (exit 1); exit 1; }' 1 2 13 15
  22388. }
  22389. # Create a (secure) tmp directory for tmp files.
  22390. {
  22391. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22392. test -n "$tmp" && test -d "$tmp"
  22393. } ||
  22394. {
  22395. tmp=./conf$$-$RANDOM
  22396. (umask 077 && mkdir "$tmp")
  22397. } ||
  22398. {
  22399. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  22400. { (exit 1); exit 1; }
  22401. }
  22402. # Set up the scripts for CONFIG_FILES section.
  22403. # No need to generate them if there are no CONFIG_FILES.
  22404. # This happens for instance with `./config.status config.h'.
  22405. if test -n "$CONFIG_FILES"; then
  22406. ac_cr=' '
  22407. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22408. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22409. ac_cs_awk_cr='\\r'
  22410. else
  22411. ac_cs_awk_cr=$ac_cr
  22412. fi
  22413. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  22414. _ACEOF
  22415. {
  22416. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22417. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22418. echo "_ACEOF"
  22419. } >conf$$subs.sh ||
  22420. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22421. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22422. { (exit 1); exit 1; }; }
  22423. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  22424. ac_delim='%!_!# '
  22425. for ac_last_try in false false false false false :; do
  22426. . ./conf$$subs.sh ||
  22427. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22428. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22429. { (exit 1); exit 1; }; }
  22430. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22431. if test $ac_delim_n = $ac_delim_num; then
  22432. break
  22433. elif $ac_last_try; then
  22434. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22435. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22436. { (exit 1); exit 1; }; }
  22437. else
  22438. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22439. fi
  22440. done
  22441. rm -f conf$$subs.sh
  22442. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22443. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  22444. _ACEOF
  22445. sed -n '
  22446. h
  22447. s/^/S["/; s/!.*/"]=/
  22448. p
  22449. g
  22450. s/^[^!]*!//
  22451. :repl
  22452. t repl
  22453. s/'"$ac_delim"'$//
  22454. t delim
  22455. :nl
  22456. h
  22457. s/\(.\{148\}\).*/\1/
  22458. t more1
  22459. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22460. p
  22461. n
  22462. b repl
  22463. :more1
  22464. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22465. p
  22466. g
  22467. s/.\{148\}//
  22468. t nl
  22469. :delim
  22470. h
  22471. s/\(.\{148\}\).*/\1/
  22472. t more2
  22473. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22474. p
  22475. b
  22476. :more2
  22477. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22478. p
  22479. g
  22480. s/.\{148\}//
  22481. t delim
  22482. ' <conf$$subs.awk | sed '
  22483. /^[^""]/{
  22484. N
  22485. s/\n//
  22486. }
  22487. ' >>$CONFIG_STATUS || ac_write_fail=1
  22488. rm -f conf$$subs.awk
  22489. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22490. _ACAWK
  22491. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  22492. for (key in S) S_is_set[key] = 1
  22493. FS = ""
  22494. }
  22495. {
  22496. line = $ 0
  22497. nfields = split(line, field, "@")
  22498. substed = 0
  22499. len = length(field[1])
  22500. for (i = 2; i < nfields; i++) {
  22501. key = field[i]
  22502. keylen = length(key)
  22503. if (S_is_set[key]) {
  22504. value = S[key]
  22505. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22506. len += length(value) + length(field[++i])
  22507. substed = 1
  22508. } else
  22509. len += 1 + keylen
  22510. }
  22511. print line
  22512. }
  22513. _ACAWK
  22514. _ACEOF
  22515. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22516. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22517. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22518. else
  22519. cat
  22520. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  22521. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  22522. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  22523. { (exit 1); exit 1; }; }
  22524. _ACEOF
  22525. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22526. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22527. # trailing colons and then remove the whole line if VPATH becomes empty
  22528. # (actually we leave an empty line to preserve line numbers).
  22529. if test "x$srcdir" = x.; then
  22530. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22531. s/:*\$(srcdir):*/:/
  22532. s/:*\${srcdir}:*/:/
  22533. s/:*@srcdir@:*/:/
  22534. s/^\([^=]*=[ ]*\):*/\1/
  22535. s/:*$//
  22536. s/^[^=]*=[ ]*$//
  22537. }'
  22538. fi
  22539. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22540. fi # test -n "$CONFIG_FILES"
  22541. # Set up the scripts for CONFIG_HEADERS section.
  22542. # No need to generate them if there are no CONFIG_HEADERS.
  22543. # This happens for instance with `./config.status Makefile'.
  22544. if test -n "$CONFIG_HEADERS"; then
  22545. cat >"$tmp/defines.awk" <<\_ACAWK ||
  22546. BEGIN {
  22547. _ACEOF
  22548. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22549. # here-document in config.status, that substitutes the proper values into
  22550. # config.h.in to produce config.h.
  22551. # Create a delimiter string that does not exist in confdefs.h, to ease
  22552. # handling of long lines.
  22553. ac_delim='%!_!# '
  22554. for ac_last_try in false false :; do
  22555. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  22556. if test -z "$ac_t"; then
  22557. break
  22558. elif $ac_last_try; then
  22559. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  22560. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  22561. { (exit 1); exit 1; }; }
  22562. else
  22563. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22564. fi
  22565. done
  22566. # For the awk script, D is an array of macro values keyed by name,
  22567. # likewise P contains macro parameters if any. Preserve backslash
  22568. # newline sequences.
  22569. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22570. sed -n '
  22571. s/.\{148\}/&'"$ac_delim"'/g
  22572. t rset
  22573. :rset
  22574. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22575. t def
  22576. d
  22577. :def
  22578. s/\\$//
  22579. t bsnl
  22580. s/["\\]/\\&/g
  22581. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22582. D["\1"]=" \3"/p
  22583. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22584. d
  22585. :bsnl
  22586. s/["\\]/\\&/g
  22587. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22588. D["\1"]=" \3\\\\\\n"\\/p
  22589. t cont
  22590. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22591. t cont
  22592. d
  22593. :cont
  22594. n
  22595. s/.\{148\}/&'"$ac_delim"'/g
  22596. t clear
  22597. :clear
  22598. s/\\$//
  22599. t bsnlc
  22600. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22601. d
  22602. :bsnlc
  22603. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22604. b cont
  22605. ' <confdefs.h | sed '
  22606. s/'"$ac_delim"'/"\\\
  22607. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22608. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22609. for (key in D) D_is_set[key] = 1
  22610. FS = ""
  22611. }
  22612. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22613. line = \$ 0
  22614. split(line, arg, " ")
  22615. if (arg[1] == "#") {
  22616. defundef = arg[2]
  22617. mac1 = arg[3]
  22618. } else {
  22619. defundef = substr(arg[1], 2)
  22620. mac1 = arg[2]
  22621. }
  22622. split(mac1, mac2, "(") #)
  22623. macro = mac2[1]
  22624. prefix = substr(line, 1, index(line, defundef) - 1)
  22625. if (D_is_set[macro]) {
  22626. # Preserve the white space surrounding the "#".
  22627. print prefix "define", macro P[macro] D[macro]
  22628. next
  22629. } else {
  22630. # Replace #undef with comments. This is necessary, for example,
  22631. # in the case of _POSIX_SOURCE, which is predefined and required
  22632. # on some systems where configure will not decide to define it.
  22633. if (defundef == "undef") {
  22634. print "/*", prefix defundef, macro, "*/"
  22635. next
  22636. }
  22637. }
  22638. }
  22639. { print }
  22640. _ACAWK
  22641. _ACEOF
  22642. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22643. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  22644. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  22645. { (exit 1); exit 1; }; }
  22646. fi # test -n "$CONFIG_HEADERS"
  22647. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22648. shift
  22649. for ac_tag
  22650. do
  22651. case $ac_tag in
  22652. :[FHLC]) ac_mode=$ac_tag; continue;;
  22653. esac
  22654. case $ac_mode$ac_tag in
  22655. :[FHL]*:*);;
  22656. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  22657. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  22658. { (exit 1); exit 1; }; };;
  22659. :[FH]-) ac_tag=-:-;;
  22660. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22661. esac
  22662. ac_save_IFS=$IFS
  22663. IFS=:
  22664. set x $ac_tag
  22665. IFS=$ac_save_IFS
  22666. shift
  22667. ac_file=$1
  22668. shift
  22669. case $ac_mode in
  22670. :L) ac_source=$1;;
  22671. :[FH])
  22672. ac_file_inputs=
  22673. for ac_f
  22674. do
  22675. case $ac_f in
  22676. -) ac_f="$tmp/stdin";;
  22677. *) # Look for the file first in the build tree, then in the source tree
  22678. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22679. # because $ac_f cannot contain `:'.
  22680. test -f "$ac_f" ||
  22681. case $ac_f in
  22682. [\\/$]*) false;;
  22683. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22684. esac ||
  22685. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  22686. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  22687. { (exit 1); exit 1; }; };;
  22688. esac
  22689. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22690. ac_file_inputs="$ac_file_inputs '$ac_f'"
  22691. done
  22692. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22693. # use $as_me), people would be surprised to read:
  22694. # /* config.h. Generated by config.status. */
  22695. configure_input='Generated from '`
  22696. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22697. `' by configure.'
  22698. if test x"$ac_file" != x-; then
  22699. configure_input="$ac_file. $configure_input"
  22700. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  22701. $as_echo "$as_me: creating $ac_file" >&6;}
  22702. fi
  22703. # Neutralize special characters interpreted by sed in replacement strings.
  22704. case $configure_input in #(
  22705. *\&* | *\|* | *\\* )
  22706. ac_sed_conf_input=`$as_echo "$configure_input" |
  22707. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22708. *) ac_sed_conf_input=$configure_input;;
  22709. esac
  22710. case $ac_tag in
  22711. *:-:* | *:-) cat >"$tmp/stdin" \
  22712. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22713. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22714. { (exit 1); exit 1; }; } ;;
  22715. esac
  22716. ;;
  22717. esac
  22718. ac_dir=`$as_dirname -- "$ac_file" ||
  22719. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22720. X"$ac_file" : 'X\(//\)[^/]' \| \
  22721. X"$ac_file" : 'X\(//\)$' \| \
  22722. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22723. $as_echo X"$ac_file" |
  22724. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22725. s//\1/
  22726. q
  22727. }
  22728. /^X\(\/\/\)[^/].*/{
  22729. s//\1/
  22730. q
  22731. }
  22732. /^X\(\/\/\)$/{
  22733. s//\1/
  22734. q
  22735. }
  22736. /^X\(\/\).*/{
  22737. s//\1/
  22738. q
  22739. }
  22740. s/.*/./; q'`
  22741. { as_dir="$ac_dir"
  22742. case $as_dir in #(
  22743. -*) as_dir=./$as_dir;;
  22744. esac
  22745. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22746. as_dirs=
  22747. while :; do
  22748. case $as_dir in #(
  22749. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22750. *) as_qdir=$as_dir;;
  22751. esac
  22752. as_dirs="'$as_qdir' $as_dirs"
  22753. as_dir=`$as_dirname -- "$as_dir" ||
  22754. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22755. X"$as_dir" : 'X\(//\)[^/]' \| \
  22756. X"$as_dir" : 'X\(//\)$' \| \
  22757. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22758. $as_echo X"$as_dir" |
  22759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22760. s//\1/
  22761. q
  22762. }
  22763. /^X\(\/\/\)[^/].*/{
  22764. s//\1/
  22765. q
  22766. }
  22767. /^X\(\/\/\)$/{
  22768. s//\1/
  22769. q
  22770. }
  22771. /^X\(\/\).*/{
  22772. s//\1/
  22773. q
  22774. }
  22775. s/.*/./; q'`
  22776. test -d "$as_dir" && break
  22777. done
  22778. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22779. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22780. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22781. { (exit 1); exit 1; }; }; }
  22782. ac_builddir=.
  22783. case "$ac_dir" in
  22784. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22785. *)
  22786. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22787. # A ".." for each directory in $ac_dir_suffix.
  22788. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22789. case $ac_top_builddir_sub in
  22790. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22791. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22792. esac ;;
  22793. esac
  22794. ac_abs_top_builddir=$ac_pwd
  22795. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22796. # for backward compatibility:
  22797. ac_top_builddir=$ac_top_build_prefix
  22798. case $srcdir in
  22799. .) # We are building in place.
  22800. ac_srcdir=.
  22801. ac_top_srcdir=$ac_top_builddir_sub
  22802. ac_abs_top_srcdir=$ac_pwd ;;
  22803. [\\/]* | ?:[\\/]* ) # Absolute name.
  22804. ac_srcdir=$srcdir$ac_dir_suffix;
  22805. ac_top_srcdir=$srcdir
  22806. ac_abs_top_srcdir=$srcdir ;;
  22807. *) # Relative name.
  22808. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22809. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22810. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22811. esac
  22812. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22813. case $ac_mode in
  22814. :F)
  22815. #
  22816. # CONFIG_FILE
  22817. #
  22818. case $INSTALL in
  22819. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22820. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22821. esac
  22822. ac_MKDIR_P=$MKDIR_P
  22823. case $MKDIR_P in
  22824. [\\/$]* | ?:[\\/]* ) ;;
  22825. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22826. esac
  22827. _ACEOF
  22828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22829. # If the template does not know about datarootdir, expand it.
  22830. # FIXME: This hack should be removed a few years after 2.60.
  22831. ac_datarootdir_hack=; ac_datarootdir_seen=
  22832. ac_sed_dataroot='
  22833. /datarootdir/ {
  22834. p
  22835. q
  22836. }
  22837. /@datadir@/p
  22838. /@docdir@/p
  22839. /@infodir@/p
  22840. /@localedir@/p
  22841. /@mandir@/p
  22842. '
  22843. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22844. *datarootdir*) ac_datarootdir_seen=yes;;
  22845. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22846. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22847. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22848. _ACEOF
  22849. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22850. ac_datarootdir_hack='
  22851. s&@datadir@&$datadir&g
  22852. s&@docdir@&$docdir&g
  22853. s&@infodir@&$infodir&g
  22854. s&@localedir@&$localedir&g
  22855. s&@mandir@&$mandir&g
  22856. s&\\\${datarootdir}&$datarootdir&g' ;;
  22857. esac
  22858. _ACEOF
  22859. # Neutralize VPATH when `$srcdir' = `.'.
  22860. # Shell code in configure.ac might set extrasub.
  22861. # FIXME: do we really want to maintain this feature?
  22862. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22863. ac_sed_extra="$ac_vpsub
  22864. $extrasub
  22865. _ACEOF
  22866. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22867. :t
  22868. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22869. s|@configure_input@|$ac_sed_conf_input|;t t
  22870. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22871. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22872. s&@srcdir@&$ac_srcdir&;t t
  22873. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22874. s&@top_srcdir@&$ac_top_srcdir&;t t
  22875. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22876. s&@builddir@&$ac_builddir&;t t
  22877. s&@abs_builddir@&$ac_abs_builddir&;t t
  22878. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22879. s&@INSTALL@&$ac_INSTALL&;t t
  22880. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22881. $ac_datarootdir_hack
  22882. "
  22883. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  22884. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22885. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22886. { (exit 1); exit 1; }; }
  22887. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22888. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22889. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22890. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22891. which seems to be undefined. Please make sure it is defined." >&5
  22892. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22893. which seems to be undefined. Please make sure it is defined." >&2;}
  22894. rm -f "$tmp/stdin"
  22895. case $ac_file in
  22896. -) cat "$tmp/out" && rm -f "$tmp/out";;
  22897. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  22898. esac \
  22899. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22900. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22901. { (exit 1); exit 1; }; }
  22902. ;;
  22903. :H)
  22904. #
  22905. # CONFIG_HEADER
  22906. #
  22907. if test x"$ac_file" != x-; then
  22908. {
  22909. $as_echo "/* $configure_input */" \
  22910. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  22911. } >"$tmp/config.h" \
  22912. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22913. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22914. { (exit 1); exit 1; }; }
  22915. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  22916. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22917. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22918. else
  22919. rm -f "$ac_file"
  22920. mv "$tmp/config.h" "$ac_file" \
  22921. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22922. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22923. { (exit 1); exit 1; }; }
  22924. fi
  22925. else
  22926. $as_echo "/* $configure_input */" \
  22927. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  22928. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  22929. $as_echo "$as_me: error: could not create -" >&2;}
  22930. { (exit 1); exit 1; }; }
  22931. fi
  22932. # Compute "$ac_file"'s index in $config_headers.
  22933. _am_arg="$ac_file"
  22934. _am_stamp_count=1
  22935. for _am_header in $config_headers :; do
  22936. case $_am_header in
  22937. $_am_arg | $_am_arg:* )
  22938. break ;;
  22939. * )
  22940. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22941. esac
  22942. done
  22943. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  22944. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22945. X"$_am_arg" : 'X\(//\)[^/]' \| \
  22946. X"$_am_arg" : 'X\(//\)$' \| \
  22947. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  22948. $as_echo X"$_am_arg" |
  22949. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22950. s//\1/
  22951. q
  22952. }
  22953. /^X\(\/\/\)[^/].*/{
  22954. s//\1/
  22955. q
  22956. }
  22957. /^X\(\/\/\)$/{
  22958. s//\1/
  22959. q
  22960. }
  22961. /^X\(\/\).*/{
  22962. s//\1/
  22963. q
  22964. }
  22965. s/.*/./; q'`/stamp-h$_am_stamp_count
  22966. ;;
  22967. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22968. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22969. ;;
  22970. esac
  22971. case $ac_file$ac_mode in
  22972. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  22973. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  22974. # are listed without --file. Let's play safe and only enable the eval
  22975. # if we detect the quoting.
  22976. case $CONFIG_FILES in
  22977. *\'*) eval set x "$CONFIG_FILES" ;;
  22978. *) set x $CONFIG_FILES ;;
  22979. esac
  22980. shift
  22981. for mf
  22982. do
  22983. # Strip MF so we end up with the name of the file.
  22984. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22985. # Check whether this is an Automake generated Makefile or not.
  22986. # We used to match only the files named `Makefile.in', but
  22987. # some people rename them; so instead we look at the file content.
  22988. # Grep'ing the first line is not enough: some people post-process
  22989. # each Makefile.in and add a new line on top of each file to say so.
  22990. # Grep'ing the whole file is not good either: AIX grep has a line
  22991. # limit of 2048, but all sed's we know have understand at least 4000.
  22992. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  22993. dirpart=`$as_dirname -- "$mf" ||
  22994. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22995. X"$mf" : 'X\(//\)[^/]' \| \
  22996. X"$mf" : 'X\(//\)$' \| \
  22997. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22998. $as_echo X"$mf" |
  22999. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23000. s//\1/
  23001. q
  23002. }
  23003. /^X\(\/\/\)[^/].*/{
  23004. s//\1/
  23005. q
  23006. }
  23007. /^X\(\/\/\)$/{
  23008. s//\1/
  23009. q
  23010. }
  23011. /^X\(\/\).*/{
  23012. s//\1/
  23013. q
  23014. }
  23015. s/.*/./; q'`
  23016. else
  23017. continue
  23018. fi
  23019. # Extract the definition of DEPDIR, am__include, and am__quote
  23020. # from the Makefile without running `make'.
  23021. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23022. test -z "$DEPDIR" && continue
  23023. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23024. test -z "am__include" && continue
  23025. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23026. # When using ansi2knr, U may be empty or an underscore; expand it
  23027. U=`sed -n 's/^U = //p' < "$mf"`
  23028. # Find all dependency output files, they are included files with
  23029. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23030. # simplest approach to changing $(DEPDIR) to its actual value in the
  23031. # expansion.
  23032. for file in `sed -n "
  23033. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23034. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23035. # Make sure the directory exists.
  23036. test -f "$dirpart/$file" && continue
  23037. fdir=`$as_dirname -- "$file" ||
  23038. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23039. X"$file" : 'X\(//\)[^/]' \| \
  23040. X"$file" : 'X\(//\)$' \| \
  23041. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23042. $as_echo X"$file" |
  23043. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23044. s//\1/
  23045. q
  23046. }
  23047. /^X\(\/\/\)[^/].*/{
  23048. s//\1/
  23049. q
  23050. }
  23051. /^X\(\/\/\)$/{
  23052. s//\1/
  23053. q
  23054. }
  23055. /^X\(\/\).*/{
  23056. s//\1/
  23057. q
  23058. }
  23059. s/.*/./; q'`
  23060. { as_dir=$dirpart/$fdir
  23061. case $as_dir in #(
  23062. -*) as_dir=./$as_dir;;
  23063. esac
  23064. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  23065. as_dirs=
  23066. while :; do
  23067. case $as_dir in #(
  23068. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23069. *) as_qdir=$as_dir;;
  23070. esac
  23071. as_dirs="'$as_qdir' $as_dirs"
  23072. as_dir=`$as_dirname -- "$as_dir" ||
  23073. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23074. X"$as_dir" : 'X\(//\)[^/]' \| \
  23075. X"$as_dir" : 'X\(//\)$' \| \
  23076. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23077. $as_echo X"$as_dir" |
  23078. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23079. s//\1/
  23080. q
  23081. }
  23082. /^X\(\/\/\)[^/].*/{
  23083. s//\1/
  23084. q
  23085. }
  23086. /^X\(\/\/\)$/{
  23087. s//\1/
  23088. q
  23089. }
  23090. /^X\(\/\).*/{
  23091. s//\1/
  23092. q
  23093. }
  23094. s/.*/./; q'`
  23095. test -d "$as_dir" && break
  23096. done
  23097. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23098. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  23099. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  23100. { (exit 1); exit 1; }; }; }
  23101. # echo "creating $dirpart/$file"
  23102. echo '# dummy' > "$dirpart/$file"
  23103. done
  23104. done
  23105. }
  23106. ;;
  23107. "libtool":C)
  23108. # See if we are running on zsh, and set the options which allow our
  23109. # commands through without removal of \ escapes.
  23110. if test -n "${ZSH_VERSION+set}" ; then
  23111. setopt NO_GLOB_SUBST
  23112. fi
  23113. cfgfile="${ofile}T"
  23114. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23115. $RM "$cfgfile"
  23116. cat <<_LT_EOF >> "$cfgfile"
  23117. #! $SHELL
  23118. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23119. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23120. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23121. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23122. #
  23123. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23124. # 2006, 2007, 2008 Free Software Foundation, Inc.
  23125. # Written by Gordon Matzigkeit, 1996
  23126. #
  23127. # This file is part of GNU Libtool.
  23128. #
  23129. # GNU Libtool is free software; you can redistribute it and/or
  23130. # modify it under the terms of the GNU General Public License as
  23131. # published by the Free Software Foundation; either version 2 of
  23132. # the License, or (at your option) any later version.
  23133. #
  23134. # As a special exception to the GNU General Public License,
  23135. # if you distribute this file as part of a program or library that
  23136. # is built using GNU Libtool, you may include this file under the
  23137. # same distribution terms that you use for the rest of that program.
  23138. #
  23139. # GNU Libtool is distributed in the hope that it will be useful,
  23140. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23141. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23142. # GNU General Public License for more details.
  23143. #
  23144. # You should have received a copy of the GNU General Public License
  23145. # along with GNU Libtool; see the file COPYING. If not, a copy
  23146. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23147. # obtained by writing to the Free Software Foundation, Inc.,
  23148. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23149. # The names of the tagged configurations supported by this script.
  23150. available_tags="CXX "
  23151. # ### BEGIN LIBTOOL CONFIG
  23152. # Whether or not to build static libraries.
  23153. build_old_libs=$enable_static
  23154. # Which release of libtool.m4 was used?
  23155. macro_version=$macro_version
  23156. macro_revision=$macro_revision
  23157. # Whether or not to build shared libraries.
  23158. build_libtool_libs=$enable_shared
  23159. # What type of objects to build.
  23160. pic_mode=$pic_mode
  23161. # Whether or not to optimize for fast installation.
  23162. fast_install=$enable_fast_install
  23163. # The host system.
  23164. host_alias=$host_alias
  23165. host=$host
  23166. host_os=$host_os
  23167. # The build system.
  23168. build_alias=$build_alias
  23169. build=$build
  23170. build_os=$build_os
  23171. # A sed program that does not truncate output.
  23172. SED=$lt_SED
  23173. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23174. Xsed="\$SED -e 1s/^X//"
  23175. # A grep program that handles long lines.
  23176. GREP=$lt_GREP
  23177. # An ERE matcher.
  23178. EGREP=$lt_EGREP
  23179. # A literal string matcher.
  23180. FGREP=$lt_FGREP
  23181. # A BSD- or MS-compatible name lister.
  23182. NM=$lt_NM
  23183. # Whether we need soft or hard links.
  23184. LN_S=$lt_LN_S
  23185. # What is the maximum length of a command?
  23186. max_cmd_len=$max_cmd_len
  23187. # Object file suffix (normally "o").
  23188. objext=$ac_objext
  23189. # Executable file suffix (normally "").
  23190. exeext=$exeext
  23191. # whether the shell understands "unset".
  23192. lt_unset=$lt_unset
  23193. # turn spaces into newlines.
  23194. SP2NL=$lt_lt_SP2NL
  23195. # turn newlines into spaces.
  23196. NL2SP=$lt_lt_NL2SP
  23197. # How to create reloadable object files.
  23198. reload_flag=$lt_reload_flag
  23199. reload_cmds=$lt_reload_cmds
  23200. # An object symbol dumper.
  23201. OBJDUMP=$lt_OBJDUMP
  23202. # Method to check whether dependent libraries are shared objects.
  23203. deplibs_check_method=$lt_deplibs_check_method
  23204. # Command to use when deplibs_check_method == "file_magic".
  23205. file_magic_cmd=$lt_file_magic_cmd
  23206. # The archiver.
  23207. AR=$lt_AR
  23208. AR_FLAGS=$lt_AR_FLAGS
  23209. # A symbol stripping program.
  23210. STRIP=$lt_STRIP
  23211. # Commands used to install an old-style archive.
  23212. RANLIB=$lt_RANLIB
  23213. old_postinstall_cmds=$lt_old_postinstall_cmds
  23214. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23215. # A C compiler.
  23216. LTCC=$lt_CC
  23217. # LTCC compiler flags.
  23218. LTCFLAGS=$lt_CFLAGS
  23219. # Take the output of nm and produce a listing of raw symbols and C names.
  23220. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23221. # Transform the output of nm in a proper C declaration.
  23222. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23223. # Transform the output of nm in a C name address pair.
  23224. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23225. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23226. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23227. # The name of the directory that contains temporary libtool files.
  23228. objdir=$objdir
  23229. # Shell to use when invoking shell scripts.
  23230. SHELL=$lt_SHELL
  23231. # An echo program that does not interpret backslashes.
  23232. ECHO=$lt_ECHO
  23233. # Used to examine libraries when file_magic_cmd begins with "file".
  23234. MAGIC_CMD=$MAGIC_CMD
  23235. # Must we lock files when doing compilation?
  23236. need_locks=$lt_need_locks
  23237. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23238. DSYMUTIL=$lt_DSYMUTIL
  23239. # Tool to change global to local symbols on Mac OS X.
  23240. NMEDIT=$lt_NMEDIT
  23241. # Tool to manipulate fat objects and archives on Mac OS X.
  23242. LIPO=$lt_LIPO
  23243. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23244. OTOOL=$lt_OTOOL
  23245. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23246. OTOOL64=$lt_OTOOL64
  23247. # Old archive suffix (normally "a").
  23248. libext=$libext
  23249. # Shared library suffix (normally ".so").
  23250. shrext_cmds=$lt_shrext_cmds
  23251. # The commands to extract the exported symbol list from a shared archive.
  23252. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23253. # Variables whose values should be saved in libtool wrapper scripts and
  23254. # restored at link time.
  23255. variables_saved_for_relink=$lt_variables_saved_for_relink
  23256. # Do we need the "lib" prefix for modules?
  23257. need_lib_prefix=$need_lib_prefix
  23258. # Do we need a version for libraries?
  23259. need_version=$need_version
  23260. # Library versioning type.
  23261. version_type=$version_type
  23262. # Shared library runtime path variable.
  23263. runpath_var=$runpath_var
  23264. # Shared library path variable.
  23265. shlibpath_var=$shlibpath_var
  23266. # Is shlibpath searched before the hard-coded library search path?
  23267. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23268. # Format of library name prefix.
  23269. libname_spec=$lt_libname_spec
  23270. # List of archive names. First name is the real one, the rest are links.
  23271. # The last name is the one that the linker finds with -lNAME
  23272. library_names_spec=$lt_library_names_spec
  23273. # The coded name of the library, if different from the real name.
  23274. soname_spec=$lt_soname_spec
  23275. # Command to use after installation of a shared archive.
  23276. postinstall_cmds=$lt_postinstall_cmds
  23277. # Command to use after uninstallation of a shared archive.
  23278. postuninstall_cmds=$lt_postuninstall_cmds
  23279. # Commands used to finish a libtool library installation in a directory.
  23280. finish_cmds=$lt_finish_cmds
  23281. # As "finish_cmds", except a single script fragment to be evaled but
  23282. # not shown.
  23283. finish_eval=$lt_finish_eval
  23284. # Whether we should hardcode library paths into libraries.
  23285. hardcode_into_libs=$hardcode_into_libs
  23286. # Compile-time system search path for libraries.
  23287. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23288. # Run-time system search path for libraries.
  23289. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23290. # Whether dlopen is supported.
  23291. dlopen_support=$enable_dlopen
  23292. # Whether dlopen of programs is supported.
  23293. dlopen_self=$enable_dlopen_self
  23294. # Whether dlopen of statically linked programs is supported.
  23295. dlopen_self_static=$enable_dlopen_self_static
  23296. # Commands to strip libraries.
  23297. old_striplib=$lt_old_striplib
  23298. striplib=$lt_striplib
  23299. # The linker used to build libraries.
  23300. LD=$lt_LD
  23301. # Commands used to build an old-style archive.
  23302. old_archive_cmds=$lt_old_archive_cmds
  23303. # A language specific compiler.
  23304. CC=$lt_compiler
  23305. # Is the compiler the GNU compiler?
  23306. with_gcc=$GCC
  23307. # Compiler flag to turn off builtin functions.
  23308. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23309. # How to pass a linker flag through the compiler.
  23310. wl=$lt_lt_prog_compiler_wl
  23311. # Additional compiler flags for building library objects.
  23312. pic_flag=$lt_lt_prog_compiler_pic
  23313. # Compiler flag to prevent dynamic linking.
  23314. link_static_flag=$lt_lt_prog_compiler_static
  23315. # Does compiler simultaneously support -c and -o options?
  23316. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23317. # Whether or not to add -lc for building shared libraries.
  23318. build_libtool_need_lc=$archive_cmds_need_lc
  23319. # Whether or not to disallow shared libs when runtime libs are static.
  23320. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23321. # Compiler flag to allow reflexive dlopens.
  23322. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23323. # Compiler flag to generate shared objects directly from archives.
  23324. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23325. # Whether the compiler copes with passing no objects directly.
  23326. compiler_needs_object=$lt_compiler_needs_object
  23327. # Create an old-style archive from a shared archive.
  23328. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23329. # Create a temporary old-style archive to link instead of a shared archive.
  23330. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23331. # Commands used to build a shared archive.
  23332. archive_cmds=$lt_archive_cmds
  23333. archive_expsym_cmds=$lt_archive_expsym_cmds
  23334. # Commands used to build a loadable module if different from building
  23335. # a shared archive.
  23336. module_cmds=$lt_module_cmds
  23337. module_expsym_cmds=$lt_module_expsym_cmds
  23338. # Whether we are building with GNU ld or not.
  23339. with_gnu_ld=$lt_with_gnu_ld
  23340. # Flag that allows shared libraries with undefined symbols to be built.
  23341. allow_undefined_flag=$lt_allow_undefined_flag
  23342. # Flag that enforces no undefined symbols.
  23343. no_undefined_flag=$lt_no_undefined_flag
  23344. # Flag to hardcode \$libdir into a binary during linking.
  23345. # This must work even if \$libdir does not exist
  23346. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23347. # If ld is used when linking, flag to hardcode \$libdir into a binary
  23348. # during linking. This must work even if \$libdir does not exist.
  23349. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  23350. # Whether we need a single "-rpath" flag with a separated argument.
  23351. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23352. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23353. # DIR into the resulting binary.
  23354. hardcode_direct=$hardcode_direct
  23355. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23356. # DIR into the resulting binary and the resulting library dependency is
  23357. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23358. # library is relocated.
  23359. hardcode_direct_absolute=$hardcode_direct_absolute
  23360. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23361. # into the resulting binary.
  23362. hardcode_minus_L=$hardcode_minus_L
  23363. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23364. # into the resulting binary.
  23365. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23366. # Set to "yes" if building a shared library automatically hardcodes DIR
  23367. # into the library and all subsequent libraries and executables linked
  23368. # against it.
  23369. hardcode_automatic=$hardcode_automatic
  23370. # Set to yes if linker adds runtime paths of dependent libraries
  23371. # to runtime path list.
  23372. inherit_rpath=$inherit_rpath
  23373. # Whether libtool must link a program against all its dependency libraries.
  23374. link_all_deplibs=$link_all_deplibs
  23375. # Fix the shell variable \$srcfile for the compiler.
  23376. fix_srcfile_path=$lt_fix_srcfile_path
  23377. # Set to "yes" if exported symbols are required.
  23378. always_export_symbols=$always_export_symbols
  23379. # The commands to list exported symbols.
  23380. export_symbols_cmds=$lt_export_symbols_cmds
  23381. # Symbols that should not be listed in the preloaded symbols.
  23382. exclude_expsyms=$lt_exclude_expsyms
  23383. # Symbols that must always be exported.
  23384. include_expsyms=$lt_include_expsyms
  23385. # Commands necessary for linking programs (against libraries) with templates.
  23386. prelink_cmds=$lt_prelink_cmds
  23387. # Specify filename containing input files.
  23388. file_list_spec=$lt_file_list_spec
  23389. # How to hardcode a shared library path into an executable.
  23390. hardcode_action=$hardcode_action
  23391. # The directories searched by this compiler when creating a shared library.
  23392. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23393. # Dependencies to place before and after the objects being linked to
  23394. # create a shared library.
  23395. predep_objects=$lt_predep_objects
  23396. postdep_objects=$lt_postdep_objects
  23397. predeps=$lt_predeps
  23398. postdeps=$lt_postdeps
  23399. # The library search path used internally by the compiler when linking
  23400. # a shared library.
  23401. compiler_lib_search_path=$lt_compiler_lib_search_path
  23402. # ### END LIBTOOL CONFIG
  23403. _LT_EOF
  23404. case $host_os in
  23405. aix3*)
  23406. cat <<\_LT_EOF >> "$cfgfile"
  23407. # AIX sometimes has problems with the GCC collect2 program. For some
  23408. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23409. # vanish in a puff of smoke.
  23410. if test "X${COLLECT_NAMES+set}" != Xset; then
  23411. COLLECT_NAMES=
  23412. export COLLECT_NAMES
  23413. fi
  23414. _LT_EOF
  23415. ;;
  23416. esac
  23417. ltmain="$ac_aux_dir/ltmain.sh"
  23418. # We use sed instead of cat because bash on DJGPP gets confused if
  23419. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23420. # text mode, it properly converts lines to CR/LF. This bash problem
  23421. # is reportedly fixed, but why not run on old versions too?
  23422. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  23423. || (rm -f "$cfgfile"; exit 1)
  23424. case $xsi_shell in
  23425. yes)
  23426. cat << \_LT_EOF >> "$cfgfile"
  23427. # func_dirname file append nondir_replacement
  23428. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23429. # otherwise set result to NONDIR_REPLACEMENT.
  23430. func_dirname ()
  23431. {
  23432. case ${1} in
  23433. */*) func_dirname_result="${1%/*}${2}" ;;
  23434. * ) func_dirname_result="${3}" ;;
  23435. esac
  23436. }
  23437. # func_basename file
  23438. func_basename ()
  23439. {
  23440. func_basename_result="${1##*/}"
  23441. }
  23442. # func_dirname_and_basename file append nondir_replacement
  23443. # perform func_basename and func_dirname in a single function
  23444. # call:
  23445. # dirname: Compute the dirname of FILE. If nonempty,
  23446. # add APPEND to the result, otherwise set result
  23447. # to NONDIR_REPLACEMENT.
  23448. # value returned in "$func_dirname_result"
  23449. # basename: Compute filename of FILE.
  23450. # value retuned in "$func_basename_result"
  23451. # Implementation must be kept synchronized with func_dirname
  23452. # and func_basename. For efficiency, we do not delegate to
  23453. # those functions but instead duplicate the functionality here.
  23454. func_dirname_and_basename ()
  23455. {
  23456. case ${1} in
  23457. */*) func_dirname_result="${1%/*}${2}" ;;
  23458. * ) func_dirname_result="${3}" ;;
  23459. esac
  23460. func_basename_result="${1##*/}"
  23461. }
  23462. # func_stripname prefix suffix name
  23463. # strip PREFIX and SUFFIX off of NAME.
  23464. # PREFIX and SUFFIX must not contain globbing or regex special
  23465. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23466. # dot (in which case that matches only a dot).
  23467. func_stripname ()
  23468. {
  23469. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  23470. # positional parameters, so assign one to ordinary parameter first.
  23471. func_stripname_result=${3}
  23472. func_stripname_result=${func_stripname_result#"${1}"}
  23473. func_stripname_result=${func_stripname_result%"${2}"}
  23474. }
  23475. # func_opt_split
  23476. func_opt_split ()
  23477. {
  23478. func_opt_split_opt=${1%%=*}
  23479. func_opt_split_arg=${1#*=}
  23480. }
  23481. # func_lo2o object
  23482. func_lo2o ()
  23483. {
  23484. case ${1} in
  23485. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  23486. *) func_lo2o_result=${1} ;;
  23487. esac
  23488. }
  23489. # func_xform libobj-or-source
  23490. func_xform ()
  23491. {
  23492. func_xform_result=${1%.*}.lo
  23493. }
  23494. # func_arith arithmetic-term...
  23495. func_arith ()
  23496. {
  23497. func_arith_result=$(( $* ))
  23498. }
  23499. # func_len string
  23500. # STRING may not start with a hyphen.
  23501. func_len ()
  23502. {
  23503. func_len_result=${#1}
  23504. }
  23505. _LT_EOF
  23506. ;;
  23507. *) # Bourne compatible functions.
  23508. cat << \_LT_EOF >> "$cfgfile"
  23509. # func_dirname file append nondir_replacement
  23510. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23511. # otherwise set result to NONDIR_REPLACEMENT.
  23512. func_dirname ()
  23513. {
  23514. # Extract subdirectory from the argument.
  23515. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  23516. if test "X$func_dirname_result" = "X${1}"; then
  23517. func_dirname_result="${3}"
  23518. else
  23519. func_dirname_result="$func_dirname_result${2}"
  23520. fi
  23521. }
  23522. # func_basename file
  23523. func_basename ()
  23524. {
  23525. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  23526. }
  23527. # func_stripname prefix suffix name
  23528. # strip PREFIX and SUFFIX off of NAME.
  23529. # PREFIX and SUFFIX must not contain globbing or regex special
  23530. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23531. # dot (in which case that matches only a dot).
  23532. # func_strip_suffix prefix name
  23533. func_stripname ()
  23534. {
  23535. case ${2} in
  23536. .*) func_stripname_result=`$ECHO "X${3}" \
  23537. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  23538. *) func_stripname_result=`$ECHO "X${3}" \
  23539. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  23540. esac
  23541. }
  23542. # sed scripts:
  23543. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  23544. my_sed_long_arg='1s/^-[^=]*=//'
  23545. # func_opt_split
  23546. func_opt_split ()
  23547. {
  23548. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  23549. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  23550. }
  23551. # func_lo2o object
  23552. func_lo2o ()
  23553. {
  23554. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  23555. }
  23556. # func_xform libobj-or-source
  23557. func_xform ()
  23558. {
  23559. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  23560. }
  23561. # func_arith arithmetic-term...
  23562. func_arith ()
  23563. {
  23564. func_arith_result=`expr "$@"`
  23565. }
  23566. # func_len string
  23567. # STRING may not start with a hyphen.
  23568. func_len ()
  23569. {
  23570. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  23571. }
  23572. _LT_EOF
  23573. esac
  23574. case $lt_shell_append in
  23575. yes)
  23576. cat << \_LT_EOF >> "$cfgfile"
  23577. # func_append var value
  23578. # Append VALUE to the end of shell variable VAR.
  23579. func_append ()
  23580. {
  23581. eval "$1+=\$2"
  23582. }
  23583. _LT_EOF
  23584. ;;
  23585. *)
  23586. cat << \_LT_EOF >> "$cfgfile"
  23587. # func_append var value
  23588. # Append VALUE to the end of shell variable VAR.
  23589. func_append ()
  23590. {
  23591. eval "$1=\$$1\$2"
  23592. }
  23593. _LT_EOF
  23594. ;;
  23595. esac
  23596. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  23597. || (rm -f "$cfgfile"; exit 1)
  23598. mv -f "$cfgfile" "$ofile" ||
  23599. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23600. chmod +x "$ofile"
  23601. cat <<_LT_EOF >> "$ofile"
  23602. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23603. # The linker used to build libraries.
  23604. LD=$lt_LD_CXX
  23605. # Commands used to build an old-style archive.
  23606. old_archive_cmds=$lt_old_archive_cmds_CXX
  23607. # A language specific compiler.
  23608. CC=$lt_compiler_CXX
  23609. # Is the compiler the GNU compiler?
  23610. with_gcc=$GCC_CXX
  23611. # Compiler flag to turn off builtin functions.
  23612. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23613. # How to pass a linker flag through the compiler.
  23614. wl=$lt_lt_prog_compiler_wl_CXX
  23615. # Additional compiler flags for building library objects.
  23616. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23617. # Compiler flag to prevent dynamic linking.
  23618. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23619. # Does compiler simultaneously support -c and -o options?
  23620. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23621. # Whether or not to add -lc for building shared libraries.
  23622. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23623. # Whether or not to disallow shared libs when runtime libs are static.
  23624. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23625. # Compiler flag to allow reflexive dlopens.
  23626. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23627. # Compiler flag to generate shared objects directly from archives.
  23628. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23629. # Whether the compiler copes with passing no objects directly.
  23630. compiler_needs_object=$lt_compiler_needs_object_CXX
  23631. # Create an old-style archive from a shared archive.
  23632. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23633. # Create a temporary old-style archive to link instead of a shared archive.
  23634. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23635. # Commands used to build a shared archive.
  23636. archive_cmds=$lt_archive_cmds_CXX
  23637. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23638. # Commands used to build a loadable module if different from building
  23639. # a shared archive.
  23640. module_cmds=$lt_module_cmds_CXX
  23641. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23642. # Whether we are building with GNU ld or not.
  23643. with_gnu_ld=$lt_with_gnu_ld_CXX
  23644. # Flag that allows shared libraries with undefined symbols to be built.
  23645. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23646. # Flag that enforces no undefined symbols.
  23647. no_undefined_flag=$lt_no_undefined_flag_CXX
  23648. # Flag to hardcode \$libdir into a binary during linking.
  23649. # This must work even if \$libdir does not exist
  23650. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23651. # If ld is used when linking, flag to hardcode \$libdir into a binary
  23652. # during linking. This must work even if \$libdir does not exist.
  23653. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  23654. # Whether we need a single "-rpath" flag with a separated argument.
  23655. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23656. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23657. # DIR into the resulting binary.
  23658. hardcode_direct=$hardcode_direct_CXX
  23659. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23660. # DIR into the resulting binary and the resulting library dependency is
  23661. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23662. # library is relocated.
  23663. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23664. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23665. # into the resulting binary.
  23666. hardcode_minus_L=$hardcode_minus_L_CXX
  23667. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23668. # into the resulting binary.
  23669. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23670. # Set to "yes" if building a shared library automatically hardcodes DIR
  23671. # into the library and all subsequent libraries and executables linked
  23672. # against it.
  23673. hardcode_automatic=$hardcode_automatic_CXX
  23674. # Set to yes if linker adds runtime paths of dependent libraries
  23675. # to runtime path list.
  23676. inherit_rpath=$inherit_rpath_CXX
  23677. # Whether libtool must link a program against all its dependency libraries.
  23678. link_all_deplibs=$link_all_deplibs_CXX
  23679. # Fix the shell variable \$srcfile for the compiler.
  23680. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  23681. # Set to "yes" if exported symbols are required.
  23682. always_export_symbols=$always_export_symbols_CXX
  23683. # The commands to list exported symbols.
  23684. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23685. # Symbols that should not be listed in the preloaded symbols.
  23686. exclude_expsyms=$lt_exclude_expsyms_CXX
  23687. # Symbols that must always be exported.
  23688. include_expsyms=$lt_include_expsyms_CXX
  23689. # Commands necessary for linking programs (against libraries) with templates.
  23690. prelink_cmds=$lt_prelink_cmds_CXX
  23691. # Specify filename containing input files.
  23692. file_list_spec=$lt_file_list_spec_CXX
  23693. # How to hardcode a shared library path into an executable.
  23694. hardcode_action=$hardcode_action_CXX
  23695. # The directories searched by this compiler when creating a shared library.
  23696. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23697. # Dependencies to place before and after the objects being linked to
  23698. # create a shared library.
  23699. predep_objects=$lt_predep_objects_CXX
  23700. postdep_objects=$lt_postdep_objects_CXX
  23701. predeps=$lt_predeps_CXX
  23702. postdeps=$lt_postdeps_CXX
  23703. # The library search path used internally by the compiler when linking
  23704. # a shared library.
  23705. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23706. # ### END LIBTOOL TAG CONFIG: CXX
  23707. _LT_EOF
  23708. ;;
  23709. esac
  23710. done # for ac_tag
  23711. { (exit 0); exit 0; }
  23712. _ACEOF
  23713. chmod +x $CONFIG_STATUS
  23714. ac_clean_files=$ac_clean_files_save
  23715. test $ac_write_fail = 0 ||
  23716. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  23717. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  23718. { (exit 1); exit 1; }; }
  23719. # configure is writing to config.log, and then calls config.status.
  23720. # config.status does its own redirection, appending to config.log.
  23721. # Unfortunately, on DOS this fails, as config.log is still kept open
  23722. # by configure, so config.status won't be able to write to it; its
  23723. # output is simply discarded. So we exec the FD to /dev/null,
  23724. # effectively closing config.log, so it can be properly (re)opened and
  23725. # appended to by config.status. When coming back to configure, we
  23726. # need to make the FD available again.
  23727. if test "$no_create" != yes; then
  23728. ac_cs_success=:
  23729. ac_config_status_args=
  23730. test "$silent" = yes &&
  23731. ac_config_status_args="$ac_config_status_args --quiet"
  23732. exec 5>/dev/null
  23733. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23734. exec 5>>config.log
  23735. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23736. # would make configure fail if this is the last instruction.
  23737. $ac_cs_success || { (exit 1); exit 1; }
  23738. fi
  23739. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23740. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23741. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23742. fi