configure 813 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033
  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. plainldif_opts
  719. ldaptool_opts
  720. ldaptool_bindir
  721. openldap_bindir
  722. openldap_libdir
  723. openldap_lib
  724. openldap_inc
  725. ldapsdk_bindir
  726. ldapsdk_libdir
  727. ldapsdk_lib
  728. ldapsdk_inc
  729. nss_libdir
  730. nss_lib
  731. nss_inc
  732. nspr_libdir
  733. nspr_lib
  734. nspr_inc
  735. SPARC_FALSE
  736. SPARC_TRUE
  737. OPENLDAP_FALSE
  738. OPENLDAP_TRUE
  739. SELINUX_FALSE
  740. SELINUX_TRUE
  741. PACKAGE_BASE_VERSION
  742. with_selinux
  743. kerberos_libdir
  744. kerberos_lib
  745. kerberos_inc
  746. KRB5_CONFIG_BIN
  747. NETSNMP_CONFIG
  748. ICU_CONFIG
  749. ldap_lib_ldif
  750. SYSTEMD_FALSE
  751. SYSTEMD_TRUE
  752. SOLARIS_FALSE
  753. SOLARIS_TRUE
  754. HPUX_FALSE
  755. HPUX_TRUE
  756. initconfigdir
  757. sttyexec
  758. perlexec
  759. initdir
  760. LIBCRUN
  761. LIBCSTD
  762. LIBDL
  763. LIBNSL
  764. LIBSOCKET
  765. LIBCRYPT
  766. THREADLIB
  767. WINNT_FALSE
  768. WINNT_TRUE
  769. instconfigdir
  770. defaultgroup
  771. defaultuser
  772. updatedir
  773. mibdir
  774. infdir
  775. perldir
  776. scripttemplatedir
  777. serverplugindir
  778. serverincdir
  779. serverdir
  780. schemadir
  781. propertydir
  782. sampledatadir
  783. configdir
  784. with_systemdgroupname
  785. with_systemdsystemconfdir
  786. with_systemdsystemunitdir
  787. PKG_CONFIG
  788. with_tmpfiles_d
  789. with_fhs_opt
  790. enable_posix_winsync_FALSE
  791. enable_posix_winsync_TRUE
  792. enable_acctpolicy_FALSE
  793. enable_acctpolicy_TRUE
  794. enable_presence_FALSE
  795. enable_presence_TRUE
  796. enable_bitwise_FALSE
  797. enable_bitwise_TRUE
  798. enable_auto_dn_suffix_FALSE
  799. enable_auto_dn_suffix_TRUE
  800. enable_autobind_FALSE
  801. enable_autobind_TRUE
  802. enable_ldapi_FALSE
  803. enable_ldapi_TRUE
  804. enable_dna_FALSE
  805. enable_dna_TRUE
  806. enable_pam_passthru_FALSE
  807. enable_pam_passthru_TRUE
  808. BUNDLE_FALSE
  809. BUNDLE_TRUE
  810. debug_defs
  811. LIBOBJS
  812. CXXCPP
  813. CPP
  814. OTOOL64
  815. OTOOL
  816. LIPO
  817. NMEDIT
  818. DSYMUTIL
  819. lt_ECHO
  820. RANLIB
  821. AR
  822. OBJDUMP
  823. LN_S
  824. NM
  825. ac_ct_DUMPBIN
  826. DUMPBIN
  827. LD
  828. FGREP
  829. EGREP
  830. GREP
  831. SED
  832. LIBTOOL
  833. am__fastdepCCAS_FALSE
  834. am__fastdepCCAS_TRUE
  835. CCASDEPMODE
  836. CCASFLAGS
  837. CCAS
  838. am__fastdepCC_FALSE
  839. am__fastdepCC_TRUE
  840. CCDEPMODE
  841. ac_ct_CC
  842. CFLAGS
  843. CC
  844. am__fastdepCXX_FALSE
  845. am__fastdepCXX_TRUE
  846. CXXDEPMODE
  847. AMDEPBACKSLASH
  848. AMDEP_FALSE
  849. AMDEP_TRUE
  850. am__quote
  851. am__include
  852. DEPDIR
  853. OBJEXT
  854. EXEEXT
  855. ac_ct_CXX
  856. CPPFLAGS
  857. LDFLAGS
  858. CXXFLAGS
  859. CXX
  860. host_os
  861. host_vendor
  862. host_cpu
  863. host
  864. build_os
  865. build_vendor
  866. build_cpu
  867. build
  868. MAINT
  869. MAINTAINER_MODE_FALSE
  870. MAINTAINER_MODE_TRUE
  871. CONSOLE_VERSION
  872. am__untar
  873. am__tar
  874. AMTAR
  875. am__leading_dot
  876. SET_MAKE
  877. AWK
  878. mkdir_p
  879. MKDIR_P
  880. INSTALL_STRIP_PROGRAM
  881. STRIP
  882. install_sh
  883. MAKEINFO
  884. AUTOHEADER
  885. AUTOMAKE
  886. AUTOCONF
  887. ACLOCAL
  888. VERSION
  889. PACKAGE
  890. CYGPATH_W
  891. am__isrc
  892. INSTALL_DATA
  893. INSTALL_SCRIPT
  894. INSTALL_PROGRAM
  895. target_alias
  896. host_alias
  897. build_alias
  898. LIBS
  899. ECHO_T
  900. ECHO_N
  901. ECHO_C
  902. DEFS
  903. mandir
  904. localedir
  905. libdir
  906. psdir
  907. pdfdir
  908. dvidir
  909. htmldir
  910. infodir
  911. docdir
  912. oldincludedir
  913. includedir
  914. localstatedir
  915. sharedstatedir
  916. sysconfdir
  917. datadir
  918. datarootdir
  919. libexecdir
  920. sbindir
  921. bindir
  922. program_transform_name
  923. prefix
  924. exec_prefix
  925. PACKAGE_BUGREPORT
  926. PACKAGE_STRING
  927. PACKAGE_VERSION
  928. PACKAGE_TARNAME
  929. PACKAGE_NAME
  930. PATH_SEPARATOR
  931. SHELL'
  932. ac_subst_files=''
  933. ac_user_opts='
  934. enable_option_checking
  935. enable_maintainer_mode
  936. enable_dependency_tracking
  937. enable_static
  938. enable_shared
  939. with_pic
  940. enable_fast_install
  941. with_gnu_ld
  942. enable_libtool_lock
  943. enable_debug
  944. enable_bundle
  945. enable_pam_passthru
  946. enable_dna
  947. enable_ldapi
  948. enable_autobind
  949. enable_bitwise
  950. enable_presence
  951. enable_acctpolicy
  952. enable_posix_winsync
  953. with_fhs
  954. with_fhs_opt
  955. with_tmpfiles_d
  956. with_systemdsystemunitdir
  957. with_systemdsystemconfdir
  958. with_systemdgroupname
  959. with_instconfigdir
  960. with_initddir
  961. with_nspr
  962. with_nspr_inc
  963. with_nspr_lib
  964. with_nss
  965. with_nss_inc
  966. with_nss_lib
  967. with_openldap
  968. with_openldap_inc
  969. with_openldap_lib
  970. with_openldap_bin
  971. with_ldapsdk
  972. with_ldapsdk_inc
  973. with_ldapsdk_lib
  974. with_ldapsdk_bin
  975. with_db
  976. with_db_inc
  977. with_db_lib
  978. with_sasl
  979. with_sasl_inc
  980. with_sasl_lib
  981. with_svrcore
  982. with_svrcore_inc
  983. with_svrcore_lib
  984. with_icu
  985. with_icu_inc
  986. with_icu_lib
  987. with_icu_bin
  988. with_netsnmp
  989. with_netsnmp_inc
  990. with_netsnmp_lib
  991. with_kerberos
  992. with_kerberos_inc
  993. with_kerberos_lib
  994. with_pcre
  995. with_selinux
  996. '
  997. ac_precious_vars='build_alias
  998. host_alias
  999. target_alias
  1000. CXX
  1001. CXXFLAGS
  1002. LDFLAGS
  1003. LIBS
  1004. CPPFLAGS
  1005. CCC
  1006. CC
  1007. CFLAGS
  1008. CCAS
  1009. CCASFLAGS
  1010. CPP
  1011. CXXCPP
  1012. PKG_CONFIG'
  1013. # Initialize some variables set by options.
  1014. ac_init_help=
  1015. ac_init_version=false
  1016. ac_unrecognized_opts=
  1017. ac_unrecognized_sep=
  1018. # The variables have the same names as the options, with
  1019. # dashes changed to underlines.
  1020. cache_file=/dev/null
  1021. exec_prefix=NONE
  1022. no_create=
  1023. no_recursion=
  1024. prefix=NONE
  1025. program_prefix=NONE
  1026. program_suffix=NONE
  1027. program_transform_name=s,x,x,
  1028. silent=
  1029. site=
  1030. srcdir=
  1031. verbose=
  1032. x_includes=NONE
  1033. x_libraries=NONE
  1034. # Installation directory options.
  1035. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1036. # and all the variables that are supposed to be based on exec_prefix
  1037. # by default will actually change.
  1038. # Use braces instead of parens because sh, perl, etc. also accept them.
  1039. # (The list follows the same order as the GNU Coding Standards.)
  1040. bindir='${exec_prefix}/bin'
  1041. sbindir='${exec_prefix}/sbin'
  1042. libexecdir='${exec_prefix}/libexec'
  1043. datarootdir='${prefix}/share'
  1044. datadir='${datarootdir}'
  1045. sysconfdir='${prefix}/etc'
  1046. sharedstatedir='${prefix}/com'
  1047. localstatedir='${prefix}/var'
  1048. includedir='${prefix}/include'
  1049. oldincludedir='/usr/include'
  1050. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1051. infodir='${datarootdir}/info'
  1052. htmldir='${docdir}'
  1053. dvidir='${docdir}'
  1054. pdfdir='${docdir}'
  1055. psdir='${docdir}'
  1056. libdir='${exec_prefix}/lib'
  1057. localedir='${datarootdir}/locale'
  1058. mandir='${datarootdir}/man'
  1059. ac_prev=
  1060. ac_dashdash=
  1061. for ac_option
  1062. do
  1063. # If the previous option needs an argument, assign it.
  1064. if test -n "$ac_prev"; then
  1065. eval $ac_prev=\$ac_option
  1066. ac_prev=
  1067. continue
  1068. fi
  1069. case $ac_option in
  1070. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1071. *) ac_optarg=yes ;;
  1072. esac
  1073. # Accept the important Cygnus configure options, so we can diagnose typos.
  1074. case $ac_dashdash$ac_option in
  1075. --)
  1076. ac_dashdash=yes ;;
  1077. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1078. ac_prev=bindir ;;
  1079. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1080. bindir=$ac_optarg ;;
  1081. -build | --build | --buil | --bui | --bu)
  1082. ac_prev=build_alias ;;
  1083. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1084. build_alias=$ac_optarg ;;
  1085. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1086. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1087. ac_prev=cache_file ;;
  1088. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1089. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1090. cache_file=$ac_optarg ;;
  1091. --config-cache | -C)
  1092. cache_file=config.cache ;;
  1093. -datadir | --datadir | --datadi | --datad)
  1094. ac_prev=datadir ;;
  1095. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1096. datadir=$ac_optarg ;;
  1097. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1098. | --dataroo | --dataro | --datar)
  1099. ac_prev=datarootdir ;;
  1100. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1101. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1102. datarootdir=$ac_optarg ;;
  1103. -disable-* | --disable-*)
  1104. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1105. # Reject names that are not valid shell variable names.
  1106. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1107. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1108. { (exit 1); exit 1; }; }
  1109. ac_useropt_orig=$ac_useropt
  1110. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1111. case $ac_user_opts in
  1112. *"
  1113. "enable_$ac_useropt"
  1114. "*) ;;
  1115. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1116. ac_unrecognized_sep=', ';;
  1117. esac
  1118. eval enable_$ac_useropt=no ;;
  1119. -docdir | --docdir | --docdi | --doc | --do)
  1120. ac_prev=docdir ;;
  1121. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1122. docdir=$ac_optarg ;;
  1123. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1124. ac_prev=dvidir ;;
  1125. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1126. dvidir=$ac_optarg ;;
  1127. -enable-* | --enable-*)
  1128. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1129. # Reject names that are not valid shell variable names.
  1130. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1131. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1132. { (exit 1); exit 1; }; }
  1133. ac_useropt_orig=$ac_useropt
  1134. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1135. case $ac_user_opts in
  1136. *"
  1137. "enable_$ac_useropt"
  1138. "*) ;;
  1139. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1140. ac_unrecognized_sep=', ';;
  1141. esac
  1142. eval enable_$ac_useropt=\$ac_optarg ;;
  1143. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1144. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1145. | --exec | --exe | --ex)
  1146. ac_prev=exec_prefix ;;
  1147. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1148. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1149. | --exec=* | --exe=* | --ex=*)
  1150. exec_prefix=$ac_optarg ;;
  1151. -gas | --gas | --ga | --g)
  1152. # Obsolete; use --with-gas.
  1153. with_gas=yes ;;
  1154. -help | --help | --hel | --he | -h)
  1155. ac_init_help=long ;;
  1156. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1157. ac_init_help=recursive ;;
  1158. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1159. ac_init_help=short ;;
  1160. -host | --host | --hos | --ho)
  1161. ac_prev=host_alias ;;
  1162. -host=* | --host=* | --hos=* | --ho=*)
  1163. host_alias=$ac_optarg ;;
  1164. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1165. ac_prev=htmldir ;;
  1166. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1167. | --ht=*)
  1168. htmldir=$ac_optarg ;;
  1169. -includedir | --includedir | --includedi | --included | --include \
  1170. | --includ | --inclu | --incl | --inc)
  1171. ac_prev=includedir ;;
  1172. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1173. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1174. includedir=$ac_optarg ;;
  1175. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1176. ac_prev=infodir ;;
  1177. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1178. infodir=$ac_optarg ;;
  1179. -libdir | --libdir | --libdi | --libd)
  1180. ac_prev=libdir ;;
  1181. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1182. libdir=$ac_optarg ;;
  1183. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1184. | --libexe | --libex | --libe)
  1185. ac_prev=libexecdir ;;
  1186. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1187. | --libexe=* | --libex=* | --libe=*)
  1188. libexecdir=$ac_optarg ;;
  1189. -localedir | --localedir | --localedi | --localed | --locale)
  1190. ac_prev=localedir ;;
  1191. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1192. localedir=$ac_optarg ;;
  1193. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1194. | --localstate | --localstat | --localsta | --localst | --locals)
  1195. ac_prev=localstatedir ;;
  1196. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1197. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1198. localstatedir=$ac_optarg ;;
  1199. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1200. ac_prev=mandir ;;
  1201. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1202. mandir=$ac_optarg ;;
  1203. -nfp | --nfp | --nf)
  1204. # Obsolete; use --without-fp.
  1205. with_fp=no ;;
  1206. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1207. | --no-cr | --no-c | -n)
  1208. no_create=yes ;;
  1209. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1210. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1211. no_recursion=yes ;;
  1212. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1213. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1214. | --oldin | --oldi | --old | --ol | --o)
  1215. ac_prev=oldincludedir ;;
  1216. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1217. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1218. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1219. oldincludedir=$ac_optarg ;;
  1220. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1221. ac_prev=prefix ;;
  1222. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1223. prefix=$ac_optarg ;;
  1224. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1225. | --program-pre | --program-pr | --program-p)
  1226. ac_prev=program_prefix ;;
  1227. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1228. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1229. program_prefix=$ac_optarg ;;
  1230. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1231. | --program-suf | --program-su | --program-s)
  1232. ac_prev=program_suffix ;;
  1233. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1234. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1235. program_suffix=$ac_optarg ;;
  1236. -program-transform-name | --program-transform-name \
  1237. | --program-transform-nam | --program-transform-na \
  1238. | --program-transform-n | --program-transform- \
  1239. | --program-transform | --program-transfor \
  1240. | --program-transfo | --program-transf \
  1241. | --program-trans | --program-tran \
  1242. | --progr-tra | --program-tr | --program-t)
  1243. ac_prev=program_transform_name ;;
  1244. -program-transform-name=* | --program-transform-name=* \
  1245. | --program-transform-nam=* | --program-transform-na=* \
  1246. | --program-transform-n=* | --program-transform-=* \
  1247. | --program-transform=* | --program-transfor=* \
  1248. | --program-transfo=* | --program-transf=* \
  1249. | --program-trans=* | --program-tran=* \
  1250. | --progr-tra=* | --program-tr=* | --program-t=*)
  1251. program_transform_name=$ac_optarg ;;
  1252. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1253. ac_prev=pdfdir ;;
  1254. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1255. pdfdir=$ac_optarg ;;
  1256. -psdir | --psdir | --psdi | --psd | --ps)
  1257. ac_prev=psdir ;;
  1258. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1259. psdir=$ac_optarg ;;
  1260. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1261. | -silent | --silent | --silen | --sile | --sil)
  1262. silent=yes ;;
  1263. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1264. ac_prev=sbindir ;;
  1265. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1266. | --sbi=* | --sb=*)
  1267. sbindir=$ac_optarg ;;
  1268. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1269. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1270. | --sharedst | --shareds | --shared | --share | --shar \
  1271. | --sha | --sh)
  1272. ac_prev=sharedstatedir ;;
  1273. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1274. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1275. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1276. | --sha=* | --sh=*)
  1277. sharedstatedir=$ac_optarg ;;
  1278. -site | --site | --sit)
  1279. ac_prev=site ;;
  1280. -site=* | --site=* | --sit=*)
  1281. site=$ac_optarg ;;
  1282. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1283. ac_prev=srcdir ;;
  1284. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1285. srcdir=$ac_optarg ;;
  1286. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1287. | --syscon | --sysco | --sysc | --sys | --sy)
  1288. ac_prev=sysconfdir ;;
  1289. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1290. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1291. sysconfdir=$ac_optarg ;;
  1292. -target | --target | --targe | --targ | --tar | --ta | --t)
  1293. ac_prev=target_alias ;;
  1294. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1295. target_alias=$ac_optarg ;;
  1296. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1297. verbose=yes ;;
  1298. -version | --version | --versio | --versi | --vers | -V)
  1299. ac_init_version=: ;;
  1300. -with-* | --with-*)
  1301. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1302. # Reject names that are not valid shell variable names.
  1303. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1304. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1305. { (exit 1); exit 1; }; }
  1306. ac_useropt_orig=$ac_useropt
  1307. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1308. case $ac_user_opts in
  1309. *"
  1310. "with_$ac_useropt"
  1311. "*) ;;
  1312. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1313. ac_unrecognized_sep=', ';;
  1314. esac
  1315. eval with_$ac_useropt=\$ac_optarg ;;
  1316. -without-* | --without-*)
  1317. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1318. # Reject names that are not valid shell variable names.
  1319. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1320. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1321. { (exit 1); exit 1; }; }
  1322. ac_useropt_orig=$ac_useropt
  1323. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1324. case $ac_user_opts in
  1325. *"
  1326. "with_$ac_useropt"
  1327. "*) ;;
  1328. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1329. ac_unrecognized_sep=', ';;
  1330. esac
  1331. eval with_$ac_useropt=no ;;
  1332. --x)
  1333. # Obsolete; use --with-x.
  1334. with_x=yes ;;
  1335. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1336. | --x-incl | --x-inc | --x-in | --x-i)
  1337. ac_prev=x_includes ;;
  1338. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1339. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1340. x_includes=$ac_optarg ;;
  1341. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1342. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1343. ac_prev=x_libraries ;;
  1344. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1345. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1346. x_libraries=$ac_optarg ;;
  1347. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1348. Try \`$0 --help' for more information." >&2
  1349. { (exit 1); exit 1; }; }
  1350. ;;
  1351. *=*)
  1352. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1353. # Reject names that are not valid shell variable names.
  1354. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1355. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1356. { (exit 1); exit 1; }; }
  1357. eval $ac_envvar=\$ac_optarg
  1358. export $ac_envvar ;;
  1359. *)
  1360. # FIXME: should be removed in autoconf 3.0.
  1361. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1362. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1363. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1364. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1365. ;;
  1366. esac
  1367. done
  1368. if test -n "$ac_prev"; then
  1369. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1370. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1371. { (exit 1); exit 1; }; }
  1372. fi
  1373. if test -n "$ac_unrecognized_opts"; then
  1374. case $enable_option_checking in
  1375. no) ;;
  1376. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1377. { (exit 1); exit 1; }; } ;;
  1378. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1379. esac
  1380. fi
  1381. # Check all directory arguments for consistency.
  1382. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1383. datadir sysconfdir sharedstatedir localstatedir includedir \
  1384. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1385. libdir localedir mandir
  1386. do
  1387. eval ac_val=\$$ac_var
  1388. # Remove trailing slashes.
  1389. case $ac_val in
  1390. */ )
  1391. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1392. eval $ac_var=\$ac_val;;
  1393. esac
  1394. # Be sure to have absolute directory names.
  1395. case $ac_val in
  1396. [\\/$]* | ?:[\\/]* ) continue;;
  1397. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1398. esac
  1399. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1400. { (exit 1); exit 1; }; }
  1401. done
  1402. # There might be people who depend on the old broken behavior: `$host'
  1403. # used to hold the argument of --host etc.
  1404. # FIXME: To remove some day.
  1405. build=$build_alias
  1406. host=$host_alias
  1407. target=$target_alias
  1408. # FIXME: To remove some day.
  1409. if test "x$host_alias" != x; then
  1410. if test "x$build_alias" = x; then
  1411. cross_compiling=maybe
  1412. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1413. If a cross compiler is detected then cross compile mode will be used." >&2
  1414. elif test "x$build_alias" != "x$host_alias"; then
  1415. cross_compiling=yes
  1416. fi
  1417. fi
  1418. ac_tool_prefix=
  1419. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1420. test "$silent" = yes && exec 6>/dev/null
  1421. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1422. ac_ls_di=`ls -di .` &&
  1423. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1424. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1425. { (exit 1); exit 1; }; }
  1426. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1427. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1428. { (exit 1); exit 1; }; }
  1429. # Find the source files, if location was not specified.
  1430. if test -z "$srcdir"; then
  1431. ac_srcdir_defaulted=yes
  1432. # Try the directory containing this script, then the parent directory.
  1433. ac_confdir=`$as_dirname -- "$as_myself" ||
  1434. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1435. X"$as_myself" : 'X\(//\)[^/]' \| \
  1436. X"$as_myself" : 'X\(//\)$' \| \
  1437. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1438. $as_echo X"$as_myself" |
  1439. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1440. s//\1/
  1441. q
  1442. }
  1443. /^X\(\/\/\)[^/].*/{
  1444. s//\1/
  1445. q
  1446. }
  1447. /^X\(\/\/\)$/{
  1448. s//\1/
  1449. q
  1450. }
  1451. /^X\(\/\).*/{
  1452. s//\1/
  1453. q
  1454. }
  1455. s/.*/./; q'`
  1456. srcdir=$ac_confdir
  1457. if test ! -r "$srcdir/$ac_unique_file"; then
  1458. srcdir=..
  1459. fi
  1460. else
  1461. ac_srcdir_defaulted=no
  1462. fi
  1463. if test ! -r "$srcdir/$ac_unique_file"; then
  1464. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1465. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1466. { (exit 1); exit 1; }; }
  1467. fi
  1468. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1469. ac_abs_confdir=`(
  1470. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1471. { (exit 1); exit 1; }; }
  1472. pwd)`
  1473. # When building in place, set srcdir=.
  1474. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1475. srcdir=.
  1476. fi
  1477. # Remove unnecessary trailing slashes from srcdir.
  1478. # Double slashes in file names in object file debugging info
  1479. # mess up M-x gdb in Emacs.
  1480. case $srcdir in
  1481. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1482. esac
  1483. for ac_var in $ac_precious_vars; do
  1484. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1485. eval ac_env_${ac_var}_value=\$${ac_var}
  1486. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1487. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1488. done
  1489. #
  1490. # Report the --help message.
  1491. #
  1492. if test "$ac_init_help" = "long"; then
  1493. # Omit some internal or obsolete options to make the list less imposing.
  1494. # This message is too long to be a string in the A/UX 3.1 sh.
  1495. cat <<_ACEOF
  1496. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1497. Usage: $0 [OPTION]... [VAR=VALUE]...
  1498. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1499. VAR=VALUE. See below for descriptions of some of the useful variables.
  1500. Defaults for the options are specified in brackets.
  1501. Configuration:
  1502. -h, --help display this help and exit
  1503. --help=short display options specific to this package
  1504. --help=recursive display the short help of all the included packages
  1505. -V, --version display version information and exit
  1506. -q, --quiet, --silent do not print \`checking...' messages
  1507. --cache-file=FILE cache test results in FILE [disabled]
  1508. -C, --config-cache alias for \`--cache-file=config.cache'
  1509. -n, --no-create do not create output files
  1510. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1511. Installation directories:
  1512. --prefix=PREFIX install architecture-independent files in PREFIX
  1513. [$ac_default_prefix]
  1514. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1515. [PREFIX]
  1516. By default, \`make install' will install all the files in
  1517. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1518. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1519. for instance \`--prefix=\$HOME'.
  1520. For better control, use the options below.
  1521. Fine tuning of the installation directories:
  1522. --bindir=DIR user executables [EPREFIX/bin]
  1523. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1524. --libexecdir=DIR program executables [EPREFIX/libexec]
  1525. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1526. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1527. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1528. --libdir=DIR object code libraries [EPREFIX/lib]
  1529. --includedir=DIR C header files [PREFIX/include]
  1530. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1531. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1532. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1533. --infodir=DIR info documentation [DATAROOTDIR/info]
  1534. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1535. --mandir=DIR man documentation [DATAROOTDIR/man]
  1536. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1537. --htmldir=DIR html documentation [DOCDIR]
  1538. --dvidir=DIR dvi documentation [DOCDIR]
  1539. --pdfdir=DIR pdf documentation [DOCDIR]
  1540. --psdir=DIR ps documentation [DOCDIR]
  1541. _ACEOF
  1542. cat <<\_ACEOF
  1543. Program names:
  1544. --program-prefix=PREFIX prepend PREFIX to installed program names
  1545. --program-suffix=SUFFIX append SUFFIX to installed program names
  1546. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1547. System types:
  1548. --build=BUILD configure for building on BUILD [guessed]
  1549. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1550. _ACEOF
  1551. fi
  1552. if test -n "$ac_init_help"; then
  1553. case $ac_init_help in
  1554. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1555. esac
  1556. cat <<\_ACEOF
  1557. Optional Features:
  1558. --disable-option-checking ignore unrecognized --enable/--with options
  1559. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1560. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1561. --enable-maintainer-mode enable make rules and dependencies not useful
  1562. (and sometimes confusing) to the casual installer
  1563. --disable-dependency-tracking speeds up one-time build
  1564. --enable-dependency-tracking do not reject slow dependency extractors
  1565. --enable-static[=PKGS] build static libraries [default=no]
  1566. --enable-shared[=PKGS] build shared libraries [default=yes]
  1567. --enable-fast-install[=PKGS]
  1568. optimize for fast installation [default=yes]
  1569. --disable-libtool-lock avoid locking (might break parallel builds)
  1570. --enable-debug Enable debug features (default: no)
  1571. --enable-bundle Enable bundled dependencies (default: no)
  1572. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1573. yes)
  1574. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1575. plugin (default: yes)
  1576. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1577. (default: yes)
  1578. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1579. support (default: no)
  1580. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1581. domain socket (LDAPI) support (default: no)
  1582. --enable-bitwise enable the bitwise matching rule plugin (default:
  1583. yes)
  1584. --enable-presence enable the presence plugin (default: no)
  1585. --enable-acctpolicy enable the account policy plugin (default: yes)
  1586. --enable-posix-winsync enable support for POSIX user/group attributes in
  1587. winsync (default: yes)
  1588. Optional Packages:
  1589. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1590. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1591. --with-pic try to use only PIC/non-PIC objects [default=use
  1592. both]
  1593. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1594. --with-fhs Use FHS layout
  1595. --with-fhs-opt Use FHS optional layout
  1596. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1597. (default: $with_tmpfiles_d)
  1598. --with-systemdsystemunitdir=PATH
  1599. Directory for systemd service files (default:
  1600. $with_systemdsystemunitdir)
  1601. --with-systemdsystemconfdir=PATH
  1602. Directory for systemd service files (default:
  1603. $with_systemdsystemconfdir)
  1604. --with-systemdgroupname=NAME
  1605. Name of group target for all instances (default:
  1606. $with_systemdgroupname)
  1607. --with-instconfigdir=/path
  1608. Base directory for instance specific writable
  1609. configuration directories (default
  1610. $sysconfdir/$PACKAGE_NAME)
  1611. --with-initddir=/path Absolute path (not relative like some of the other
  1612. options) that should contain the SysV init scripts
  1613. (default '$(sysconfdir)/rc.d')
  1614. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1615. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1616. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1617. --with-nss[=PATH] Network Security Services (NSS) directory
  1618. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1619. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1620. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1621. --with-openldap-inc=PATH
  1622. OpenLDAP SDK include directory
  1623. --with-openldap-lib=PATH
  1624. OpenLDAP SDK library directory
  1625. --with-openldap-bin=PATH
  1626. OpenLDAP SDK binary directory
  1627. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1628. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1629. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1630. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1631. --with-db[=PATH] Berkeley DB directory
  1632. --with-db-inc=PATH Berkeley DB include file directory
  1633. --with-db-lib=PATH Berkeley DB library directory
  1634. --with-sasl[=PATH] Use SASL from supplied path
  1635. --with-sasl-inc=PATH SASL include file directory
  1636. --with-sasl-lib=PATH SASL library directory
  1637. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1638. SVRCORE
  1639. --with-svrcore-inc=PATH SVRCORE include file directory
  1640. --with-svrcore-lib=PATH SVRCORE library directory
  1641. --with-icu[=PATH] ICU directory
  1642. --with-icu-inc=PATH ICU include directory
  1643. --with-icu-lib=PATH ICU library directory
  1644. --with-icu-bin=PATH ICU binary directory
  1645. --with-netsnmp[=PATH] Net-SNMP directory
  1646. --with-netsnmp-inc=PATH Net-SNMP include directory
  1647. --with-netsnmp-lib=PATH Net-SNMP library directory
  1648. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1649. the server to authenticate directly with a keytab -
  1650. otherwise, SASL/GSSAPI auth depends on underlying
  1651. SASL libraries and external kinit with a keytab - if
  1652. PATH is not specified, look for kerberos in the
  1653. system locations. This will attempt to use
  1654. krb5-config from the PATH to find the libs and
  1655. include dirs - you can specify KRB5_CONFIG_BIN to
  1656. specify a different filename or absolute path. If
  1657. krb5-config does not work, this will attempt to look
  1658. in various system directories
  1659. --with-kerberos-inc=PATH
  1660. Allows you to explicitly set the directory
  1661. containing the kerberos include files - implies use
  1662. of kerberos
  1663. --with-kerberos-lib=PATH
  1664. Allows you to explicitly set the directory
  1665. containing the kerberos libraries - implies use of
  1666. kerberos
  1667. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1668. --with-selinux Support SELinux policy
  1669. Some influential environment variables:
  1670. CXX C++ compiler command
  1671. CXXFLAGS C++ compiler flags
  1672. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1673. nonstandard directory <lib dir>
  1674. LIBS libraries to pass to the linker, e.g. -l<library>
  1675. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1676. you have headers in a nonstandard directory <include dir>
  1677. CC C compiler command
  1678. CFLAGS C compiler flags
  1679. CCAS assembler compiler command (defaults to CC)
  1680. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1681. CPP C preprocessor
  1682. CXXCPP C++ preprocessor
  1683. PKG_CONFIG path to pkg-config utility
  1684. Use these variables to override the choices made by `configure' or to help
  1685. it to find libraries and programs with nonstandard names/locations.
  1686. Report bugs to <http://bugzilla.redhat.com/>.
  1687. _ACEOF
  1688. ac_status=$?
  1689. fi
  1690. if test "$ac_init_help" = "recursive"; then
  1691. # If there are subdirs, report their specific --help.
  1692. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1693. test -d "$ac_dir" ||
  1694. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1695. continue
  1696. ac_builddir=.
  1697. case "$ac_dir" in
  1698. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1699. *)
  1700. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1701. # A ".." for each directory in $ac_dir_suffix.
  1702. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1703. case $ac_top_builddir_sub in
  1704. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1705. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1706. esac ;;
  1707. esac
  1708. ac_abs_top_builddir=$ac_pwd
  1709. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1710. # for backward compatibility:
  1711. ac_top_builddir=$ac_top_build_prefix
  1712. case $srcdir in
  1713. .) # We are building in place.
  1714. ac_srcdir=.
  1715. ac_top_srcdir=$ac_top_builddir_sub
  1716. ac_abs_top_srcdir=$ac_pwd ;;
  1717. [\\/]* | ?:[\\/]* ) # Absolute name.
  1718. ac_srcdir=$srcdir$ac_dir_suffix;
  1719. ac_top_srcdir=$srcdir
  1720. ac_abs_top_srcdir=$srcdir ;;
  1721. *) # Relative name.
  1722. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1723. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1724. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1725. esac
  1726. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1727. cd "$ac_dir" || { ac_status=$?; continue; }
  1728. # Check for guested configure.
  1729. if test -f "$ac_srcdir/configure.gnu"; then
  1730. echo &&
  1731. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1732. elif test -f "$ac_srcdir/configure"; then
  1733. echo &&
  1734. $SHELL "$ac_srcdir/configure" --help=recursive
  1735. else
  1736. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1737. fi || ac_status=$?
  1738. cd "$ac_pwd" || { ac_status=$?; break; }
  1739. done
  1740. fi
  1741. test -n "$ac_init_help" && exit $ac_status
  1742. if $ac_init_version; then
  1743. cat <<\_ACEOF
  1744. dirsrv configure 1.0
  1745. generated by GNU Autoconf 2.63
  1746. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1747. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1748. This configure script is free software; the Free Software Foundation
  1749. gives unlimited permission to copy, distribute and modify it.
  1750. _ACEOF
  1751. exit
  1752. fi
  1753. cat >config.log <<_ACEOF
  1754. This file contains any messages produced by compilers while
  1755. running configure, to aid debugging if configure makes a mistake.
  1756. It was created by dirsrv $as_me 1.0, which was
  1757. generated by GNU Autoconf 2.63. Invocation command line was
  1758. $ $0 $@
  1759. _ACEOF
  1760. exec 5>>config.log
  1761. {
  1762. cat <<_ASUNAME
  1763. ## --------- ##
  1764. ## Platform. ##
  1765. ## --------- ##
  1766. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1767. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1768. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1769. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1770. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1771. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1772. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1773. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1774. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1775. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1776. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1777. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1778. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1779. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1780. _ASUNAME
  1781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1782. for as_dir in $PATH
  1783. do
  1784. IFS=$as_save_IFS
  1785. test -z "$as_dir" && as_dir=.
  1786. $as_echo "PATH: $as_dir"
  1787. done
  1788. IFS=$as_save_IFS
  1789. } >&5
  1790. cat >&5 <<_ACEOF
  1791. ## ----------- ##
  1792. ## Core tests. ##
  1793. ## ----------- ##
  1794. _ACEOF
  1795. # Keep a trace of the command line.
  1796. # Strip out --no-create and --no-recursion so they do not pile up.
  1797. # Strip out --silent because we don't want to record it for future runs.
  1798. # Also quote any args containing shell meta-characters.
  1799. # Make two passes to allow for proper duplicate-argument suppression.
  1800. ac_configure_args=
  1801. ac_configure_args0=
  1802. ac_configure_args1=
  1803. ac_must_keep_next=false
  1804. for ac_pass in 1 2
  1805. do
  1806. for ac_arg
  1807. do
  1808. case $ac_arg in
  1809. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1810. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1811. | -silent | --silent | --silen | --sile | --sil)
  1812. continue ;;
  1813. *\'*)
  1814. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1815. esac
  1816. case $ac_pass in
  1817. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1818. 2)
  1819. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1820. if test $ac_must_keep_next = true; then
  1821. ac_must_keep_next=false # Got value, back to normal.
  1822. else
  1823. case $ac_arg in
  1824. *=* | --config-cache | -C | -disable-* | --disable-* \
  1825. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1826. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1827. | -with-* | --with-* | -without-* | --without-* | --x)
  1828. case "$ac_configure_args0 " in
  1829. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1830. esac
  1831. ;;
  1832. -* ) ac_must_keep_next=true ;;
  1833. esac
  1834. fi
  1835. ac_configure_args="$ac_configure_args '$ac_arg'"
  1836. ;;
  1837. esac
  1838. done
  1839. done
  1840. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1841. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1842. # When interrupted or exit'd, cleanup temporary files, and complete
  1843. # config.log. We remove comments because anyway the quotes in there
  1844. # would cause problems or look ugly.
  1845. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1846. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1847. trap 'exit_status=$?
  1848. # Save into config.log some information that might help in debugging.
  1849. {
  1850. echo
  1851. cat <<\_ASBOX
  1852. ## ---------------- ##
  1853. ## Cache variables. ##
  1854. ## ---------------- ##
  1855. _ASBOX
  1856. echo
  1857. # The following way of writing the cache mishandles newlines in values,
  1858. (
  1859. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1860. eval ac_val=\$$ac_var
  1861. case $ac_val in #(
  1862. *${as_nl}*)
  1863. case $ac_var in #(
  1864. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1865. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1866. esac
  1867. case $ac_var in #(
  1868. _ | IFS | as_nl) ;; #(
  1869. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1870. *) $as_unset $ac_var ;;
  1871. esac ;;
  1872. esac
  1873. done
  1874. (set) 2>&1 |
  1875. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1876. *${as_nl}ac_space=\ *)
  1877. sed -n \
  1878. "s/'\''/'\''\\\\'\'''\''/g;
  1879. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1880. ;; #(
  1881. *)
  1882. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1883. ;;
  1884. esac |
  1885. sort
  1886. )
  1887. echo
  1888. cat <<\_ASBOX
  1889. ## ----------------- ##
  1890. ## Output variables. ##
  1891. ## ----------------- ##
  1892. _ASBOX
  1893. echo
  1894. for ac_var in $ac_subst_vars
  1895. do
  1896. eval ac_val=\$$ac_var
  1897. case $ac_val in
  1898. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1899. esac
  1900. $as_echo "$ac_var='\''$ac_val'\''"
  1901. done | sort
  1902. echo
  1903. if test -n "$ac_subst_files"; then
  1904. cat <<\_ASBOX
  1905. ## ------------------- ##
  1906. ## File substitutions. ##
  1907. ## ------------------- ##
  1908. _ASBOX
  1909. echo
  1910. for ac_var in $ac_subst_files
  1911. do
  1912. eval ac_val=\$$ac_var
  1913. case $ac_val in
  1914. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1915. esac
  1916. $as_echo "$ac_var='\''$ac_val'\''"
  1917. done | sort
  1918. echo
  1919. fi
  1920. if test -s confdefs.h; then
  1921. cat <<\_ASBOX
  1922. ## ----------- ##
  1923. ## confdefs.h. ##
  1924. ## ----------- ##
  1925. _ASBOX
  1926. echo
  1927. cat confdefs.h
  1928. echo
  1929. fi
  1930. test "$ac_signal" != 0 &&
  1931. $as_echo "$as_me: caught signal $ac_signal"
  1932. $as_echo "$as_me: exit $exit_status"
  1933. } >&5
  1934. rm -f core *.core core.conftest.* &&
  1935. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1936. exit $exit_status
  1937. ' 0
  1938. for ac_signal in 1 2 13 15; do
  1939. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1940. done
  1941. ac_signal=0
  1942. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1943. rm -f -r conftest* confdefs.h
  1944. # Predefined preprocessor variables.
  1945. cat >>confdefs.h <<_ACEOF
  1946. #define PACKAGE_NAME "$PACKAGE_NAME"
  1947. _ACEOF
  1948. cat >>confdefs.h <<_ACEOF
  1949. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1950. _ACEOF
  1951. cat >>confdefs.h <<_ACEOF
  1952. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1953. _ACEOF
  1954. cat >>confdefs.h <<_ACEOF
  1955. #define PACKAGE_STRING "$PACKAGE_STRING"
  1956. _ACEOF
  1957. cat >>confdefs.h <<_ACEOF
  1958. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1959. _ACEOF
  1960. # Let the site file select an alternate cache file if it wants to.
  1961. # Prefer an explicitly selected file to automatically selected ones.
  1962. ac_site_file1=NONE
  1963. ac_site_file2=NONE
  1964. if test -n "$CONFIG_SITE"; then
  1965. ac_site_file1=$CONFIG_SITE
  1966. elif test "x$prefix" != xNONE; then
  1967. ac_site_file1=$prefix/share/config.site
  1968. ac_site_file2=$prefix/etc/config.site
  1969. else
  1970. ac_site_file1=$ac_default_prefix/share/config.site
  1971. ac_site_file2=$ac_default_prefix/etc/config.site
  1972. fi
  1973. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1974. do
  1975. test "x$ac_site_file" = xNONE && continue
  1976. if test -r "$ac_site_file"; then
  1977. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1978. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1979. sed 's/^/| /' "$ac_site_file" >&5
  1980. . "$ac_site_file"
  1981. fi
  1982. done
  1983. if test -r "$cache_file"; then
  1984. # Some versions of bash will fail to source /dev/null (special
  1985. # files actually), so we avoid doing that.
  1986. if test -f "$cache_file"; then
  1987. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1988. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1989. case $cache_file in
  1990. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1991. *) . "./$cache_file";;
  1992. esac
  1993. fi
  1994. else
  1995. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1996. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1997. >$cache_file
  1998. fi
  1999. # Check that the precious variables saved in the cache have kept the same
  2000. # value.
  2001. ac_cache_corrupted=false
  2002. for ac_var in $ac_precious_vars; do
  2003. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2004. eval ac_new_set=\$ac_env_${ac_var}_set
  2005. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2006. eval ac_new_val=\$ac_env_${ac_var}_value
  2007. case $ac_old_set,$ac_new_set in
  2008. set,)
  2009. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2010. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2011. ac_cache_corrupted=: ;;
  2012. ,set)
  2013. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2014. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2015. ac_cache_corrupted=: ;;
  2016. ,);;
  2017. *)
  2018. if test "x$ac_old_val" != "x$ac_new_val"; then
  2019. # differences in whitespace do not lead to failure.
  2020. ac_old_val_w=`echo x $ac_old_val`
  2021. ac_new_val_w=`echo x $ac_new_val`
  2022. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2023. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2024. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2025. ac_cache_corrupted=:
  2026. else
  2027. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2028. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2029. eval $ac_var=\$ac_old_val
  2030. fi
  2031. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2032. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2033. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2034. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2035. fi;;
  2036. esac
  2037. # Pass precious variables to config.status.
  2038. if test "$ac_new_set" = set; then
  2039. case $ac_new_val in
  2040. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2041. *) ac_arg=$ac_var=$ac_new_val ;;
  2042. esac
  2043. case " $ac_configure_args " in
  2044. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2045. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2046. esac
  2047. fi
  2048. done
  2049. if $ac_cache_corrupted; then
  2050. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2051. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2052. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2053. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2054. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2055. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2056. { (exit 1); exit 1; }; }
  2057. fi
  2058. ac_ext=c
  2059. ac_cpp='$CPP $CPPFLAGS'
  2060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2063. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2064. ac_config_headers="$ac_config_headers config.h"
  2065. # include the version information
  2066. . $srcdir/VERSION.sh
  2067. { $as_echo "$as_me:$LINENO: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2068. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2069. cat >>confdefs.h <<_ACEOF
  2070. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2071. _ACEOF
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2074. _ACEOF
  2075. cat >>confdefs.h <<_ACEOF
  2076. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2077. _ACEOF
  2078. cat >>confdefs.h <<_ACEOF
  2079. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2080. _ACEOF
  2081. am__api_version='1.11'
  2082. ac_aux_dir=
  2083. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2084. if test -f "$ac_dir/install-sh"; then
  2085. ac_aux_dir=$ac_dir
  2086. ac_install_sh="$ac_aux_dir/install-sh -c"
  2087. break
  2088. elif test -f "$ac_dir/install.sh"; then
  2089. ac_aux_dir=$ac_dir
  2090. ac_install_sh="$ac_aux_dir/install.sh -c"
  2091. break
  2092. elif test -f "$ac_dir/shtool"; then
  2093. ac_aux_dir=$ac_dir
  2094. ac_install_sh="$ac_aux_dir/shtool install -c"
  2095. break
  2096. fi
  2097. done
  2098. if test -z "$ac_aux_dir"; then
  2099. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2100. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2101. { (exit 1); exit 1; }; }
  2102. fi
  2103. # These three variables are undocumented and unsupported,
  2104. # and are intended to be withdrawn in a future Autoconf release.
  2105. # They can cause serious problems if a builder's source tree is in a directory
  2106. # whose full name contains unusual characters.
  2107. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2108. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2109. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2110. # Find a good install program. We prefer a C program (faster),
  2111. # so one script is as good as another. But avoid the broken or
  2112. # incompatible versions:
  2113. # SysV /etc/install, /usr/sbin/install
  2114. # SunOS /usr/etc/install
  2115. # IRIX /sbin/install
  2116. # AIX /bin/install
  2117. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2118. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2119. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2120. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2121. # OS/2's system install, which has a completely different semantic
  2122. # ./install, which can be erroneously created by make from ./install.sh.
  2123. # Reject install programs that cannot install multiple files.
  2124. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2125. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2126. if test -z "$INSTALL"; then
  2127. if test "${ac_cv_path_install+set}" = set; then
  2128. $as_echo_n "(cached) " >&6
  2129. else
  2130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2131. for as_dir in $PATH
  2132. do
  2133. IFS=$as_save_IFS
  2134. test -z "$as_dir" && as_dir=.
  2135. # Account for people who put trailing slashes in PATH elements.
  2136. case $as_dir/ in
  2137. ./ | .// | /cC/* | \
  2138. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2139. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2140. /usr/ucb/* ) ;;
  2141. *)
  2142. # OSF1 and SCO ODT 3.0 have their own names for install.
  2143. # Don't use installbsd from OSF since it installs stuff as root
  2144. # by default.
  2145. for ac_prog in ginstall scoinst install; do
  2146. for ac_exec_ext in '' $ac_executable_extensions; do
  2147. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2148. if test $ac_prog = install &&
  2149. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2150. # AIX install. It has an incompatible calling convention.
  2151. :
  2152. elif test $ac_prog = install &&
  2153. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2154. # program-specific install script used by HP pwplus--don't use.
  2155. :
  2156. else
  2157. rm -rf conftest.one conftest.two conftest.dir
  2158. echo one > conftest.one
  2159. echo two > conftest.two
  2160. mkdir conftest.dir
  2161. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2162. test -s conftest.one && test -s conftest.two &&
  2163. test -s conftest.dir/conftest.one &&
  2164. test -s conftest.dir/conftest.two
  2165. then
  2166. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2167. break 3
  2168. fi
  2169. fi
  2170. fi
  2171. done
  2172. done
  2173. ;;
  2174. esac
  2175. done
  2176. IFS=$as_save_IFS
  2177. rm -rf conftest.one conftest.two conftest.dir
  2178. fi
  2179. if test "${ac_cv_path_install+set}" = set; then
  2180. INSTALL=$ac_cv_path_install
  2181. else
  2182. # As a last resort, use the slow shell script. Don't cache a
  2183. # value for INSTALL within a source directory, because that will
  2184. # break other packages using the cache if that directory is
  2185. # removed, or if the value is a relative name.
  2186. INSTALL=$ac_install_sh
  2187. fi
  2188. fi
  2189. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2190. $as_echo "$INSTALL" >&6; }
  2191. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2192. # It thinks the first close brace ends the variable substitution.
  2193. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2194. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2195. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2196. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2197. $as_echo_n "checking whether build environment is sane... " >&6; }
  2198. # Just in case
  2199. sleep 1
  2200. echo timestamp > conftest.file
  2201. # Reject unsafe characters in $srcdir or the absolute working directory
  2202. # name. Accept space and tab only in the latter.
  2203. am_lf='
  2204. '
  2205. case `pwd` in
  2206. *[\\\"\#\$\&\'\`$am_lf]*)
  2207. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2208. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2209. { (exit 1); exit 1; }; };;
  2210. esac
  2211. case $srcdir in
  2212. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2213. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2214. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2215. { (exit 1); exit 1; }; };;
  2216. esac
  2217. # Do `set' in a subshell so we don't clobber the current shell's
  2218. # arguments. Must try -L first in case configure is actually a
  2219. # symlink; some systems play weird games with the mod time of symlinks
  2220. # (eg FreeBSD returns the mod time of the symlink's containing
  2221. # directory).
  2222. if (
  2223. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2224. if test "$*" = "X"; then
  2225. # -L didn't work.
  2226. set X `ls -t "$srcdir/configure" conftest.file`
  2227. fi
  2228. rm -f conftest.file
  2229. if test "$*" != "X $srcdir/configure conftest.file" \
  2230. && test "$*" != "X conftest.file $srcdir/configure"; then
  2231. # If neither matched, then we have a broken ls. This can happen
  2232. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2233. # broken ls alias from the environment. This has actually
  2234. # happened. Such a system could not be considered "sane".
  2235. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2236. alias in your environment" >&5
  2237. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2238. alias in your environment" >&2;}
  2239. { (exit 1); exit 1; }; }
  2240. fi
  2241. test "$2" = conftest.file
  2242. )
  2243. then
  2244. # Ok.
  2245. :
  2246. else
  2247. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2248. Check your system clock" >&5
  2249. $as_echo "$as_me: error: newly created file is older than distributed files!
  2250. Check your system clock" >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2254. $as_echo "yes" >&6; }
  2255. test "$program_prefix" != NONE &&
  2256. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2257. # Use a double $ so make ignores it.
  2258. test "$program_suffix" != NONE &&
  2259. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2260. # Double any \ or $.
  2261. # By default was `s,x,x', remove it if useless.
  2262. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2263. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2264. # expand $ac_aux_dir to an absolute path
  2265. am_aux_dir=`cd $ac_aux_dir && pwd`
  2266. if test x"${MISSING+set}" != xset; then
  2267. case $am_aux_dir in
  2268. *\ * | *\ *)
  2269. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2270. *)
  2271. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2272. esac
  2273. fi
  2274. # Use eval to expand $SHELL
  2275. if eval "$MISSING --run true"; then
  2276. am_missing_run="$MISSING --run "
  2277. else
  2278. am_missing_run=
  2279. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2280. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2281. fi
  2282. if test x"${install_sh}" != xset; then
  2283. case $am_aux_dir in
  2284. *\ * | *\ *)
  2285. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2286. *)
  2287. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2288. esac
  2289. fi
  2290. # Installed binaries are usually stripped using `strip' when the user
  2291. # run `make install-strip'. However `strip' might not be the right
  2292. # tool to use in cross-compilation environments, therefore Automake
  2293. # will honor the `STRIP' environment variable to overrule this program.
  2294. if test "$cross_compiling" != no; then
  2295. if test -n "$ac_tool_prefix"; then
  2296. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2297. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2298. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2299. $as_echo_n "checking for $ac_word... " >&6; }
  2300. if test "${ac_cv_prog_STRIP+set}" = set; then
  2301. $as_echo_n "(cached) " >&6
  2302. else
  2303. if test -n "$STRIP"; then
  2304. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2305. else
  2306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2307. for as_dir in $PATH
  2308. do
  2309. IFS=$as_save_IFS
  2310. test -z "$as_dir" && as_dir=.
  2311. for ac_exec_ext in '' $ac_executable_extensions; do
  2312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2313. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2314. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2315. break 2
  2316. fi
  2317. done
  2318. done
  2319. IFS=$as_save_IFS
  2320. fi
  2321. fi
  2322. STRIP=$ac_cv_prog_STRIP
  2323. if test -n "$STRIP"; then
  2324. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2325. $as_echo "$STRIP" >&6; }
  2326. else
  2327. { $as_echo "$as_me:$LINENO: result: no" >&5
  2328. $as_echo "no" >&6; }
  2329. fi
  2330. fi
  2331. if test -z "$ac_cv_prog_STRIP"; then
  2332. ac_ct_STRIP=$STRIP
  2333. # Extract the first word of "strip", so it can be a program name with args.
  2334. set dummy strip; ac_word=$2
  2335. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$ac_ct_STRIP"; then
  2341. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_ac_ct_STRIP="strip"
  2351. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2360. if test -n "$ac_ct_STRIP"; then
  2361. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2362. $as_echo "$ac_ct_STRIP" >&6; }
  2363. else
  2364. { $as_echo "$as_me:$LINENO: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. if test "x$ac_ct_STRIP" = x; then
  2368. STRIP=":"
  2369. else
  2370. case $cross_compiling:$ac_tool_warned in
  2371. yes:)
  2372. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2374. ac_tool_warned=yes ;;
  2375. esac
  2376. STRIP=$ac_ct_STRIP
  2377. fi
  2378. else
  2379. STRIP="$ac_cv_prog_STRIP"
  2380. fi
  2381. fi
  2382. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2383. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2384. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2385. if test -z "$MKDIR_P"; then
  2386. if test "${ac_cv_path_mkdir+set}" = set; then
  2387. $as_echo_n "(cached) " >&6
  2388. else
  2389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2390. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2391. do
  2392. IFS=$as_save_IFS
  2393. test -z "$as_dir" && as_dir=.
  2394. for ac_prog in mkdir gmkdir; do
  2395. for ac_exec_ext in '' $ac_executable_extensions; do
  2396. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2397. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2398. 'mkdir (GNU coreutils) '* | \
  2399. 'mkdir (coreutils) '* | \
  2400. 'mkdir (fileutils) '4.1*)
  2401. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2402. break 3;;
  2403. esac
  2404. done
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. if test "${ac_cv_path_mkdir+set}" = set; then
  2410. MKDIR_P="$ac_cv_path_mkdir -p"
  2411. else
  2412. # As a last resort, use the slow shell script. Don't cache a
  2413. # value for MKDIR_P within a source directory, because that will
  2414. # break other packages using the cache if that directory is
  2415. # removed, or if the value is a relative name.
  2416. test -d ./--version && rmdir ./--version
  2417. MKDIR_P="$ac_install_sh -d"
  2418. fi
  2419. fi
  2420. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2421. $as_echo "$MKDIR_P" >&6; }
  2422. mkdir_p="$MKDIR_P"
  2423. case $mkdir_p in
  2424. [\\/$]* | ?:[\\/]*) ;;
  2425. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2426. esac
  2427. for ac_prog in gawk mawk nawk awk
  2428. do
  2429. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2430. set dummy $ac_prog; ac_word=$2
  2431. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2432. $as_echo_n "checking for $ac_word... " >&6; }
  2433. if test "${ac_cv_prog_AWK+set}" = set; then
  2434. $as_echo_n "(cached) " >&6
  2435. else
  2436. if test -n "$AWK"; then
  2437. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2438. else
  2439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2440. for as_dir in $PATH
  2441. do
  2442. IFS=$as_save_IFS
  2443. test -z "$as_dir" && as_dir=.
  2444. for ac_exec_ext in '' $ac_executable_extensions; do
  2445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2446. ac_cv_prog_AWK="$ac_prog"
  2447. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2448. break 2
  2449. fi
  2450. done
  2451. done
  2452. IFS=$as_save_IFS
  2453. fi
  2454. fi
  2455. AWK=$ac_cv_prog_AWK
  2456. if test -n "$AWK"; then
  2457. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2458. $as_echo "$AWK" >&6; }
  2459. else
  2460. { $as_echo "$as_me:$LINENO: result: no" >&5
  2461. $as_echo "no" >&6; }
  2462. fi
  2463. test -n "$AWK" && break
  2464. done
  2465. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2466. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2467. set x ${MAKE-make}
  2468. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2469. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2470. $as_echo_n "(cached) " >&6
  2471. else
  2472. cat >conftest.make <<\_ACEOF
  2473. SHELL = /bin/sh
  2474. all:
  2475. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2476. _ACEOF
  2477. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2478. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2479. *@@@%%%=?*=@@@%%%*)
  2480. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2481. *)
  2482. eval ac_cv_prog_make_${ac_make}_set=no;;
  2483. esac
  2484. rm -f conftest.make
  2485. fi
  2486. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2487. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2488. $as_echo "yes" >&6; }
  2489. SET_MAKE=
  2490. else
  2491. { $as_echo "$as_me:$LINENO: result: no" >&5
  2492. $as_echo "no" >&6; }
  2493. SET_MAKE="MAKE=${MAKE-make}"
  2494. fi
  2495. rm -rf .tst 2>/dev/null
  2496. mkdir .tst 2>/dev/null
  2497. if test -d .tst; then
  2498. am__leading_dot=.
  2499. else
  2500. am__leading_dot=_
  2501. fi
  2502. rmdir .tst 2>/dev/null
  2503. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2504. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2505. # is not polluted with repeated "-I."
  2506. am__isrc=' -I$(srcdir)'
  2507. # test to see if srcdir already configured
  2508. if test -f $srcdir/config.status; then
  2509. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2510. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2511. { (exit 1); exit 1; }; }
  2512. fi
  2513. fi
  2514. # test whether we have cygpath
  2515. if test -z "$CYGPATH_W"; then
  2516. if (cygpath --version) >/dev/null 2>/dev/null; then
  2517. CYGPATH_W='cygpath -w'
  2518. else
  2519. CYGPATH_W=echo
  2520. fi
  2521. fi
  2522. # Define the identity of the package.
  2523. PACKAGE='dirsrv'
  2524. VERSION='1.0'
  2525. # Some tools Automake needs.
  2526. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2527. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2528. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2529. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2530. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2531. # We need awk for the "check" target. The system "awk" is bad on
  2532. # some platforms.
  2533. # Always define AMTAR for backward compatibility.
  2534. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2535. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2536. # define these for automake distdir
  2537. VERSION=$PACKAGE_VERSION
  2538. PACKAGE=$PACKAGE_TARNAME
  2539. cat >>confdefs.h <<_ACEOF
  2540. #define VERSION "$VERSION"
  2541. _ACEOF
  2542. cat >>confdefs.h <<_ACEOF
  2543. #define PACKAGE "$PACKAGE"
  2544. _ACEOF
  2545. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2546. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2547. # Check whether --enable-maintainer-mode was given.
  2548. if test "${enable_maintainer_mode+set}" = set; then
  2549. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2550. else
  2551. USE_MAINTAINER_MODE=no
  2552. fi
  2553. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2554. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2555. if test $USE_MAINTAINER_MODE = yes; then
  2556. MAINTAINER_MODE_TRUE=
  2557. MAINTAINER_MODE_FALSE='#'
  2558. else
  2559. MAINTAINER_MODE_TRUE='#'
  2560. MAINTAINER_MODE_FALSE=
  2561. fi
  2562. MAINT=$MAINTAINER_MODE_TRUE
  2563. # Make sure we can run config.sub.
  2564. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2565. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2566. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2567. { (exit 1); exit 1; }; }
  2568. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2569. $as_echo_n "checking build system type... " >&6; }
  2570. if test "${ac_cv_build+set}" = set; then
  2571. $as_echo_n "(cached) " >&6
  2572. else
  2573. ac_build_alias=$build_alias
  2574. test "x$ac_build_alias" = x &&
  2575. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2576. test "x$ac_build_alias" = x &&
  2577. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2578. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2579. { (exit 1); exit 1; }; }
  2580. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2581. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2582. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2583. { (exit 1); exit 1; }; }
  2584. fi
  2585. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2586. $as_echo "$ac_cv_build" >&6; }
  2587. case $ac_cv_build in
  2588. *-*-*) ;;
  2589. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2590. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2591. { (exit 1); exit 1; }; };;
  2592. esac
  2593. build=$ac_cv_build
  2594. ac_save_IFS=$IFS; IFS='-'
  2595. set x $ac_cv_build
  2596. shift
  2597. build_cpu=$1
  2598. build_vendor=$2
  2599. shift; shift
  2600. # Remember, the first character of IFS is used to create $*,
  2601. # except with old shells:
  2602. build_os=$*
  2603. IFS=$ac_save_IFS
  2604. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2605. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2606. $as_echo_n "checking host system type... " >&6; }
  2607. if test "${ac_cv_host+set}" = set; then
  2608. $as_echo_n "(cached) " >&6
  2609. else
  2610. if test "x$host_alias" = x; then
  2611. ac_cv_host=$ac_cv_build
  2612. else
  2613. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2614. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2615. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2616. { (exit 1); exit 1; }; }
  2617. fi
  2618. fi
  2619. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2620. $as_echo "$ac_cv_host" >&6; }
  2621. case $ac_cv_host in
  2622. *-*-*) ;;
  2623. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2624. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2625. { (exit 1); exit 1; }; };;
  2626. esac
  2627. host=$ac_cv_host
  2628. ac_save_IFS=$IFS; IFS='-'
  2629. set x $ac_cv_host
  2630. shift
  2631. host_cpu=$1
  2632. host_vendor=$2
  2633. shift; shift
  2634. # Remember, the first character of IFS is used to create $*,
  2635. # except with old shells:
  2636. host_os=$*
  2637. IFS=$ac_save_IFS
  2638. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2639. # Checks for programs.
  2640. ac_ext=cpp
  2641. ac_cpp='$CXXCPP $CPPFLAGS'
  2642. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2643. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2644. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2645. if test -z "$CXX"; then
  2646. if test -n "$CCC"; then
  2647. CXX=$CCC
  2648. else
  2649. if test -n "$ac_tool_prefix"; then
  2650. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2651. do
  2652. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2653. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2654. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2655. $as_echo_n "checking for $ac_word... " >&6; }
  2656. if test "${ac_cv_prog_CXX+set}" = set; then
  2657. $as_echo_n "(cached) " >&6
  2658. else
  2659. if test -n "$CXX"; then
  2660. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2661. else
  2662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2663. for as_dir in $PATH
  2664. do
  2665. IFS=$as_save_IFS
  2666. test -z "$as_dir" && as_dir=.
  2667. for ac_exec_ext in '' $ac_executable_extensions; do
  2668. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2669. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2670. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2671. break 2
  2672. fi
  2673. done
  2674. done
  2675. IFS=$as_save_IFS
  2676. fi
  2677. fi
  2678. CXX=$ac_cv_prog_CXX
  2679. if test -n "$CXX"; then
  2680. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2681. $as_echo "$CXX" >&6; }
  2682. else
  2683. { $as_echo "$as_me:$LINENO: result: no" >&5
  2684. $as_echo "no" >&6; }
  2685. fi
  2686. test -n "$CXX" && break
  2687. done
  2688. fi
  2689. if test -z "$CXX"; then
  2690. ac_ct_CXX=$CXX
  2691. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2692. do
  2693. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2694. set dummy $ac_prog; ac_word=$2
  2695. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2696. $as_echo_n "checking for $ac_word... " >&6; }
  2697. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2698. $as_echo_n "(cached) " >&6
  2699. else
  2700. if test -n "$ac_ct_CXX"; then
  2701. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2702. else
  2703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2704. for as_dir in $PATH
  2705. do
  2706. IFS=$as_save_IFS
  2707. test -z "$as_dir" && as_dir=.
  2708. for ac_exec_ext in '' $ac_executable_extensions; do
  2709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2710. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2711. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2712. break 2
  2713. fi
  2714. done
  2715. done
  2716. IFS=$as_save_IFS
  2717. fi
  2718. fi
  2719. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2720. if test -n "$ac_ct_CXX"; then
  2721. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2722. $as_echo "$ac_ct_CXX" >&6; }
  2723. else
  2724. { $as_echo "$as_me:$LINENO: result: no" >&5
  2725. $as_echo "no" >&6; }
  2726. fi
  2727. test -n "$ac_ct_CXX" && break
  2728. done
  2729. if test "x$ac_ct_CXX" = x; then
  2730. CXX="g++"
  2731. else
  2732. case $cross_compiling:$ac_tool_warned in
  2733. yes:)
  2734. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2735. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2736. ac_tool_warned=yes ;;
  2737. esac
  2738. CXX=$ac_ct_CXX
  2739. fi
  2740. fi
  2741. fi
  2742. fi
  2743. # Provide some information about the compiler.
  2744. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2745. set X $ac_compile
  2746. ac_compiler=$2
  2747. { (ac_try="$ac_compiler --version >&5"
  2748. case "(($ac_try" in
  2749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2750. *) ac_try_echo=$ac_try;;
  2751. esac
  2752. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2753. $as_echo "$ac_try_echo") >&5
  2754. (eval "$ac_compiler --version >&5") 2>&5
  2755. ac_status=$?
  2756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2757. (exit $ac_status); }
  2758. { (ac_try="$ac_compiler -v >&5"
  2759. case "(($ac_try" in
  2760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2761. *) ac_try_echo=$ac_try;;
  2762. esac
  2763. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2764. $as_echo "$ac_try_echo") >&5
  2765. (eval "$ac_compiler -v >&5") 2>&5
  2766. ac_status=$?
  2767. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2768. (exit $ac_status); }
  2769. { (ac_try="$ac_compiler -V >&5"
  2770. case "(($ac_try" in
  2771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2772. *) ac_try_echo=$ac_try;;
  2773. esac
  2774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2775. $as_echo "$ac_try_echo") >&5
  2776. (eval "$ac_compiler -V >&5") 2>&5
  2777. ac_status=$?
  2778. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2779. (exit $ac_status); }
  2780. cat >conftest.$ac_ext <<_ACEOF
  2781. /* confdefs.h. */
  2782. _ACEOF
  2783. cat confdefs.h >>conftest.$ac_ext
  2784. cat >>conftest.$ac_ext <<_ACEOF
  2785. /* end confdefs.h. */
  2786. int
  2787. main ()
  2788. {
  2789. ;
  2790. return 0;
  2791. }
  2792. _ACEOF
  2793. ac_clean_files_save=$ac_clean_files
  2794. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2795. # Try to create an executable without -o first, disregard a.out.
  2796. # It will help us diagnose broken compilers, and finding out an intuition
  2797. # of exeext.
  2798. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2799. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2800. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2801. # The possible output files:
  2802. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2803. ac_rmfiles=
  2804. for ac_file in $ac_files
  2805. do
  2806. case $ac_file in
  2807. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2808. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2809. esac
  2810. done
  2811. rm -f $ac_rmfiles
  2812. if { (ac_try="$ac_link_default"
  2813. case "(($ac_try" in
  2814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2815. *) ac_try_echo=$ac_try;;
  2816. esac
  2817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2818. $as_echo "$ac_try_echo") >&5
  2819. (eval "$ac_link_default") 2>&5
  2820. ac_status=$?
  2821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. (exit $ac_status); }; then
  2823. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2824. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2825. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2826. # so that the user can short-circuit this test for compilers unknown to
  2827. # Autoconf.
  2828. for ac_file in $ac_files ''
  2829. do
  2830. test -f "$ac_file" || continue
  2831. case $ac_file in
  2832. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2833. ;;
  2834. [ab].out )
  2835. # We found the default executable, but exeext='' is most
  2836. # certainly right.
  2837. break;;
  2838. *.* )
  2839. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2840. then :; else
  2841. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2842. fi
  2843. # We set ac_cv_exeext here because the later test for it is not
  2844. # safe: cross compilers may not add the suffix if given an `-o'
  2845. # argument, so we may need to know it at that point already.
  2846. # Even if this section looks crufty: it has the advantage of
  2847. # actually working.
  2848. break;;
  2849. * )
  2850. break;;
  2851. esac
  2852. done
  2853. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2854. else
  2855. ac_file=''
  2856. fi
  2857. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2858. $as_echo "$ac_file" >&6; }
  2859. if test -z "$ac_file"; then
  2860. $as_echo "$as_me: failed program was:" >&5
  2861. sed 's/^/| /' conftest.$ac_ext >&5
  2862. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2863. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2864. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2865. See \`config.log' for more details." >&5
  2866. $as_echo "$as_me: error: C++ compiler cannot create executables
  2867. See \`config.log' for more details." >&2;}
  2868. { (exit 77); exit 77; }; }; }
  2869. fi
  2870. ac_exeext=$ac_cv_exeext
  2871. # Check that the compiler produces executables we can run. If not, either
  2872. # the compiler is broken, or we cross compile.
  2873. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2874. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2875. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2876. # If not cross compiling, check that we can run a simple program.
  2877. if test "$cross_compiling" != yes; then
  2878. if { ac_try='./$ac_file'
  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_try") 2>&5
  2886. ac_status=$?
  2887. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888. (exit $ac_status); }; }; then
  2889. cross_compiling=no
  2890. else
  2891. if test "$cross_compiling" = maybe; then
  2892. cross_compiling=yes
  2893. else
  2894. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2896. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2897. If you meant to cross compile, use \`--host'.
  2898. See \`config.log' for more details." >&5
  2899. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2900. If you meant to cross compile, use \`--host'.
  2901. See \`config.log' for more details." >&2;}
  2902. { (exit 1); exit 1; }; }; }
  2903. fi
  2904. fi
  2905. fi
  2906. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2907. $as_echo "yes" >&6; }
  2908. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2909. ac_clean_files=$ac_clean_files_save
  2910. # Check that the compiler produces executables we can run. If not, either
  2911. # the compiler is broken, or we cross compile.
  2912. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2913. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2914. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2915. $as_echo "$cross_compiling" >&6; }
  2916. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2917. $as_echo_n "checking for suffix of executables... " >&6; }
  2918. if { (ac_try="$ac_link"
  2919. case "(($ac_try" in
  2920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2921. *) ac_try_echo=$ac_try;;
  2922. esac
  2923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2924. $as_echo "$ac_try_echo") >&5
  2925. (eval "$ac_link") 2>&5
  2926. ac_status=$?
  2927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2928. (exit $ac_status); }; then
  2929. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2930. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2931. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2932. # `rm'.
  2933. for ac_file in conftest.exe conftest conftest.*; do
  2934. test -f "$ac_file" || continue
  2935. case $ac_file in
  2936. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2937. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2938. break;;
  2939. * ) break;;
  2940. esac
  2941. done
  2942. else
  2943. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2945. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2946. See \`config.log' for more details." >&5
  2947. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2948. See \`config.log' for more details." >&2;}
  2949. { (exit 1); exit 1; }; }; }
  2950. fi
  2951. rm -f conftest$ac_cv_exeext
  2952. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2953. $as_echo "$ac_cv_exeext" >&6; }
  2954. rm -f conftest.$ac_ext
  2955. EXEEXT=$ac_cv_exeext
  2956. ac_exeext=$EXEEXT
  2957. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2958. $as_echo_n "checking for suffix of object files... " >&6; }
  2959. if test "${ac_cv_objext+set}" = set; then
  2960. $as_echo_n "(cached) " >&6
  2961. else
  2962. cat >conftest.$ac_ext <<_ACEOF
  2963. /* confdefs.h. */
  2964. _ACEOF
  2965. cat confdefs.h >>conftest.$ac_ext
  2966. cat >>conftest.$ac_ext <<_ACEOF
  2967. /* end confdefs.h. */
  2968. int
  2969. main ()
  2970. {
  2971. ;
  2972. return 0;
  2973. }
  2974. _ACEOF
  2975. rm -f conftest.o conftest.obj
  2976. if { (ac_try="$ac_compile"
  2977. case "(($ac_try" in
  2978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2979. *) ac_try_echo=$ac_try;;
  2980. esac
  2981. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2982. $as_echo "$ac_try_echo") >&5
  2983. (eval "$ac_compile") 2>&5
  2984. ac_status=$?
  2985. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2986. (exit $ac_status); }; then
  2987. for ac_file in conftest.o conftest.obj conftest.*; do
  2988. test -f "$ac_file" || continue;
  2989. case $ac_file in
  2990. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2991. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2992. break;;
  2993. esac
  2994. done
  2995. else
  2996. $as_echo "$as_me: failed program was:" >&5
  2997. sed 's/^/| /' conftest.$ac_ext >&5
  2998. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2999. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3000. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3001. See \`config.log' for more details." >&5
  3002. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3003. See \`config.log' for more details." >&2;}
  3004. { (exit 1); exit 1; }; }; }
  3005. fi
  3006. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3007. fi
  3008. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3009. $as_echo "$ac_cv_objext" >&6; }
  3010. OBJEXT=$ac_cv_objext
  3011. ac_objext=$OBJEXT
  3012. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3013. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3014. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3015. $as_echo_n "(cached) " >&6
  3016. else
  3017. cat >conftest.$ac_ext <<_ACEOF
  3018. /* confdefs.h. */
  3019. _ACEOF
  3020. cat confdefs.h >>conftest.$ac_ext
  3021. cat >>conftest.$ac_ext <<_ACEOF
  3022. /* end confdefs.h. */
  3023. int
  3024. main ()
  3025. {
  3026. #ifndef __GNUC__
  3027. choke me
  3028. #endif
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. rm -f conftest.$ac_objext
  3034. if { (ac_try="$ac_compile"
  3035. case "(($ac_try" in
  3036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3037. *) ac_try_echo=$ac_try;;
  3038. esac
  3039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3040. $as_echo "$ac_try_echo") >&5
  3041. (eval "$ac_compile") 2>conftest.er1
  3042. ac_status=$?
  3043. grep -v '^ *+' conftest.er1 >conftest.err
  3044. rm -f conftest.er1
  3045. cat conftest.err >&5
  3046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3047. (exit $ac_status); } && {
  3048. test -z "$ac_cxx_werror_flag" ||
  3049. test ! -s conftest.err
  3050. } && test -s conftest.$ac_objext; then
  3051. ac_compiler_gnu=yes
  3052. else
  3053. $as_echo "$as_me: failed program was:" >&5
  3054. sed 's/^/| /' conftest.$ac_ext >&5
  3055. ac_compiler_gnu=no
  3056. fi
  3057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3058. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3059. fi
  3060. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3061. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3062. if test $ac_compiler_gnu = yes; then
  3063. GXX=yes
  3064. else
  3065. GXX=
  3066. fi
  3067. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3068. ac_save_CXXFLAGS=$CXXFLAGS
  3069. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3070. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3071. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3072. $as_echo_n "(cached) " >&6
  3073. else
  3074. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3075. ac_cxx_werror_flag=yes
  3076. ac_cv_prog_cxx_g=no
  3077. CXXFLAGS="-g"
  3078. cat >conftest.$ac_ext <<_ACEOF
  3079. /* confdefs.h. */
  3080. _ACEOF
  3081. cat confdefs.h >>conftest.$ac_ext
  3082. cat >>conftest.$ac_ext <<_ACEOF
  3083. /* end confdefs.h. */
  3084. int
  3085. main ()
  3086. {
  3087. ;
  3088. return 0;
  3089. }
  3090. _ACEOF
  3091. rm -f conftest.$ac_objext
  3092. if { (ac_try="$ac_compile"
  3093. case "(($ac_try" in
  3094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3095. *) ac_try_echo=$ac_try;;
  3096. esac
  3097. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3098. $as_echo "$ac_try_echo") >&5
  3099. (eval "$ac_compile") 2>conftest.er1
  3100. ac_status=$?
  3101. grep -v '^ *+' conftest.er1 >conftest.err
  3102. rm -f conftest.er1
  3103. cat conftest.err >&5
  3104. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3105. (exit $ac_status); } && {
  3106. test -z "$ac_cxx_werror_flag" ||
  3107. test ! -s conftest.err
  3108. } && test -s conftest.$ac_objext; then
  3109. ac_cv_prog_cxx_g=yes
  3110. else
  3111. $as_echo "$as_me: failed program was:" >&5
  3112. sed 's/^/| /' conftest.$ac_ext >&5
  3113. CXXFLAGS=""
  3114. cat >conftest.$ac_ext <<_ACEOF
  3115. /* confdefs.h. */
  3116. _ACEOF
  3117. cat confdefs.h >>conftest.$ac_ext
  3118. cat >>conftest.$ac_ext <<_ACEOF
  3119. /* end confdefs.h. */
  3120. int
  3121. main ()
  3122. {
  3123. ;
  3124. return 0;
  3125. }
  3126. _ACEOF
  3127. rm -f conftest.$ac_objext
  3128. if { (ac_try="$ac_compile"
  3129. case "(($ac_try" in
  3130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3131. *) ac_try_echo=$ac_try;;
  3132. esac
  3133. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3134. $as_echo "$ac_try_echo") >&5
  3135. (eval "$ac_compile") 2>conftest.er1
  3136. ac_status=$?
  3137. grep -v '^ *+' conftest.er1 >conftest.err
  3138. rm -f conftest.er1
  3139. cat conftest.err >&5
  3140. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3141. (exit $ac_status); } && {
  3142. test -z "$ac_cxx_werror_flag" ||
  3143. test ! -s conftest.err
  3144. } && test -s conftest.$ac_objext; then
  3145. :
  3146. else
  3147. $as_echo "$as_me: failed program was:" >&5
  3148. sed 's/^/| /' conftest.$ac_ext >&5
  3149. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3150. CXXFLAGS="-g"
  3151. cat >conftest.$ac_ext <<_ACEOF
  3152. /* confdefs.h. */
  3153. _ACEOF
  3154. cat confdefs.h >>conftest.$ac_ext
  3155. cat >>conftest.$ac_ext <<_ACEOF
  3156. /* end confdefs.h. */
  3157. int
  3158. main ()
  3159. {
  3160. ;
  3161. return 0;
  3162. }
  3163. _ACEOF
  3164. rm -f conftest.$ac_objext
  3165. if { (ac_try="$ac_compile"
  3166. case "(($ac_try" in
  3167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3168. *) ac_try_echo=$ac_try;;
  3169. esac
  3170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3171. $as_echo "$ac_try_echo") >&5
  3172. (eval "$ac_compile") 2>conftest.er1
  3173. ac_status=$?
  3174. grep -v '^ *+' conftest.er1 >conftest.err
  3175. rm -f conftest.er1
  3176. cat conftest.err >&5
  3177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3178. (exit $ac_status); } && {
  3179. test -z "$ac_cxx_werror_flag" ||
  3180. test ! -s conftest.err
  3181. } && test -s conftest.$ac_objext; then
  3182. ac_cv_prog_cxx_g=yes
  3183. else
  3184. $as_echo "$as_me: failed program was:" >&5
  3185. sed 's/^/| /' conftest.$ac_ext >&5
  3186. fi
  3187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3188. fi
  3189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3190. fi
  3191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3192. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3193. fi
  3194. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3195. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3196. if test "$ac_test_CXXFLAGS" = set; then
  3197. CXXFLAGS=$ac_save_CXXFLAGS
  3198. elif test $ac_cv_prog_cxx_g = yes; then
  3199. if test "$GXX" = yes; then
  3200. CXXFLAGS="-g -O2"
  3201. else
  3202. CXXFLAGS="-g"
  3203. fi
  3204. else
  3205. if test "$GXX" = yes; then
  3206. CXXFLAGS="-O2"
  3207. else
  3208. CXXFLAGS=
  3209. fi
  3210. fi
  3211. ac_ext=c
  3212. ac_cpp='$CPP $CPPFLAGS'
  3213. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3214. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3215. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3216. DEPDIR="${am__leading_dot}deps"
  3217. ac_config_commands="$ac_config_commands depfiles"
  3218. am_make=${MAKE-make}
  3219. cat > confinc << 'END'
  3220. am__doit:
  3221. @echo this is the am__doit target
  3222. .PHONY: am__doit
  3223. END
  3224. # If we don't find an include directive, just comment out the code.
  3225. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3226. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3227. am__include="#"
  3228. am__quote=
  3229. _am_result=none
  3230. # First try GNU make style include.
  3231. echo "include confinc" > confmf
  3232. # Ignore all kinds of additional output from `make'.
  3233. case `$am_make -s -f confmf 2> /dev/null` in #(
  3234. *the\ am__doit\ target*)
  3235. am__include=include
  3236. am__quote=
  3237. _am_result=GNU
  3238. ;;
  3239. esac
  3240. # Now try BSD make style include.
  3241. if test "$am__include" = "#"; then
  3242. echo '.include "confinc"' > confmf
  3243. case `$am_make -s -f confmf 2> /dev/null` in #(
  3244. *the\ am__doit\ target*)
  3245. am__include=.include
  3246. am__quote="\""
  3247. _am_result=BSD
  3248. ;;
  3249. esac
  3250. fi
  3251. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3252. $as_echo "$_am_result" >&6; }
  3253. rm -f confinc confmf
  3254. # Check whether --enable-dependency-tracking was given.
  3255. if test "${enable_dependency_tracking+set}" = set; then
  3256. enableval=$enable_dependency_tracking;
  3257. fi
  3258. if test "x$enable_dependency_tracking" != xno; then
  3259. am_depcomp="$ac_aux_dir/depcomp"
  3260. AMDEPBACKSLASH='\'
  3261. fi
  3262. if test "x$enable_dependency_tracking" != xno; then
  3263. AMDEP_TRUE=
  3264. AMDEP_FALSE='#'
  3265. else
  3266. AMDEP_TRUE='#'
  3267. AMDEP_FALSE=
  3268. fi
  3269. depcc="$CXX" am_compiler_list=
  3270. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3271. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3272. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3276. # We make a subdir and do the tests there. Otherwise we can end up
  3277. # making bogus files that we don't know about and never remove. For
  3278. # instance it was reported that on HP-UX the gcc test will end up
  3279. # making a dummy file named `D' -- because `-MD' means `put the output
  3280. # in D'.
  3281. mkdir conftest.dir
  3282. # Copy depcomp to subdir because otherwise we won't find it if we're
  3283. # using a relative directory.
  3284. cp "$am_depcomp" conftest.dir
  3285. cd conftest.dir
  3286. # We will build objects and dependencies in a subdirectory because
  3287. # it helps to detect inapplicable dependency modes. For instance
  3288. # both Tru64's cc and ICC support -MD to output dependencies as a
  3289. # side effect of compilation, but ICC will put the dependencies in
  3290. # the current directory while Tru64 will put them in the object
  3291. # directory.
  3292. mkdir sub
  3293. am_cv_CXX_dependencies_compiler_type=none
  3294. if test "$am_compiler_list" = ""; then
  3295. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3296. fi
  3297. am__universal=false
  3298. case " $depcc " in #(
  3299. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3300. esac
  3301. for depmode in $am_compiler_list; do
  3302. # Setup a source with many dependencies, because some compilers
  3303. # like to wrap large dependency lists on column 80 (with \), and
  3304. # we should not choose a depcomp mode which is confused by this.
  3305. #
  3306. # We need to recreate these files for each test, as the compiler may
  3307. # overwrite some of them when testing with obscure command lines.
  3308. # This happens at least with the AIX C compiler.
  3309. : > sub/conftest.c
  3310. for i in 1 2 3 4 5 6; do
  3311. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3312. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3313. # Solaris 8's {/usr,}/bin/sh.
  3314. touch sub/conftst$i.h
  3315. done
  3316. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3317. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3318. # mode. It turns out that the SunPro C++ compiler does not properly
  3319. # handle `-M -o', and we need to detect this. Also, some Intel
  3320. # versions had trouble with output in subdirs
  3321. am__obj=sub/conftest.${OBJEXT-o}
  3322. am__minus_obj="-o $am__obj"
  3323. case $depmode in
  3324. gcc)
  3325. # This depmode causes a compiler race in universal mode.
  3326. test "$am__universal" = false || continue
  3327. ;;
  3328. nosideeffect)
  3329. # after this tag, mechanisms are not by side-effect, so they'll
  3330. # only be used when explicitly requested
  3331. if test "x$enable_dependency_tracking" = xyes; then
  3332. continue
  3333. else
  3334. break
  3335. fi
  3336. ;;
  3337. msvisualcpp | msvcmsys)
  3338. # This compiler won't grok `-c -o', but also, the minuso test has
  3339. # not run yet. These depmodes are late enough in the game, and
  3340. # so weak that their functioning should not be impacted.
  3341. am__obj=conftest.${OBJEXT-o}
  3342. am__minus_obj=
  3343. ;;
  3344. none) break ;;
  3345. esac
  3346. if depmode=$depmode \
  3347. source=sub/conftest.c object=$am__obj \
  3348. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3349. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3350. >/dev/null 2>conftest.err &&
  3351. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3352. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3353. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3354. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3355. # icc doesn't choke on unknown options, it will just issue warnings
  3356. # or remarks (even with -Werror). So we grep stderr for any message
  3357. # that says an option was ignored or not supported.
  3358. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3359. # icc: Command line warning: ignoring option '-M'; no argument required
  3360. # The diagnosis changed in icc 8.0:
  3361. # icc: Command line remark: option '-MP' not supported
  3362. if (grep 'ignoring option' conftest.err ||
  3363. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3364. am_cv_CXX_dependencies_compiler_type=$depmode
  3365. break
  3366. fi
  3367. fi
  3368. done
  3369. cd ..
  3370. rm -rf conftest.dir
  3371. else
  3372. am_cv_CXX_dependencies_compiler_type=none
  3373. fi
  3374. fi
  3375. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3376. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3377. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3378. if
  3379. test "x$enable_dependency_tracking" != xno \
  3380. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3381. am__fastdepCXX_TRUE=
  3382. am__fastdepCXX_FALSE='#'
  3383. else
  3384. am__fastdepCXX_TRUE='#'
  3385. am__fastdepCXX_FALSE=
  3386. fi
  3387. ac_ext=c
  3388. ac_cpp='$CPP $CPPFLAGS'
  3389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3392. if test -n "$ac_tool_prefix"; then
  3393. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3394. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3395. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3396. $as_echo_n "checking for $ac_word... " >&6; }
  3397. if test "${ac_cv_prog_CC+set}" = set; then
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. if test -n "$CC"; then
  3401. ac_cv_prog_CC="$CC" # Let the user override the test.
  3402. else
  3403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3404. for as_dir in $PATH
  3405. do
  3406. IFS=$as_save_IFS
  3407. test -z "$as_dir" && as_dir=.
  3408. for ac_exec_ext in '' $ac_executable_extensions; do
  3409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3410. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3411. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3412. break 2
  3413. fi
  3414. done
  3415. done
  3416. IFS=$as_save_IFS
  3417. fi
  3418. fi
  3419. CC=$ac_cv_prog_CC
  3420. if test -n "$CC"; then
  3421. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3422. $as_echo "$CC" >&6; }
  3423. else
  3424. { $as_echo "$as_me:$LINENO: result: no" >&5
  3425. $as_echo "no" >&6; }
  3426. fi
  3427. fi
  3428. if test -z "$ac_cv_prog_CC"; then
  3429. ac_ct_CC=$CC
  3430. # Extract the first word of "gcc", so it can be a program name with args.
  3431. set dummy gcc; ac_word=$2
  3432. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3433. $as_echo_n "checking for $ac_word... " >&6; }
  3434. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. if test -n "$ac_ct_CC"; then
  3438. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3439. else
  3440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3441. for as_dir in $PATH
  3442. do
  3443. IFS=$as_save_IFS
  3444. test -z "$as_dir" && as_dir=.
  3445. for ac_exec_ext in '' $ac_executable_extensions; do
  3446. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3447. ac_cv_prog_ac_ct_CC="gcc"
  3448. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3449. break 2
  3450. fi
  3451. done
  3452. done
  3453. IFS=$as_save_IFS
  3454. fi
  3455. fi
  3456. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3457. if test -n "$ac_ct_CC"; then
  3458. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3459. $as_echo "$ac_ct_CC" >&6; }
  3460. else
  3461. { $as_echo "$as_me:$LINENO: result: no" >&5
  3462. $as_echo "no" >&6; }
  3463. fi
  3464. if test "x$ac_ct_CC" = x; then
  3465. CC=""
  3466. else
  3467. case $cross_compiling:$ac_tool_warned in
  3468. yes:)
  3469. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3471. ac_tool_warned=yes ;;
  3472. esac
  3473. CC=$ac_ct_CC
  3474. fi
  3475. else
  3476. CC="$ac_cv_prog_CC"
  3477. fi
  3478. if test -z "$CC"; then
  3479. if test -n "$ac_tool_prefix"; then
  3480. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3481. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3482. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3483. $as_echo_n "checking for $ac_word... " >&6; }
  3484. if test "${ac_cv_prog_CC+set}" = set; then
  3485. $as_echo_n "(cached) " >&6
  3486. else
  3487. if test -n "$CC"; then
  3488. ac_cv_prog_CC="$CC" # Let the user override the test.
  3489. else
  3490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3491. for as_dir in $PATH
  3492. do
  3493. IFS=$as_save_IFS
  3494. test -z "$as_dir" && as_dir=.
  3495. for ac_exec_ext in '' $ac_executable_extensions; do
  3496. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3497. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3498. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3499. break 2
  3500. fi
  3501. done
  3502. done
  3503. IFS=$as_save_IFS
  3504. fi
  3505. fi
  3506. CC=$ac_cv_prog_CC
  3507. if test -n "$CC"; then
  3508. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3509. $as_echo "$CC" >&6; }
  3510. else
  3511. { $as_echo "$as_me:$LINENO: result: no" >&5
  3512. $as_echo "no" >&6; }
  3513. fi
  3514. fi
  3515. fi
  3516. if test -z "$CC"; then
  3517. # Extract the first word of "cc", so it can be a program name with args.
  3518. set dummy cc; ac_word=$2
  3519. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3520. $as_echo_n "checking for $ac_word... " >&6; }
  3521. if test "${ac_cv_prog_CC+set}" = set; then
  3522. $as_echo_n "(cached) " >&6
  3523. else
  3524. if test -n "$CC"; then
  3525. ac_cv_prog_CC="$CC" # Let the user override the test.
  3526. else
  3527. ac_prog_rejected=no
  3528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3529. for as_dir in $PATH
  3530. do
  3531. IFS=$as_save_IFS
  3532. test -z "$as_dir" && as_dir=.
  3533. for ac_exec_ext in '' $ac_executable_extensions; do
  3534. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3535. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3536. ac_prog_rejected=yes
  3537. continue
  3538. fi
  3539. ac_cv_prog_CC="cc"
  3540. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3541. break 2
  3542. fi
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. if test $ac_prog_rejected = yes; then
  3547. # We found a bogon in the path, so make sure we never use it.
  3548. set dummy $ac_cv_prog_CC
  3549. shift
  3550. if test $# != 0; then
  3551. # We chose a different compiler from the bogus one.
  3552. # However, it has the same basename, so the bogon will be chosen
  3553. # first if we set CC to just the basename; use the full file name.
  3554. shift
  3555. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3556. fi
  3557. fi
  3558. fi
  3559. fi
  3560. CC=$ac_cv_prog_CC
  3561. if test -n "$CC"; then
  3562. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3563. $as_echo "$CC" >&6; }
  3564. else
  3565. { $as_echo "$as_me:$LINENO: result: no" >&5
  3566. $as_echo "no" >&6; }
  3567. fi
  3568. fi
  3569. if test -z "$CC"; then
  3570. if test -n "$ac_tool_prefix"; then
  3571. for ac_prog in cl.exe
  3572. do
  3573. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3574. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3575. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3576. $as_echo_n "checking for $ac_word... " >&6; }
  3577. if test "${ac_cv_prog_CC+set}" = set; then
  3578. $as_echo_n "(cached) " >&6
  3579. else
  3580. if test -n "$CC"; then
  3581. ac_cv_prog_CC="$CC" # Let the user override the test.
  3582. else
  3583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3584. for as_dir in $PATH
  3585. do
  3586. IFS=$as_save_IFS
  3587. test -z "$as_dir" && as_dir=.
  3588. for ac_exec_ext in '' $ac_executable_extensions; do
  3589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3590. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3591. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3592. break 2
  3593. fi
  3594. done
  3595. done
  3596. IFS=$as_save_IFS
  3597. fi
  3598. fi
  3599. CC=$ac_cv_prog_CC
  3600. if test -n "$CC"; then
  3601. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3602. $as_echo "$CC" >&6; }
  3603. else
  3604. { $as_echo "$as_me:$LINENO: result: no" >&5
  3605. $as_echo "no" >&6; }
  3606. fi
  3607. test -n "$CC" && break
  3608. done
  3609. fi
  3610. if test -z "$CC"; then
  3611. ac_ct_CC=$CC
  3612. for ac_prog in cl.exe
  3613. do
  3614. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3615. set dummy $ac_prog; ac_word=$2
  3616. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3617. $as_echo_n "checking for $ac_word... " >&6; }
  3618. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -n "$ac_ct_CC"; then
  3622. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3623. else
  3624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625. for as_dir in $PATH
  3626. do
  3627. IFS=$as_save_IFS
  3628. test -z "$as_dir" && as_dir=.
  3629. for ac_exec_ext in '' $ac_executable_extensions; do
  3630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3631. ac_cv_prog_ac_ct_CC="$ac_prog"
  3632. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3633. break 2
  3634. fi
  3635. done
  3636. done
  3637. IFS=$as_save_IFS
  3638. fi
  3639. fi
  3640. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3641. if test -n "$ac_ct_CC"; then
  3642. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3643. $as_echo "$ac_ct_CC" >&6; }
  3644. else
  3645. { $as_echo "$as_me:$LINENO: result: no" >&5
  3646. $as_echo "no" >&6; }
  3647. fi
  3648. test -n "$ac_ct_CC" && break
  3649. done
  3650. if test "x$ac_ct_CC" = x; then
  3651. CC=""
  3652. else
  3653. case $cross_compiling:$ac_tool_warned in
  3654. yes:)
  3655. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3656. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3657. ac_tool_warned=yes ;;
  3658. esac
  3659. CC=$ac_ct_CC
  3660. fi
  3661. fi
  3662. fi
  3663. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3664. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3665. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3666. See \`config.log' for more details." >&5
  3667. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3668. See \`config.log' for more details." >&2;}
  3669. { (exit 1); exit 1; }; }; }
  3670. # Provide some information about the compiler.
  3671. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3672. set X $ac_compile
  3673. ac_compiler=$2
  3674. { (ac_try="$ac_compiler --version >&5"
  3675. case "(($ac_try" in
  3676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3677. *) ac_try_echo=$ac_try;;
  3678. esac
  3679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3680. $as_echo "$ac_try_echo") >&5
  3681. (eval "$ac_compiler --version >&5") 2>&5
  3682. ac_status=$?
  3683. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3684. (exit $ac_status); }
  3685. { (ac_try="$ac_compiler -v >&5"
  3686. case "(($ac_try" in
  3687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3688. *) ac_try_echo=$ac_try;;
  3689. esac
  3690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3691. $as_echo "$ac_try_echo") >&5
  3692. (eval "$ac_compiler -v >&5") 2>&5
  3693. ac_status=$?
  3694. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3695. (exit $ac_status); }
  3696. { (ac_try="$ac_compiler -V >&5"
  3697. case "(($ac_try" in
  3698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3699. *) ac_try_echo=$ac_try;;
  3700. esac
  3701. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3702. $as_echo "$ac_try_echo") >&5
  3703. (eval "$ac_compiler -V >&5") 2>&5
  3704. ac_status=$?
  3705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3706. (exit $ac_status); }
  3707. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3708. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3709. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3710. $as_echo_n "(cached) " >&6
  3711. else
  3712. cat >conftest.$ac_ext <<_ACEOF
  3713. /* confdefs.h. */
  3714. _ACEOF
  3715. cat confdefs.h >>conftest.$ac_ext
  3716. cat >>conftest.$ac_ext <<_ACEOF
  3717. /* end confdefs.h. */
  3718. int
  3719. main ()
  3720. {
  3721. #ifndef __GNUC__
  3722. choke me
  3723. #endif
  3724. ;
  3725. return 0;
  3726. }
  3727. _ACEOF
  3728. rm -f conftest.$ac_objext
  3729. if { (ac_try="$ac_compile"
  3730. case "(($ac_try" in
  3731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3732. *) ac_try_echo=$ac_try;;
  3733. esac
  3734. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3735. $as_echo "$ac_try_echo") >&5
  3736. (eval "$ac_compile") 2>conftest.er1
  3737. ac_status=$?
  3738. grep -v '^ *+' conftest.er1 >conftest.err
  3739. rm -f conftest.er1
  3740. cat conftest.err >&5
  3741. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3742. (exit $ac_status); } && {
  3743. test -z "$ac_c_werror_flag" ||
  3744. test ! -s conftest.err
  3745. } && test -s conftest.$ac_objext; then
  3746. ac_compiler_gnu=yes
  3747. else
  3748. $as_echo "$as_me: failed program was:" >&5
  3749. sed 's/^/| /' conftest.$ac_ext >&5
  3750. ac_compiler_gnu=no
  3751. fi
  3752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3753. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3754. fi
  3755. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3756. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3757. if test $ac_compiler_gnu = yes; then
  3758. GCC=yes
  3759. else
  3760. GCC=
  3761. fi
  3762. ac_test_CFLAGS=${CFLAGS+set}
  3763. ac_save_CFLAGS=$CFLAGS
  3764. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3765. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3766. if test "${ac_cv_prog_cc_g+set}" = set; then
  3767. $as_echo_n "(cached) " >&6
  3768. else
  3769. ac_save_c_werror_flag=$ac_c_werror_flag
  3770. ac_c_werror_flag=yes
  3771. ac_cv_prog_cc_g=no
  3772. CFLAGS="-g"
  3773. cat >conftest.$ac_ext <<_ACEOF
  3774. /* confdefs.h. */
  3775. _ACEOF
  3776. cat confdefs.h >>conftest.$ac_ext
  3777. cat >>conftest.$ac_ext <<_ACEOF
  3778. /* end confdefs.h. */
  3779. int
  3780. main ()
  3781. {
  3782. ;
  3783. return 0;
  3784. }
  3785. _ACEOF
  3786. rm -f conftest.$ac_objext
  3787. if { (ac_try="$ac_compile"
  3788. case "(($ac_try" in
  3789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3790. *) ac_try_echo=$ac_try;;
  3791. esac
  3792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3793. $as_echo "$ac_try_echo") >&5
  3794. (eval "$ac_compile") 2>conftest.er1
  3795. ac_status=$?
  3796. grep -v '^ *+' conftest.er1 >conftest.err
  3797. rm -f conftest.er1
  3798. cat conftest.err >&5
  3799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3800. (exit $ac_status); } && {
  3801. test -z "$ac_c_werror_flag" ||
  3802. test ! -s conftest.err
  3803. } && test -s conftest.$ac_objext; then
  3804. ac_cv_prog_cc_g=yes
  3805. else
  3806. $as_echo "$as_me: failed program was:" >&5
  3807. sed 's/^/| /' conftest.$ac_ext >&5
  3808. CFLAGS=""
  3809. cat >conftest.$ac_ext <<_ACEOF
  3810. /* confdefs.h. */
  3811. _ACEOF
  3812. cat confdefs.h >>conftest.$ac_ext
  3813. cat >>conftest.$ac_ext <<_ACEOF
  3814. /* end confdefs.h. */
  3815. int
  3816. main ()
  3817. {
  3818. ;
  3819. return 0;
  3820. }
  3821. _ACEOF
  3822. rm -f conftest.$ac_objext
  3823. if { (ac_try="$ac_compile"
  3824. case "(($ac_try" in
  3825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3826. *) ac_try_echo=$ac_try;;
  3827. esac
  3828. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3829. $as_echo "$ac_try_echo") >&5
  3830. (eval "$ac_compile") 2>conftest.er1
  3831. ac_status=$?
  3832. grep -v '^ *+' conftest.er1 >conftest.err
  3833. rm -f conftest.er1
  3834. cat conftest.err >&5
  3835. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3836. (exit $ac_status); } && {
  3837. test -z "$ac_c_werror_flag" ||
  3838. test ! -s conftest.err
  3839. } && test -s conftest.$ac_objext; then
  3840. :
  3841. else
  3842. $as_echo "$as_me: failed program was:" >&5
  3843. sed 's/^/| /' conftest.$ac_ext >&5
  3844. ac_c_werror_flag=$ac_save_c_werror_flag
  3845. CFLAGS="-g"
  3846. cat >conftest.$ac_ext <<_ACEOF
  3847. /* confdefs.h. */
  3848. _ACEOF
  3849. cat confdefs.h >>conftest.$ac_ext
  3850. cat >>conftest.$ac_ext <<_ACEOF
  3851. /* end confdefs.h. */
  3852. int
  3853. main ()
  3854. {
  3855. ;
  3856. return 0;
  3857. }
  3858. _ACEOF
  3859. rm -f conftest.$ac_objext
  3860. if { (ac_try="$ac_compile"
  3861. case "(($ac_try" in
  3862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3863. *) ac_try_echo=$ac_try;;
  3864. esac
  3865. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3866. $as_echo "$ac_try_echo") >&5
  3867. (eval "$ac_compile") 2>conftest.er1
  3868. ac_status=$?
  3869. grep -v '^ *+' conftest.er1 >conftest.err
  3870. rm -f conftest.er1
  3871. cat conftest.err >&5
  3872. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3873. (exit $ac_status); } && {
  3874. test -z "$ac_c_werror_flag" ||
  3875. test ! -s conftest.err
  3876. } && test -s conftest.$ac_objext; then
  3877. ac_cv_prog_cc_g=yes
  3878. else
  3879. $as_echo "$as_me: failed program was:" >&5
  3880. sed 's/^/| /' conftest.$ac_ext >&5
  3881. fi
  3882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3883. fi
  3884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3885. fi
  3886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3887. ac_c_werror_flag=$ac_save_c_werror_flag
  3888. fi
  3889. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3890. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3891. if test "$ac_test_CFLAGS" = set; then
  3892. CFLAGS=$ac_save_CFLAGS
  3893. elif test $ac_cv_prog_cc_g = yes; then
  3894. if test "$GCC" = yes; then
  3895. CFLAGS="-g -O2"
  3896. else
  3897. CFLAGS="-g"
  3898. fi
  3899. else
  3900. if test "$GCC" = yes; then
  3901. CFLAGS="-O2"
  3902. else
  3903. CFLAGS=
  3904. fi
  3905. fi
  3906. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3907. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3908. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3909. $as_echo_n "(cached) " >&6
  3910. else
  3911. ac_cv_prog_cc_c89=no
  3912. ac_save_CC=$CC
  3913. cat >conftest.$ac_ext <<_ACEOF
  3914. /* confdefs.h. */
  3915. _ACEOF
  3916. cat confdefs.h >>conftest.$ac_ext
  3917. cat >>conftest.$ac_ext <<_ACEOF
  3918. /* end confdefs.h. */
  3919. #include <stdarg.h>
  3920. #include <stdio.h>
  3921. #include <sys/types.h>
  3922. #include <sys/stat.h>
  3923. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3924. struct buf { int x; };
  3925. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3926. static char *e (p, i)
  3927. char **p;
  3928. int i;
  3929. {
  3930. return p[i];
  3931. }
  3932. static char *f (char * (*g) (char **, int), char **p, ...)
  3933. {
  3934. char *s;
  3935. va_list v;
  3936. va_start (v,p);
  3937. s = g (p, va_arg (v,int));
  3938. va_end (v);
  3939. return s;
  3940. }
  3941. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3942. function prototypes and stuff, but not '\xHH' hex character constants.
  3943. These don't provoke an error unfortunately, instead are silently treated
  3944. as 'x'. The following induces an error, until -std is added to get
  3945. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3946. array size at least. It's necessary to write '\x00'==0 to get something
  3947. that's true only with -std. */
  3948. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3949. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3950. inside strings and character constants. */
  3951. #define FOO(x) 'x'
  3952. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3953. int test (int i, double x);
  3954. struct s1 {int (*f) (int a);};
  3955. struct s2 {int (*f) (double a);};
  3956. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3957. int argc;
  3958. char **argv;
  3959. int
  3960. main ()
  3961. {
  3962. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3963. ;
  3964. return 0;
  3965. }
  3966. _ACEOF
  3967. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3968. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3969. do
  3970. CC="$ac_save_CC $ac_arg"
  3971. rm -f conftest.$ac_objext
  3972. if { (ac_try="$ac_compile"
  3973. case "(($ac_try" in
  3974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3975. *) ac_try_echo=$ac_try;;
  3976. esac
  3977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3978. $as_echo "$ac_try_echo") >&5
  3979. (eval "$ac_compile") 2>conftest.er1
  3980. ac_status=$?
  3981. grep -v '^ *+' conftest.er1 >conftest.err
  3982. rm -f conftest.er1
  3983. cat conftest.err >&5
  3984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3985. (exit $ac_status); } && {
  3986. test -z "$ac_c_werror_flag" ||
  3987. test ! -s conftest.err
  3988. } && test -s conftest.$ac_objext; then
  3989. ac_cv_prog_cc_c89=$ac_arg
  3990. else
  3991. $as_echo "$as_me: failed program was:" >&5
  3992. sed 's/^/| /' conftest.$ac_ext >&5
  3993. fi
  3994. rm -f core conftest.err conftest.$ac_objext
  3995. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3996. done
  3997. rm -f conftest.$ac_ext
  3998. CC=$ac_save_CC
  3999. fi
  4000. # AC_CACHE_VAL
  4001. case "x$ac_cv_prog_cc_c89" in
  4002. x)
  4003. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4004. $as_echo "none needed" >&6; } ;;
  4005. xno)
  4006. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4007. $as_echo "unsupported" >&6; } ;;
  4008. *)
  4009. CC="$CC $ac_cv_prog_cc_c89"
  4010. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4011. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4012. esac
  4013. ac_ext=c
  4014. ac_cpp='$CPP $CPPFLAGS'
  4015. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4016. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4017. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4018. depcc="$CC" am_compiler_list=
  4019. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4020. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4021. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4025. # We make a subdir and do the tests there. Otherwise we can end up
  4026. # making bogus files that we don't know about and never remove. For
  4027. # instance it was reported that on HP-UX the gcc test will end up
  4028. # making a dummy file named `D' -- because `-MD' means `put the output
  4029. # in D'.
  4030. mkdir conftest.dir
  4031. # Copy depcomp to subdir because otherwise we won't find it if we're
  4032. # using a relative directory.
  4033. cp "$am_depcomp" conftest.dir
  4034. cd conftest.dir
  4035. # We will build objects and dependencies in a subdirectory because
  4036. # it helps to detect inapplicable dependency modes. For instance
  4037. # both Tru64's cc and ICC support -MD to output dependencies as a
  4038. # side effect of compilation, but ICC will put the dependencies in
  4039. # the current directory while Tru64 will put them in the object
  4040. # directory.
  4041. mkdir sub
  4042. am_cv_CC_dependencies_compiler_type=none
  4043. if test "$am_compiler_list" = ""; then
  4044. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4045. fi
  4046. am__universal=false
  4047. case " $depcc " in #(
  4048. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4049. esac
  4050. for depmode in $am_compiler_list; do
  4051. # Setup a source with many dependencies, because some compilers
  4052. # like to wrap large dependency lists on column 80 (with \), and
  4053. # we should not choose a depcomp mode which is confused by this.
  4054. #
  4055. # We need to recreate these files for each test, as the compiler may
  4056. # overwrite some of them when testing with obscure command lines.
  4057. # This happens at least with the AIX C compiler.
  4058. : > sub/conftest.c
  4059. for i in 1 2 3 4 5 6; do
  4060. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4061. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4062. # Solaris 8's {/usr,}/bin/sh.
  4063. touch sub/conftst$i.h
  4064. done
  4065. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4066. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4067. # mode. It turns out that the SunPro C++ compiler does not properly
  4068. # handle `-M -o', and we need to detect this. Also, some Intel
  4069. # versions had trouble with output in subdirs
  4070. am__obj=sub/conftest.${OBJEXT-o}
  4071. am__minus_obj="-o $am__obj"
  4072. case $depmode in
  4073. gcc)
  4074. # This depmode causes a compiler race in universal mode.
  4075. test "$am__universal" = false || continue
  4076. ;;
  4077. nosideeffect)
  4078. # after this tag, mechanisms are not by side-effect, so they'll
  4079. # only be used when explicitly requested
  4080. if test "x$enable_dependency_tracking" = xyes; then
  4081. continue
  4082. else
  4083. break
  4084. fi
  4085. ;;
  4086. msvisualcpp | msvcmsys)
  4087. # This compiler won't grok `-c -o', but also, the minuso test has
  4088. # not run yet. These depmodes are late enough in the game, and
  4089. # so weak that their functioning should not be impacted.
  4090. am__obj=conftest.${OBJEXT-o}
  4091. am__minus_obj=
  4092. ;;
  4093. none) break ;;
  4094. esac
  4095. if depmode=$depmode \
  4096. source=sub/conftest.c object=$am__obj \
  4097. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4098. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4099. >/dev/null 2>conftest.err &&
  4100. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4101. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4102. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4103. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4104. # icc doesn't choke on unknown options, it will just issue warnings
  4105. # or remarks (even with -Werror). So we grep stderr for any message
  4106. # that says an option was ignored or not supported.
  4107. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4108. # icc: Command line warning: ignoring option '-M'; no argument required
  4109. # The diagnosis changed in icc 8.0:
  4110. # icc: Command line remark: option '-MP' not supported
  4111. if (grep 'ignoring option' conftest.err ||
  4112. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4113. am_cv_CC_dependencies_compiler_type=$depmode
  4114. break
  4115. fi
  4116. fi
  4117. done
  4118. cd ..
  4119. rm -rf conftest.dir
  4120. else
  4121. am_cv_CC_dependencies_compiler_type=none
  4122. fi
  4123. fi
  4124. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4125. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4126. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4127. if
  4128. test "x$enable_dependency_tracking" != xno \
  4129. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4130. am__fastdepCC_TRUE=
  4131. am__fastdepCC_FALSE='#'
  4132. else
  4133. am__fastdepCC_TRUE='#'
  4134. am__fastdepCC_FALSE=
  4135. fi
  4136. if test "x$CC" != xcc; then
  4137. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  4138. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4139. else
  4140. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  4141. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4142. fi
  4143. set dummy $CC; ac_cc=`$as_echo "$2" |
  4144. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4145. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  4146. $as_echo_n "(cached) " >&6
  4147. else
  4148. cat >conftest.$ac_ext <<_ACEOF
  4149. /* confdefs.h. */
  4150. _ACEOF
  4151. cat confdefs.h >>conftest.$ac_ext
  4152. cat >>conftest.$ac_ext <<_ACEOF
  4153. /* end confdefs.h. */
  4154. int
  4155. main ()
  4156. {
  4157. ;
  4158. return 0;
  4159. }
  4160. _ACEOF
  4161. # Make sure it works both with $CC and with simple cc.
  4162. # We do the test twice because some compilers refuse to overwrite an
  4163. # existing .o file with -o, though they will create one.
  4164. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4165. rm -f conftest2.*
  4166. if { (case "(($ac_try" in
  4167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4168. *) ac_try_echo=$ac_try;;
  4169. esac
  4170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4171. $as_echo "$ac_try_echo") >&5
  4172. (eval "$ac_try") 2>&5
  4173. ac_status=$?
  4174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4175. (exit $ac_status); } &&
  4176. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4178. *) ac_try_echo=$ac_try;;
  4179. esac
  4180. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4181. $as_echo "$ac_try_echo") >&5
  4182. (eval "$ac_try") 2>&5
  4183. ac_status=$?
  4184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); };
  4186. then
  4187. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4188. if test "x$CC" != xcc; then
  4189. # Test first that cc exists at all.
  4190. if { ac_try='cc -c conftest.$ac_ext >&5'
  4191. { (case "(($ac_try" in
  4192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4193. *) ac_try_echo=$ac_try;;
  4194. esac
  4195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4196. $as_echo "$ac_try_echo") >&5
  4197. (eval "$ac_try") 2>&5
  4198. ac_status=$?
  4199. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4200. (exit $ac_status); }; }; then
  4201. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4202. rm -f conftest2.*
  4203. if { (case "(($ac_try" in
  4204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4205. *) ac_try_echo=$ac_try;;
  4206. esac
  4207. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4208. $as_echo "$ac_try_echo") >&5
  4209. (eval "$ac_try") 2>&5
  4210. ac_status=$?
  4211. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4212. (exit $ac_status); } &&
  4213. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4215. *) ac_try_echo=$ac_try;;
  4216. esac
  4217. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4218. $as_echo "$ac_try_echo") >&5
  4219. (eval "$ac_try") 2>&5
  4220. ac_status=$?
  4221. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4222. (exit $ac_status); };
  4223. then
  4224. # cc works too.
  4225. :
  4226. else
  4227. # cc exists but doesn't like -o.
  4228. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4229. fi
  4230. fi
  4231. fi
  4232. else
  4233. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4234. fi
  4235. rm -f core conftest*
  4236. fi
  4237. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4238. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4239. $as_echo "yes" >&6; }
  4240. else
  4241. { $as_echo "$as_me:$LINENO: result: no" >&5
  4242. $as_echo "no" >&6; }
  4243. cat >>confdefs.h <<\_ACEOF
  4244. #define NO_MINUS_C_MINUS_O 1
  4245. _ACEOF
  4246. fi
  4247. # FIXME: we rely on the cache variable name because
  4248. # there is no other way.
  4249. set dummy $CC
  4250. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4251. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4252. if test "$am_t" != yes; then
  4253. # Losing compiler, so override with the script.
  4254. # FIXME: It is wrong to rewrite CC.
  4255. # But if we don't then we get into trouble of one sort or another.
  4256. # A longer-term fix would be to have automake use am__CC in this case,
  4257. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4258. CC="$am_aux_dir/compile $CC"
  4259. fi
  4260. # By default we simply use the C compiler to build assembly code.
  4261. test "${CCAS+set}" = set || CCAS=$CC
  4262. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4263. depcc="$CCAS" am_compiler_list=
  4264. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4265. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4266. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  4267. $as_echo_n "(cached) " >&6
  4268. else
  4269. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4270. # We make a subdir and do the tests there. Otherwise we can end up
  4271. # making bogus files that we don't know about and never remove. For
  4272. # instance it was reported that on HP-UX the gcc test will end up
  4273. # making a dummy file named `D' -- because `-MD' means `put the output
  4274. # in D'.
  4275. mkdir conftest.dir
  4276. # Copy depcomp to subdir because otherwise we won't find it if we're
  4277. # using a relative directory.
  4278. cp "$am_depcomp" conftest.dir
  4279. cd conftest.dir
  4280. # We will build objects and dependencies in a subdirectory because
  4281. # it helps to detect inapplicable dependency modes. For instance
  4282. # both Tru64's cc and ICC support -MD to output dependencies as a
  4283. # side effect of compilation, but ICC will put the dependencies in
  4284. # the current directory while Tru64 will put them in the object
  4285. # directory.
  4286. mkdir sub
  4287. am_cv_CCAS_dependencies_compiler_type=none
  4288. if test "$am_compiler_list" = ""; then
  4289. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4290. fi
  4291. am__universal=false
  4292. for depmode in $am_compiler_list; do
  4293. # Setup a source with many dependencies, because some compilers
  4294. # like to wrap large dependency lists on column 80 (with \), and
  4295. # we should not choose a depcomp mode which is confused by this.
  4296. #
  4297. # We need to recreate these files for each test, as the compiler may
  4298. # overwrite some of them when testing with obscure command lines.
  4299. # This happens at least with the AIX C compiler.
  4300. : > sub/conftest.c
  4301. for i in 1 2 3 4 5 6; do
  4302. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4303. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4304. # Solaris 8's {/usr,}/bin/sh.
  4305. touch sub/conftst$i.h
  4306. done
  4307. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4308. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4309. # mode. It turns out that the SunPro C++ compiler does not properly
  4310. # handle `-M -o', and we need to detect this. Also, some Intel
  4311. # versions had trouble with output in subdirs
  4312. am__obj=sub/conftest.${OBJEXT-o}
  4313. am__minus_obj="-o $am__obj"
  4314. case $depmode in
  4315. gcc)
  4316. # This depmode causes a compiler race in universal mode.
  4317. test "$am__universal" = false || continue
  4318. ;;
  4319. nosideeffect)
  4320. # after this tag, mechanisms are not by side-effect, so they'll
  4321. # only be used when explicitly requested
  4322. if test "x$enable_dependency_tracking" = xyes; then
  4323. continue
  4324. else
  4325. break
  4326. fi
  4327. ;;
  4328. msvisualcpp | msvcmsys)
  4329. # This compiler won't grok `-c -o', but also, the minuso test has
  4330. # not run yet. These depmodes are late enough in the game, and
  4331. # so weak that their functioning should not be impacted.
  4332. am__obj=conftest.${OBJEXT-o}
  4333. am__minus_obj=
  4334. ;;
  4335. none) break ;;
  4336. esac
  4337. if depmode=$depmode \
  4338. source=sub/conftest.c object=$am__obj \
  4339. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4340. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4341. >/dev/null 2>conftest.err &&
  4342. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4343. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4344. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4345. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4346. # icc doesn't choke on unknown options, it will just issue warnings
  4347. # or remarks (even with -Werror). So we grep stderr for any message
  4348. # that says an option was ignored or not supported.
  4349. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4350. # icc: Command line warning: ignoring option '-M'; no argument required
  4351. # The diagnosis changed in icc 8.0:
  4352. # icc: Command line remark: option '-MP' not supported
  4353. if (grep 'ignoring option' conftest.err ||
  4354. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4355. am_cv_CCAS_dependencies_compiler_type=$depmode
  4356. break
  4357. fi
  4358. fi
  4359. done
  4360. cd ..
  4361. rm -rf conftest.dir
  4362. else
  4363. am_cv_CCAS_dependencies_compiler_type=none
  4364. fi
  4365. fi
  4366. { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4367. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4368. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4369. if
  4370. test "x$enable_dependency_tracking" != xno \
  4371. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4372. am__fastdepCCAS_TRUE=
  4373. am__fastdepCCAS_FALSE='#'
  4374. else
  4375. am__fastdepCCAS_TRUE='#'
  4376. am__fastdepCCAS_FALSE=
  4377. fi
  4378. # disable static libs by default - we only use a couple
  4379. # Check whether --enable-static was given.
  4380. if test "${enable_static+set}" = set; then
  4381. enableval=$enable_static; p=${PACKAGE-default}
  4382. case $enableval in
  4383. yes) enable_static=yes ;;
  4384. no) enable_static=no ;;
  4385. *)
  4386. enable_static=no
  4387. # Look at the argument we got. We use all the common list separators.
  4388. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4389. for pkg in $enableval; do
  4390. IFS="$lt_save_ifs"
  4391. if test "X$pkg" = "X$p"; then
  4392. enable_static=yes
  4393. fi
  4394. done
  4395. IFS="$lt_save_ifs"
  4396. ;;
  4397. esac
  4398. else
  4399. enable_static=no
  4400. fi
  4401. case `pwd` in
  4402. *\ * | *\ *)
  4403. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4404. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4405. esac
  4406. macro_version='2.2.6b'
  4407. macro_revision='1.3017'
  4408. ltmain="$ac_aux_dir/ltmain.sh"
  4409. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4410. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4411. if test "${ac_cv_path_SED+set}" = set; then
  4412. $as_echo_n "(cached) " >&6
  4413. else
  4414. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4415. for ac_i in 1 2 3 4 5 6 7; do
  4416. ac_script="$ac_script$as_nl$ac_script"
  4417. done
  4418. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4419. $as_unset ac_script || ac_script=
  4420. if test -z "$SED"; then
  4421. ac_path_SED_found=false
  4422. # Loop through the user's path and test for each of PROGNAME-LIST
  4423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4424. for as_dir in $PATH
  4425. do
  4426. IFS=$as_save_IFS
  4427. test -z "$as_dir" && as_dir=.
  4428. for ac_prog in sed gsed; do
  4429. for ac_exec_ext in '' $ac_executable_extensions; do
  4430. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4431. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4432. # Check for GNU ac_path_SED and select it if it is found.
  4433. # Check for GNU $ac_path_SED
  4434. case `"$ac_path_SED" --version 2>&1` in
  4435. *GNU*)
  4436. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4437. *)
  4438. ac_count=0
  4439. $as_echo_n 0123456789 >"conftest.in"
  4440. while :
  4441. do
  4442. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4443. mv "conftest.tmp" "conftest.in"
  4444. cp "conftest.in" "conftest.nl"
  4445. $as_echo '' >> "conftest.nl"
  4446. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4447. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4448. ac_count=`expr $ac_count + 1`
  4449. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4450. # Best one so far, save it but keep looking for a better one
  4451. ac_cv_path_SED="$ac_path_SED"
  4452. ac_path_SED_max=$ac_count
  4453. fi
  4454. # 10*(2^10) chars as input seems more than enough
  4455. test $ac_count -gt 10 && break
  4456. done
  4457. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4458. esac
  4459. $ac_path_SED_found && break 3
  4460. done
  4461. done
  4462. done
  4463. IFS=$as_save_IFS
  4464. if test -z "$ac_cv_path_SED"; then
  4465. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4466. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4467. { (exit 1); exit 1; }; }
  4468. fi
  4469. else
  4470. ac_cv_path_SED=$SED
  4471. fi
  4472. fi
  4473. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4474. $as_echo "$ac_cv_path_SED" >&6; }
  4475. SED="$ac_cv_path_SED"
  4476. rm -f conftest.sed
  4477. test -z "$SED" && SED=sed
  4478. Xsed="$SED -e 1s/^X//"
  4479. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4480. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4481. if test "${ac_cv_path_GREP+set}" = set; then
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. if test -z "$GREP"; then
  4485. ac_path_GREP_found=false
  4486. # Loop through the user's path and test for each of PROGNAME-LIST
  4487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4488. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4489. do
  4490. IFS=$as_save_IFS
  4491. test -z "$as_dir" && as_dir=.
  4492. for ac_prog in grep ggrep; do
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4495. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4496. # Check for GNU ac_path_GREP and select it if it is found.
  4497. # Check for GNU $ac_path_GREP
  4498. case `"$ac_path_GREP" --version 2>&1` in
  4499. *GNU*)
  4500. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4501. *)
  4502. ac_count=0
  4503. $as_echo_n 0123456789 >"conftest.in"
  4504. while :
  4505. do
  4506. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4507. mv "conftest.tmp" "conftest.in"
  4508. cp "conftest.in" "conftest.nl"
  4509. $as_echo 'GREP' >> "conftest.nl"
  4510. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4511. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4512. ac_count=`expr $ac_count + 1`
  4513. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4514. # Best one so far, save it but keep looking for a better one
  4515. ac_cv_path_GREP="$ac_path_GREP"
  4516. ac_path_GREP_max=$ac_count
  4517. fi
  4518. # 10*(2^10) chars as input seems more than enough
  4519. test $ac_count -gt 10 && break
  4520. done
  4521. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4522. esac
  4523. $ac_path_GREP_found && break 3
  4524. done
  4525. done
  4526. done
  4527. IFS=$as_save_IFS
  4528. if test -z "$ac_cv_path_GREP"; then
  4529. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4530. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4531. { (exit 1); exit 1; }; }
  4532. fi
  4533. else
  4534. ac_cv_path_GREP=$GREP
  4535. fi
  4536. fi
  4537. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4538. $as_echo "$ac_cv_path_GREP" >&6; }
  4539. GREP="$ac_cv_path_GREP"
  4540. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4541. $as_echo_n "checking for egrep... " >&6; }
  4542. if test "${ac_cv_path_EGREP+set}" = set; then
  4543. $as_echo_n "(cached) " >&6
  4544. else
  4545. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4546. then ac_cv_path_EGREP="$GREP -E"
  4547. else
  4548. if test -z "$EGREP"; then
  4549. ac_path_EGREP_found=false
  4550. # Loop through the user's path and test for each of PROGNAME-LIST
  4551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4552. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4553. do
  4554. IFS=$as_save_IFS
  4555. test -z "$as_dir" && as_dir=.
  4556. for ac_prog in egrep; do
  4557. for ac_exec_ext in '' $ac_executable_extensions; do
  4558. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4559. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4560. # Check for GNU ac_path_EGREP and select it if it is found.
  4561. # Check for GNU $ac_path_EGREP
  4562. case `"$ac_path_EGREP" --version 2>&1` in
  4563. *GNU*)
  4564. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4565. *)
  4566. ac_count=0
  4567. $as_echo_n 0123456789 >"conftest.in"
  4568. while :
  4569. do
  4570. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4571. mv "conftest.tmp" "conftest.in"
  4572. cp "conftest.in" "conftest.nl"
  4573. $as_echo 'EGREP' >> "conftest.nl"
  4574. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4575. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4576. ac_count=`expr $ac_count + 1`
  4577. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4578. # Best one so far, save it but keep looking for a better one
  4579. ac_cv_path_EGREP="$ac_path_EGREP"
  4580. ac_path_EGREP_max=$ac_count
  4581. fi
  4582. # 10*(2^10) chars as input seems more than enough
  4583. test $ac_count -gt 10 && break
  4584. done
  4585. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4586. esac
  4587. $ac_path_EGREP_found && break 3
  4588. done
  4589. done
  4590. done
  4591. IFS=$as_save_IFS
  4592. if test -z "$ac_cv_path_EGREP"; then
  4593. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4594. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4595. { (exit 1); exit 1; }; }
  4596. fi
  4597. else
  4598. ac_cv_path_EGREP=$EGREP
  4599. fi
  4600. fi
  4601. fi
  4602. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4603. $as_echo "$ac_cv_path_EGREP" >&6; }
  4604. EGREP="$ac_cv_path_EGREP"
  4605. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4606. $as_echo_n "checking for fgrep... " >&6; }
  4607. if test "${ac_cv_path_FGREP+set}" = set; then
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4611. then ac_cv_path_FGREP="$GREP -F"
  4612. else
  4613. if test -z "$FGREP"; then
  4614. ac_path_FGREP_found=false
  4615. # Loop through the user's path and test for each of PROGNAME-LIST
  4616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4617. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4618. do
  4619. IFS=$as_save_IFS
  4620. test -z "$as_dir" && as_dir=.
  4621. for ac_prog in fgrep; do
  4622. for ac_exec_ext in '' $ac_executable_extensions; do
  4623. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4624. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4625. # Check for GNU ac_path_FGREP and select it if it is found.
  4626. # Check for GNU $ac_path_FGREP
  4627. case `"$ac_path_FGREP" --version 2>&1` in
  4628. *GNU*)
  4629. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4630. *)
  4631. ac_count=0
  4632. $as_echo_n 0123456789 >"conftest.in"
  4633. while :
  4634. do
  4635. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4636. mv "conftest.tmp" "conftest.in"
  4637. cp "conftest.in" "conftest.nl"
  4638. $as_echo 'FGREP' >> "conftest.nl"
  4639. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4640. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4641. ac_count=`expr $ac_count + 1`
  4642. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4643. # Best one so far, save it but keep looking for a better one
  4644. ac_cv_path_FGREP="$ac_path_FGREP"
  4645. ac_path_FGREP_max=$ac_count
  4646. fi
  4647. # 10*(2^10) chars as input seems more than enough
  4648. test $ac_count -gt 10 && break
  4649. done
  4650. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4651. esac
  4652. $ac_path_FGREP_found && break 3
  4653. done
  4654. done
  4655. done
  4656. IFS=$as_save_IFS
  4657. if test -z "$ac_cv_path_FGREP"; then
  4658. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4659. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4660. { (exit 1); exit 1; }; }
  4661. fi
  4662. else
  4663. ac_cv_path_FGREP=$FGREP
  4664. fi
  4665. fi
  4666. fi
  4667. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4668. $as_echo "$ac_cv_path_FGREP" >&6; }
  4669. FGREP="$ac_cv_path_FGREP"
  4670. test -z "$GREP" && GREP=grep
  4671. # Check whether --with-gnu-ld was given.
  4672. if test "${with_gnu_ld+set}" = set; then
  4673. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4674. else
  4675. with_gnu_ld=no
  4676. fi
  4677. ac_prog=ld
  4678. if test "$GCC" = yes; then
  4679. # Check if gcc -print-prog-name=ld gives a path.
  4680. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4681. $as_echo_n "checking for ld used by $CC... " >&6; }
  4682. case $host in
  4683. *-*-mingw*)
  4684. # gcc leaves a trailing carriage return which upsets mingw
  4685. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4686. *)
  4687. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4688. esac
  4689. case $ac_prog in
  4690. # Accept absolute paths.
  4691. [\\/]* | ?:[\\/]*)
  4692. re_direlt='/[^/][^/]*/\.\./'
  4693. # Canonicalize the pathname of ld
  4694. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4695. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4696. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4697. done
  4698. test -z "$LD" && LD="$ac_prog"
  4699. ;;
  4700. "")
  4701. # If it fails, then pretend we aren't using GCC.
  4702. ac_prog=ld
  4703. ;;
  4704. *)
  4705. # If it is relative, then search for the first ld in PATH.
  4706. with_gnu_ld=unknown
  4707. ;;
  4708. esac
  4709. elif test "$with_gnu_ld" = yes; then
  4710. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4711. $as_echo_n "checking for GNU ld... " >&6; }
  4712. else
  4713. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4714. $as_echo_n "checking for non-GNU ld... " >&6; }
  4715. fi
  4716. if test "${lt_cv_path_LD+set}" = set; then
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. if test -z "$LD"; then
  4720. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4721. for ac_dir in $PATH; do
  4722. IFS="$lt_save_ifs"
  4723. test -z "$ac_dir" && ac_dir=.
  4724. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4725. lt_cv_path_LD="$ac_dir/$ac_prog"
  4726. # Check to see if the program is GNU ld. I'd rather use --version,
  4727. # but apparently some variants of GNU ld only accept -v.
  4728. # Break only if it was the GNU/non-GNU ld that we prefer.
  4729. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4730. *GNU* | *'with BFD'*)
  4731. test "$with_gnu_ld" != no && break
  4732. ;;
  4733. *)
  4734. test "$with_gnu_ld" != yes && break
  4735. ;;
  4736. esac
  4737. fi
  4738. done
  4739. IFS="$lt_save_ifs"
  4740. else
  4741. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4742. fi
  4743. fi
  4744. LD="$lt_cv_path_LD"
  4745. if test -n "$LD"; then
  4746. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4747. $as_echo "$LD" >&6; }
  4748. else
  4749. { $as_echo "$as_me:$LINENO: result: no" >&5
  4750. $as_echo "no" >&6; }
  4751. fi
  4752. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4753. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4754. { (exit 1); exit 1; }; }
  4755. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4756. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4757. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4758. $as_echo_n "(cached) " >&6
  4759. else
  4760. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4761. case `$LD -v 2>&1 </dev/null` in
  4762. *GNU* | *'with BFD'*)
  4763. lt_cv_prog_gnu_ld=yes
  4764. ;;
  4765. *)
  4766. lt_cv_prog_gnu_ld=no
  4767. ;;
  4768. esac
  4769. fi
  4770. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4771. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4772. with_gnu_ld=$lt_cv_prog_gnu_ld
  4773. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4774. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4775. if test "${lt_cv_path_NM+set}" = set; then
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. if test -n "$NM"; then
  4779. # Let the user override the test.
  4780. lt_cv_path_NM="$NM"
  4781. else
  4782. lt_nm_to_check="${ac_tool_prefix}nm"
  4783. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4784. lt_nm_to_check="$lt_nm_to_check nm"
  4785. fi
  4786. for lt_tmp_nm in $lt_nm_to_check; do
  4787. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4788. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4789. IFS="$lt_save_ifs"
  4790. test -z "$ac_dir" && ac_dir=.
  4791. tmp_nm="$ac_dir/$lt_tmp_nm"
  4792. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4793. # Check to see if the nm accepts a BSD-compat flag.
  4794. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4795. # nm: unknown option "B" ignored
  4796. # Tru64's nm complains that /dev/null is an invalid object file
  4797. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4798. */dev/null* | *'Invalid file or object type'*)
  4799. lt_cv_path_NM="$tmp_nm -B"
  4800. break
  4801. ;;
  4802. *)
  4803. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4804. */dev/null*)
  4805. lt_cv_path_NM="$tmp_nm -p"
  4806. break
  4807. ;;
  4808. *)
  4809. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4810. continue # so that we can try to find one that supports BSD flags
  4811. ;;
  4812. esac
  4813. ;;
  4814. esac
  4815. fi
  4816. done
  4817. IFS="$lt_save_ifs"
  4818. done
  4819. : ${lt_cv_path_NM=no}
  4820. fi
  4821. fi
  4822. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4823. $as_echo "$lt_cv_path_NM" >&6; }
  4824. if test "$lt_cv_path_NM" != "no"; then
  4825. NM="$lt_cv_path_NM"
  4826. else
  4827. # Didn't find any BSD compatible name lister, look for dumpbin.
  4828. if test -n "$ac_tool_prefix"; then
  4829. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4830. do
  4831. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4832. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4833. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4834. $as_echo_n "checking for $ac_word... " >&6; }
  4835. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. if test -n "$DUMPBIN"; then
  4839. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4840. else
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4848. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4849. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. fi
  4856. fi
  4857. DUMPBIN=$ac_cv_prog_DUMPBIN
  4858. if test -n "$DUMPBIN"; then
  4859. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4860. $as_echo "$DUMPBIN" >&6; }
  4861. else
  4862. { $as_echo "$as_me:$LINENO: result: no" >&5
  4863. $as_echo "no" >&6; }
  4864. fi
  4865. test -n "$DUMPBIN" && break
  4866. done
  4867. fi
  4868. if test -z "$DUMPBIN"; then
  4869. ac_ct_DUMPBIN=$DUMPBIN
  4870. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4871. do
  4872. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4873. set dummy $ac_prog; ac_word=$2
  4874. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4875. $as_echo_n "checking for $ac_word... " >&6; }
  4876. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4877. $as_echo_n "(cached) " >&6
  4878. else
  4879. if test -n "$ac_ct_DUMPBIN"; then
  4880. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4881. else
  4882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4883. for as_dir in $PATH
  4884. do
  4885. IFS=$as_save_IFS
  4886. test -z "$as_dir" && as_dir=.
  4887. for ac_exec_ext in '' $ac_executable_extensions; do
  4888. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4889. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4890. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4891. break 2
  4892. fi
  4893. done
  4894. done
  4895. IFS=$as_save_IFS
  4896. fi
  4897. fi
  4898. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4899. if test -n "$ac_ct_DUMPBIN"; then
  4900. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4901. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4902. else
  4903. { $as_echo "$as_me:$LINENO: result: no" >&5
  4904. $as_echo "no" >&6; }
  4905. fi
  4906. test -n "$ac_ct_DUMPBIN" && break
  4907. done
  4908. if test "x$ac_ct_DUMPBIN" = x; then
  4909. DUMPBIN=":"
  4910. else
  4911. case $cross_compiling:$ac_tool_warned in
  4912. yes:)
  4913. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4914. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4915. ac_tool_warned=yes ;;
  4916. esac
  4917. DUMPBIN=$ac_ct_DUMPBIN
  4918. fi
  4919. fi
  4920. if test "$DUMPBIN" != ":"; then
  4921. NM="$DUMPBIN"
  4922. fi
  4923. fi
  4924. test -z "$NM" && NM=nm
  4925. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4926. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4927. if test "${lt_cv_nm_interface+set}" = set; then
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. lt_cv_nm_interface="BSD nm"
  4931. echo "int some_variable = 0;" > conftest.$ac_ext
  4932. (eval echo "\"\$as_me:5518: $ac_compile\"" >&5)
  4933. (eval "$ac_compile" 2>conftest.err)
  4934. cat conftest.err >&5
  4935. (eval echo "\"\$as_me:5521: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4936. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4937. cat conftest.err >&5
  4938. (eval echo "\"\$as_me:5524: output\"" >&5)
  4939. cat conftest.out >&5
  4940. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4941. lt_cv_nm_interface="MS dumpbin"
  4942. fi
  4943. rm -f conftest*
  4944. fi
  4945. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4946. $as_echo "$lt_cv_nm_interface" >&6; }
  4947. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4948. $as_echo_n "checking whether ln -s works... " >&6; }
  4949. LN_S=$as_ln_s
  4950. if test "$LN_S" = "ln -s"; then
  4951. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4952. $as_echo "yes" >&6; }
  4953. else
  4954. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4955. $as_echo "no, using $LN_S" >&6; }
  4956. fi
  4957. # find the maximum length of command line arguments
  4958. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4959. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4960. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4961. $as_echo_n "(cached) " >&6
  4962. else
  4963. i=0
  4964. teststring="ABCD"
  4965. case $build_os in
  4966. msdosdjgpp*)
  4967. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4968. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4969. # during glob expansion). Even if it were fixed, the result of this
  4970. # check would be larger than it should be.
  4971. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4972. ;;
  4973. gnu*)
  4974. # Under GNU Hurd, this test is not required because there is
  4975. # no limit to the length of command line arguments.
  4976. # Libtool will interpret -1 as no limit whatsoever
  4977. lt_cv_sys_max_cmd_len=-1;
  4978. ;;
  4979. cygwin* | mingw* | cegcc*)
  4980. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4981. # about 5 minutes as the teststring grows exponentially.
  4982. # Worse, since 9x/ME are not pre-emptively multitasking,
  4983. # you end up with a "frozen" computer, even though with patience
  4984. # the test eventually succeeds (with a max line length of 256k).
  4985. # Instead, let's just punt: use the minimum linelength reported by
  4986. # all of the supported platforms: 8192 (on NT/2K/XP).
  4987. lt_cv_sys_max_cmd_len=8192;
  4988. ;;
  4989. amigaos*)
  4990. # On AmigaOS with pdksh, this test takes hours, literally.
  4991. # So we just punt and use a minimum line length of 8192.
  4992. lt_cv_sys_max_cmd_len=8192;
  4993. ;;
  4994. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4995. # This has been around since 386BSD, at least. Likely further.
  4996. if test -x /sbin/sysctl; then
  4997. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4998. elif test -x /usr/sbin/sysctl; then
  4999. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5000. else
  5001. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5002. fi
  5003. # And add a safety zone
  5004. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5005. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5006. ;;
  5007. interix*)
  5008. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5009. lt_cv_sys_max_cmd_len=196608
  5010. ;;
  5011. osf*)
  5012. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5013. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5014. # nice to cause kernel panics so lets avoid the loop below.
  5015. # First set a reasonable default.
  5016. lt_cv_sys_max_cmd_len=16384
  5017. #
  5018. if test -x /sbin/sysconfig; then
  5019. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5020. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5021. esac
  5022. fi
  5023. ;;
  5024. sco3.2v5*)
  5025. lt_cv_sys_max_cmd_len=102400
  5026. ;;
  5027. sysv5* | sco5v6* | sysv4.2uw2*)
  5028. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5029. if test -n "$kargmax"; then
  5030. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5031. else
  5032. lt_cv_sys_max_cmd_len=32768
  5033. fi
  5034. ;;
  5035. *)
  5036. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5037. if test -n "$lt_cv_sys_max_cmd_len"; then
  5038. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5039. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5040. else
  5041. # Make teststring a little bigger before we do anything with it.
  5042. # a 1K string should be a reasonable start.
  5043. for i in 1 2 3 4 5 6 7 8 ; do
  5044. teststring=$teststring$teststring
  5045. done
  5046. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5047. # If test is not a shell built-in, we'll probably end up computing a
  5048. # maximum length that is only half of the actual maximum length, but
  5049. # we can't tell.
  5050. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5051. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5052. test $i != 17 # 1/2 MB should be enough
  5053. do
  5054. i=`expr $i + 1`
  5055. teststring=$teststring$teststring
  5056. done
  5057. # Only check the string length outside the loop.
  5058. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5059. teststring=
  5060. # Add a significant safety factor because C++ compilers can tack on
  5061. # massive amounts of additional arguments before passing them to the
  5062. # linker. It appears as though 1/2 is a usable value.
  5063. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5064. fi
  5065. ;;
  5066. esac
  5067. fi
  5068. if test -n $lt_cv_sys_max_cmd_len ; then
  5069. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5070. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5071. else
  5072. { $as_echo "$as_me:$LINENO: result: none" >&5
  5073. $as_echo "none" >&6; }
  5074. fi
  5075. max_cmd_len=$lt_cv_sys_max_cmd_len
  5076. : ${CP="cp -f"}
  5077. : ${MV="mv -f"}
  5078. : ${RM="rm -f"}
  5079. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5080. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5081. # Try some XSI features
  5082. xsi_shell=no
  5083. ( _lt_dummy="a/b/c"
  5084. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5085. = c,a/b,, \
  5086. && eval 'test $(( 1 + 1 )) -eq 2 \
  5087. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5088. && xsi_shell=yes
  5089. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5090. $as_echo "$xsi_shell" >&6; }
  5091. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5092. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5093. lt_shell_append=no
  5094. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5095. >/dev/null 2>&1 \
  5096. && lt_shell_append=yes
  5097. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5098. $as_echo "$lt_shell_append" >&6; }
  5099. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5100. lt_unset=unset
  5101. else
  5102. lt_unset=false
  5103. fi
  5104. # test EBCDIC or ASCII
  5105. case `echo X|tr X '\101'` in
  5106. A) # ASCII based system
  5107. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5108. lt_SP2NL='tr \040 \012'
  5109. lt_NL2SP='tr \015\012 \040\040'
  5110. ;;
  5111. *) # EBCDIC based system
  5112. lt_SP2NL='tr \100 \n'
  5113. lt_NL2SP='tr \r\n \100\100'
  5114. ;;
  5115. esac
  5116. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5117. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5118. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5119. $as_echo_n "(cached) " >&6
  5120. else
  5121. lt_cv_ld_reload_flag='-r'
  5122. fi
  5123. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5124. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5125. reload_flag=$lt_cv_ld_reload_flag
  5126. case $reload_flag in
  5127. "" | " "*) ;;
  5128. *) reload_flag=" $reload_flag" ;;
  5129. esac
  5130. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5131. case $host_os in
  5132. darwin*)
  5133. if test "$GCC" = yes; then
  5134. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5135. else
  5136. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5137. fi
  5138. ;;
  5139. esac
  5140. if test -n "$ac_tool_prefix"; then
  5141. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5142. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5143. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5144. $as_echo_n "checking for $ac_word... " >&6; }
  5145. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. if test -n "$OBJDUMP"; then
  5149. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5150. else
  5151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5152. for as_dir in $PATH
  5153. do
  5154. IFS=$as_save_IFS
  5155. test -z "$as_dir" && as_dir=.
  5156. for ac_exec_ext in '' $ac_executable_extensions; do
  5157. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5158. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5159. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5160. break 2
  5161. fi
  5162. done
  5163. done
  5164. IFS=$as_save_IFS
  5165. fi
  5166. fi
  5167. OBJDUMP=$ac_cv_prog_OBJDUMP
  5168. if test -n "$OBJDUMP"; then
  5169. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5170. $as_echo "$OBJDUMP" >&6; }
  5171. else
  5172. { $as_echo "$as_me:$LINENO: result: no" >&5
  5173. $as_echo "no" >&6; }
  5174. fi
  5175. fi
  5176. if test -z "$ac_cv_prog_OBJDUMP"; then
  5177. ac_ct_OBJDUMP=$OBJDUMP
  5178. # Extract the first word of "objdump", so it can be a program name with args.
  5179. set dummy objdump; ac_word=$2
  5180. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5181. $as_echo_n "checking for $ac_word... " >&6; }
  5182. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5183. $as_echo_n "(cached) " >&6
  5184. else
  5185. if test -n "$ac_ct_OBJDUMP"; then
  5186. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5187. else
  5188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5189. for as_dir in $PATH
  5190. do
  5191. IFS=$as_save_IFS
  5192. test -z "$as_dir" && as_dir=.
  5193. for ac_exec_ext in '' $ac_executable_extensions; do
  5194. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5195. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5196. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5197. break 2
  5198. fi
  5199. done
  5200. done
  5201. IFS=$as_save_IFS
  5202. fi
  5203. fi
  5204. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5205. if test -n "$ac_ct_OBJDUMP"; then
  5206. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5207. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5208. else
  5209. { $as_echo "$as_me:$LINENO: result: no" >&5
  5210. $as_echo "no" >&6; }
  5211. fi
  5212. if test "x$ac_ct_OBJDUMP" = x; then
  5213. OBJDUMP="false"
  5214. else
  5215. case $cross_compiling:$ac_tool_warned in
  5216. yes:)
  5217. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5218. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5219. ac_tool_warned=yes ;;
  5220. esac
  5221. OBJDUMP=$ac_ct_OBJDUMP
  5222. fi
  5223. else
  5224. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5225. fi
  5226. test -z "$OBJDUMP" && OBJDUMP=objdump
  5227. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5228. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5229. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5233. lt_cv_file_magic_test_file=
  5234. lt_cv_deplibs_check_method='unknown'
  5235. # Need to set the preceding variable on all platforms that support
  5236. # interlibrary dependencies.
  5237. # 'none' -- dependencies not supported.
  5238. # `unknown' -- same as none, but documents that we really don't know.
  5239. # 'pass_all' -- all dependencies passed with no checks.
  5240. # 'test_compile' -- check by making test program.
  5241. # 'file_magic [[regex]]' -- check by looking for files in library path
  5242. # which responds to the $file_magic_cmd with a given extended regex.
  5243. # If you have `file' or equivalent on your system and you're not sure
  5244. # whether `pass_all' will *always* work, you probably want this one.
  5245. case $host_os in
  5246. aix[4-9]*)
  5247. lt_cv_deplibs_check_method=pass_all
  5248. ;;
  5249. beos*)
  5250. lt_cv_deplibs_check_method=pass_all
  5251. ;;
  5252. bsdi[45]*)
  5253. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5254. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5255. lt_cv_file_magic_test_file=/shlib/libc.so
  5256. ;;
  5257. cygwin*)
  5258. # func_win32_libid is a shell function defined in ltmain.sh
  5259. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5260. lt_cv_file_magic_cmd='func_win32_libid'
  5261. ;;
  5262. mingw* | pw32*)
  5263. # Base MSYS/MinGW do not provide the 'file' command needed by
  5264. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5265. # unless we find 'file', for example because we are cross-compiling.
  5266. if ( file / ) >/dev/null 2>&1; then
  5267. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5268. lt_cv_file_magic_cmd='func_win32_libid'
  5269. else
  5270. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5271. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5272. fi
  5273. ;;
  5274. cegcc)
  5275. # use the weaker test based on 'objdump'. See mingw*.
  5276. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5277. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5278. ;;
  5279. darwin* | rhapsody*)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. freebsd* | dragonfly*)
  5283. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5284. case $host_cpu in
  5285. i*86 )
  5286. # Not sure whether the presence of OpenBSD here was a mistake.
  5287. # Let's accept both of them until this is cleared up.
  5288. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5289. lt_cv_file_magic_cmd=/usr/bin/file
  5290. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5291. ;;
  5292. esac
  5293. else
  5294. lt_cv_deplibs_check_method=pass_all
  5295. fi
  5296. ;;
  5297. gnu*)
  5298. lt_cv_deplibs_check_method=pass_all
  5299. ;;
  5300. hpux10.20* | hpux11*)
  5301. lt_cv_file_magic_cmd=/usr/bin/file
  5302. case $host_cpu in
  5303. ia64*)
  5304. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5305. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5306. ;;
  5307. hppa*64*)
  5308. 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]'
  5309. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5310. ;;
  5311. *)
  5312. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5313. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5314. ;;
  5315. esac
  5316. ;;
  5317. interix[3-9]*)
  5318. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5319. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5320. ;;
  5321. irix5* | irix6* | nonstopux*)
  5322. case $LD in
  5323. *-32|*"-32 ") libmagic=32-bit;;
  5324. *-n32|*"-n32 ") libmagic=N32;;
  5325. *-64|*"-64 ") libmagic=64-bit;;
  5326. *) libmagic=never-match;;
  5327. esac
  5328. lt_cv_deplibs_check_method=pass_all
  5329. ;;
  5330. # This must be Linux ELF.
  5331. linux* | k*bsd*-gnu)
  5332. lt_cv_deplibs_check_method=pass_all
  5333. ;;
  5334. netbsd*)
  5335. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5336. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5337. else
  5338. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5339. fi
  5340. ;;
  5341. newos6*)
  5342. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5343. lt_cv_file_magic_cmd=/usr/bin/file
  5344. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5345. ;;
  5346. *nto* | *qnx*)
  5347. lt_cv_deplibs_check_method=pass_all
  5348. ;;
  5349. openbsd*)
  5350. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5351. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5352. else
  5353. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5354. fi
  5355. ;;
  5356. osf3* | osf4* | osf5*)
  5357. lt_cv_deplibs_check_method=pass_all
  5358. ;;
  5359. rdos*)
  5360. lt_cv_deplibs_check_method=pass_all
  5361. ;;
  5362. solaris*)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. sysv4 | sysv4.3*)
  5369. case $host_vendor in
  5370. motorola)
  5371. 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]'
  5372. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5373. ;;
  5374. ncr)
  5375. lt_cv_deplibs_check_method=pass_all
  5376. ;;
  5377. sequent)
  5378. lt_cv_file_magic_cmd='/bin/file'
  5379. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5380. ;;
  5381. sni)
  5382. lt_cv_file_magic_cmd='/bin/file'
  5383. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5384. lt_cv_file_magic_test_file=/lib/libc.so
  5385. ;;
  5386. siemens)
  5387. lt_cv_deplibs_check_method=pass_all
  5388. ;;
  5389. pc)
  5390. lt_cv_deplibs_check_method=pass_all
  5391. ;;
  5392. esac
  5393. ;;
  5394. tpf*)
  5395. lt_cv_deplibs_check_method=pass_all
  5396. ;;
  5397. esac
  5398. fi
  5399. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5400. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5401. file_magic_cmd=$lt_cv_file_magic_cmd
  5402. deplibs_check_method=$lt_cv_deplibs_check_method
  5403. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5404. if test -n "$ac_tool_prefix"; then
  5405. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5406. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5407. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5408. $as_echo_n "checking for $ac_word... " >&6; }
  5409. if test "${ac_cv_prog_AR+set}" = set; then
  5410. $as_echo_n "(cached) " >&6
  5411. else
  5412. if test -n "$AR"; then
  5413. ac_cv_prog_AR="$AR" # Let the user override the test.
  5414. else
  5415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5416. for as_dir in $PATH
  5417. do
  5418. IFS=$as_save_IFS
  5419. test -z "$as_dir" && as_dir=.
  5420. for ac_exec_ext in '' $ac_executable_extensions; do
  5421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5422. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5423. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5424. break 2
  5425. fi
  5426. done
  5427. done
  5428. IFS=$as_save_IFS
  5429. fi
  5430. fi
  5431. AR=$ac_cv_prog_AR
  5432. if test -n "$AR"; then
  5433. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5434. $as_echo "$AR" >&6; }
  5435. else
  5436. { $as_echo "$as_me:$LINENO: result: no" >&5
  5437. $as_echo "no" >&6; }
  5438. fi
  5439. fi
  5440. if test -z "$ac_cv_prog_AR"; then
  5441. ac_ct_AR=$AR
  5442. # Extract the first word of "ar", so it can be a program name with args.
  5443. set dummy ar; ac_word=$2
  5444. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5445. $as_echo_n "checking for $ac_word... " >&6; }
  5446. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. if test -n "$ac_ct_AR"; then
  5450. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5451. else
  5452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5453. for as_dir in $PATH
  5454. do
  5455. IFS=$as_save_IFS
  5456. test -z "$as_dir" && as_dir=.
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5459. ac_cv_prog_ac_ct_AR="ar"
  5460. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. fi
  5467. fi
  5468. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5469. if test -n "$ac_ct_AR"; then
  5470. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5471. $as_echo "$ac_ct_AR" >&6; }
  5472. else
  5473. { $as_echo "$as_me:$LINENO: result: no" >&5
  5474. $as_echo "no" >&6; }
  5475. fi
  5476. if test "x$ac_ct_AR" = x; then
  5477. AR="false"
  5478. else
  5479. case $cross_compiling:$ac_tool_warned in
  5480. yes:)
  5481. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5482. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5483. ac_tool_warned=yes ;;
  5484. esac
  5485. AR=$ac_ct_AR
  5486. fi
  5487. else
  5488. AR="$ac_cv_prog_AR"
  5489. fi
  5490. test -z "$AR" && AR=ar
  5491. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5492. if test -n "$ac_tool_prefix"; then
  5493. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5494. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5495. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5496. $as_echo_n "checking for $ac_word... " >&6; }
  5497. if test "${ac_cv_prog_STRIP+set}" = set; then
  5498. $as_echo_n "(cached) " >&6
  5499. else
  5500. if test -n "$STRIP"; then
  5501. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5502. else
  5503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5504. for as_dir in $PATH
  5505. do
  5506. IFS=$as_save_IFS
  5507. test -z "$as_dir" && as_dir=.
  5508. for ac_exec_ext in '' $ac_executable_extensions; do
  5509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5510. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5511. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5512. break 2
  5513. fi
  5514. done
  5515. done
  5516. IFS=$as_save_IFS
  5517. fi
  5518. fi
  5519. STRIP=$ac_cv_prog_STRIP
  5520. if test -n "$STRIP"; then
  5521. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5522. $as_echo "$STRIP" >&6; }
  5523. else
  5524. { $as_echo "$as_me:$LINENO: result: no" >&5
  5525. $as_echo "no" >&6; }
  5526. fi
  5527. fi
  5528. if test -z "$ac_cv_prog_STRIP"; then
  5529. ac_ct_STRIP=$STRIP
  5530. # Extract the first word of "strip", so it can be a program name with args.
  5531. set dummy strip; ac_word=$2
  5532. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5533. $as_echo_n "checking for $ac_word... " >&6; }
  5534. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5535. $as_echo_n "(cached) " >&6
  5536. else
  5537. if test -n "$ac_ct_STRIP"; then
  5538. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5539. else
  5540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5541. for as_dir in $PATH
  5542. do
  5543. IFS=$as_save_IFS
  5544. test -z "$as_dir" && as_dir=.
  5545. for ac_exec_ext in '' $ac_executable_extensions; do
  5546. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5547. ac_cv_prog_ac_ct_STRIP="strip"
  5548. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5549. break 2
  5550. fi
  5551. done
  5552. done
  5553. IFS=$as_save_IFS
  5554. fi
  5555. fi
  5556. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5557. if test -n "$ac_ct_STRIP"; then
  5558. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5559. $as_echo "$ac_ct_STRIP" >&6; }
  5560. else
  5561. { $as_echo "$as_me:$LINENO: result: no" >&5
  5562. $as_echo "no" >&6; }
  5563. fi
  5564. if test "x$ac_ct_STRIP" = x; then
  5565. STRIP=":"
  5566. else
  5567. case $cross_compiling:$ac_tool_warned in
  5568. yes:)
  5569. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5570. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5571. ac_tool_warned=yes ;;
  5572. esac
  5573. STRIP=$ac_ct_STRIP
  5574. fi
  5575. else
  5576. STRIP="$ac_cv_prog_STRIP"
  5577. fi
  5578. test -z "$STRIP" && STRIP=:
  5579. if test -n "$ac_tool_prefix"; then
  5580. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5581. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5582. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5583. $as_echo_n "checking for $ac_word... " >&6; }
  5584. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5585. $as_echo_n "(cached) " >&6
  5586. else
  5587. if test -n "$RANLIB"; then
  5588. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5589. else
  5590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5591. for as_dir in $PATH
  5592. do
  5593. IFS=$as_save_IFS
  5594. test -z "$as_dir" && as_dir=.
  5595. for ac_exec_ext in '' $ac_executable_extensions; do
  5596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5597. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5598. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5599. break 2
  5600. fi
  5601. done
  5602. done
  5603. IFS=$as_save_IFS
  5604. fi
  5605. fi
  5606. RANLIB=$ac_cv_prog_RANLIB
  5607. if test -n "$RANLIB"; then
  5608. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5609. $as_echo "$RANLIB" >&6; }
  5610. else
  5611. { $as_echo "$as_me:$LINENO: result: no" >&5
  5612. $as_echo "no" >&6; }
  5613. fi
  5614. fi
  5615. if test -z "$ac_cv_prog_RANLIB"; then
  5616. ac_ct_RANLIB=$RANLIB
  5617. # Extract the first word of "ranlib", so it can be a program name with args.
  5618. set dummy ranlib; ac_word=$2
  5619. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5620. $as_echo_n "checking for $ac_word... " >&6; }
  5621. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. if test -n "$ac_ct_RANLIB"; then
  5625. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5626. else
  5627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5628. for as_dir in $PATH
  5629. do
  5630. IFS=$as_save_IFS
  5631. test -z "$as_dir" && as_dir=.
  5632. for ac_exec_ext in '' $ac_executable_extensions; do
  5633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5634. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5635. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5636. break 2
  5637. fi
  5638. done
  5639. done
  5640. IFS=$as_save_IFS
  5641. fi
  5642. fi
  5643. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5644. if test -n "$ac_ct_RANLIB"; then
  5645. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5646. $as_echo "$ac_ct_RANLIB" >&6; }
  5647. else
  5648. { $as_echo "$as_me:$LINENO: result: no" >&5
  5649. $as_echo "no" >&6; }
  5650. fi
  5651. if test "x$ac_ct_RANLIB" = x; then
  5652. RANLIB=":"
  5653. else
  5654. case $cross_compiling:$ac_tool_warned in
  5655. yes:)
  5656. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5658. ac_tool_warned=yes ;;
  5659. esac
  5660. RANLIB=$ac_ct_RANLIB
  5661. fi
  5662. else
  5663. RANLIB="$ac_cv_prog_RANLIB"
  5664. fi
  5665. test -z "$RANLIB" && RANLIB=:
  5666. # Determine commands to create old-style static archives.
  5667. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5668. old_postinstall_cmds='chmod 644 $oldlib'
  5669. old_postuninstall_cmds=
  5670. if test -n "$RANLIB"; then
  5671. case $host_os in
  5672. openbsd*)
  5673. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5674. ;;
  5675. *)
  5676. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5677. ;;
  5678. esac
  5679. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5680. fi
  5681. # If no C compiler was specified, use CC.
  5682. LTCC=${LTCC-"$CC"}
  5683. # If no C compiler flags were specified, use CFLAGS.
  5684. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5685. # Allow CC to be a program name with arguments.
  5686. compiler=$CC
  5687. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5688. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5689. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5690. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5691. $as_echo_n "(cached) " >&6
  5692. else
  5693. # These are sane defaults that work on at least a few old systems.
  5694. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5695. # Character class describing NM global symbol codes.
  5696. symcode='[BCDEGRST]'
  5697. # Regexp to match symbols that can be accessed directly from C.
  5698. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5699. # Define system-specific variables.
  5700. case $host_os in
  5701. aix*)
  5702. symcode='[BCDT]'
  5703. ;;
  5704. cygwin* | mingw* | pw32* | cegcc*)
  5705. symcode='[ABCDGISTW]'
  5706. ;;
  5707. hpux*)
  5708. if test "$host_cpu" = ia64; then
  5709. symcode='[ABCDEGRST]'
  5710. fi
  5711. ;;
  5712. irix* | nonstopux*)
  5713. symcode='[BCDEGRST]'
  5714. ;;
  5715. osf*)
  5716. symcode='[BCDEGQRST]'
  5717. ;;
  5718. solaris*)
  5719. symcode='[BDRT]'
  5720. ;;
  5721. sco3.2v5*)
  5722. symcode='[DT]'
  5723. ;;
  5724. sysv4.2uw2*)
  5725. symcode='[DT]'
  5726. ;;
  5727. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5728. symcode='[ABDT]'
  5729. ;;
  5730. sysv4)
  5731. symcode='[DFNSTU]'
  5732. ;;
  5733. esac
  5734. # If we're using GNU nm, then use its standard symbol codes.
  5735. case `$NM -V 2>&1` in
  5736. *GNU* | *'with BFD'*)
  5737. symcode='[ABCDGIRSTW]' ;;
  5738. esac
  5739. # Transform an extracted symbol line into a proper C declaration.
  5740. # Some systems (esp. on ia64) link data and code symbols differently,
  5741. # so use this general approach.
  5742. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5743. # Transform an extracted symbol line into symbol name and symbol address
  5744. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5745. 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'"
  5746. # Handle CRLF in mingw tool chain
  5747. opt_cr=
  5748. case $build_os in
  5749. mingw*)
  5750. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5751. ;;
  5752. esac
  5753. # Try without a prefix underscore, then with it.
  5754. for ac_symprfx in "" "_"; do
  5755. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5756. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5757. # Write the raw and C identifiers.
  5758. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5759. # Fake it for dumpbin and say T for any non-static function
  5760. # and D for any global variable.
  5761. # Also find C++ and __fastcall symbols from MSVC++,
  5762. # which start with @ or ?.
  5763. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5764. " {last_section=section; section=\$ 3};"\
  5765. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5766. " \$ 0!~/External *\|/{next};"\
  5767. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5768. " {if(hide[section]) next};"\
  5769. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5770. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5771. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5772. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5773. " ' prfx=^$ac_symprfx"
  5774. else
  5775. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5776. fi
  5777. # Check to see that the pipe works correctly.
  5778. pipe_works=no
  5779. rm -f conftest*
  5780. cat > conftest.$ac_ext <<_LT_EOF
  5781. #ifdef __cplusplus
  5782. extern "C" {
  5783. #endif
  5784. char nm_test_var;
  5785. void nm_test_func(void);
  5786. void nm_test_func(void){}
  5787. #ifdef __cplusplus
  5788. }
  5789. #endif
  5790. int main(){nm_test_var='a';nm_test_func();return(0);}
  5791. _LT_EOF
  5792. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5793. (eval $ac_compile) 2>&5
  5794. ac_status=$?
  5795. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5796. (exit $ac_status); }; then
  5797. # Now try to grab the symbols.
  5798. nlist=conftest.nm
  5799. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5800. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5801. ac_status=$?
  5802. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. (exit $ac_status); } && test -s "$nlist"; then
  5804. # Try sorting and uniquifying the output.
  5805. if sort "$nlist" | uniq > "$nlist"T; then
  5806. mv -f "$nlist"T "$nlist"
  5807. else
  5808. rm -f "$nlist"T
  5809. fi
  5810. # Make sure that we snagged all the symbols we need.
  5811. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5812. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5813. cat <<_LT_EOF > conftest.$ac_ext
  5814. #ifdef __cplusplus
  5815. extern "C" {
  5816. #endif
  5817. _LT_EOF
  5818. # Now generate the symbol file.
  5819. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5820. cat <<_LT_EOF >> conftest.$ac_ext
  5821. /* The mapping between symbol names and symbols. */
  5822. const struct {
  5823. const char *name;
  5824. void *address;
  5825. }
  5826. lt__PROGRAM__LTX_preloaded_symbols[] =
  5827. {
  5828. { "@PROGRAM@", (void *) 0 },
  5829. _LT_EOF
  5830. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5831. cat <<\_LT_EOF >> conftest.$ac_ext
  5832. {0, (void *) 0}
  5833. };
  5834. /* This works around a problem in FreeBSD linker */
  5835. #ifdef FREEBSD_WORKAROUND
  5836. static const void *lt_preloaded_setup() {
  5837. return lt__PROGRAM__LTX_preloaded_symbols;
  5838. }
  5839. #endif
  5840. #ifdef __cplusplus
  5841. }
  5842. #endif
  5843. _LT_EOF
  5844. # Now try linking the two files.
  5845. mv conftest.$ac_objext conftstm.$ac_objext
  5846. lt_save_LIBS="$LIBS"
  5847. lt_save_CFLAGS="$CFLAGS"
  5848. LIBS="conftstm.$ac_objext"
  5849. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5850. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5851. (eval $ac_link) 2>&5
  5852. ac_status=$?
  5853. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5854. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5855. pipe_works=yes
  5856. fi
  5857. LIBS="$lt_save_LIBS"
  5858. CFLAGS="$lt_save_CFLAGS"
  5859. else
  5860. echo "cannot find nm_test_func in $nlist" >&5
  5861. fi
  5862. else
  5863. echo "cannot find nm_test_var in $nlist" >&5
  5864. fi
  5865. else
  5866. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5867. fi
  5868. else
  5869. echo "$progname: failed program was:" >&5
  5870. cat conftest.$ac_ext >&5
  5871. fi
  5872. rm -rf conftest* conftst*
  5873. # Do not use the global_symbol_pipe unless it works.
  5874. if test "$pipe_works" = yes; then
  5875. break
  5876. else
  5877. lt_cv_sys_global_symbol_pipe=
  5878. fi
  5879. done
  5880. fi
  5881. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5882. lt_cv_sys_global_symbol_to_cdecl=
  5883. fi
  5884. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5885. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5886. $as_echo "failed" >&6; }
  5887. else
  5888. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5889. $as_echo "ok" >&6; }
  5890. fi
  5891. # Check whether --enable-libtool-lock was given.
  5892. if test "${enable_libtool_lock+set}" = set; then
  5893. enableval=$enable_libtool_lock;
  5894. fi
  5895. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5896. # Some flags need to be propagated to the compiler or linker for good
  5897. # libtool support.
  5898. case $host in
  5899. ia64-*-hpux*)
  5900. # Find out which ABI we are using.
  5901. echo 'int i;' > conftest.$ac_ext
  5902. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5903. (eval $ac_compile) 2>&5
  5904. ac_status=$?
  5905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5906. (exit $ac_status); }; then
  5907. case `/usr/bin/file conftest.$ac_objext` in
  5908. *ELF-32*)
  5909. HPUX_IA64_MODE="32"
  5910. ;;
  5911. *ELF-64*)
  5912. HPUX_IA64_MODE="64"
  5913. ;;
  5914. esac
  5915. fi
  5916. rm -rf conftest*
  5917. ;;
  5918. *-*-irix6*)
  5919. # Find out which ABI we are using.
  5920. echo '#line 6730 "configure"' > conftest.$ac_ext
  5921. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5922. (eval $ac_compile) 2>&5
  5923. ac_status=$?
  5924. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5925. (exit $ac_status); }; then
  5926. if test "$lt_cv_prog_gnu_ld" = yes; then
  5927. case `/usr/bin/file conftest.$ac_objext` in
  5928. *32-bit*)
  5929. LD="${LD-ld} -melf32bsmip"
  5930. ;;
  5931. *N32*)
  5932. LD="${LD-ld} -melf32bmipn32"
  5933. ;;
  5934. *64-bit*)
  5935. LD="${LD-ld} -melf64bmip"
  5936. ;;
  5937. esac
  5938. else
  5939. case `/usr/bin/file conftest.$ac_objext` in
  5940. *32-bit*)
  5941. LD="${LD-ld} -32"
  5942. ;;
  5943. *N32*)
  5944. LD="${LD-ld} -n32"
  5945. ;;
  5946. *64-bit*)
  5947. LD="${LD-ld} -64"
  5948. ;;
  5949. esac
  5950. fi
  5951. fi
  5952. rm -rf conftest*
  5953. ;;
  5954. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5955. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5956. # Find out which ABI we are using.
  5957. echo 'int i;' > conftest.$ac_ext
  5958. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5959. (eval $ac_compile) 2>&5
  5960. ac_status=$?
  5961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5962. (exit $ac_status); }; then
  5963. case `/usr/bin/file conftest.o` in
  5964. *32-bit*)
  5965. case $host in
  5966. x86_64-*kfreebsd*-gnu)
  5967. LD="${LD-ld} -m elf_i386_fbsd"
  5968. ;;
  5969. x86_64-*linux*)
  5970. LD="${LD-ld} -m elf_i386"
  5971. ;;
  5972. ppc64-*linux*|powerpc64-*linux*)
  5973. LD="${LD-ld} -m elf32ppclinux"
  5974. ;;
  5975. s390x-*linux*)
  5976. LD="${LD-ld} -m elf_s390"
  5977. ;;
  5978. sparc64-*linux*)
  5979. LD="${LD-ld} -m elf32_sparc"
  5980. ;;
  5981. esac
  5982. ;;
  5983. *64-bit*)
  5984. case $host in
  5985. x86_64-*kfreebsd*-gnu)
  5986. LD="${LD-ld} -m elf_x86_64_fbsd"
  5987. ;;
  5988. x86_64-*linux*)
  5989. LD="${LD-ld} -m elf_x86_64"
  5990. ;;
  5991. ppc*-*linux*|powerpc*-*linux*)
  5992. LD="${LD-ld} -m elf64ppc"
  5993. ;;
  5994. s390*-*linux*|s390*-*tpf*)
  5995. LD="${LD-ld} -m elf64_s390"
  5996. ;;
  5997. sparc*-*linux*)
  5998. LD="${LD-ld} -m elf64_sparc"
  5999. ;;
  6000. esac
  6001. ;;
  6002. esac
  6003. fi
  6004. rm -rf conftest*
  6005. ;;
  6006. *-*-sco3.2v5*)
  6007. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6008. SAVE_CFLAGS="$CFLAGS"
  6009. CFLAGS="$CFLAGS -belf"
  6010. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6011. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6012. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6013. $as_echo_n "(cached) " >&6
  6014. else
  6015. ac_ext=c
  6016. ac_cpp='$CPP $CPPFLAGS'
  6017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6020. cat >conftest.$ac_ext <<_ACEOF
  6021. /* confdefs.h. */
  6022. _ACEOF
  6023. cat confdefs.h >>conftest.$ac_ext
  6024. cat >>conftest.$ac_ext <<_ACEOF
  6025. /* end confdefs.h. */
  6026. int
  6027. main ()
  6028. {
  6029. ;
  6030. return 0;
  6031. }
  6032. _ACEOF
  6033. rm -f conftest.$ac_objext conftest$ac_exeext
  6034. if { (ac_try="$ac_link"
  6035. case "(($ac_try" in
  6036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6037. *) ac_try_echo=$ac_try;;
  6038. esac
  6039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6040. $as_echo "$ac_try_echo") >&5
  6041. (eval "$ac_link") 2>conftest.er1
  6042. ac_status=$?
  6043. grep -v '^ *+' conftest.er1 >conftest.err
  6044. rm -f conftest.er1
  6045. cat conftest.err >&5
  6046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6047. (exit $ac_status); } && {
  6048. test -z "$ac_c_werror_flag" ||
  6049. test ! -s conftest.err
  6050. } && test -s conftest$ac_exeext && {
  6051. test "$cross_compiling" = yes ||
  6052. $as_test_x conftest$ac_exeext
  6053. }; then
  6054. lt_cv_cc_needs_belf=yes
  6055. else
  6056. $as_echo "$as_me: failed program was:" >&5
  6057. sed 's/^/| /' conftest.$ac_ext >&5
  6058. lt_cv_cc_needs_belf=no
  6059. fi
  6060. rm -rf conftest.dSYM
  6061. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6062. conftest$ac_exeext conftest.$ac_ext
  6063. ac_ext=c
  6064. ac_cpp='$CPP $CPPFLAGS'
  6065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6068. fi
  6069. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6070. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6071. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6072. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6073. CFLAGS="$SAVE_CFLAGS"
  6074. fi
  6075. ;;
  6076. sparc*-*solaris*)
  6077. # Find out which ABI we are using.
  6078. echo 'int i;' > conftest.$ac_ext
  6079. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6080. (eval $ac_compile) 2>&5
  6081. ac_status=$?
  6082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6083. (exit $ac_status); }; then
  6084. case `/usr/bin/file conftest.o` in
  6085. *64-bit*)
  6086. case $lt_cv_prog_gnu_ld in
  6087. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6088. *)
  6089. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6090. LD="${LD-ld} -64"
  6091. fi
  6092. ;;
  6093. esac
  6094. ;;
  6095. esac
  6096. fi
  6097. rm -rf conftest*
  6098. ;;
  6099. esac
  6100. need_locks="$enable_libtool_lock"
  6101. case $host_os in
  6102. rhapsody* | darwin*)
  6103. if test -n "$ac_tool_prefix"; then
  6104. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6105. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6106. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6107. $as_echo_n "checking for $ac_word... " >&6; }
  6108. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6109. $as_echo_n "(cached) " >&6
  6110. else
  6111. if test -n "$DSYMUTIL"; then
  6112. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6113. else
  6114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6115. for as_dir in $PATH
  6116. do
  6117. IFS=$as_save_IFS
  6118. test -z "$as_dir" && as_dir=.
  6119. for ac_exec_ext in '' $ac_executable_extensions; do
  6120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6121. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6122. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6123. break 2
  6124. fi
  6125. done
  6126. done
  6127. IFS=$as_save_IFS
  6128. fi
  6129. fi
  6130. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6131. if test -n "$DSYMUTIL"; then
  6132. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6133. $as_echo "$DSYMUTIL" >&6; }
  6134. else
  6135. { $as_echo "$as_me:$LINENO: result: no" >&5
  6136. $as_echo "no" >&6; }
  6137. fi
  6138. fi
  6139. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6140. ac_ct_DSYMUTIL=$DSYMUTIL
  6141. # Extract the first word of "dsymutil", so it can be a program name with args.
  6142. set dummy dsymutil; ac_word=$2
  6143. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6144. $as_echo_n "checking for $ac_word... " >&6; }
  6145. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. if test -n "$ac_ct_DSYMUTIL"; then
  6149. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6150. else
  6151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6152. for as_dir in $PATH
  6153. do
  6154. IFS=$as_save_IFS
  6155. test -z "$as_dir" && as_dir=.
  6156. for ac_exec_ext in '' $ac_executable_extensions; do
  6157. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6158. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6159. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6160. break 2
  6161. fi
  6162. done
  6163. done
  6164. IFS=$as_save_IFS
  6165. fi
  6166. fi
  6167. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6168. if test -n "$ac_ct_DSYMUTIL"; then
  6169. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6170. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6171. else
  6172. { $as_echo "$as_me:$LINENO: result: no" >&5
  6173. $as_echo "no" >&6; }
  6174. fi
  6175. if test "x$ac_ct_DSYMUTIL" = x; then
  6176. DSYMUTIL=":"
  6177. else
  6178. case $cross_compiling:$ac_tool_warned in
  6179. yes:)
  6180. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6181. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6182. ac_tool_warned=yes ;;
  6183. esac
  6184. DSYMUTIL=$ac_ct_DSYMUTIL
  6185. fi
  6186. else
  6187. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6188. fi
  6189. if test -n "$ac_tool_prefix"; then
  6190. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6191. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6192. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6193. $as_echo_n "checking for $ac_word... " >&6; }
  6194. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6195. $as_echo_n "(cached) " >&6
  6196. else
  6197. if test -n "$NMEDIT"; then
  6198. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6199. else
  6200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6201. for as_dir in $PATH
  6202. do
  6203. IFS=$as_save_IFS
  6204. test -z "$as_dir" && as_dir=.
  6205. for ac_exec_ext in '' $ac_executable_extensions; do
  6206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6207. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6208. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6209. break 2
  6210. fi
  6211. done
  6212. done
  6213. IFS=$as_save_IFS
  6214. fi
  6215. fi
  6216. NMEDIT=$ac_cv_prog_NMEDIT
  6217. if test -n "$NMEDIT"; then
  6218. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6219. $as_echo "$NMEDIT" >&6; }
  6220. else
  6221. { $as_echo "$as_me:$LINENO: result: no" >&5
  6222. $as_echo "no" >&6; }
  6223. fi
  6224. fi
  6225. if test -z "$ac_cv_prog_NMEDIT"; then
  6226. ac_ct_NMEDIT=$NMEDIT
  6227. # Extract the first word of "nmedit", so it can be a program name with args.
  6228. set dummy nmedit; ac_word=$2
  6229. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6230. $as_echo_n "checking for $ac_word... " >&6; }
  6231. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6232. $as_echo_n "(cached) " >&6
  6233. else
  6234. if test -n "$ac_ct_NMEDIT"; then
  6235. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6236. else
  6237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6238. for as_dir in $PATH
  6239. do
  6240. IFS=$as_save_IFS
  6241. test -z "$as_dir" && as_dir=.
  6242. for ac_exec_ext in '' $ac_executable_extensions; do
  6243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6244. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6245. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6246. break 2
  6247. fi
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. fi
  6252. fi
  6253. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6254. if test -n "$ac_ct_NMEDIT"; then
  6255. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6256. $as_echo "$ac_ct_NMEDIT" >&6; }
  6257. else
  6258. { $as_echo "$as_me:$LINENO: result: no" >&5
  6259. $as_echo "no" >&6; }
  6260. fi
  6261. if test "x$ac_ct_NMEDIT" = x; then
  6262. NMEDIT=":"
  6263. else
  6264. case $cross_compiling:$ac_tool_warned in
  6265. yes:)
  6266. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6267. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6268. ac_tool_warned=yes ;;
  6269. esac
  6270. NMEDIT=$ac_ct_NMEDIT
  6271. fi
  6272. else
  6273. NMEDIT="$ac_cv_prog_NMEDIT"
  6274. fi
  6275. if test -n "$ac_tool_prefix"; then
  6276. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6277. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6278. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6279. $as_echo_n "checking for $ac_word... " >&6; }
  6280. if test "${ac_cv_prog_LIPO+set}" = set; then
  6281. $as_echo_n "(cached) " >&6
  6282. else
  6283. if test -n "$LIPO"; then
  6284. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6285. else
  6286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6287. for as_dir in $PATH
  6288. do
  6289. IFS=$as_save_IFS
  6290. test -z "$as_dir" && as_dir=.
  6291. for ac_exec_ext in '' $ac_executable_extensions; do
  6292. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6293. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6294. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6295. break 2
  6296. fi
  6297. done
  6298. done
  6299. IFS=$as_save_IFS
  6300. fi
  6301. fi
  6302. LIPO=$ac_cv_prog_LIPO
  6303. if test -n "$LIPO"; then
  6304. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6305. $as_echo "$LIPO" >&6; }
  6306. else
  6307. { $as_echo "$as_me:$LINENO: result: no" >&5
  6308. $as_echo "no" >&6; }
  6309. fi
  6310. fi
  6311. if test -z "$ac_cv_prog_LIPO"; then
  6312. ac_ct_LIPO=$LIPO
  6313. # Extract the first word of "lipo", so it can be a program name with args.
  6314. set dummy lipo; ac_word=$2
  6315. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6316. $as_echo_n "checking for $ac_word... " >&6; }
  6317. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6318. $as_echo_n "(cached) " >&6
  6319. else
  6320. if test -n "$ac_ct_LIPO"; then
  6321. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6322. else
  6323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6324. for as_dir in $PATH
  6325. do
  6326. IFS=$as_save_IFS
  6327. test -z "$as_dir" && as_dir=.
  6328. for ac_exec_ext in '' $ac_executable_extensions; do
  6329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6330. ac_cv_prog_ac_ct_LIPO="lipo"
  6331. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6332. break 2
  6333. fi
  6334. done
  6335. done
  6336. IFS=$as_save_IFS
  6337. fi
  6338. fi
  6339. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6340. if test -n "$ac_ct_LIPO"; then
  6341. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6342. $as_echo "$ac_ct_LIPO" >&6; }
  6343. else
  6344. { $as_echo "$as_me:$LINENO: result: no" >&5
  6345. $as_echo "no" >&6; }
  6346. fi
  6347. if test "x$ac_ct_LIPO" = x; then
  6348. LIPO=":"
  6349. else
  6350. case $cross_compiling:$ac_tool_warned in
  6351. yes:)
  6352. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6353. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6354. ac_tool_warned=yes ;;
  6355. esac
  6356. LIPO=$ac_ct_LIPO
  6357. fi
  6358. else
  6359. LIPO="$ac_cv_prog_LIPO"
  6360. fi
  6361. if test -n "$ac_tool_prefix"; then
  6362. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6363. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6364. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6365. $as_echo_n "checking for $ac_word... " >&6; }
  6366. if test "${ac_cv_prog_OTOOL+set}" = set; then
  6367. $as_echo_n "(cached) " >&6
  6368. else
  6369. if test -n "$OTOOL"; then
  6370. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6371. else
  6372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6373. for as_dir in $PATH
  6374. do
  6375. IFS=$as_save_IFS
  6376. test -z "$as_dir" && as_dir=.
  6377. for ac_exec_ext in '' $ac_executable_extensions; do
  6378. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6379. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6380. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6381. break 2
  6382. fi
  6383. done
  6384. done
  6385. IFS=$as_save_IFS
  6386. fi
  6387. fi
  6388. OTOOL=$ac_cv_prog_OTOOL
  6389. if test -n "$OTOOL"; then
  6390. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6391. $as_echo "$OTOOL" >&6; }
  6392. else
  6393. { $as_echo "$as_me:$LINENO: result: no" >&5
  6394. $as_echo "no" >&6; }
  6395. fi
  6396. fi
  6397. if test -z "$ac_cv_prog_OTOOL"; then
  6398. ac_ct_OTOOL=$OTOOL
  6399. # Extract the first word of "otool", so it can be a program name with args.
  6400. set dummy otool; ac_word=$2
  6401. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6402. $as_echo_n "checking for $ac_word... " >&6; }
  6403. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6404. $as_echo_n "(cached) " >&6
  6405. else
  6406. if test -n "$ac_ct_OTOOL"; then
  6407. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6408. else
  6409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6410. for as_dir in $PATH
  6411. do
  6412. IFS=$as_save_IFS
  6413. test -z "$as_dir" && as_dir=.
  6414. for ac_exec_ext in '' $ac_executable_extensions; do
  6415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6416. ac_cv_prog_ac_ct_OTOOL="otool"
  6417. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6418. break 2
  6419. fi
  6420. done
  6421. done
  6422. IFS=$as_save_IFS
  6423. fi
  6424. fi
  6425. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6426. if test -n "$ac_ct_OTOOL"; then
  6427. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6428. $as_echo "$ac_ct_OTOOL" >&6; }
  6429. else
  6430. { $as_echo "$as_me:$LINENO: result: no" >&5
  6431. $as_echo "no" >&6; }
  6432. fi
  6433. if test "x$ac_ct_OTOOL" = x; then
  6434. OTOOL=":"
  6435. else
  6436. case $cross_compiling:$ac_tool_warned in
  6437. yes:)
  6438. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6439. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6440. ac_tool_warned=yes ;;
  6441. esac
  6442. OTOOL=$ac_ct_OTOOL
  6443. fi
  6444. else
  6445. OTOOL="$ac_cv_prog_OTOOL"
  6446. fi
  6447. if test -n "$ac_tool_prefix"; then
  6448. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6449. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6450. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6451. $as_echo_n "checking for $ac_word... " >&6; }
  6452. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. if test -n "$OTOOL64"; then
  6456. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6457. else
  6458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6459. for as_dir in $PATH
  6460. do
  6461. IFS=$as_save_IFS
  6462. test -z "$as_dir" && as_dir=.
  6463. for ac_exec_ext in '' $ac_executable_extensions; do
  6464. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6465. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6466. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6467. break 2
  6468. fi
  6469. done
  6470. done
  6471. IFS=$as_save_IFS
  6472. fi
  6473. fi
  6474. OTOOL64=$ac_cv_prog_OTOOL64
  6475. if test -n "$OTOOL64"; then
  6476. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6477. $as_echo "$OTOOL64" >&6; }
  6478. else
  6479. { $as_echo "$as_me:$LINENO: result: no" >&5
  6480. $as_echo "no" >&6; }
  6481. fi
  6482. fi
  6483. if test -z "$ac_cv_prog_OTOOL64"; then
  6484. ac_ct_OTOOL64=$OTOOL64
  6485. # Extract the first word of "otool64", so it can be a program name with args.
  6486. set dummy otool64; ac_word=$2
  6487. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6488. $as_echo_n "checking for $ac_word... " >&6; }
  6489. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. if test -n "$ac_ct_OTOOL64"; then
  6493. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6494. else
  6495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6496. for as_dir in $PATH
  6497. do
  6498. IFS=$as_save_IFS
  6499. test -z "$as_dir" && as_dir=.
  6500. for ac_exec_ext in '' $ac_executable_extensions; do
  6501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6502. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6503. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6504. break 2
  6505. fi
  6506. done
  6507. done
  6508. IFS=$as_save_IFS
  6509. fi
  6510. fi
  6511. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6512. if test -n "$ac_ct_OTOOL64"; then
  6513. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6514. $as_echo "$ac_ct_OTOOL64" >&6; }
  6515. else
  6516. { $as_echo "$as_me:$LINENO: result: no" >&5
  6517. $as_echo "no" >&6; }
  6518. fi
  6519. if test "x$ac_ct_OTOOL64" = x; then
  6520. OTOOL64=":"
  6521. else
  6522. case $cross_compiling:$ac_tool_warned in
  6523. yes:)
  6524. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6525. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6526. ac_tool_warned=yes ;;
  6527. esac
  6528. OTOOL64=$ac_ct_OTOOL64
  6529. fi
  6530. else
  6531. OTOOL64="$ac_cv_prog_OTOOL64"
  6532. fi
  6533. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6534. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6535. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6536. $as_echo_n "(cached) " >&6
  6537. else
  6538. lt_cv_apple_cc_single_mod=no
  6539. if test -z "${LT_MULTI_MODULE}"; then
  6540. # By default we will add the -single_module flag. You can override
  6541. # by either setting the environment variable LT_MULTI_MODULE
  6542. # non-empty at configure time, or by adding -multi_module to the
  6543. # link flags.
  6544. rm -rf libconftest.dylib*
  6545. echo "int foo(void){return 1;}" > conftest.c
  6546. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6547. -dynamiclib -Wl,-single_module conftest.c" >&5
  6548. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6549. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6550. _lt_result=$?
  6551. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6552. lt_cv_apple_cc_single_mod=yes
  6553. else
  6554. cat conftest.err >&5
  6555. fi
  6556. rm -rf libconftest.dylib*
  6557. rm -f conftest.*
  6558. fi
  6559. fi
  6560. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6561. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6562. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6563. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6564. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6565. $as_echo_n "(cached) " >&6
  6566. else
  6567. lt_cv_ld_exported_symbols_list=no
  6568. save_LDFLAGS=$LDFLAGS
  6569. echo "_main" > conftest.sym
  6570. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6571. cat >conftest.$ac_ext <<_ACEOF
  6572. /* confdefs.h. */
  6573. _ACEOF
  6574. cat confdefs.h >>conftest.$ac_ext
  6575. cat >>conftest.$ac_ext <<_ACEOF
  6576. /* end confdefs.h. */
  6577. int
  6578. main ()
  6579. {
  6580. ;
  6581. return 0;
  6582. }
  6583. _ACEOF
  6584. rm -f conftest.$ac_objext conftest$ac_exeext
  6585. if { (ac_try="$ac_link"
  6586. case "(($ac_try" in
  6587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6588. *) ac_try_echo=$ac_try;;
  6589. esac
  6590. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6591. $as_echo "$ac_try_echo") >&5
  6592. (eval "$ac_link") 2>conftest.er1
  6593. ac_status=$?
  6594. grep -v '^ *+' conftest.er1 >conftest.err
  6595. rm -f conftest.er1
  6596. cat conftest.err >&5
  6597. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6598. (exit $ac_status); } && {
  6599. test -z "$ac_c_werror_flag" ||
  6600. test ! -s conftest.err
  6601. } && test -s conftest$ac_exeext && {
  6602. test "$cross_compiling" = yes ||
  6603. $as_test_x conftest$ac_exeext
  6604. }; then
  6605. lt_cv_ld_exported_symbols_list=yes
  6606. else
  6607. $as_echo "$as_me: failed program was:" >&5
  6608. sed 's/^/| /' conftest.$ac_ext >&5
  6609. lt_cv_ld_exported_symbols_list=no
  6610. fi
  6611. rm -rf conftest.dSYM
  6612. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6613. conftest$ac_exeext conftest.$ac_ext
  6614. LDFLAGS="$save_LDFLAGS"
  6615. fi
  6616. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6617. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6618. case $host_os in
  6619. rhapsody* | darwin1.[012])
  6620. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6621. darwin1.*)
  6622. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6623. darwin*) # darwin 5.x on
  6624. # if running on 10.5 or later, the deployment target defaults
  6625. # to the OS version, if on x86, and 10.4, the deployment
  6626. # target defaults to 10.4. Don't you love it?
  6627. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6628. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6629. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6630. 10.[012]*)
  6631. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6632. 10.*)
  6633. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6634. esac
  6635. ;;
  6636. esac
  6637. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6638. _lt_dar_single_mod='$single_module'
  6639. fi
  6640. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6641. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6642. else
  6643. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6644. fi
  6645. if test "$DSYMUTIL" != ":"; then
  6646. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6647. else
  6648. _lt_dsymutil=
  6649. fi
  6650. ;;
  6651. esac
  6652. ac_ext=c
  6653. ac_cpp='$CPP $CPPFLAGS'
  6654. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6655. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6656. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6657. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6658. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6659. # On Suns, sometimes $CPP names a directory.
  6660. if test -n "$CPP" && test -d "$CPP"; then
  6661. CPP=
  6662. fi
  6663. if test -z "$CPP"; then
  6664. if test "${ac_cv_prog_CPP+set}" = set; then
  6665. $as_echo_n "(cached) " >&6
  6666. else
  6667. # Double quotes because CPP needs to be expanded
  6668. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6669. do
  6670. ac_preproc_ok=false
  6671. for ac_c_preproc_warn_flag in '' yes
  6672. do
  6673. # Use a header file that comes with gcc, so configuring glibc
  6674. # with a fresh cross-compiler works.
  6675. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6676. # <limits.h> exists even on freestanding compilers.
  6677. # On the NeXT, cc -E runs the code through the compiler's parser,
  6678. # not just through cpp. "Syntax error" is here to catch this case.
  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. #ifdef __STDC__
  6686. # include <limits.h>
  6687. #else
  6688. # include <assert.h>
  6689. #endif
  6690. Syntax error
  6691. _ACEOF
  6692. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6693. case "(($ac_try" in
  6694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6695. *) ac_try_echo=$ac_try;;
  6696. esac
  6697. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6698. $as_echo "$ac_try_echo") >&5
  6699. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6700. ac_status=$?
  6701. grep -v '^ *+' conftest.er1 >conftest.err
  6702. rm -f conftest.er1
  6703. cat conftest.err >&5
  6704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6705. (exit $ac_status); } >/dev/null && {
  6706. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6707. test ! -s conftest.err
  6708. }; then
  6709. :
  6710. else
  6711. $as_echo "$as_me: failed program was:" >&5
  6712. sed 's/^/| /' conftest.$ac_ext >&5
  6713. # Broken: fails on valid input.
  6714. continue
  6715. fi
  6716. rm -f conftest.err conftest.$ac_ext
  6717. # OK, works on sane cases. Now check whether nonexistent headers
  6718. # can be detected and how.
  6719. cat >conftest.$ac_ext <<_ACEOF
  6720. /* confdefs.h. */
  6721. _ACEOF
  6722. cat confdefs.h >>conftest.$ac_ext
  6723. cat >>conftest.$ac_ext <<_ACEOF
  6724. /* end confdefs.h. */
  6725. #include <ac_nonexistent.h>
  6726. _ACEOF
  6727. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6728. case "(($ac_try" in
  6729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6730. *) ac_try_echo=$ac_try;;
  6731. esac
  6732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6733. $as_echo "$ac_try_echo") >&5
  6734. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6735. ac_status=$?
  6736. grep -v '^ *+' conftest.er1 >conftest.err
  6737. rm -f conftest.er1
  6738. cat conftest.err >&5
  6739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6740. (exit $ac_status); } >/dev/null && {
  6741. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6742. test ! -s conftest.err
  6743. }; then
  6744. # Broken: success on invalid input.
  6745. continue
  6746. else
  6747. $as_echo "$as_me: failed program was:" >&5
  6748. sed 's/^/| /' conftest.$ac_ext >&5
  6749. # Passes both tests.
  6750. ac_preproc_ok=:
  6751. break
  6752. fi
  6753. rm -f conftest.err conftest.$ac_ext
  6754. done
  6755. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6756. rm -f conftest.err conftest.$ac_ext
  6757. if $ac_preproc_ok; then
  6758. break
  6759. fi
  6760. done
  6761. ac_cv_prog_CPP=$CPP
  6762. fi
  6763. CPP=$ac_cv_prog_CPP
  6764. else
  6765. ac_cv_prog_CPP=$CPP
  6766. fi
  6767. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6768. $as_echo "$CPP" >&6; }
  6769. ac_preproc_ok=false
  6770. for ac_c_preproc_warn_flag in '' yes
  6771. do
  6772. # Use a header file that comes with gcc, so configuring glibc
  6773. # with a fresh cross-compiler works.
  6774. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6775. # <limits.h> exists even on freestanding compilers.
  6776. # On the NeXT, cc -E runs the code through the compiler's parser,
  6777. # not just through cpp. "Syntax error" is here to catch this case.
  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. #ifdef __STDC__
  6785. # include <limits.h>
  6786. #else
  6787. # include <assert.h>
  6788. #endif
  6789. Syntax error
  6790. _ACEOF
  6791. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6792. case "(($ac_try" in
  6793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6794. *) ac_try_echo=$ac_try;;
  6795. esac
  6796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6797. $as_echo "$ac_try_echo") >&5
  6798. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6799. ac_status=$?
  6800. grep -v '^ *+' conftest.er1 >conftest.err
  6801. rm -f conftest.er1
  6802. cat conftest.err >&5
  6803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); } >/dev/null && {
  6805. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6806. test ! -s conftest.err
  6807. }; then
  6808. :
  6809. else
  6810. $as_echo "$as_me: failed program was:" >&5
  6811. sed 's/^/| /' conftest.$ac_ext >&5
  6812. # Broken: fails on valid input.
  6813. continue
  6814. fi
  6815. rm -f conftest.err conftest.$ac_ext
  6816. # OK, works on sane cases. Now check whether nonexistent headers
  6817. # can be detected and how.
  6818. cat >conftest.$ac_ext <<_ACEOF
  6819. /* confdefs.h. */
  6820. _ACEOF
  6821. cat confdefs.h >>conftest.$ac_ext
  6822. cat >>conftest.$ac_ext <<_ACEOF
  6823. /* end confdefs.h. */
  6824. #include <ac_nonexistent.h>
  6825. _ACEOF
  6826. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6827. case "(($ac_try" in
  6828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6829. *) ac_try_echo=$ac_try;;
  6830. esac
  6831. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6832. $as_echo "$ac_try_echo") >&5
  6833. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6834. ac_status=$?
  6835. grep -v '^ *+' conftest.er1 >conftest.err
  6836. rm -f conftest.er1
  6837. cat conftest.err >&5
  6838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6839. (exit $ac_status); } >/dev/null && {
  6840. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6841. test ! -s conftest.err
  6842. }; then
  6843. # Broken: success on invalid input.
  6844. continue
  6845. else
  6846. $as_echo "$as_me: failed program was:" >&5
  6847. sed 's/^/| /' conftest.$ac_ext >&5
  6848. # Passes both tests.
  6849. ac_preproc_ok=:
  6850. break
  6851. fi
  6852. rm -f conftest.err conftest.$ac_ext
  6853. done
  6854. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6855. rm -f conftest.err conftest.$ac_ext
  6856. if $ac_preproc_ok; then
  6857. :
  6858. else
  6859. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6860. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6861. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6862. See \`config.log' for more details." >&5
  6863. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6864. See \`config.log' for more details." >&2;}
  6865. { (exit 1); exit 1; }; }; }
  6866. fi
  6867. ac_ext=c
  6868. ac_cpp='$CPP $CPPFLAGS'
  6869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6872. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6873. $as_echo_n "checking for ANSI C header files... " >&6; }
  6874. if test "${ac_cv_header_stdc+set}" = set; then
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. cat >conftest.$ac_ext <<_ACEOF
  6878. /* confdefs.h. */
  6879. _ACEOF
  6880. cat confdefs.h >>conftest.$ac_ext
  6881. cat >>conftest.$ac_ext <<_ACEOF
  6882. /* end confdefs.h. */
  6883. #include <stdlib.h>
  6884. #include <stdarg.h>
  6885. #include <string.h>
  6886. #include <float.h>
  6887. int
  6888. main ()
  6889. {
  6890. ;
  6891. return 0;
  6892. }
  6893. _ACEOF
  6894. rm -f conftest.$ac_objext
  6895. if { (ac_try="$ac_compile"
  6896. case "(($ac_try" in
  6897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6898. *) ac_try_echo=$ac_try;;
  6899. esac
  6900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6901. $as_echo "$ac_try_echo") >&5
  6902. (eval "$ac_compile") 2>conftest.er1
  6903. ac_status=$?
  6904. grep -v '^ *+' conftest.er1 >conftest.err
  6905. rm -f conftest.er1
  6906. cat conftest.err >&5
  6907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6908. (exit $ac_status); } && {
  6909. test -z "$ac_c_werror_flag" ||
  6910. test ! -s conftest.err
  6911. } && test -s conftest.$ac_objext; then
  6912. ac_cv_header_stdc=yes
  6913. else
  6914. $as_echo "$as_me: failed program was:" >&5
  6915. sed 's/^/| /' conftest.$ac_ext >&5
  6916. ac_cv_header_stdc=no
  6917. fi
  6918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6919. if test $ac_cv_header_stdc = yes; then
  6920. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6921. cat >conftest.$ac_ext <<_ACEOF
  6922. /* confdefs.h. */
  6923. _ACEOF
  6924. cat confdefs.h >>conftest.$ac_ext
  6925. cat >>conftest.$ac_ext <<_ACEOF
  6926. /* end confdefs.h. */
  6927. #include <string.h>
  6928. _ACEOF
  6929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6930. $EGREP "memchr" >/dev/null 2>&1; then
  6931. :
  6932. else
  6933. ac_cv_header_stdc=no
  6934. fi
  6935. rm -f conftest*
  6936. fi
  6937. if test $ac_cv_header_stdc = yes; then
  6938. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6939. cat >conftest.$ac_ext <<_ACEOF
  6940. /* confdefs.h. */
  6941. _ACEOF
  6942. cat confdefs.h >>conftest.$ac_ext
  6943. cat >>conftest.$ac_ext <<_ACEOF
  6944. /* end confdefs.h. */
  6945. #include <stdlib.h>
  6946. _ACEOF
  6947. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6948. $EGREP "free" >/dev/null 2>&1; then
  6949. :
  6950. else
  6951. ac_cv_header_stdc=no
  6952. fi
  6953. rm -f conftest*
  6954. fi
  6955. if test $ac_cv_header_stdc = yes; then
  6956. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6957. if test "$cross_compiling" = yes; then
  6958. :
  6959. else
  6960. cat >conftest.$ac_ext <<_ACEOF
  6961. /* confdefs.h. */
  6962. _ACEOF
  6963. cat confdefs.h >>conftest.$ac_ext
  6964. cat >>conftest.$ac_ext <<_ACEOF
  6965. /* end confdefs.h. */
  6966. #include <ctype.h>
  6967. #include <stdlib.h>
  6968. #if ((' ' & 0x0FF) == 0x020)
  6969. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6970. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6971. #else
  6972. # define ISLOWER(c) \
  6973. (('a' <= (c) && (c) <= 'i') \
  6974. || ('j' <= (c) && (c) <= 'r') \
  6975. || ('s' <= (c) && (c) <= 'z'))
  6976. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6977. #endif
  6978. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6979. int
  6980. main ()
  6981. {
  6982. int i;
  6983. for (i = 0; i < 256; i++)
  6984. if (XOR (islower (i), ISLOWER (i))
  6985. || toupper (i) != TOUPPER (i))
  6986. return 2;
  6987. return 0;
  6988. }
  6989. _ACEOF
  6990. rm -f conftest$ac_exeext
  6991. if { (ac_try="$ac_link"
  6992. case "(($ac_try" in
  6993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6994. *) ac_try_echo=$ac_try;;
  6995. esac
  6996. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6997. $as_echo "$ac_try_echo") >&5
  6998. (eval "$ac_link") 2>&5
  6999. ac_status=$?
  7000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7001. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7002. { (case "(($ac_try" in
  7003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7004. *) ac_try_echo=$ac_try;;
  7005. esac
  7006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7007. $as_echo "$ac_try_echo") >&5
  7008. (eval "$ac_try") 2>&5
  7009. ac_status=$?
  7010. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7011. (exit $ac_status); }; }; then
  7012. :
  7013. else
  7014. $as_echo "$as_me: program exited with status $ac_status" >&5
  7015. $as_echo "$as_me: failed program was:" >&5
  7016. sed 's/^/| /' conftest.$ac_ext >&5
  7017. ( exit $ac_status )
  7018. ac_cv_header_stdc=no
  7019. fi
  7020. rm -rf conftest.dSYM
  7021. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7022. fi
  7023. fi
  7024. fi
  7025. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7026. $as_echo "$ac_cv_header_stdc" >&6; }
  7027. if test $ac_cv_header_stdc = yes; then
  7028. cat >>confdefs.h <<\_ACEOF
  7029. #define STDC_HEADERS 1
  7030. _ACEOF
  7031. fi
  7032. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7033. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7034. inttypes.h stdint.h unistd.h
  7035. do
  7036. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7037. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7038. $as_echo_n "checking for $ac_header... " >&6; }
  7039. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7040. $as_echo_n "(cached) " >&6
  7041. else
  7042. cat >conftest.$ac_ext <<_ACEOF
  7043. /* confdefs.h. */
  7044. _ACEOF
  7045. cat confdefs.h >>conftest.$ac_ext
  7046. cat >>conftest.$ac_ext <<_ACEOF
  7047. /* end confdefs.h. */
  7048. $ac_includes_default
  7049. #include <$ac_header>
  7050. _ACEOF
  7051. rm -f conftest.$ac_objext
  7052. if { (ac_try="$ac_compile"
  7053. case "(($ac_try" in
  7054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7055. *) ac_try_echo=$ac_try;;
  7056. esac
  7057. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7058. $as_echo "$ac_try_echo") >&5
  7059. (eval "$ac_compile") 2>conftest.er1
  7060. ac_status=$?
  7061. grep -v '^ *+' conftest.er1 >conftest.err
  7062. rm -f conftest.er1
  7063. cat conftest.err >&5
  7064. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7065. (exit $ac_status); } && {
  7066. test -z "$ac_c_werror_flag" ||
  7067. test ! -s conftest.err
  7068. } && test -s conftest.$ac_objext; then
  7069. eval "$as_ac_Header=yes"
  7070. else
  7071. $as_echo "$as_me: failed program was:" >&5
  7072. sed 's/^/| /' conftest.$ac_ext >&5
  7073. eval "$as_ac_Header=no"
  7074. fi
  7075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7076. fi
  7077. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7078. $as_echo "$as_val"'`
  7079. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7080. $as_echo "$ac_res" >&6; }
  7081. as_val=`eval 'as_val=${'$as_ac_Header'}
  7082. $as_echo "$as_val"'`
  7083. if test "x$as_val" = x""yes; then
  7084. cat >>confdefs.h <<_ACEOF
  7085. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7086. _ACEOF
  7087. fi
  7088. done
  7089. for ac_header in dlfcn.h
  7090. do
  7091. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7092. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7093. $as_echo_n "checking for $ac_header... " >&6; }
  7094. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7095. $as_echo_n "(cached) " >&6
  7096. else
  7097. cat >conftest.$ac_ext <<_ACEOF
  7098. /* confdefs.h. */
  7099. _ACEOF
  7100. cat confdefs.h >>conftest.$ac_ext
  7101. cat >>conftest.$ac_ext <<_ACEOF
  7102. /* end confdefs.h. */
  7103. $ac_includes_default
  7104. #include <$ac_header>
  7105. _ACEOF
  7106. rm -f conftest.$ac_objext
  7107. if { (ac_try="$ac_compile"
  7108. case "(($ac_try" in
  7109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7110. *) ac_try_echo=$ac_try;;
  7111. esac
  7112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7113. $as_echo "$ac_try_echo") >&5
  7114. (eval "$ac_compile") 2>conftest.er1
  7115. ac_status=$?
  7116. grep -v '^ *+' conftest.er1 >conftest.err
  7117. rm -f conftest.er1
  7118. cat conftest.err >&5
  7119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7120. (exit $ac_status); } && {
  7121. test -z "$ac_c_werror_flag" ||
  7122. test ! -s conftest.err
  7123. } && test -s conftest.$ac_objext; then
  7124. eval "$as_ac_Header=yes"
  7125. else
  7126. $as_echo "$as_me: failed program was:" >&5
  7127. sed 's/^/| /' conftest.$ac_ext >&5
  7128. eval "$as_ac_Header=no"
  7129. fi
  7130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7131. fi
  7132. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7133. $as_echo "$as_val"'`
  7134. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7135. $as_echo "$ac_res" >&6; }
  7136. as_val=`eval 'as_val=${'$as_ac_Header'}
  7137. $as_echo "$as_val"'`
  7138. if test "x$as_val" = x""yes; then
  7139. cat >>confdefs.h <<_ACEOF
  7140. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7141. _ACEOF
  7142. fi
  7143. done
  7144. ac_ext=cpp
  7145. ac_cpp='$CXXCPP $CPPFLAGS'
  7146. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7147. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7148. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7149. if test -z "$CXX"; then
  7150. if test -n "$CCC"; then
  7151. CXX=$CCC
  7152. else
  7153. if test -n "$ac_tool_prefix"; then
  7154. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7155. do
  7156. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7157. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7158. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7159. $as_echo_n "checking for $ac_word... " >&6; }
  7160. if test "${ac_cv_prog_CXX+set}" = set; then
  7161. $as_echo_n "(cached) " >&6
  7162. else
  7163. if test -n "$CXX"; then
  7164. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7165. else
  7166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7167. for as_dir in $PATH
  7168. do
  7169. IFS=$as_save_IFS
  7170. test -z "$as_dir" && as_dir=.
  7171. for ac_exec_ext in '' $ac_executable_extensions; do
  7172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7173. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7174. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7175. break 2
  7176. fi
  7177. done
  7178. done
  7179. IFS=$as_save_IFS
  7180. fi
  7181. fi
  7182. CXX=$ac_cv_prog_CXX
  7183. if test -n "$CXX"; then
  7184. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  7185. $as_echo "$CXX" >&6; }
  7186. else
  7187. { $as_echo "$as_me:$LINENO: result: no" >&5
  7188. $as_echo "no" >&6; }
  7189. fi
  7190. test -n "$CXX" && break
  7191. done
  7192. fi
  7193. if test -z "$CXX"; then
  7194. ac_ct_CXX=$CXX
  7195. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7196. do
  7197. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7198. set dummy $ac_prog; ac_word=$2
  7199. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7200. $as_echo_n "checking for $ac_word... " >&6; }
  7201. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  7202. $as_echo_n "(cached) " >&6
  7203. else
  7204. if test -n "$ac_ct_CXX"; then
  7205. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7206. else
  7207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7208. for as_dir in $PATH
  7209. do
  7210. IFS=$as_save_IFS
  7211. test -z "$as_dir" && as_dir=.
  7212. for ac_exec_ext in '' $ac_executable_extensions; do
  7213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7214. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7215. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7216. break 2
  7217. fi
  7218. done
  7219. done
  7220. IFS=$as_save_IFS
  7221. fi
  7222. fi
  7223. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7224. if test -n "$ac_ct_CXX"; then
  7225. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  7226. $as_echo "$ac_ct_CXX" >&6; }
  7227. else
  7228. { $as_echo "$as_me:$LINENO: result: no" >&5
  7229. $as_echo "no" >&6; }
  7230. fi
  7231. test -n "$ac_ct_CXX" && break
  7232. done
  7233. if test "x$ac_ct_CXX" = x; then
  7234. CXX="g++"
  7235. else
  7236. case $cross_compiling:$ac_tool_warned in
  7237. yes:)
  7238. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7239. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7240. ac_tool_warned=yes ;;
  7241. esac
  7242. CXX=$ac_ct_CXX
  7243. fi
  7244. fi
  7245. fi
  7246. fi
  7247. # Provide some information about the compiler.
  7248. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  7249. set X $ac_compile
  7250. ac_compiler=$2
  7251. { (ac_try="$ac_compiler --version >&5"
  7252. case "(($ac_try" in
  7253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7254. *) ac_try_echo=$ac_try;;
  7255. esac
  7256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7257. $as_echo "$ac_try_echo") >&5
  7258. (eval "$ac_compiler --version >&5") 2>&5
  7259. ac_status=$?
  7260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7261. (exit $ac_status); }
  7262. { (ac_try="$ac_compiler -v >&5"
  7263. case "(($ac_try" in
  7264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7265. *) ac_try_echo=$ac_try;;
  7266. esac
  7267. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7268. $as_echo "$ac_try_echo") >&5
  7269. (eval "$ac_compiler -v >&5") 2>&5
  7270. ac_status=$?
  7271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7272. (exit $ac_status); }
  7273. { (ac_try="$ac_compiler -V >&5"
  7274. case "(($ac_try" in
  7275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7276. *) ac_try_echo=$ac_try;;
  7277. esac
  7278. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7279. $as_echo "$ac_try_echo") >&5
  7280. (eval "$ac_compiler -V >&5") 2>&5
  7281. ac_status=$?
  7282. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7283. (exit $ac_status); }
  7284. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  7285. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7286. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  7287. $as_echo_n "(cached) " >&6
  7288. else
  7289. cat >conftest.$ac_ext <<_ACEOF
  7290. /* confdefs.h. */
  7291. _ACEOF
  7292. cat confdefs.h >>conftest.$ac_ext
  7293. cat >>conftest.$ac_ext <<_ACEOF
  7294. /* end confdefs.h. */
  7295. int
  7296. main ()
  7297. {
  7298. #ifndef __GNUC__
  7299. choke me
  7300. #endif
  7301. ;
  7302. return 0;
  7303. }
  7304. _ACEOF
  7305. rm -f conftest.$ac_objext
  7306. if { (ac_try="$ac_compile"
  7307. case "(($ac_try" in
  7308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7309. *) ac_try_echo=$ac_try;;
  7310. esac
  7311. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7312. $as_echo "$ac_try_echo") >&5
  7313. (eval "$ac_compile") 2>conftest.er1
  7314. ac_status=$?
  7315. grep -v '^ *+' conftest.er1 >conftest.err
  7316. rm -f conftest.er1
  7317. cat conftest.err >&5
  7318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. (exit $ac_status); } && {
  7320. test -z "$ac_cxx_werror_flag" ||
  7321. test ! -s conftest.err
  7322. } && test -s conftest.$ac_objext; then
  7323. ac_compiler_gnu=yes
  7324. else
  7325. $as_echo "$as_me: failed program was:" >&5
  7326. sed 's/^/| /' conftest.$ac_ext >&5
  7327. ac_compiler_gnu=no
  7328. fi
  7329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7330. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7331. fi
  7332. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  7333. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7334. if test $ac_compiler_gnu = yes; then
  7335. GXX=yes
  7336. else
  7337. GXX=
  7338. fi
  7339. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7340. ac_save_CXXFLAGS=$CXXFLAGS
  7341. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  7342. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7343. if test "${ac_cv_prog_cxx_g+set}" = set; then
  7344. $as_echo_n "(cached) " >&6
  7345. else
  7346. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7347. ac_cxx_werror_flag=yes
  7348. ac_cv_prog_cxx_g=no
  7349. CXXFLAGS="-g"
  7350. cat >conftest.$ac_ext <<_ACEOF
  7351. /* confdefs.h. */
  7352. _ACEOF
  7353. cat confdefs.h >>conftest.$ac_ext
  7354. cat >>conftest.$ac_ext <<_ACEOF
  7355. /* end confdefs.h. */
  7356. int
  7357. main ()
  7358. {
  7359. ;
  7360. return 0;
  7361. }
  7362. _ACEOF
  7363. rm -f conftest.$ac_objext
  7364. if { (ac_try="$ac_compile"
  7365. case "(($ac_try" in
  7366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7367. *) ac_try_echo=$ac_try;;
  7368. esac
  7369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7370. $as_echo "$ac_try_echo") >&5
  7371. (eval "$ac_compile") 2>conftest.er1
  7372. ac_status=$?
  7373. grep -v '^ *+' conftest.er1 >conftest.err
  7374. rm -f conftest.er1
  7375. cat conftest.err >&5
  7376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7377. (exit $ac_status); } && {
  7378. test -z "$ac_cxx_werror_flag" ||
  7379. test ! -s conftest.err
  7380. } && test -s conftest.$ac_objext; then
  7381. ac_cv_prog_cxx_g=yes
  7382. else
  7383. $as_echo "$as_me: failed program was:" >&5
  7384. sed 's/^/| /' conftest.$ac_ext >&5
  7385. CXXFLAGS=""
  7386. cat >conftest.$ac_ext <<_ACEOF
  7387. /* confdefs.h. */
  7388. _ACEOF
  7389. cat confdefs.h >>conftest.$ac_ext
  7390. cat >>conftest.$ac_ext <<_ACEOF
  7391. /* end confdefs.h. */
  7392. int
  7393. main ()
  7394. {
  7395. ;
  7396. return 0;
  7397. }
  7398. _ACEOF
  7399. rm -f conftest.$ac_objext
  7400. if { (ac_try="$ac_compile"
  7401. case "(($ac_try" in
  7402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7403. *) ac_try_echo=$ac_try;;
  7404. esac
  7405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7406. $as_echo "$ac_try_echo") >&5
  7407. (eval "$ac_compile") 2>conftest.er1
  7408. ac_status=$?
  7409. grep -v '^ *+' conftest.er1 >conftest.err
  7410. rm -f conftest.er1
  7411. cat conftest.err >&5
  7412. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7413. (exit $ac_status); } && {
  7414. test -z "$ac_cxx_werror_flag" ||
  7415. test ! -s conftest.err
  7416. } && test -s conftest.$ac_objext; then
  7417. :
  7418. else
  7419. $as_echo "$as_me: failed program was:" >&5
  7420. sed 's/^/| /' conftest.$ac_ext >&5
  7421. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7422. CXXFLAGS="-g"
  7423. cat >conftest.$ac_ext <<_ACEOF
  7424. /* confdefs.h. */
  7425. _ACEOF
  7426. cat confdefs.h >>conftest.$ac_ext
  7427. cat >>conftest.$ac_ext <<_ACEOF
  7428. /* end confdefs.h. */
  7429. int
  7430. main ()
  7431. {
  7432. ;
  7433. return 0;
  7434. }
  7435. _ACEOF
  7436. rm -f conftest.$ac_objext
  7437. if { (ac_try="$ac_compile"
  7438. case "(($ac_try" in
  7439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7440. *) ac_try_echo=$ac_try;;
  7441. esac
  7442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7443. $as_echo "$ac_try_echo") >&5
  7444. (eval "$ac_compile") 2>conftest.er1
  7445. ac_status=$?
  7446. grep -v '^ *+' conftest.er1 >conftest.err
  7447. rm -f conftest.er1
  7448. cat conftest.err >&5
  7449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7450. (exit $ac_status); } && {
  7451. test -z "$ac_cxx_werror_flag" ||
  7452. test ! -s conftest.err
  7453. } && test -s conftest.$ac_objext; then
  7454. ac_cv_prog_cxx_g=yes
  7455. else
  7456. $as_echo "$as_me: failed program was:" >&5
  7457. sed 's/^/| /' conftest.$ac_ext >&5
  7458. fi
  7459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7460. fi
  7461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7462. fi
  7463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7464. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7465. fi
  7466. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  7467. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7468. if test "$ac_test_CXXFLAGS" = set; then
  7469. CXXFLAGS=$ac_save_CXXFLAGS
  7470. elif test $ac_cv_prog_cxx_g = yes; then
  7471. if test "$GXX" = yes; then
  7472. CXXFLAGS="-g -O2"
  7473. else
  7474. CXXFLAGS="-g"
  7475. fi
  7476. else
  7477. if test "$GXX" = yes; then
  7478. CXXFLAGS="-O2"
  7479. else
  7480. CXXFLAGS=
  7481. fi
  7482. fi
  7483. ac_ext=c
  7484. ac_cpp='$CPP $CPPFLAGS'
  7485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7488. depcc="$CXX" am_compiler_list=
  7489. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  7490. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7491. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  7492. $as_echo_n "(cached) " >&6
  7493. else
  7494. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7495. # We make a subdir and do the tests there. Otherwise we can end up
  7496. # making bogus files that we don't know about and never remove. For
  7497. # instance it was reported that on HP-UX the gcc test will end up
  7498. # making a dummy file named `D' -- because `-MD' means `put the output
  7499. # in D'.
  7500. mkdir conftest.dir
  7501. # Copy depcomp to subdir because otherwise we won't find it if we're
  7502. # using a relative directory.
  7503. cp "$am_depcomp" conftest.dir
  7504. cd conftest.dir
  7505. # We will build objects and dependencies in a subdirectory because
  7506. # it helps to detect inapplicable dependency modes. For instance
  7507. # both Tru64's cc and ICC support -MD to output dependencies as a
  7508. # side effect of compilation, but ICC will put the dependencies in
  7509. # the current directory while Tru64 will put them in the object
  7510. # directory.
  7511. mkdir sub
  7512. am_cv_CXX_dependencies_compiler_type=none
  7513. if test "$am_compiler_list" = ""; then
  7514. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7515. fi
  7516. am__universal=false
  7517. case " $depcc " in #(
  7518. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7519. esac
  7520. for depmode in $am_compiler_list; do
  7521. # Setup a source with many dependencies, because some compilers
  7522. # like to wrap large dependency lists on column 80 (with \), and
  7523. # we should not choose a depcomp mode which is confused by this.
  7524. #
  7525. # We need to recreate these files for each test, as the compiler may
  7526. # overwrite some of them when testing with obscure command lines.
  7527. # This happens at least with the AIX C compiler.
  7528. : > sub/conftest.c
  7529. for i in 1 2 3 4 5 6; do
  7530. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7531. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7532. # Solaris 8's {/usr,}/bin/sh.
  7533. touch sub/conftst$i.h
  7534. done
  7535. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7536. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7537. # mode. It turns out that the SunPro C++ compiler does not properly
  7538. # handle `-M -o', and we need to detect this. Also, some Intel
  7539. # versions had trouble with output in subdirs
  7540. am__obj=sub/conftest.${OBJEXT-o}
  7541. am__minus_obj="-o $am__obj"
  7542. case $depmode in
  7543. gcc)
  7544. # This depmode causes a compiler race in universal mode.
  7545. test "$am__universal" = false || continue
  7546. ;;
  7547. nosideeffect)
  7548. # after this tag, mechanisms are not by side-effect, so they'll
  7549. # only be used when explicitly requested
  7550. if test "x$enable_dependency_tracking" = xyes; then
  7551. continue
  7552. else
  7553. break
  7554. fi
  7555. ;;
  7556. msvisualcpp | msvcmsys)
  7557. # This compiler won't grok `-c -o', but also, the minuso test has
  7558. # not run yet. These depmodes are late enough in the game, and
  7559. # so weak that their functioning should not be impacted.
  7560. am__obj=conftest.${OBJEXT-o}
  7561. am__minus_obj=
  7562. ;;
  7563. none) break ;;
  7564. esac
  7565. if depmode=$depmode \
  7566. source=sub/conftest.c object=$am__obj \
  7567. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7568. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7569. >/dev/null 2>conftest.err &&
  7570. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7571. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7572. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7573. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7574. # icc doesn't choke on unknown options, it will just issue warnings
  7575. # or remarks (even with -Werror). So we grep stderr for any message
  7576. # that says an option was ignored or not supported.
  7577. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7578. # icc: Command line warning: ignoring option '-M'; no argument required
  7579. # The diagnosis changed in icc 8.0:
  7580. # icc: Command line remark: option '-MP' not supported
  7581. if (grep 'ignoring option' conftest.err ||
  7582. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7583. am_cv_CXX_dependencies_compiler_type=$depmode
  7584. break
  7585. fi
  7586. fi
  7587. done
  7588. cd ..
  7589. rm -rf conftest.dir
  7590. else
  7591. am_cv_CXX_dependencies_compiler_type=none
  7592. fi
  7593. fi
  7594. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7595. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7596. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7597. if
  7598. test "x$enable_dependency_tracking" != xno \
  7599. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7600. am__fastdepCXX_TRUE=
  7601. am__fastdepCXX_FALSE='#'
  7602. else
  7603. am__fastdepCXX_TRUE='#'
  7604. am__fastdepCXX_FALSE=
  7605. fi
  7606. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7607. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7608. (test "X$CXX" != "Xg++"))) ; then
  7609. ac_ext=cpp
  7610. ac_cpp='$CXXCPP $CPPFLAGS'
  7611. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7612. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7613. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7614. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  7615. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7616. if test -z "$CXXCPP"; then
  7617. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  7618. $as_echo_n "(cached) " >&6
  7619. else
  7620. # Double quotes because CXXCPP needs to be expanded
  7621. for CXXCPP in "$CXX -E" "/lib/cpp"
  7622. do
  7623. ac_preproc_ok=false
  7624. for ac_cxx_preproc_warn_flag in '' yes
  7625. do
  7626. # Use a header file that comes with gcc, so configuring glibc
  7627. # with a fresh cross-compiler works.
  7628. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7629. # <limits.h> exists even on freestanding compilers.
  7630. # On the NeXT, cc -E runs the code through the compiler's parser,
  7631. # not just through cpp. "Syntax error" is here to catch this case.
  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. #ifdef __STDC__
  7639. # include <limits.h>
  7640. #else
  7641. # include <assert.h>
  7642. #endif
  7643. Syntax error
  7644. _ACEOF
  7645. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7646. case "(($ac_try" in
  7647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7648. *) ac_try_echo=$ac_try;;
  7649. esac
  7650. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7651. $as_echo "$ac_try_echo") >&5
  7652. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7653. ac_status=$?
  7654. grep -v '^ *+' conftest.er1 >conftest.err
  7655. rm -f conftest.er1
  7656. cat conftest.err >&5
  7657. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. (exit $ac_status); } >/dev/null && {
  7659. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7660. test ! -s conftest.err
  7661. }; then
  7662. :
  7663. else
  7664. $as_echo "$as_me: failed program was:" >&5
  7665. sed 's/^/| /' conftest.$ac_ext >&5
  7666. # Broken: fails on valid input.
  7667. continue
  7668. fi
  7669. rm -f conftest.err conftest.$ac_ext
  7670. # OK, works on sane cases. Now check whether nonexistent headers
  7671. # can be detected and how.
  7672. cat >conftest.$ac_ext <<_ACEOF
  7673. /* confdefs.h. */
  7674. _ACEOF
  7675. cat confdefs.h >>conftest.$ac_ext
  7676. cat >>conftest.$ac_ext <<_ACEOF
  7677. /* end confdefs.h. */
  7678. #include <ac_nonexistent.h>
  7679. _ACEOF
  7680. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7681. case "(($ac_try" in
  7682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7683. *) ac_try_echo=$ac_try;;
  7684. esac
  7685. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7686. $as_echo "$ac_try_echo") >&5
  7687. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7688. ac_status=$?
  7689. grep -v '^ *+' conftest.er1 >conftest.err
  7690. rm -f conftest.er1
  7691. cat conftest.err >&5
  7692. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7693. (exit $ac_status); } >/dev/null && {
  7694. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7695. test ! -s conftest.err
  7696. }; then
  7697. # Broken: success on invalid input.
  7698. continue
  7699. else
  7700. $as_echo "$as_me: failed program was:" >&5
  7701. sed 's/^/| /' conftest.$ac_ext >&5
  7702. # Passes both tests.
  7703. ac_preproc_ok=:
  7704. break
  7705. fi
  7706. rm -f conftest.err conftest.$ac_ext
  7707. done
  7708. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7709. rm -f conftest.err conftest.$ac_ext
  7710. if $ac_preproc_ok; then
  7711. break
  7712. fi
  7713. done
  7714. ac_cv_prog_CXXCPP=$CXXCPP
  7715. fi
  7716. CXXCPP=$ac_cv_prog_CXXCPP
  7717. else
  7718. ac_cv_prog_CXXCPP=$CXXCPP
  7719. fi
  7720. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  7721. $as_echo "$CXXCPP" >&6; }
  7722. ac_preproc_ok=false
  7723. for ac_cxx_preproc_warn_flag in '' yes
  7724. do
  7725. # Use a header file that comes with gcc, so configuring glibc
  7726. # with a fresh cross-compiler works.
  7727. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7728. # <limits.h> exists even on freestanding compilers.
  7729. # On the NeXT, cc -E runs the code through the compiler's parser,
  7730. # not just through cpp. "Syntax error" is here to catch this case.
  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. #ifdef __STDC__
  7738. # include <limits.h>
  7739. #else
  7740. # include <assert.h>
  7741. #endif
  7742. Syntax error
  7743. _ACEOF
  7744. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7745. case "(($ac_try" in
  7746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7747. *) ac_try_echo=$ac_try;;
  7748. esac
  7749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7750. $as_echo "$ac_try_echo") >&5
  7751. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7752. ac_status=$?
  7753. grep -v '^ *+' conftest.er1 >conftest.err
  7754. rm -f conftest.er1
  7755. cat conftest.err >&5
  7756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7757. (exit $ac_status); } >/dev/null && {
  7758. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7759. test ! -s conftest.err
  7760. }; then
  7761. :
  7762. else
  7763. $as_echo "$as_me: failed program was:" >&5
  7764. sed 's/^/| /' conftest.$ac_ext >&5
  7765. # Broken: fails on valid input.
  7766. continue
  7767. fi
  7768. rm -f conftest.err conftest.$ac_ext
  7769. # OK, works on sane cases. Now check whether nonexistent headers
  7770. # can be detected and how.
  7771. cat >conftest.$ac_ext <<_ACEOF
  7772. /* confdefs.h. */
  7773. _ACEOF
  7774. cat confdefs.h >>conftest.$ac_ext
  7775. cat >>conftest.$ac_ext <<_ACEOF
  7776. /* end confdefs.h. */
  7777. #include <ac_nonexistent.h>
  7778. _ACEOF
  7779. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7780. case "(($ac_try" in
  7781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7782. *) ac_try_echo=$ac_try;;
  7783. esac
  7784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7785. $as_echo "$ac_try_echo") >&5
  7786. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7787. ac_status=$?
  7788. grep -v '^ *+' conftest.er1 >conftest.err
  7789. rm -f conftest.er1
  7790. cat conftest.err >&5
  7791. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7792. (exit $ac_status); } >/dev/null && {
  7793. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7794. test ! -s conftest.err
  7795. }; then
  7796. # Broken: success on invalid input.
  7797. continue
  7798. else
  7799. $as_echo "$as_me: failed program was:" >&5
  7800. sed 's/^/| /' conftest.$ac_ext >&5
  7801. # Passes both tests.
  7802. ac_preproc_ok=:
  7803. break
  7804. fi
  7805. rm -f conftest.err conftest.$ac_ext
  7806. done
  7807. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7808. rm -f conftest.err conftest.$ac_ext
  7809. if $ac_preproc_ok; then
  7810. :
  7811. else
  7812. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7813. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7814. _lt_caught_CXX_error=yes; }
  7815. fi
  7816. ac_ext=c
  7817. ac_cpp='$CPP $CPPFLAGS'
  7818. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7819. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7820. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7821. else
  7822. _lt_caught_CXX_error=yes
  7823. fi
  7824. # Set options
  7825. enable_dlopen=no
  7826. enable_win32_dll=no
  7827. # Check whether --enable-shared was given.
  7828. if test "${enable_shared+set}" = set; then
  7829. enableval=$enable_shared; p=${PACKAGE-default}
  7830. case $enableval in
  7831. yes) enable_shared=yes ;;
  7832. no) enable_shared=no ;;
  7833. *)
  7834. enable_shared=no
  7835. # Look at the argument we got. We use all the common list separators.
  7836. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7837. for pkg in $enableval; do
  7838. IFS="$lt_save_ifs"
  7839. if test "X$pkg" = "X$p"; then
  7840. enable_shared=yes
  7841. fi
  7842. done
  7843. IFS="$lt_save_ifs"
  7844. ;;
  7845. esac
  7846. else
  7847. enable_shared=yes
  7848. fi
  7849. # Check whether --with-pic was given.
  7850. if test "${with_pic+set}" = set; then
  7851. withval=$with_pic; pic_mode="$withval"
  7852. else
  7853. pic_mode=default
  7854. fi
  7855. test -z "$pic_mode" && pic_mode=default
  7856. # Check whether --enable-fast-install was given.
  7857. if test "${enable_fast_install+set}" = set; then
  7858. enableval=$enable_fast_install; p=${PACKAGE-default}
  7859. case $enableval in
  7860. yes) enable_fast_install=yes ;;
  7861. no) enable_fast_install=no ;;
  7862. *)
  7863. enable_fast_install=no
  7864. # Look at the argument we got. We use all the common list separators.
  7865. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7866. for pkg in $enableval; do
  7867. IFS="$lt_save_ifs"
  7868. if test "X$pkg" = "X$p"; then
  7869. enable_fast_install=yes
  7870. fi
  7871. done
  7872. IFS="$lt_save_ifs"
  7873. ;;
  7874. esac
  7875. else
  7876. enable_fast_install=yes
  7877. fi
  7878. # This can be used to rebuild libtool when needed
  7879. LIBTOOL_DEPS="$ltmain"
  7880. # Always use our own libtool.
  7881. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7882. test -z "$LN_S" && LN_S="ln -s"
  7883. if test -n "${ZSH_VERSION+set}" ; then
  7884. setopt NO_GLOB_SUBST
  7885. fi
  7886. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7887. $as_echo_n "checking for objdir... " >&6; }
  7888. if test "${lt_cv_objdir+set}" = set; then
  7889. $as_echo_n "(cached) " >&6
  7890. else
  7891. rm -f .libs 2>/dev/null
  7892. mkdir .libs 2>/dev/null
  7893. if test -d .libs; then
  7894. lt_cv_objdir=.libs
  7895. else
  7896. # MS-DOS does not allow filenames that begin with a dot.
  7897. lt_cv_objdir=_libs
  7898. fi
  7899. rmdir .libs 2>/dev/null
  7900. fi
  7901. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7902. $as_echo "$lt_cv_objdir" >&6; }
  7903. objdir=$lt_cv_objdir
  7904. cat >>confdefs.h <<_ACEOF
  7905. #define LT_OBJDIR "$lt_cv_objdir/"
  7906. _ACEOF
  7907. case $host_os in
  7908. aix3*)
  7909. # AIX sometimes has problems with the GCC collect2 program. For some
  7910. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7911. # vanish in a puff of smoke.
  7912. if test "X${COLLECT_NAMES+set}" != Xset; then
  7913. COLLECT_NAMES=
  7914. export COLLECT_NAMES
  7915. fi
  7916. ;;
  7917. esac
  7918. # Sed substitution that helps us do robust quoting. It backslashifies
  7919. # metacharacters that are still active within double-quoted strings.
  7920. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7921. # Same as above, but do not quote variable references.
  7922. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7923. # Sed substitution to delay expansion of an escaped shell variable in a
  7924. # double_quote_subst'ed string.
  7925. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7926. # Sed substitution to delay expansion of an escaped single quote.
  7927. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7928. # Sed substitution to avoid accidental globbing in evaled expressions
  7929. no_glob_subst='s/\*/\\\*/g'
  7930. # Global variables:
  7931. ofile=libtool
  7932. can_build_shared=yes
  7933. # All known linkers require a `.a' archive for static linking (except MSVC,
  7934. # which needs '.lib').
  7935. libext=a
  7936. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7937. old_CC="$CC"
  7938. old_CFLAGS="$CFLAGS"
  7939. # Set sane defaults for various variables
  7940. test -z "$CC" && CC=cc
  7941. test -z "$LTCC" && LTCC=$CC
  7942. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7943. test -z "$LD" && LD=ld
  7944. test -z "$ac_objext" && ac_objext=o
  7945. for cc_temp in $compiler""; do
  7946. case $cc_temp in
  7947. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7948. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7949. \-*) ;;
  7950. *) break;;
  7951. esac
  7952. done
  7953. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7954. # Only perform the check for file, if the check method requires it
  7955. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7956. case $deplibs_check_method in
  7957. file_magic*)
  7958. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7959. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7960. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7961. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7962. $as_echo_n "(cached) " >&6
  7963. else
  7964. case $MAGIC_CMD in
  7965. [\\/*] | ?:[\\/]*)
  7966. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7967. ;;
  7968. *)
  7969. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7970. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7971. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7972. for ac_dir in $ac_dummy; do
  7973. IFS="$lt_save_ifs"
  7974. test -z "$ac_dir" && ac_dir=.
  7975. if test -f $ac_dir/${ac_tool_prefix}file; then
  7976. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7977. if test -n "$file_magic_test_file"; then
  7978. case $deplibs_check_method in
  7979. "file_magic "*)
  7980. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7981. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7982. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7983. $EGREP "$file_magic_regex" > /dev/null; then
  7984. :
  7985. else
  7986. cat <<_LT_EOF 1>&2
  7987. *** Warning: the command libtool uses to detect shared libraries,
  7988. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7989. *** The result is that libtool may fail to recognize shared libraries
  7990. *** as such. This will affect the creation of libtool libraries that
  7991. *** depend on shared libraries, but programs linked with such libtool
  7992. *** libraries will work regardless of this problem. Nevertheless, you
  7993. *** may want to report the problem to your system manager and/or to
  7994. *** [email protected]
  7995. _LT_EOF
  7996. fi ;;
  7997. esac
  7998. fi
  7999. break
  8000. fi
  8001. done
  8002. IFS="$lt_save_ifs"
  8003. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8004. ;;
  8005. esac
  8006. fi
  8007. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8008. if test -n "$MAGIC_CMD"; then
  8009. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8010. $as_echo "$MAGIC_CMD" >&6; }
  8011. else
  8012. { $as_echo "$as_me:$LINENO: result: no" >&5
  8013. $as_echo "no" >&6; }
  8014. fi
  8015. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8016. if test -n "$ac_tool_prefix"; then
  8017. { $as_echo "$as_me:$LINENO: checking for file" >&5
  8018. $as_echo_n "checking for file... " >&6; }
  8019. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8020. $as_echo_n "(cached) " >&6
  8021. else
  8022. case $MAGIC_CMD in
  8023. [\\/*] | ?:[\\/]*)
  8024. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8025. ;;
  8026. *)
  8027. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8028. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8029. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8030. for ac_dir in $ac_dummy; do
  8031. IFS="$lt_save_ifs"
  8032. test -z "$ac_dir" && ac_dir=.
  8033. if test -f $ac_dir/file; then
  8034. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8035. if test -n "$file_magic_test_file"; then
  8036. case $deplibs_check_method in
  8037. "file_magic "*)
  8038. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8039. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8040. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8041. $EGREP "$file_magic_regex" > /dev/null; then
  8042. :
  8043. else
  8044. cat <<_LT_EOF 1>&2
  8045. *** Warning: the command libtool uses to detect shared libraries,
  8046. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8047. *** The result is that libtool may fail to recognize shared libraries
  8048. *** as such. This will affect the creation of libtool libraries that
  8049. *** depend on shared libraries, but programs linked with such libtool
  8050. *** libraries will work regardless of this problem. Nevertheless, you
  8051. *** may want to report the problem to your system manager and/or to
  8052. *** [email protected]
  8053. _LT_EOF
  8054. fi ;;
  8055. esac
  8056. fi
  8057. break
  8058. fi
  8059. done
  8060. IFS="$lt_save_ifs"
  8061. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8062. ;;
  8063. esac
  8064. fi
  8065. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8066. if test -n "$MAGIC_CMD"; then
  8067. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8068. $as_echo "$MAGIC_CMD" >&6; }
  8069. else
  8070. { $as_echo "$as_me:$LINENO: result: no" >&5
  8071. $as_echo "no" >&6; }
  8072. fi
  8073. else
  8074. MAGIC_CMD=:
  8075. fi
  8076. fi
  8077. fi
  8078. ;;
  8079. esac
  8080. # Use C for the default configuration in the libtool script
  8081. lt_save_CC="$CC"
  8082. ac_ext=c
  8083. ac_cpp='$CPP $CPPFLAGS'
  8084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8087. # Source file extension for C test sources.
  8088. ac_ext=c
  8089. # Object file extension for compiled C test sources.
  8090. objext=o
  8091. objext=$objext
  8092. # Code to be used in simple compile tests
  8093. lt_simple_compile_test_code="int some_variable = 0;"
  8094. # Code to be used in simple link tests
  8095. lt_simple_link_test_code='int main(){return(0);}'
  8096. # If no C compiler was specified, use CC.
  8097. LTCC=${LTCC-"$CC"}
  8098. # If no C compiler flags were specified, use CFLAGS.
  8099. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8100. # Allow CC to be a program name with arguments.
  8101. compiler=$CC
  8102. # Save the default compiler, since it gets overwritten when the other
  8103. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8104. compiler_DEFAULT=$CC
  8105. # save warnings/boilerplate of simple test code
  8106. ac_outfile=conftest.$ac_objext
  8107. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8108. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8109. _lt_compiler_boilerplate=`cat conftest.err`
  8110. $RM conftest*
  8111. ac_outfile=conftest.$ac_objext
  8112. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8113. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8114. _lt_linker_boilerplate=`cat conftest.err`
  8115. $RM -r conftest*
  8116. ## CAVEAT EMPTOR:
  8117. ## There is no encapsulation within the following macros, do not change
  8118. ## the running order or otherwise move them around unless you know exactly
  8119. ## what you are doing...
  8120. if test -n "$compiler"; then
  8121. lt_prog_compiler_no_builtin_flag=
  8122. if test "$GCC" = yes; then
  8123. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8124. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8125. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8126. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8127. $as_echo_n "(cached) " >&6
  8128. else
  8129. lt_cv_prog_compiler_rtti_exceptions=no
  8130. ac_outfile=conftest.$ac_objext
  8131. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8132. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8133. # Insert the option either (1) after the last *FLAGS variable, or
  8134. # (2) before a word containing "conftest.", or (3) at the end.
  8135. # Note that $ac_compile itself does not contain backslashes and begins
  8136. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8137. # The option is referenced via a variable to avoid confusing sed.
  8138. lt_compile=`echo "$ac_compile" | $SED \
  8139. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8140. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8141. -e 's:$: $lt_compiler_flag:'`
  8142. (eval echo "\"\$as_me:9295: $lt_compile\"" >&5)
  8143. (eval "$lt_compile" 2>conftest.err)
  8144. ac_status=$?
  8145. cat conftest.err >&5
  8146. echo "$as_me:9299: \$? = $ac_status" >&5
  8147. if (exit $ac_status) && test -s "$ac_outfile"; then
  8148. # The compiler can only warn and ignore the option if not recognized
  8149. # So say no if there are warnings other than the usual output.
  8150. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8151. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8152. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8153. lt_cv_prog_compiler_rtti_exceptions=yes
  8154. fi
  8155. fi
  8156. $RM conftest*
  8157. fi
  8158. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8159. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8160. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8161. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8162. else
  8163. :
  8164. fi
  8165. fi
  8166. lt_prog_compiler_wl=
  8167. lt_prog_compiler_pic=
  8168. lt_prog_compiler_static=
  8169. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8170. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8171. if test "$GCC" = yes; then
  8172. lt_prog_compiler_wl='-Wl,'
  8173. lt_prog_compiler_static='-static'
  8174. case $host_os in
  8175. aix*)
  8176. # All AIX code is PIC.
  8177. if test "$host_cpu" = ia64; then
  8178. # AIX 5 now supports IA64 processor
  8179. lt_prog_compiler_static='-Bstatic'
  8180. fi
  8181. ;;
  8182. amigaos*)
  8183. case $host_cpu in
  8184. powerpc)
  8185. # see comment about AmigaOS4 .so support
  8186. lt_prog_compiler_pic='-fPIC'
  8187. ;;
  8188. m68k)
  8189. # FIXME: we need at least 68020 code to build shared libraries, but
  8190. # adding the `-m68020' flag to GCC prevents building anything better,
  8191. # like `-m68040'.
  8192. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8193. ;;
  8194. esac
  8195. ;;
  8196. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8197. # PIC is the default for these OSes.
  8198. ;;
  8199. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8200. # This hack is so that the source file can tell whether it is being
  8201. # built for inclusion in a dll (and should export symbols for example).
  8202. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8203. # (--disable-auto-import) libraries
  8204. lt_prog_compiler_pic='-DDLL_EXPORT'
  8205. ;;
  8206. darwin* | rhapsody*)
  8207. # PIC is the default on this platform
  8208. # Common symbols not allowed in MH_DYLIB files
  8209. lt_prog_compiler_pic='-fno-common'
  8210. ;;
  8211. hpux*)
  8212. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8213. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8214. # sets the default TLS model and affects inlining.
  8215. case $host_cpu in
  8216. hppa*64*)
  8217. # +Z the default
  8218. ;;
  8219. *)
  8220. lt_prog_compiler_pic='-fPIC'
  8221. ;;
  8222. esac
  8223. ;;
  8224. interix[3-9]*)
  8225. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8226. # Instead, we relocate shared libraries at runtime.
  8227. ;;
  8228. msdosdjgpp*)
  8229. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8230. # on systems that don't support them.
  8231. lt_prog_compiler_can_build_shared=no
  8232. enable_shared=no
  8233. ;;
  8234. *nto* | *qnx*)
  8235. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8236. # it will coredump.
  8237. lt_prog_compiler_pic='-fPIC -shared'
  8238. ;;
  8239. sysv4*MP*)
  8240. if test -d /usr/nec; then
  8241. lt_prog_compiler_pic=-Kconform_pic
  8242. fi
  8243. ;;
  8244. *)
  8245. lt_prog_compiler_pic='-fPIC'
  8246. ;;
  8247. esac
  8248. else
  8249. # PORTME Check for flag to pass linker flags through the system compiler.
  8250. case $host_os in
  8251. aix*)
  8252. lt_prog_compiler_wl='-Wl,'
  8253. if test "$host_cpu" = ia64; then
  8254. # AIX 5 now supports IA64 processor
  8255. lt_prog_compiler_static='-Bstatic'
  8256. else
  8257. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8258. fi
  8259. ;;
  8260. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8261. # This hack is so that the source file can tell whether it is being
  8262. # built for inclusion in a dll (and should export symbols for example).
  8263. lt_prog_compiler_pic='-DDLL_EXPORT'
  8264. ;;
  8265. hpux9* | hpux10* | hpux11*)
  8266. lt_prog_compiler_wl='-Wl,'
  8267. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8268. # not for PA HP-UX.
  8269. case $host_cpu in
  8270. hppa*64*|ia64*)
  8271. # +Z the default
  8272. ;;
  8273. *)
  8274. lt_prog_compiler_pic='+Z'
  8275. ;;
  8276. esac
  8277. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8278. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8279. ;;
  8280. irix5* | irix6* | nonstopux*)
  8281. lt_prog_compiler_wl='-Wl,'
  8282. # PIC (with -KPIC) is the default.
  8283. lt_prog_compiler_static='-non_shared'
  8284. ;;
  8285. linux* | k*bsd*-gnu)
  8286. case $cc_basename in
  8287. # old Intel for x86_64 which still supported -KPIC.
  8288. ecc*)
  8289. lt_prog_compiler_wl='-Wl,'
  8290. lt_prog_compiler_pic='-KPIC'
  8291. lt_prog_compiler_static='-static'
  8292. ;;
  8293. # icc used to be incompatible with GCC.
  8294. # ICC 10 doesn't accept -KPIC any more.
  8295. icc* | ifort*)
  8296. lt_prog_compiler_wl='-Wl,'
  8297. lt_prog_compiler_pic='-fPIC'
  8298. lt_prog_compiler_static='-static'
  8299. ;;
  8300. # Lahey Fortran 8.1.
  8301. lf95*)
  8302. lt_prog_compiler_wl='-Wl,'
  8303. lt_prog_compiler_pic='--shared'
  8304. lt_prog_compiler_static='--static'
  8305. ;;
  8306. pgcc* | pgf77* | pgf90* | pgf95*)
  8307. # Portland Group compilers (*not* the Pentium gcc compiler,
  8308. # which looks to be a dead project)
  8309. lt_prog_compiler_wl='-Wl,'
  8310. lt_prog_compiler_pic='-fpic'
  8311. lt_prog_compiler_static='-Bstatic'
  8312. ;;
  8313. ccc*)
  8314. lt_prog_compiler_wl='-Wl,'
  8315. # All Alpha code is PIC.
  8316. lt_prog_compiler_static='-non_shared'
  8317. ;;
  8318. xl*)
  8319. # IBM XL C 8.0/Fortran 10.1 on PPC
  8320. lt_prog_compiler_wl='-Wl,'
  8321. lt_prog_compiler_pic='-qpic'
  8322. lt_prog_compiler_static='-qstaticlink'
  8323. ;;
  8324. *)
  8325. case `$CC -V 2>&1 | sed 5q` in
  8326. *Sun\ C*)
  8327. # Sun C 5.9
  8328. lt_prog_compiler_pic='-KPIC'
  8329. lt_prog_compiler_static='-Bstatic'
  8330. lt_prog_compiler_wl='-Wl,'
  8331. ;;
  8332. *Sun\ F*)
  8333. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8334. lt_prog_compiler_pic='-KPIC'
  8335. lt_prog_compiler_static='-Bstatic'
  8336. lt_prog_compiler_wl=''
  8337. ;;
  8338. esac
  8339. ;;
  8340. esac
  8341. ;;
  8342. newsos6)
  8343. lt_prog_compiler_pic='-KPIC'
  8344. lt_prog_compiler_static='-Bstatic'
  8345. ;;
  8346. *nto* | *qnx*)
  8347. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8348. # it will coredump.
  8349. lt_prog_compiler_pic='-fPIC -shared'
  8350. ;;
  8351. osf3* | osf4* | osf5*)
  8352. lt_prog_compiler_wl='-Wl,'
  8353. # All OSF/1 code is PIC.
  8354. lt_prog_compiler_static='-non_shared'
  8355. ;;
  8356. rdos*)
  8357. lt_prog_compiler_static='-non_shared'
  8358. ;;
  8359. solaris*)
  8360. lt_prog_compiler_pic='-KPIC'
  8361. lt_prog_compiler_static='-Bstatic'
  8362. case $cc_basename in
  8363. f77* | f90* | f95*)
  8364. lt_prog_compiler_wl='-Qoption ld ';;
  8365. *)
  8366. lt_prog_compiler_wl='-Wl,';;
  8367. esac
  8368. ;;
  8369. sunos4*)
  8370. lt_prog_compiler_wl='-Qoption ld '
  8371. lt_prog_compiler_pic='-PIC'
  8372. lt_prog_compiler_static='-Bstatic'
  8373. ;;
  8374. sysv4 | sysv4.2uw2* | sysv4.3*)
  8375. lt_prog_compiler_wl='-Wl,'
  8376. lt_prog_compiler_pic='-KPIC'
  8377. lt_prog_compiler_static='-Bstatic'
  8378. ;;
  8379. sysv4*MP*)
  8380. if test -d /usr/nec ;then
  8381. lt_prog_compiler_pic='-Kconform_pic'
  8382. lt_prog_compiler_static='-Bstatic'
  8383. fi
  8384. ;;
  8385. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8386. lt_prog_compiler_wl='-Wl,'
  8387. lt_prog_compiler_pic='-KPIC'
  8388. lt_prog_compiler_static='-Bstatic'
  8389. ;;
  8390. unicos*)
  8391. lt_prog_compiler_wl='-Wl,'
  8392. lt_prog_compiler_can_build_shared=no
  8393. ;;
  8394. uts4*)
  8395. lt_prog_compiler_pic='-pic'
  8396. lt_prog_compiler_static='-Bstatic'
  8397. ;;
  8398. *)
  8399. lt_prog_compiler_can_build_shared=no
  8400. ;;
  8401. esac
  8402. fi
  8403. case $host_os in
  8404. # For platforms which do not support PIC, -DPIC is meaningless:
  8405. *djgpp*)
  8406. lt_prog_compiler_pic=
  8407. ;;
  8408. *)
  8409. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8410. ;;
  8411. esac
  8412. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8413. $as_echo "$lt_prog_compiler_pic" >&6; }
  8414. #
  8415. # Check to make sure the PIC flag actually works.
  8416. #
  8417. if test -n "$lt_prog_compiler_pic"; then
  8418. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8419. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8420. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8421. $as_echo_n "(cached) " >&6
  8422. else
  8423. lt_cv_prog_compiler_pic_works=no
  8424. ac_outfile=conftest.$ac_objext
  8425. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8426. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8427. # Insert the option either (1) after the last *FLAGS variable, or
  8428. # (2) before a word containing "conftest.", or (3) at the end.
  8429. # Note that $ac_compile itself does not contain backslashes and begins
  8430. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8431. # The option is referenced via a variable to avoid confusing sed.
  8432. lt_compile=`echo "$ac_compile" | $SED \
  8433. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8434. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8435. -e 's:$: $lt_compiler_flag:'`
  8436. (eval echo "\"\$as_me:9634: $lt_compile\"" >&5)
  8437. (eval "$lt_compile" 2>conftest.err)
  8438. ac_status=$?
  8439. cat conftest.err >&5
  8440. echo "$as_me:9638: \$? = $ac_status" >&5
  8441. if (exit $ac_status) && test -s "$ac_outfile"; then
  8442. # The compiler can only warn and ignore the option if not recognized
  8443. # So say no if there are warnings other than the usual output.
  8444. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8445. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8446. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8447. lt_cv_prog_compiler_pic_works=yes
  8448. fi
  8449. fi
  8450. $RM conftest*
  8451. fi
  8452. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8453. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8454. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8455. case $lt_prog_compiler_pic in
  8456. "" | " "*) ;;
  8457. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8458. esac
  8459. else
  8460. lt_prog_compiler_pic=
  8461. lt_prog_compiler_can_build_shared=no
  8462. fi
  8463. fi
  8464. #
  8465. # Check to make sure the static flag actually works.
  8466. #
  8467. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8468. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8469. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8470. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8471. $as_echo_n "(cached) " >&6
  8472. else
  8473. lt_cv_prog_compiler_static_works=no
  8474. save_LDFLAGS="$LDFLAGS"
  8475. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8476. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8477. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8478. # The linker can only warn and ignore the option if not recognized
  8479. # So say no if there are warnings
  8480. if test -s conftest.err; then
  8481. # Append any errors to the config.log.
  8482. cat conftest.err 1>&5
  8483. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8484. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8485. if diff conftest.exp conftest.er2 >/dev/null; then
  8486. lt_cv_prog_compiler_static_works=yes
  8487. fi
  8488. else
  8489. lt_cv_prog_compiler_static_works=yes
  8490. fi
  8491. fi
  8492. $RM -r conftest*
  8493. LDFLAGS="$save_LDFLAGS"
  8494. fi
  8495. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8496. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8497. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8498. :
  8499. else
  8500. lt_prog_compiler_static=
  8501. fi
  8502. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8503. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8504. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8505. $as_echo_n "(cached) " >&6
  8506. else
  8507. lt_cv_prog_compiler_c_o=no
  8508. $RM -r conftest 2>/dev/null
  8509. mkdir conftest
  8510. cd conftest
  8511. mkdir out
  8512. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8513. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8514. # Insert the option either (1) after the last *FLAGS variable, or
  8515. # (2) before a word containing "conftest.", or (3) at the end.
  8516. # Note that $ac_compile itself does not contain backslashes and begins
  8517. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8518. lt_compile=`echo "$ac_compile" | $SED \
  8519. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8520. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8521. -e 's:$: $lt_compiler_flag:'`
  8522. (eval echo "\"\$as_me:9739: $lt_compile\"" >&5)
  8523. (eval "$lt_compile" 2>out/conftest.err)
  8524. ac_status=$?
  8525. cat out/conftest.err >&5
  8526. echo "$as_me:9743: \$? = $ac_status" >&5
  8527. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8528. then
  8529. # The compiler can only warn and ignore the option if not recognized
  8530. # So say no if there are warnings
  8531. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8532. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8533. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8534. lt_cv_prog_compiler_c_o=yes
  8535. fi
  8536. fi
  8537. chmod u+w . 2>&5
  8538. $RM conftest*
  8539. # SGI C++ compiler will create directory out/ii_files/ for
  8540. # template instantiation
  8541. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8542. $RM out/* && rmdir out
  8543. cd ..
  8544. $RM -r conftest
  8545. $RM conftest*
  8546. fi
  8547. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8548. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8549. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8550. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8551. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8552. $as_echo_n "(cached) " >&6
  8553. else
  8554. lt_cv_prog_compiler_c_o=no
  8555. $RM -r conftest 2>/dev/null
  8556. mkdir conftest
  8557. cd conftest
  8558. mkdir out
  8559. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8560. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8561. # Insert the option either (1) after the last *FLAGS variable, or
  8562. # (2) before a word containing "conftest.", or (3) at the end.
  8563. # Note that $ac_compile itself does not contain backslashes and begins
  8564. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8565. lt_compile=`echo "$ac_compile" | $SED \
  8566. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8567. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8568. -e 's:$: $lt_compiler_flag:'`
  8569. (eval echo "\"\$as_me:9794: $lt_compile\"" >&5)
  8570. (eval "$lt_compile" 2>out/conftest.err)
  8571. ac_status=$?
  8572. cat out/conftest.err >&5
  8573. echo "$as_me:9798: \$? = $ac_status" >&5
  8574. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8575. then
  8576. # The compiler can only warn and ignore the option if not recognized
  8577. # So say no if there are warnings
  8578. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8579. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8580. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8581. lt_cv_prog_compiler_c_o=yes
  8582. fi
  8583. fi
  8584. chmod u+w . 2>&5
  8585. $RM conftest*
  8586. # SGI C++ compiler will create directory out/ii_files/ for
  8587. # template instantiation
  8588. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8589. $RM out/* && rmdir out
  8590. cd ..
  8591. $RM -r conftest
  8592. $RM conftest*
  8593. fi
  8594. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8595. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8596. hard_links="nottested"
  8597. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8598. # do not overwrite the value of need_locks provided by the user
  8599. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8600. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8601. hard_links=yes
  8602. $RM conftest*
  8603. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8604. touch conftest.a
  8605. ln conftest.a conftest.b 2>&5 || hard_links=no
  8606. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8607. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8608. $as_echo "$hard_links" >&6; }
  8609. if test "$hard_links" = no; then
  8610. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8611. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8612. need_locks=warn
  8613. fi
  8614. else
  8615. need_locks=no
  8616. fi
  8617. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8618. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8619. runpath_var=
  8620. allow_undefined_flag=
  8621. always_export_symbols=no
  8622. archive_cmds=
  8623. archive_expsym_cmds=
  8624. compiler_needs_object=no
  8625. enable_shared_with_static_runtimes=no
  8626. export_dynamic_flag_spec=
  8627. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8628. hardcode_automatic=no
  8629. hardcode_direct=no
  8630. hardcode_direct_absolute=no
  8631. hardcode_libdir_flag_spec=
  8632. hardcode_libdir_flag_spec_ld=
  8633. hardcode_libdir_separator=
  8634. hardcode_minus_L=no
  8635. hardcode_shlibpath_var=unsupported
  8636. inherit_rpath=no
  8637. link_all_deplibs=unknown
  8638. module_cmds=
  8639. module_expsym_cmds=
  8640. old_archive_from_new_cmds=
  8641. old_archive_from_expsyms_cmds=
  8642. thread_safe_flag_spec=
  8643. whole_archive_flag_spec=
  8644. # include_expsyms should be a list of space-separated symbols to be *always*
  8645. # included in the symbol list
  8646. include_expsyms=
  8647. # exclude_expsyms can be an extended regexp of symbols to exclude
  8648. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8649. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8650. # as well as any symbol that contains `d'.
  8651. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8652. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8653. # platforms (ab)use it in PIC code, but their linkers get confused if
  8654. # the symbol is explicitly referenced. Since portable code cannot
  8655. # rely on this symbol name, it's probably fine to never include it in
  8656. # preloaded symbol tables.
  8657. # Exclude shared library initialization/finalization symbols.
  8658. extract_expsyms_cmds=
  8659. case $host_os in
  8660. cygwin* | mingw* | pw32* | cegcc*)
  8661. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8662. # When not using gcc, we currently assume that we are using
  8663. # Microsoft Visual C++.
  8664. if test "$GCC" != yes; then
  8665. with_gnu_ld=no
  8666. fi
  8667. ;;
  8668. interix*)
  8669. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8670. with_gnu_ld=yes
  8671. ;;
  8672. openbsd*)
  8673. with_gnu_ld=no
  8674. ;;
  8675. esac
  8676. ld_shlibs=yes
  8677. if test "$with_gnu_ld" = yes; then
  8678. # If archive_cmds runs LD, not CC, wlarc should be empty
  8679. wlarc='${wl}'
  8680. # Set some defaults for GNU ld with shared library support. These
  8681. # are reset later if shared libraries are not supported. Putting them
  8682. # here allows them to be overridden if necessary.
  8683. runpath_var=LD_RUN_PATH
  8684. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8685. export_dynamic_flag_spec='${wl}--export-dynamic'
  8686. # ancient GNU ld didn't support --whole-archive et. al.
  8687. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8688. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8689. else
  8690. whole_archive_flag_spec=
  8691. fi
  8692. supports_anon_versioning=no
  8693. case `$LD -v 2>&1` in
  8694. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8695. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8696. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8697. *\ 2.11.*) ;; # other 2.11 versions
  8698. *) supports_anon_versioning=yes ;;
  8699. esac
  8700. # See if GNU ld supports shared libraries.
  8701. case $host_os in
  8702. aix[3-9]*)
  8703. # On AIX/PPC, the GNU linker is very broken
  8704. if test "$host_cpu" != ia64; then
  8705. ld_shlibs=no
  8706. cat <<_LT_EOF 1>&2
  8707. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8708. *** to be unable to reliably create shared libraries on AIX.
  8709. *** Therefore, libtool is disabling shared libraries support. If you
  8710. *** really care for shared libraries, you may want to modify your PATH
  8711. *** so that a non-GNU linker is found, and then restart.
  8712. _LT_EOF
  8713. fi
  8714. ;;
  8715. amigaos*)
  8716. case $host_cpu in
  8717. powerpc)
  8718. # see comment about AmigaOS4 .so support
  8719. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8720. archive_expsym_cmds=''
  8721. ;;
  8722. m68k)
  8723. 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)'
  8724. hardcode_libdir_flag_spec='-L$libdir'
  8725. hardcode_minus_L=yes
  8726. ;;
  8727. esac
  8728. ;;
  8729. beos*)
  8730. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8731. allow_undefined_flag=unsupported
  8732. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8733. # support --undefined. This deserves some investigation. FIXME
  8734. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8735. else
  8736. ld_shlibs=no
  8737. fi
  8738. ;;
  8739. cygwin* | mingw* | pw32* | cegcc*)
  8740. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8741. # as there is no search path for DLLs.
  8742. hardcode_libdir_flag_spec='-L$libdir'
  8743. allow_undefined_flag=unsupported
  8744. always_export_symbols=no
  8745. enable_shared_with_static_runtimes=yes
  8746. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8747. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8748. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8749. # If the export-symbols file already is a .def file (1st line
  8750. # is EXPORTS), use it as is; otherwise, prepend...
  8751. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8752. cp $export_symbols $output_objdir/$soname.def;
  8753. else
  8754. echo EXPORTS > $output_objdir/$soname.def;
  8755. cat $export_symbols >> $output_objdir/$soname.def;
  8756. fi~
  8757. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8758. else
  8759. ld_shlibs=no
  8760. fi
  8761. ;;
  8762. interix[3-9]*)
  8763. hardcode_direct=no
  8764. hardcode_shlibpath_var=no
  8765. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8766. export_dynamic_flag_spec='${wl}-E'
  8767. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8768. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8769. # default) and relocated if they conflict, which is a slow very memory
  8770. # consuming and fragmenting process. To avoid this, we pick a random,
  8771. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8772. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8773. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8774. 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'
  8775. ;;
  8776. gnu* | linux* | tpf* | k*bsd*-gnu)
  8777. tmp_diet=no
  8778. if test "$host_os" = linux-dietlibc; then
  8779. case $cc_basename in
  8780. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8781. esac
  8782. fi
  8783. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8784. && test "$tmp_diet" = no
  8785. then
  8786. tmp_addflag=
  8787. tmp_sharedflag='-shared'
  8788. case $cc_basename,$host_cpu in
  8789. pgcc*) # Portland Group C compiler
  8790. 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'
  8791. tmp_addflag=' $pic_flag'
  8792. ;;
  8793. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8794. 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'
  8795. tmp_addflag=' $pic_flag -Mnomain' ;;
  8796. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8797. tmp_addflag=' -i_dynamic' ;;
  8798. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8799. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8800. ifc* | ifort*) # Intel Fortran compiler
  8801. tmp_addflag=' -nofor_main' ;;
  8802. lf95*) # Lahey Fortran 8.1
  8803. whole_archive_flag_spec=
  8804. tmp_sharedflag='--shared' ;;
  8805. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8806. tmp_sharedflag='-qmkshrobj'
  8807. tmp_addflag= ;;
  8808. esac
  8809. case `$CC -V 2>&1 | sed 5q` in
  8810. *Sun\ C*) # Sun C 5.9
  8811. 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'
  8812. compiler_needs_object=yes
  8813. tmp_sharedflag='-G' ;;
  8814. *Sun\ F*) # Sun Fortran 8.3
  8815. tmp_sharedflag='-G' ;;
  8816. esac
  8817. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8818. if test "x$supports_anon_versioning" = xyes; then
  8819. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8820. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8821. echo "local: *; };" >> $output_objdir/$libname.ver~
  8822. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8823. fi
  8824. case $cc_basename in
  8825. xlf*)
  8826. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8827. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8828. hardcode_libdir_flag_spec=
  8829. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8830. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8831. if test "x$supports_anon_versioning" = xyes; then
  8832. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8833. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8834. echo "local: *; };" >> $output_objdir/$libname.ver~
  8835. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8836. fi
  8837. ;;
  8838. esac
  8839. else
  8840. ld_shlibs=no
  8841. fi
  8842. ;;
  8843. netbsd*)
  8844. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8845. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8846. wlarc=
  8847. else
  8848. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8849. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8850. fi
  8851. ;;
  8852. solaris*)
  8853. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8854. ld_shlibs=no
  8855. cat <<_LT_EOF 1>&2
  8856. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8857. *** create shared libraries on Solaris systems. Therefore, libtool
  8858. *** is disabling shared libraries support. We urge you to upgrade GNU
  8859. *** binutils to release 2.9.1 or newer. Another option is to modify
  8860. *** your PATH or compiler configuration so that the native linker is
  8861. *** used, and then restart.
  8862. _LT_EOF
  8863. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8864. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8865. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8866. else
  8867. ld_shlibs=no
  8868. fi
  8869. ;;
  8870. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8871. case `$LD -v 2>&1` in
  8872. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8873. ld_shlibs=no
  8874. cat <<_LT_EOF 1>&2
  8875. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8876. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8877. *** is disabling shared libraries support. We urge you to upgrade GNU
  8878. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8879. *** your PATH or compiler configuration so that the native linker is
  8880. *** used, and then restart.
  8881. _LT_EOF
  8882. ;;
  8883. *)
  8884. # For security reasons, it is highly recommended that you always
  8885. # use absolute paths for naming shared libraries, and exclude the
  8886. # DT_RUNPATH tag from executables and libraries. But doing so
  8887. # requires that you compile everything twice, which is a pain.
  8888. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8889. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8890. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8891. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8892. else
  8893. ld_shlibs=no
  8894. fi
  8895. ;;
  8896. esac
  8897. ;;
  8898. sunos4*)
  8899. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8900. wlarc=
  8901. hardcode_direct=yes
  8902. hardcode_shlibpath_var=no
  8903. ;;
  8904. *)
  8905. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8906. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8907. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8908. else
  8909. ld_shlibs=no
  8910. fi
  8911. ;;
  8912. esac
  8913. if test "$ld_shlibs" = no; then
  8914. runpath_var=
  8915. hardcode_libdir_flag_spec=
  8916. export_dynamic_flag_spec=
  8917. whole_archive_flag_spec=
  8918. fi
  8919. else
  8920. # PORTME fill in a description of your system's linker (not GNU ld)
  8921. case $host_os in
  8922. aix3*)
  8923. allow_undefined_flag=unsupported
  8924. always_export_symbols=yes
  8925. 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'
  8926. # Note: this linker hardcodes the directories in LIBPATH if there
  8927. # are no directories specified by -L.
  8928. hardcode_minus_L=yes
  8929. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8930. # Neither direct hardcoding nor static linking is supported with a
  8931. # broken collect2.
  8932. hardcode_direct=unsupported
  8933. fi
  8934. ;;
  8935. aix[4-9]*)
  8936. if test "$host_cpu" = ia64; then
  8937. # On IA64, the linker does run time linking by default, so we don't
  8938. # have to do anything special.
  8939. aix_use_runtimelinking=no
  8940. exp_sym_flag='-Bexport'
  8941. no_entry_flag=""
  8942. else
  8943. # If we're using GNU nm, then we don't want the "-C" option.
  8944. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8945. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8946. 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'
  8947. else
  8948. 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'
  8949. fi
  8950. aix_use_runtimelinking=no
  8951. # Test if we are trying to use run time linking or normal
  8952. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8953. # need to do runtime linking.
  8954. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8955. for ld_flag in $LDFLAGS; do
  8956. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8957. aix_use_runtimelinking=yes
  8958. break
  8959. fi
  8960. done
  8961. ;;
  8962. esac
  8963. exp_sym_flag='-bexport'
  8964. no_entry_flag='-bnoentry'
  8965. fi
  8966. # When large executables or shared objects are built, AIX ld can
  8967. # have problems creating the table of contents. If linking a library
  8968. # or program results in "error TOC overflow" add -mminimal-toc to
  8969. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8970. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8971. archive_cmds=''
  8972. hardcode_direct=yes
  8973. hardcode_direct_absolute=yes
  8974. hardcode_libdir_separator=':'
  8975. link_all_deplibs=yes
  8976. file_list_spec='${wl}-f,'
  8977. if test "$GCC" = yes; then
  8978. case $host_os in aix4.[012]|aix4.[012].*)
  8979. # We only want to do this on AIX 4.2 and lower, the check
  8980. # below for broken collect2 doesn't work under 4.3+
  8981. collect2name=`${CC} -print-prog-name=collect2`
  8982. if test -f "$collect2name" &&
  8983. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8984. then
  8985. # We have reworked collect2
  8986. :
  8987. else
  8988. # We have old collect2
  8989. hardcode_direct=unsupported
  8990. # It fails to find uninstalled libraries when the uninstalled
  8991. # path is not listed in the libpath. Setting hardcode_minus_L
  8992. # to unsupported forces relinking
  8993. hardcode_minus_L=yes
  8994. hardcode_libdir_flag_spec='-L$libdir'
  8995. hardcode_libdir_separator=
  8996. fi
  8997. ;;
  8998. esac
  8999. shared_flag='-shared'
  9000. if test "$aix_use_runtimelinking" = yes; then
  9001. shared_flag="$shared_flag "'${wl}-G'
  9002. fi
  9003. else
  9004. # not using gcc
  9005. if test "$host_cpu" = ia64; then
  9006. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9007. # chokes on -Wl,-G. The following line is correct:
  9008. shared_flag='-G'
  9009. else
  9010. if test "$aix_use_runtimelinking" = yes; then
  9011. shared_flag='${wl}-G'
  9012. else
  9013. shared_flag='${wl}-bM:SRE'
  9014. fi
  9015. fi
  9016. fi
  9017. export_dynamic_flag_spec='${wl}-bexpall'
  9018. # It seems that -bexpall does not export symbols beginning with
  9019. # underscore (_), so it is better to generate a list of symbols to export.
  9020. always_export_symbols=yes
  9021. if test "$aix_use_runtimelinking" = yes; then
  9022. # Warning - without using the other runtime loading flags (-brtl),
  9023. # -berok will link without error, but may produce a broken library.
  9024. allow_undefined_flag='-berok'
  9025. # Determine the default libpath from the value encoded in an
  9026. # empty executable.
  9027. cat >conftest.$ac_ext <<_ACEOF
  9028. /* confdefs.h. */
  9029. _ACEOF
  9030. cat confdefs.h >>conftest.$ac_ext
  9031. cat >>conftest.$ac_ext <<_ACEOF
  9032. /* end confdefs.h. */
  9033. int
  9034. main ()
  9035. {
  9036. ;
  9037. return 0;
  9038. }
  9039. _ACEOF
  9040. rm -f conftest.$ac_objext conftest$ac_exeext
  9041. if { (ac_try="$ac_link"
  9042. case "(($ac_try" in
  9043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9044. *) ac_try_echo=$ac_try;;
  9045. esac
  9046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9047. $as_echo "$ac_try_echo") >&5
  9048. (eval "$ac_link") 2>conftest.er1
  9049. ac_status=$?
  9050. grep -v '^ *+' conftest.er1 >conftest.err
  9051. rm -f conftest.er1
  9052. cat conftest.err >&5
  9053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9054. (exit $ac_status); } && {
  9055. test -z "$ac_c_werror_flag" ||
  9056. test ! -s conftest.err
  9057. } && test -s conftest$ac_exeext && {
  9058. test "$cross_compiling" = yes ||
  9059. $as_test_x conftest$ac_exeext
  9060. }; then
  9061. lt_aix_libpath_sed='
  9062. /Import File Strings/,/^$/ {
  9063. /^0/ {
  9064. s/^0 *\(.*\)$/\1/
  9065. p
  9066. }
  9067. }'
  9068. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9069. # Check for a 64-bit object if we didn't find anything.
  9070. if test -z "$aix_libpath"; then
  9071. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9072. fi
  9073. else
  9074. $as_echo "$as_me: failed program was:" >&5
  9075. sed 's/^/| /' conftest.$ac_ext >&5
  9076. fi
  9077. rm -rf conftest.dSYM
  9078. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9079. conftest$ac_exeext conftest.$ac_ext
  9080. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9081. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9082. 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"
  9083. else
  9084. if test "$host_cpu" = ia64; then
  9085. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9086. allow_undefined_flag="-z nodefs"
  9087. 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"
  9088. else
  9089. # Determine the default libpath from the value encoded in an
  9090. # empty executable.
  9091. cat >conftest.$ac_ext <<_ACEOF
  9092. /* confdefs.h. */
  9093. _ACEOF
  9094. cat confdefs.h >>conftest.$ac_ext
  9095. cat >>conftest.$ac_ext <<_ACEOF
  9096. /* end confdefs.h. */
  9097. int
  9098. main ()
  9099. {
  9100. ;
  9101. return 0;
  9102. }
  9103. _ACEOF
  9104. rm -f conftest.$ac_objext conftest$ac_exeext
  9105. if { (ac_try="$ac_link"
  9106. case "(($ac_try" in
  9107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9108. *) ac_try_echo=$ac_try;;
  9109. esac
  9110. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9111. $as_echo "$ac_try_echo") >&5
  9112. (eval "$ac_link") 2>conftest.er1
  9113. ac_status=$?
  9114. grep -v '^ *+' conftest.er1 >conftest.err
  9115. rm -f conftest.er1
  9116. cat conftest.err >&5
  9117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9118. (exit $ac_status); } && {
  9119. test -z "$ac_c_werror_flag" ||
  9120. test ! -s conftest.err
  9121. } && test -s conftest$ac_exeext && {
  9122. test "$cross_compiling" = yes ||
  9123. $as_test_x conftest$ac_exeext
  9124. }; then
  9125. lt_aix_libpath_sed='
  9126. /Import File Strings/,/^$/ {
  9127. /^0/ {
  9128. s/^0 *\(.*\)$/\1/
  9129. p
  9130. }
  9131. }'
  9132. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9133. # Check for a 64-bit object if we didn't find anything.
  9134. if test -z "$aix_libpath"; then
  9135. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9136. fi
  9137. else
  9138. $as_echo "$as_me: failed program was:" >&5
  9139. sed 's/^/| /' conftest.$ac_ext >&5
  9140. fi
  9141. rm -rf conftest.dSYM
  9142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9143. conftest$ac_exeext conftest.$ac_ext
  9144. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9145. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9146. # Warning - without using the other run time loading flags,
  9147. # -berok will link without error, but may produce a broken library.
  9148. no_undefined_flag=' ${wl}-bernotok'
  9149. allow_undefined_flag=' ${wl}-berok'
  9150. # Exported symbols can be pulled into shared objects from archives
  9151. whole_archive_flag_spec='$convenience'
  9152. archive_cmds_need_lc=yes
  9153. # This is similar to how AIX traditionally builds its shared libraries.
  9154. 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'
  9155. fi
  9156. fi
  9157. ;;
  9158. amigaos*)
  9159. case $host_cpu in
  9160. powerpc)
  9161. # see comment about AmigaOS4 .so support
  9162. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9163. archive_expsym_cmds=''
  9164. ;;
  9165. m68k)
  9166. 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)'
  9167. hardcode_libdir_flag_spec='-L$libdir'
  9168. hardcode_minus_L=yes
  9169. ;;
  9170. esac
  9171. ;;
  9172. bsdi[45]*)
  9173. export_dynamic_flag_spec=-rdynamic
  9174. ;;
  9175. cygwin* | mingw* | pw32* | cegcc*)
  9176. # When not using gcc, we currently assume that we are using
  9177. # Microsoft Visual C++.
  9178. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9179. # no search path for DLLs.
  9180. hardcode_libdir_flag_spec=' '
  9181. allow_undefined_flag=unsupported
  9182. # Tell ltmain to make .lib files, not .a files.
  9183. libext=lib
  9184. # Tell ltmain to make .dll files, not .so files.
  9185. shrext_cmds=".dll"
  9186. # FIXME: Setting linknames here is a bad hack.
  9187. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9188. # The linker will automatically build a .lib file if we build a DLL.
  9189. old_archive_from_new_cmds='true'
  9190. # FIXME: Should let the user specify the lib program.
  9191. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9192. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9193. enable_shared_with_static_runtimes=yes
  9194. ;;
  9195. darwin* | rhapsody*)
  9196. archive_cmds_need_lc=no
  9197. hardcode_direct=no
  9198. hardcode_automatic=yes
  9199. hardcode_shlibpath_var=unsupported
  9200. whole_archive_flag_spec=''
  9201. link_all_deplibs=yes
  9202. allow_undefined_flag="$_lt_dar_allow_undefined"
  9203. case $cc_basename in
  9204. ifort*) _lt_dar_can_shared=yes ;;
  9205. *) _lt_dar_can_shared=$GCC ;;
  9206. esac
  9207. if test "$_lt_dar_can_shared" = "yes"; then
  9208. output_verbose_link_cmd=echo
  9209. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9210. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9211. 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}"
  9212. 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}"
  9213. else
  9214. ld_shlibs=no
  9215. fi
  9216. ;;
  9217. dgux*)
  9218. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9219. hardcode_libdir_flag_spec='-L$libdir'
  9220. hardcode_shlibpath_var=no
  9221. ;;
  9222. freebsd1*)
  9223. ld_shlibs=no
  9224. ;;
  9225. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9226. # support. Future versions do this automatically, but an explicit c++rt0.o
  9227. # does not break anything, and helps significantly (at the cost of a little
  9228. # extra space).
  9229. freebsd2.2*)
  9230. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9231. hardcode_libdir_flag_spec='-R$libdir'
  9232. hardcode_direct=yes
  9233. hardcode_shlibpath_var=no
  9234. ;;
  9235. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9236. freebsd2*)
  9237. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9238. hardcode_direct=yes
  9239. hardcode_minus_L=yes
  9240. hardcode_shlibpath_var=no
  9241. ;;
  9242. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9243. freebsd* | dragonfly*)
  9244. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9245. hardcode_libdir_flag_spec='-R$libdir'
  9246. hardcode_direct=yes
  9247. hardcode_shlibpath_var=no
  9248. ;;
  9249. hpux9*)
  9250. if test "$GCC" = yes; then
  9251. 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'
  9252. else
  9253. 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'
  9254. fi
  9255. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9256. hardcode_libdir_separator=:
  9257. hardcode_direct=yes
  9258. # hardcode_minus_L: Not really in the search PATH,
  9259. # but as the default location of the library.
  9260. hardcode_minus_L=yes
  9261. export_dynamic_flag_spec='${wl}-E'
  9262. ;;
  9263. hpux10*)
  9264. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9265. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9266. else
  9267. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9268. fi
  9269. if test "$with_gnu_ld" = no; then
  9270. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9271. hardcode_libdir_flag_spec_ld='+b $libdir'
  9272. hardcode_libdir_separator=:
  9273. hardcode_direct=yes
  9274. hardcode_direct_absolute=yes
  9275. export_dynamic_flag_spec='${wl}-E'
  9276. # hardcode_minus_L: Not really in the search PATH,
  9277. # but as the default location of the library.
  9278. hardcode_minus_L=yes
  9279. fi
  9280. ;;
  9281. hpux11*)
  9282. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9283. case $host_cpu in
  9284. hppa*64*)
  9285. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9286. ;;
  9287. ia64*)
  9288. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9289. ;;
  9290. *)
  9291. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9292. ;;
  9293. esac
  9294. else
  9295. case $host_cpu in
  9296. hppa*64*)
  9297. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9298. ;;
  9299. ia64*)
  9300. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9301. ;;
  9302. *)
  9303. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9304. ;;
  9305. esac
  9306. fi
  9307. if test "$with_gnu_ld" = no; then
  9308. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9309. hardcode_libdir_separator=:
  9310. case $host_cpu in
  9311. hppa*64*|ia64*)
  9312. hardcode_direct=no
  9313. hardcode_shlibpath_var=no
  9314. ;;
  9315. *)
  9316. hardcode_direct=yes
  9317. hardcode_direct_absolute=yes
  9318. export_dynamic_flag_spec='${wl}-E'
  9319. # hardcode_minus_L: Not really in the search PATH,
  9320. # but as the default location of the library.
  9321. hardcode_minus_L=yes
  9322. ;;
  9323. esac
  9324. fi
  9325. ;;
  9326. irix5* | irix6* | nonstopux*)
  9327. if test "$GCC" = yes; then
  9328. 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'
  9329. # Try to use the -exported_symbol ld option, if it does not
  9330. # work, assume that -exports_file does not work either and
  9331. # implicitly export all symbols.
  9332. save_LDFLAGS="$LDFLAGS"
  9333. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9334. cat >conftest.$ac_ext <<_ACEOF
  9335. int foo(void) {}
  9336. _ACEOF
  9337. rm -f conftest.$ac_objext conftest$ac_exeext
  9338. if { (ac_try="$ac_link"
  9339. case "(($ac_try" in
  9340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9341. *) ac_try_echo=$ac_try;;
  9342. esac
  9343. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9344. $as_echo "$ac_try_echo") >&5
  9345. (eval "$ac_link") 2>conftest.er1
  9346. ac_status=$?
  9347. grep -v '^ *+' conftest.er1 >conftest.err
  9348. rm -f conftest.er1
  9349. cat conftest.err >&5
  9350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9351. (exit $ac_status); } && {
  9352. test -z "$ac_c_werror_flag" ||
  9353. test ! -s conftest.err
  9354. } && test -s conftest$ac_exeext && {
  9355. test "$cross_compiling" = yes ||
  9356. $as_test_x conftest$ac_exeext
  9357. }; then
  9358. 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'
  9359. else
  9360. $as_echo "$as_me: failed program was:" >&5
  9361. sed 's/^/| /' conftest.$ac_ext >&5
  9362. fi
  9363. rm -rf conftest.dSYM
  9364. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9365. conftest$ac_exeext conftest.$ac_ext
  9366. LDFLAGS="$save_LDFLAGS"
  9367. else
  9368. 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'
  9369. 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'
  9370. fi
  9371. archive_cmds_need_lc='no'
  9372. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9373. hardcode_libdir_separator=:
  9374. inherit_rpath=yes
  9375. link_all_deplibs=yes
  9376. ;;
  9377. netbsd*)
  9378. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9379. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9380. else
  9381. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9382. fi
  9383. hardcode_libdir_flag_spec='-R$libdir'
  9384. hardcode_direct=yes
  9385. hardcode_shlibpath_var=no
  9386. ;;
  9387. newsos6)
  9388. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9389. hardcode_direct=yes
  9390. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9391. hardcode_libdir_separator=:
  9392. hardcode_shlibpath_var=no
  9393. ;;
  9394. *nto* | *qnx*)
  9395. ;;
  9396. openbsd*)
  9397. if test -f /usr/libexec/ld.so; then
  9398. hardcode_direct=yes
  9399. hardcode_shlibpath_var=no
  9400. hardcode_direct_absolute=yes
  9401. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9402. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9403. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9404. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9405. export_dynamic_flag_spec='${wl}-E'
  9406. else
  9407. case $host_os in
  9408. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9409. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9410. hardcode_libdir_flag_spec='-R$libdir'
  9411. ;;
  9412. *)
  9413. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9414. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9415. ;;
  9416. esac
  9417. fi
  9418. else
  9419. ld_shlibs=no
  9420. fi
  9421. ;;
  9422. os2*)
  9423. hardcode_libdir_flag_spec='-L$libdir'
  9424. hardcode_minus_L=yes
  9425. allow_undefined_flag=unsupported
  9426. 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'
  9427. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9428. ;;
  9429. osf3*)
  9430. if test "$GCC" = yes; then
  9431. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9432. 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'
  9433. else
  9434. allow_undefined_flag=' -expect_unresolved \*'
  9435. 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'
  9436. fi
  9437. archive_cmds_need_lc='no'
  9438. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9439. hardcode_libdir_separator=:
  9440. ;;
  9441. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9442. if test "$GCC" = yes; then
  9443. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9444. 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'
  9445. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9446. else
  9447. allow_undefined_flag=' -expect_unresolved \*'
  9448. 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'
  9449. 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~
  9450. $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'
  9451. # Both c and cxx compiler support -rpath directly
  9452. hardcode_libdir_flag_spec='-rpath $libdir'
  9453. fi
  9454. archive_cmds_need_lc='no'
  9455. hardcode_libdir_separator=:
  9456. ;;
  9457. solaris*)
  9458. no_undefined_flag=' -z defs'
  9459. if test "$GCC" = yes; then
  9460. wlarc='${wl}'
  9461. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9462. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9463. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9464. else
  9465. case `$CC -V 2>&1` in
  9466. *"Compilers 5.0"*)
  9467. wlarc=''
  9468. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9469. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9470. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9471. ;;
  9472. *)
  9473. wlarc='${wl}'
  9474. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9475. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9476. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9477. ;;
  9478. esac
  9479. fi
  9480. hardcode_libdir_flag_spec='-R$libdir'
  9481. hardcode_shlibpath_var=no
  9482. case $host_os in
  9483. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9484. *)
  9485. # The compiler driver will combine and reorder linker options,
  9486. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9487. # but is careful enough not to reorder.
  9488. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9489. if test "$GCC" = yes; then
  9490. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9491. else
  9492. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9493. fi
  9494. ;;
  9495. esac
  9496. link_all_deplibs=yes
  9497. ;;
  9498. sunos4*)
  9499. if test "x$host_vendor" = xsequent; then
  9500. # Use $CC to link under sequent, because it throws in some extra .o
  9501. # files that make .init and .fini sections work.
  9502. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9503. else
  9504. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9505. fi
  9506. hardcode_libdir_flag_spec='-L$libdir'
  9507. hardcode_direct=yes
  9508. hardcode_minus_L=yes
  9509. hardcode_shlibpath_var=no
  9510. ;;
  9511. sysv4)
  9512. case $host_vendor in
  9513. sni)
  9514. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9515. hardcode_direct=yes # is this really true???
  9516. ;;
  9517. siemens)
  9518. ## LD is ld it makes a PLAMLIB
  9519. ## CC just makes a GrossModule.
  9520. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9521. reload_cmds='$CC -r -o $output$reload_objs'
  9522. hardcode_direct=no
  9523. ;;
  9524. motorola)
  9525. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9526. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9527. ;;
  9528. esac
  9529. runpath_var='LD_RUN_PATH'
  9530. hardcode_shlibpath_var=no
  9531. ;;
  9532. sysv4.3*)
  9533. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9534. hardcode_shlibpath_var=no
  9535. export_dynamic_flag_spec='-Bexport'
  9536. ;;
  9537. sysv4*MP*)
  9538. if test -d /usr/nec; then
  9539. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9540. hardcode_shlibpath_var=no
  9541. runpath_var=LD_RUN_PATH
  9542. hardcode_runpath_var=yes
  9543. ld_shlibs=yes
  9544. fi
  9545. ;;
  9546. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9547. no_undefined_flag='${wl}-z,text'
  9548. archive_cmds_need_lc=no
  9549. hardcode_shlibpath_var=no
  9550. runpath_var='LD_RUN_PATH'
  9551. if test "$GCC" = yes; then
  9552. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9553. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9554. else
  9555. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9556. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9557. fi
  9558. ;;
  9559. sysv5* | sco3.2v5* | sco5v6*)
  9560. # Note: We can NOT use -z defs as we might desire, because we do not
  9561. # link with -lc, and that would cause any symbols used from libc to
  9562. # always be unresolved, which means just about no library would
  9563. # ever link correctly. If we're not using GNU ld we use -z text
  9564. # though, which does catch some bad symbols but isn't as heavy-handed
  9565. # as -z defs.
  9566. no_undefined_flag='${wl}-z,text'
  9567. allow_undefined_flag='${wl}-z,nodefs'
  9568. archive_cmds_need_lc=no
  9569. hardcode_shlibpath_var=no
  9570. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9571. hardcode_libdir_separator=':'
  9572. link_all_deplibs=yes
  9573. export_dynamic_flag_spec='${wl}-Bexport'
  9574. runpath_var='LD_RUN_PATH'
  9575. if test "$GCC" = yes; then
  9576. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9577. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9578. else
  9579. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9580. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9581. fi
  9582. ;;
  9583. uts4*)
  9584. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9585. hardcode_libdir_flag_spec='-L$libdir'
  9586. hardcode_shlibpath_var=no
  9587. ;;
  9588. *)
  9589. ld_shlibs=no
  9590. ;;
  9591. esac
  9592. if test x$host_vendor = xsni; then
  9593. case $host in
  9594. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9595. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9596. ;;
  9597. esac
  9598. fi
  9599. fi
  9600. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9601. $as_echo "$ld_shlibs" >&6; }
  9602. test "$ld_shlibs" = no && can_build_shared=no
  9603. with_gnu_ld=$with_gnu_ld
  9604. #
  9605. # Do we need to explicitly link libc?
  9606. #
  9607. case "x$archive_cmds_need_lc" in
  9608. x|xyes)
  9609. # Assume -lc should be added
  9610. archive_cmds_need_lc=yes
  9611. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9612. case $archive_cmds in
  9613. *'~'*)
  9614. # FIXME: we may have to deal with multi-command sequences.
  9615. ;;
  9616. '$CC '*)
  9617. # Test whether the compiler implicitly links with -lc since on some
  9618. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9619. # to ld, don't add -lc before -lgcc.
  9620. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9621. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9622. $RM conftest*
  9623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9625. (eval $ac_compile) 2>&5
  9626. ac_status=$?
  9627. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9628. (exit $ac_status); } 2>conftest.err; then
  9629. soname=conftest
  9630. lib=conftest
  9631. libobjs=conftest.$ac_objext
  9632. deplibs=
  9633. wl=$lt_prog_compiler_wl
  9634. pic_flag=$lt_prog_compiler_pic
  9635. compiler_flags=-v
  9636. linker_flags=-v
  9637. verstring=
  9638. output_objdir=.
  9639. libname=conftest
  9640. lt_save_allow_undefined_flag=$allow_undefined_flag
  9641. allow_undefined_flag=
  9642. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9643. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9644. ac_status=$?
  9645. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9646. (exit $ac_status); }
  9647. then
  9648. archive_cmds_need_lc=no
  9649. else
  9650. archive_cmds_need_lc=yes
  9651. fi
  9652. allow_undefined_flag=$lt_save_allow_undefined_flag
  9653. else
  9654. cat conftest.err 1>&5
  9655. fi
  9656. $RM conftest*
  9657. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9658. $as_echo "$archive_cmds_need_lc" >&6; }
  9659. ;;
  9660. esac
  9661. fi
  9662. ;;
  9663. esac
  9664. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9665. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9666. if test "$GCC" = yes; then
  9667. case $host_os in
  9668. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9669. *) lt_awk_arg="/^libraries:/" ;;
  9670. esac
  9671. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9672. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9673. # if the path contains ";" then we assume it to be the separator
  9674. # otherwise default to the standard path separator (i.e. ":") - it is
  9675. # assumed that no part of a normal pathname contains ";" but that should
  9676. # okay in the real world where ";" in dirpaths is itself problematic.
  9677. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9678. else
  9679. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9680. fi
  9681. # Ok, now we have the path, separated by spaces, we can step through it
  9682. # and add multilib dir if necessary.
  9683. lt_tmp_lt_search_path_spec=
  9684. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9685. for lt_sys_path in $lt_search_path_spec; do
  9686. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9687. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9688. else
  9689. test -d "$lt_sys_path" && \
  9690. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9691. fi
  9692. done
  9693. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9694. BEGIN {RS=" "; FS="/|\n";} {
  9695. lt_foo="";
  9696. lt_count=0;
  9697. for (lt_i = NF; lt_i > 0; lt_i--) {
  9698. if ($lt_i != "" && $lt_i != ".") {
  9699. if ($lt_i == "..") {
  9700. lt_count++;
  9701. } else {
  9702. if (lt_count == 0) {
  9703. lt_foo="/" $lt_i lt_foo;
  9704. } else {
  9705. lt_count--;
  9706. }
  9707. }
  9708. }
  9709. }
  9710. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9711. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9712. }'`
  9713. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9714. else
  9715. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9716. fi
  9717. library_names_spec=
  9718. libname_spec='lib$name'
  9719. soname_spec=
  9720. shrext_cmds=".so"
  9721. postinstall_cmds=
  9722. postuninstall_cmds=
  9723. finish_cmds=
  9724. finish_eval=
  9725. shlibpath_var=
  9726. shlibpath_overrides_runpath=unknown
  9727. version_type=none
  9728. dynamic_linker="$host_os ld.so"
  9729. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9730. need_lib_prefix=unknown
  9731. hardcode_into_libs=no
  9732. # when you set need_version to no, make sure it does not cause -set_version
  9733. # flags to be left without arguments
  9734. need_version=unknown
  9735. case $host_os in
  9736. aix3*)
  9737. version_type=linux
  9738. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9739. shlibpath_var=LIBPATH
  9740. # AIX 3 has no versioning support, so we append a major version to the name.
  9741. soname_spec='${libname}${release}${shared_ext}$major'
  9742. ;;
  9743. aix[4-9]*)
  9744. version_type=linux
  9745. need_lib_prefix=no
  9746. need_version=no
  9747. hardcode_into_libs=yes
  9748. if test "$host_cpu" = ia64; then
  9749. # AIX 5 supports IA64
  9750. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9751. shlibpath_var=LD_LIBRARY_PATH
  9752. else
  9753. # With GCC up to 2.95.x, collect2 would create an import file
  9754. # for dependence libraries. The import file would start with
  9755. # the line `#! .'. This would cause the generated library to
  9756. # depend on `.', always an invalid library. This was fixed in
  9757. # development snapshots of GCC prior to 3.0.
  9758. case $host_os in
  9759. aix4 | aix4.[01] | aix4.[01].*)
  9760. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9761. echo ' yes '
  9762. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9763. :
  9764. else
  9765. can_build_shared=no
  9766. fi
  9767. ;;
  9768. esac
  9769. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9770. # soname into executable. Probably we can add versioning support to
  9771. # collect2, so additional links can be useful in future.
  9772. if test "$aix_use_runtimelinking" = yes; then
  9773. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9774. # instead of lib<name>.a to let people know that these are not
  9775. # typical AIX shared libraries.
  9776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9777. else
  9778. # We preserve .a as extension for shared libraries through AIX4.2
  9779. # and later when we are not doing run time linking.
  9780. library_names_spec='${libname}${release}.a $libname.a'
  9781. soname_spec='${libname}${release}${shared_ext}$major'
  9782. fi
  9783. shlibpath_var=LIBPATH
  9784. fi
  9785. ;;
  9786. amigaos*)
  9787. case $host_cpu in
  9788. powerpc)
  9789. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9790. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9792. ;;
  9793. m68k)
  9794. library_names_spec='$libname.ixlibrary $libname.a'
  9795. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9796. 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'
  9797. ;;
  9798. esac
  9799. ;;
  9800. beos*)
  9801. library_names_spec='${libname}${shared_ext}'
  9802. dynamic_linker="$host_os ld.so"
  9803. shlibpath_var=LIBRARY_PATH
  9804. ;;
  9805. bsdi[45]*)
  9806. version_type=linux
  9807. need_version=no
  9808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9809. soname_spec='${libname}${release}${shared_ext}$major'
  9810. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9811. shlibpath_var=LD_LIBRARY_PATH
  9812. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9813. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9814. # the default ld.so.conf also contains /usr/contrib/lib and
  9815. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9816. # libtool to hard-code these into programs
  9817. ;;
  9818. cygwin* | mingw* | pw32* | cegcc*)
  9819. version_type=windows
  9820. shrext_cmds=".dll"
  9821. need_version=no
  9822. need_lib_prefix=no
  9823. case $GCC,$host_os in
  9824. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9825. library_names_spec='$libname.dll.a'
  9826. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9827. postinstall_cmds='base_file=`basename \${file}`~
  9828. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9829. dldir=$destdir/`dirname \$dlpath`~
  9830. test -d \$dldir || mkdir -p \$dldir~
  9831. $install_prog $dir/$dlname \$dldir/$dlname~
  9832. chmod a+x \$dldir/$dlname~
  9833. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9834. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9835. fi'
  9836. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9837. dlpath=$dir/\$dldll~
  9838. $RM \$dlpath'
  9839. shlibpath_overrides_runpath=yes
  9840. case $host_os in
  9841. cygwin*)
  9842. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9843. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9844. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9845. ;;
  9846. mingw* | cegcc*)
  9847. # MinGW DLLs use traditional 'lib' prefix
  9848. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9849. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9850. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9851. # It is most probably a Windows format PATH printed by
  9852. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9853. # path with ; separators, and with drive letters. We can handle the
  9854. # drive letters (cygwin fileutils understands them), so leave them,
  9855. # especially as we might pass files found there to a mingw objdump,
  9856. # which wouldn't understand a cygwinified path. Ahh.
  9857. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9858. else
  9859. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9860. fi
  9861. ;;
  9862. pw32*)
  9863. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9864. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9865. ;;
  9866. esac
  9867. ;;
  9868. *)
  9869. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9870. ;;
  9871. esac
  9872. dynamic_linker='Win32 ld.exe'
  9873. # FIXME: first we should search . and the directory the executable is in
  9874. shlibpath_var=PATH
  9875. ;;
  9876. darwin* | rhapsody*)
  9877. dynamic_linker="$host_os dyld"
  9878. version_type=darwin
  9879. need_lib_prefix=no
  9880. need_version=no
  9881. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9882. soname_spec='${libname}${release}${major}$shared_ext'
  9883. shlibpath_overrides_runpath=yes
  9884. shlibpath_var=DYLD_LIBRARY_PATH
  9885. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9886. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9887. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9888. ;;
  9889. dgux*)
  9890. version_type=linux
  9891. need_lib_prefix=no
  9892. need_version=no
  9893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9894. soname_spec='${libname}${release}${shared_ext}$major'
  9895. shlibpath_var=LD_LIBRARY_PATH
  9896. ;;
  9897. freebsd1*)
  9898. dynamic_linker=no
  9899. ;;
  9900. freebsd* | dragonfly*)
  9901. # DragonFly does not have aout. When/if they implement a new
  9902. # versioning mechanism, adjust this.
  9903. if test -x /usr/bin/objformat; then
  9904. objformat=`/usr/bin/objformat`
  9905. else
  9906. case $host_os in
  9907. freebsd[123]*) objformat=aout ;;
  9908. *) objformat=elf ;;
  9909. esac
  9910. fi
  9911. version_type=freebsd-$objformat
  9912. case $version_type in
  9913. freebsd-elf*)
  9914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9915. need_version=no
  9916. need_lib_prefix=no
  9917. ;;
  9918. freebsd-*)
  9919. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9920. need_version=yes
  9921. ;;
  9922. esac
  9923. shlibpath_var=LD_LIBRARY_PATH
  9924. case $host_os in
  9925. freebsd2*)
  9926. shlibpath_overrides_runpath=yes
  9927. ;;
  9928. freebsd3.[01]* | freebsdelf3.[01]*)
  9929. shlibpath_overrides_runpath=yes
  9930. hardcode_into_libs=yes
  9931. ;;
  9932. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9933. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9934. shlibpath_overrides_runpath=no
  9935. hardcode_into_libs=yes
  9936. ;;
  9937. *) # from 4.6 on, and DragonFly
  9938. shlibpath_overrides_runpath=yes
  9939. hardcode_into_libs=yes
  9940. ;;
  9941. esac
  9942. ;;
  9943. gnu*)
  9944. version_type=linux
  9945. need_lib_prefix=no
  9946. need_version=no
  9947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9948. soname_spec='${libname}${release}${shared_ext}$major'
  9949. shlibpath_var=LD_LIBRARY_PATH
  9950. hardcode_into_libs=yes
  9951. ;;
  9952. hpux9* | hpux10* | hpux11*)
  9953. # Give a soname corresponding to the major version so that dld.sl refuses to
  9954. # link against other versions.
  9955. version_type=sunos
  9956. need_lib_prefix=no
  9957. need_version=no
  9958. case $host_cpu in
  9959. ia64*)
  9960. shrext_cmds='.so'
  9961. hardcode_into_libs=yes
  9962. dynamic_linker="$host_os dld.so"
  9963. shlibpath_var=LD_LIBRARY_PATH
  9964. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9966. soname_spec='${libname}${release}${shared_ext}$major'
  9967. if test "X$HPUX_IA64_MODE" = X32; then
  9968. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9969. else
  9970. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9971. fi
  9972. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9973. ;;
  9974. hppa*64*)
  9975. shrext_cmds='.sl'
  9976. hardcode_into_libs=yes
  9977. dynamic_linker="$host_os dld.sl"
  9978. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9979. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9981. soname_spec='${libname}${release}${shared_ext}$major'
  9982. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9983. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9984. ;;
  9985. *)
  9986. shrext_cmds='.sl'
  9987. dynamic_linker="$host_os dld.sl"
  9988. shlibpath_var=SHLIB_PATH
  9989. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9991. soname_spec='${libname}${release}${shared_ext}$major'
  9992. ;;
  9993. esac
  9994. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9995. postinstall_cmds='chmod 555 $lib'
  9996. ;;
  9997. interix[3-9]*)
  9998. version_type=linux
  9999. need_lib_prefix=no
  10000. need_version=no
  10001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10002. soname_spec='${libname}${release}${shared_ext}$major'
  10003. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10004. shlibpath_var=LD_LIBRARY_PATH
  10005. shlibpath_overrides_runpath=no
  10006. hardcode_into_libs=yes
  10007. ;;
  10008. irix5* | irix6* | nonstopux*)
  10009. case $host_os in
  10010. nonstopux*) version_type=nonstopux ;;
  10011. *)
  10012. if test "$lt_cv_prog_gnu_ld" = yes; then
  10013. version_type=linux
  10014. else
  10015. version_type=irix
  10016. fi ;;
  10017. esac
  10018. need_lib_prefix=no
  10019. need_version=no
  10020. soname_spec='${libname}${release}${shared_ext}$major'
  10021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10022. case $host_os in
  10023. irix5* | nonstopux*)
  10024. libsuff= shlibsuff=
  10025. ;;
  10026. *)
  10027. case $LD in # libtool.m4 will add one of these switches to LD
  10028. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10029. libsuff= shlibsuff= libmagic=32-bit;;
  10030. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10031. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10032. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10033. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10034. *) libsuff= shlibsuff= libmagic=never-match;;
  10035. esac
  10036. ;;
  10037. esac
  10038. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10039. shlibpath_overrides_runpath=no
  10040. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10041. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10042. hardcode_into_libs=yes
  10043. ;;
  10044. # No shared lib support for Linux oldld, aout, or coff.
  10045. linux*oldld* | linux*aout* | linux*coff*)
  10046. dynamic_linker=no
  10047. ;;
  10048. # This must be Linux ELF.
  10049. linux* | k*bsd*-gnu)
  10050. version_type=linux
  10051. need_lib_prefix=no
  10052. need_version=no
  10053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10054. soname_spec='${libname}${release}${shared_ext}$major'
  10055. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10056. shlibpath_var=LD_LIBRARY_PATH
  10057. shlibpath_overrides_runpath=no
  10058. # Some binutils ld are patched to set DT_RUNPATH
  10059. save_LDFLAGS=$LDFLAGS
  10060. save_libdir=$libdir
  10061. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10062. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10063. cat >conftest.$ac_ext <<_ACEOF
  10064. /* confdefs.h. */
  10065. _ACEOF
  10066. cat confdefs.h >>conftest.$ac_ext
  10067. cat >>conftest.$ac_ext <<_ACEOF
  10068. /* end confdefs.h. */
  10069. int
  10070. main ()
  10071. {
  10072. ;
  10073. return 0;
  10074. }
  10075. _ACEOF
  10076. rm -f conftest.$ac_objext conftest$ac_exeext
  10077. if { (ac_try="$ac_link"
  10078. case "(($ac_try" in
  10079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10080. *) ac_try_echo=$ac_try;;
  10081. esac
  10082. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10083. $as_echo "$ac_try_echo") >&5
  10084. (eval "$ac_link") 2>conftest.er1
  10085. ac_status=$?
  10086. grep -v '^ *+' conftest.er1 >conftest.err
  10087. rm -f conftest.er1
  10088. cat conftest.err >&5
  10089. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10090. (exit $ac_status); } && {
  10091. test -z "$ac_c_werror_flag" ||
  10092. test ! -s conftest.err
  10093. } && test -s conftest$ac_exeext && {
  10094. test "$cross_compiling" = yes ||
  10095. $as_test_x conftest$ac_exeext
  10096. }; then
  10097. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  10098. shlibpath_overrides_runpath=yes
  10099. fi
  10100. else
  10101. $as_echo "$as_me: failed program was:" >&5
  10102. sed 's/^/| /' conftest.$ac_ext >&5
  10103. fi
  10104. rm -rf conftest.dSYM
  10105. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10106. conftest$ac_exeext conftest.$ac_ext
  10107. LDFLAGS=$save_LDFLAGS
  10108. libdir=$save_libdir
  10109. # This implies no fast_install, which is unacceptable.
  10110. # Some rework will be needed to allow for fast_install
  10111. # before this can be enabled.
  10112. hardcode_into_libs=yes
  10113. # Add ABI-specific directories to the system library path.
  10114. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10115. # Append ld.so.conf contents to the search path
  10116. if test -f /etc/ld.so.conf; then
  10117. 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' ' '`
  10118. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10119. fi
  10120. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10121. # powerpc, because MkLinux only supported shared libraries with the
  10122. # GNU dynamic linker. Since this was broken with cross compilers,
  10123. # most powerpc-linux boxes support dynamic linking these days and
  10124. # people can always --disable-shared, the test was removed, and we
  10125. # assume the GNU/Linux dynamic linker is in use.
  10126. dynamic_linker='GNU/Linux ld.so'
  10127. ;;
  10128. netbsd*)
  10129. version_type=sunos
  10130. need_lib_prefix=no
  10131. need_version=no
  10132. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10134. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10135. dynamic_linker='NetBSD (a.out) ld.so'
  10136. else
  10137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10138. soname_spec='${libname}${release}${shared_ext}$major'
  10139. dynamic_linker='NetBSD ld.elf_so'
  10140. fi
  10141. shlibpath_var=LD_LIBRARY_PATH
  10142. shlibpath_overrides_runpath=yes
  10143. hardcode_into_libs=yes
  10144. ;;
  10145. newsos6)
  10146. version_type=linux
  10147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10148. shlibpath_var=LD_LIBRARY_PATH
  10149. shlibpath_overrides_runpath=yes
  10150. ;;
  10151. *nto* | *qnx*)
  10152. version_type=qnx
  10153. need_lib_prefix=no
  10154. need_version=no
  10155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10156. soname_spec='${libname}${release}${shared_ext}$major'
  10157. shlibpath_var=LD_LIBRARY_PATH
  10158. shlibpath_overrides_runpath=no
  10159. hardcode_into_libs=yes
  10160. dynamic_linker='ldqnx.so'
  10161. ;;
  10162. openbsd*)
  10163. version_type=sunos
  10164. sys_lib_dlsearch_path_spec="/usr/lib"
  10165. need_lib_prefix=no
  10166. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10167. case $host_os in
  10168. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10169. *) need_version=no ;;
  10170. esac
  10171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10172. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10173. shlibpath_var=LD_LIBRARY_PATH
  10174. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10175. case $host_os in
  10176. openbsd2.[89] | openbsd2.[89].*)
  10177. shlibpath_overrides_runpath=no
  10178. ;;
  10179. *)
  10180. shlibpath_overrides_runpath=yes
  10181. ;;
  10182. esac
  10183. else
  10184. shlibpath_overrides_runpath=yes
  10185. fi
  10186. ;;
  10187. os2*)
  10188. libname_spec='$name'
  10189. shrext_cmds=".dll"
  10190. need_lib_prefix=no
  10191. library_names_spec='$libname${shared_ext} $libname.a'
  10192. dynamic_linker='OS/2 ld.exe'
  10193. shlibpath_var=LIBPATH
  10194. ;;
  10195. osf3* | osf4* | osf5*)
  10196. version_type=osf
  10197. need_lib_prefix=no
  10198. need_version=no
  10199. soname_spec='${libname}${release}${shared_ext}$major'
  10200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10201. shlibpath_var=LD_LIBRARY_PATH
  10202. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10203. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10204. ;;
  10205. rdos*)
  10206. dynamic_linker=no
  10207. ;;
  10208. solaris*)
  10209. version_type=linux
  10210. need_lib_prefix=no
  10211. need_version=no
  10212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10213. soname_spec='${libname}${release}${shared_ext}$major'
  10214. shlibpath_var=LD_LIBRARY_PATH
  10215. shlibpath_overrides_runpath=yes
  10216. hardcode_into_libs=yes
  10217. # ldd complains unless libraries are executable
  10218. postinstall_cmds='chmod +x $lib'
  10219. ;;
  10220. sunos4*)
  10221. version_type=sunos
  10222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10223. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10224. shlibpath_var=LD_LIBRARY_PATH
  10225. shlibpath_overrides_runpath=yes
  10226. if test "$with_gnu_ld" = yes; then
  10227. need_lib_prefix=no
  10228. fi
  10229. need_version=yes
  10230. ;;
  10231. sysv4 | sysv4.3*)
  10232. version_type=linux
  10233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10234. soname_spec='${libname}${release}${shared_ext}$major'
  10235. shlibpath_var=LD_LIBRARY_PATH
  10236. case $host_vendor in
  10237. sni)
  10238. shlibpath_overrides_runpath=no
  10239. need_lib_prefix=no
  10240. runpath_var=LD_RUN_PATH
  10241. ;;
  10242. siemens)
  10243. need_lib_prefix=no
  10244. ;;
  10245. motorola)
  10246. need_lib_prefix=no
  10247. need_version=no
  10248. shlibpath_overrides_runpath=no
  10249. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10250. ;;
  10251. esac
  10252. ;;
  10253. sysv4*MP*)
  10254. if test -d /usr/nec ;then
  10255. version_type=linux
  10256. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10257. soname_spec='$libname${shared_ext}.$major'
  10258. shlibpath_var=LD_LIBRARY_PATH
  10259. fi
  10260. ;;
  10261. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10262. version_type=freebsd-elf
  10263. need_lib_prefix=no
  10264. need_version=no
  10265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10266. soname_spec='${libname}${release}${shared_ext}$major'
  10267. shlibpath_var=LD_LIBRARY_PATH
  10268. shlibpath_overrides_runpath=yes
  10269. hardcode_into_libs=yes
  10270. if test "$with_gnu_ld" = yes; then
  10271. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10272. else
  10273. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10274. case $host_os in
  10275. sco3.2v5*)
  10276. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10277. ;;
  10278. esac
  10279. fi
  10280. sys_lib_dlsearch_path_spec='/usr/lib'
  10281. ;;
  10282. tpf*)
  10283. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10284. version_type=linux
  10285. need_lib_prefix=no
  10286. need_version=no
  10287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10288. shlibpath_var=LD_LIBRARY_PATH
  10289. shlibpath_overrides_runpath=no
  10290. hardcode_into_libs=yes
  10291. ;;
  10292. uts4*)
  10293. version_type=linux
  10294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10295. soname_spec='${libname}${release}${shared_ext}$major'
  10296. shlibpath_var=LD_LIBRARY_PATH
  10297. ;;
  10298. *)
  10299. dynamic_linker=no
  10300. ;;
  10301. esac
  10302. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10303. $as_echo "$dynamic_linker" >&6; }
  10304. test "$dynamic_linker" = no && can_build_shared=no
  10305. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10306. if test "$GCC" = yes; then
  10307. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10308. fi
  10309. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10310. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10311. fi
  10312. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10313. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10314. fi
  10315. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10316. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10317. hardcode_action=
  10318. if test -n "$hardcode_libdir_flag_spec" ||
  10319. test -n "$runpath_var" ||
  10320. test "X$hardcode_automatic" = "Xyes" ; then
  10321. # We can hardcode non-existent directories.
  10322. if test "$hardcode_direct" != no &&
  10323. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10324. # have to relink, otherwise we might link with an installed library
  10325. # when we should be linking with a yet-to-be-installed one
  10326. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10327. test "$hardcode_minus_L" != no; then
  10328. # Linking always hardcodes the temporary library directory.
  10329. hardcode_action=relink
  10330. else
  10331. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10332. hardcode_action=immediate
  10333. fi
  10334. else
  10335. # We cannot hardcode anything, or else we can only hardcode existing
  10336. # directories.
  10337. hardcode_action=unsupported
  10338. fi
  10339. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10340. $as_echo "$hardcode_action" >&6; }
  10341. if test "$hardcode_action" = relink ||
  10342. test "$inherit_rpath" = yes; then
  10343. # Fast installation is not supported
  10344. enable_fast_install=no
  10345. elif test "$shlibpath_overrides_runpath" = yes ||
  10346. test "$enable_shared" = no; then
  10347. # Fast installation is not necessary
  10348. enable_fast_install=needless
  10349. fi
  10350. if test "x$enable_dlopen" != xyes; then
  10351. enable_dlopen=unknown
  10352. enable_dlopen_self=unknown
  10353. enable_dlopen_self_static=unknown
  10354. else
  10355. lt_cv_dlopen=no
  10356. lt_cv_dlopen_libs=
  10357. case $host_os in
  10358. beos*)
  10359. lt_cv_dlopen="load_add_on"
  10360. lt_cv_dlopen_libs=
  10361. lt_cv_dlopen_self=yes
  10362. ;;
  10363. mingw* | pw32* | cegcc*)
  10364. lt_cv_dlopen="LoadLibrary"
  10365. lt_cv_dlopen_libs=
  10366. ;;
  10367. cygwin*)
  10368. lt_cv_dlopen="dlopen"
  10369. lt_cv_dlopen_libs=
  10370. ;;
  10371. darwin*)
  10372. # if libdl is installed we need to link against it
  10373. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10374. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10375. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10376. $as_echo_n "(cached) " >&6
  10377. else
  10378. ac_check_lib_save_LIBS=$LIBS
  10379. LIBS="-ldl $LIBS"
  10380. cat >conftest.$ac_ext <<_ACEOF
  10381. /* confdefs.h. */
  10382. _ACEOF
  10383. cat confdefs.h >>conftest.$ac_ext
  10384. cat >>conftest.$ac_ext <<_ACEOF
  10385. /* end confdefs.h. */
  10386. /* Override any GCC internal prototype to avoid an error.
  10387. Use char because int might match the return type of a GCC
  10388. builtin and then its argument prototype would still apply. */
  10389. #ifdef __cplusplus
  10390. extern "C"
  10391. #endif
  10392. char dlopen ();
  10393. int
  10394. main ()
  10395. {
  10396. return dlopen ();
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. rm -f conftest.$ac_objext conftest$ac_exeext
  10402. if { (ac_try="$ac_link"
  10403. case "(($ac_try" in
  10404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10405. *) ac_try_echo=$ac_try;;
  10406. esac
  10407. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10408. $as_echo "$ac_try_echo") >&5
  10409. (eval "$ac_link") 2>conftest.er1
  10410. ac_status=$?
  10411. grep -v '^ *+' conftest.er1 >conftest.err
  10412. rm -f conftest.er1
  10413. cat conftest.err >&5
  10414. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10415. (exit $ac_status); } && {
  10416. test -z "$ac_c_werror_flag" ||
  10417. test ! -s conftest.err
  10418. } && test -s conftest$ac_exeext && {
  10419. test "$cross_compiling" = yes ||
  10420. $as_test_x conftest$ac_exeext
  10421. }; then
  10422. ac_cv_lib_dl_dlopen=yes
  10423. else
  10424. $as_echo "$as_me: failed program was:" >&5
  10425. sed 's/^/| /' conftest.$ac_ext >&5
  10426. ac_cv_lib_dl_dlopen=no
  10427. fi
  10428. rm -rf conftest.dSYM
  10429. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10430. conftest$ac_exeext conftest.$ac_ext
  10431. LIBS=$ac_check_lib_save_LIBS
  10432. fi
  10433. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10434. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10435. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10436. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10437. else
  10438. lt_cv_dlopen="dyld"
  10439. lt_cv_dlopen_libs=
  10440. lt_cv_dlopen_self=yes
  10441. fi
  10442. ;;
  10443. *)
  10444. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  10445. $as_echo_n "checking for shl_load... " >&6; }
  10446. if test "${ac_cv_func_shl_load+set}" = set; then
  10447. $as_echo_n "(cached) " >&6
  10448. else
  10449. cat >conftest.$ac_ext <<_ACEOF
  10450. /* confdefs.h. */
  10451. _ACEOF
  10452. cat confdefs.h >>conftest.$ac_ext
  10453. cat >>conftest.$ac_ext <<_ACEOF
  10454. /* end confdefs.h. */
  10455. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10456. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10457. #define shl_load innocuous_shl_load
  10458. /* System header to define __stub macros and hopefully few prototypes,
  10459. which can conflict with char shl_load (); below.
  10460. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10461. <limits.h> exists even on freestanding compilers. */
  10462. #ifdef __STDC__
  10463. # include <limits.h>
  10464. #else
  10465. # include <assert.h>
  10466. #endif
  10467. #undef shl_load
  10468. /* Override any GCC internal prototype to avoid an error.
  10469. Use char because int might match the return type of a GCC
  10470. builtin and then its argument prototype would still apply. */
  10471. #ifdef __cplusplus
  10472. extern "C"
  10473. #endif
  10474. char shl_load ();
  10475. /* The GNU C library defines this for functions which it implements
  10476. to always fail with ENOSYS. Some functions are actually named
  10477. something starting with __ and the normal name is an alias. */
  10478. #if defined __stub_shl_load || defined __stub___shl_load
  10479. choke me
  10480. #endif
  10481. int
  10482. main ()
  10483. {
  10484. return shl_load ();
  10485. ;
  10486. return 0;
  10487. }
  10488. _ACEOF
  10489. rm -f conftest.$ac_objext conftest$ac_exeext
  10490. if { (ac_try="$ac_link"
  10491. case "(($ac_try" in
  10492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10493. *) ac_try_echo=$ac_try;;
  10494. esac
  10495. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10496. $as_echo "$ac_try_echo") >&5
  10497. (eval "$ac_link") 2>conftest.er1
  10498. ac_status=$?
  10499. grep -v '^ *+' conftest.er1 >conftest.err
  10500. rm -f conftest.er1
  10501. cat conftest.err >&5
  10502. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10503. (exit $ac_status); } && {
  10504. test -z "$ac_c_werror_flag" ||
  10505. test ! -s conftest.err
  10506. } && test -s conftest$ac_exeext && {
  10507. test "$cross_compiling" = yes ||
  10508. $as_test_x conftest$ac_exeext
  10509. }; then
  10510. ac_cv_func_shl_load=yes
  10511. else
  10512. $as_echo "$as_me: failed program was:" >&5
  10513. sed 's/^/| /' conftest.$ac_ext >&5
  10514. ac_cv_func_shl_load=no
  10515. fi
  10516. rm -rf conftest.dSYM
  10517. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10518. conftest$ac_exeext conftest.$ac_ext
  10519. fi
  10520. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10521. $as_echo "$ac_cv_func_shl_load" >&6; }
  10522. if test "x$ac_cv_func_shl_load" = x""yes; then
  10523. lt_cv_dlopen="shl_load"
  10524. else
  10525. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10526. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10527. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10528. $as_echo_n "(cached) " >&6
  10529. else
  10530. ac_check_lib_save_LIBS=$LIBS
  10531. LIBS="-ldld $LIBS"
  10532. cat >conftest.$ac_ext <<_ACEOF
  10533. /* confdefs.h. */
  10534. _ACEOF
  10535. cat confdefs.h >>conftest.$ac_ext
  10536. cat >>conftest.$ac_ext <<_ACEOF
  10537. /* end confdefs.h. */
  10538. /* Override any GCC internal prototype to avoid an error.
  10539. Use char because int might match the return type of a GCC
  10540. builtin and then its argument prototype would still apply. */
  10541. #ifdef __cplusplus
  10542. extern "C"
  10543. #endif
  10544. char shl_load ();
  10545. int
  10546. main ()
  10547. {
  10548. return shl_load ();
  10549. ;
  10550. return 0;
  10551. }
  10552. _ACEOF
  10553. rm -f conftest.$ac_objext conftest$ac_exeext
  10554. if { (ac_try="$ac_link"
  10555. case "(($ac_try" in
  10556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10557. *) ac_try_echo=$ac_try;;
  10558. esac
  10559. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10560. $as_echo "$ac_try_echo") >&5
  10561. (eval "$ac_link") 2>conftest.er1
  10562. ac_status=$?
  10563. grep -v '^ *+' conftest.er1 >conftest.err
  10564. rm -f conftest.er1
  10565. cat conftest.err >&5
  10566. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10567. (exit $ac_status); } && {
  10568. test -z "$ac_c_werror_flag" ||
  10569. test ! -s conftest.err
  10570. } && test -s conftest$ac_exeext && {
  10571. test "$cross_compiling" = yes ||
  10572. $as_test_x conftest$ac_exeext
  10573. }; then
  10574. ac_cv_lib_dld_shl_load=yes
  10575. else
  10576. $as_echo "$as_me: failed program was:" >&5
  10577. sed 's/^/| /' conftest.$ac_ext >&5
  10578. ac_cv_lib_dld_shl_load=no
  10579. fi
  10580. rm -rf conftest.dSYM
  10581. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10582. conftest$ac_exeext conftest.$ac_ext
  10583. LIBS=$ac_check_lib_save_LIBS
  10584. fi
  10585. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10586. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10587. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  10588. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10589. else
  10590. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  10591. $as_echo_n "checking for dlopen... " >&6; }
  10592. if test "${ac_cv_func_dlopen+set}" = set; then
  10593. $as_echo_n "(cached) " >&6
  10594. else
  10595. cat >conftest.$ac_ext <<_ACEOF
  10596. /* confdefs.h. */
  10597. _ACEOF
  10598. cat confdefs.h >>conftest.$ac_ext
  10599. cat >>conftest.$ac_ext <<_ACEOF
  10600. /* end confdefs.h. */
  10601. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10602. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10603. #define dlopen innocuous_dlopen
  10604. /* System header to define __stub macros and hopefully few prototypes,
  10605. which can conflict with char dlopen (); below.
  10606. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10607. <limits.h> exists even on freestanding compilers. */
  10608. #ifdef __STDC__
  10609. # include <limits.h>
  10610. #else
  10611. # include <assert.h>
  10612. #endif
  10613. #undef dlopen
  10614. /* Override any GCC internal prototype to avoid an error.
  10615. Use char because int might match the return type of a GCC
  10616. builtin and then its argument prototype would still apply. */
  10617. #ifdef __cplusplus
  10618. extern "C"
  10619. #endif
  10620. char dlopen ();
  10621. /* The GNU C library defines this for functions which it implements
  10622. to always fail with ENOSYS. Some functions are actually named
  10623. something starting with __ and the normal name is an alias. */
  10624. #if defined __stub_dlopen || defined __stub___dlopen
  10625. choke me
  10626. #endif
  10627. int
  10628. main ()
  10629. {
  10630. return dlopen ();
  10631. ;
  10632. return 0;
  10633. }
  10634. _ACEOF
  10635. rm -f conftest.$ac_objext conftest$ac_exeext
  10636. if { (ac_try="$ac_link"
  10637. case "(($ac_try" in
  10638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10639. *) ac_try_echo=$ac_try;;
  10640. esac
  10641. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10642. $as_echo "$ac_try_echo") >&5
  10643. (eval "$ac_link") 2>conftest.er1
  10644. ac_status=$?
  10645. grep -v '^ *+' conftest.er1 >conftest.err
  10646. rm -f conftest.er1
  10647. cat conftest.err >&5
  10648. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10649. (exit $ac_status); } && {
  10650. test -z "$ac_c_werror_flag" ||
  10651. test ! -s conftest.err
  10652. } && test -s conftest$ac_exeext && {
  10653. test "$cross_compiling" = yes ||
  10654. $as_test_x conftest$ac_exeext
  10655. }; then
  10656. ac_cv_func_dlopen=yes
  10657. else
  10658. $as_echo "$as_me: failed program was:" >&5
  10659. sed 's/^/| /' conftest.$ac_ext >&5
  10660. ac_cv_func_dlopen=no
  10661. fi
  10662. rm -rf conftest.dSYM
  10663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10664. conftest$ac_exeext conftest.$ac_ext
  10665. fi
  10666. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10667. $as_echo "$ac_cv_func_dlopen" >&6; }
  10668. if test "x$ac_cv_func_dlopen" = x""yes; then
  10669. lt_cv_dlopen="dlopen"
  10670. else
  10671. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10672. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10673. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10674. $as_echo_n "(cached) " >&6
  10675. else
  10676. ac_check_lib_save_LIBS=$LIBS
  10677. LIBS="-ldl $LIBS"
  10678. cat >conftest.$ac_ext <<_ACEOF
  10679. /* confdefs.h. */
  10680. _ACEOF
  10681. cat confdefs.h >>conftest.$ac_ext
  10682. cat >>conftest.$ac_ext <<_ACEOF
  10683. /* end confdefs.h. */
  10684. /* Override any GCC internal prototype to avoid an error.
  10685. Use char because int might match the return type of a GCC
  10686. builtin and then its argument prototype would still apply. */
  10687. #ifdef __cplusplus
  10688. extern "C"
  10689. #endif
  10690. char dlopen ();
  10691. int
  10692. main ()
  10693. {
  10694. return dlopen ();
  10695. ;
  10696. return 0;
  10697. }
  10698. _ACEOF
  10699. rm -f conftest.$ac_objext conftest$ac_exeext
  10700. if { (ac_try="$ac_link"
  10701. case "(($ac_try" in
  10702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10703. *) ac_try_echo=$ac_try;;
  10704. esac
  10705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10706. $as_echo "$ac_try_echo") >&5
  10707. (eval "$ac_link") 2>conftest.er1
  10708. ac_status=$?
  10709. grep -v '^ *+' conftest.er1 >conftest.err
  10710. rm -f conftest.er1
  10711. cat conftest.err >&5
  10712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10713. (exit $ac_status); } && {
  10714. test -z "$ac_c_werror_flag" ||
  10715. test ! -s conftest.err
  10716. } && test -s conftest$ac_exeext && {
  10717. test "$cross_compiling" = yes ||
  10718. $as_test_x conftest$ac_exeext
  10719. }; then
  10720. ac_cv_lib_dl_dlopen=yes
  10721. else
  10722. $as_echo "$as_me: failed program was:" >&5
  10723. sed 's/^/| /' conftest.$ac_ext >&5
  10724. ac_cv_lib_dl_dlopen=no
  10725. fi
  10726. rm -rf conftest.dSYM
  10727. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10728. conftest$ac_exeext conftest.$ac_ext
  10729. LIBS=$ac_check_lib_save_LIBS
  10730. fi
  10731. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10732. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10733. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10734. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10735. else
  10736. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10737. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10738. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10739. $as_echo_n "(cached) " >&6
  10740. else
  10741. ac_check_lib_save_LIBS=$LIBS
  10742. LIBS="-lsvld $LIBS"
  10743. cat >conftest.$ac_ext <<_ACEOF
  10744. /* confdefs.h. */
  10745. _ACEOF
  10746. cat confdefs.h >>conftest.$ac_ext
  10747. cat >>conftest.$ac_ext <<_ACEOF
  10748. /* end confdefs.h. */
  10749. /* Override any GCC internal prototype to avoid an error.
  10750. Use char because int might match the return type of a GCC
  10751. builtin and then its argument prototype would still apply. */
  10752. #ifdef __cplusplus
  10753. extern "C"
  10754. #endif
  10755. char dlopen ();
  10756. int
  10757. main ()
  10758. {
  10759. return dlopen ();
  10760. ;
  10761. return 0;
  10762. }
  10763. _ACEOF
  10764. rm -f conftest.$ac_objext conftest$ac_exeext
  10765. if { (ac_try="$ac_link"
  10766. case "(($ac_try" in
  10767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10768. *) ac_try_echo=$ac_try;;
  10769. esac
  10770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10771. $as_echo "$ac_try_echo") >&5
  10772. (eval "$ac_link") 2>conftest.er1
  10773. ac_status=$?
  10774. grep -v '^ *+' conftest.er1 >conftest.err
  10775. rm -f conftest.er1
  10776. cat conftest.err >&5
  10777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10778. (exit $ac_status); } && {
  10779. test -z "$ac_c_werror_flag" ||
  10780. test ! -s conftest.err
  10781. } && test -s conftest$ac_exeext && {
  10782. test "$cross_compiling" = yes ||
  10783. $as_test_x conftest$ac_exeext
  10784. }; then
  10785. ac_cv_lib_svld_dlopen=yes
  10786. else
  10787. $as_echo "$as_me: failed program was:" >&5
  10788. sed 's/^/| /' conftest.$ac_ext >&5
  10789. ac_cv_lib_svld_dlopen=no
  10790. fi
  10791. rm -rf conftest.dSYM
  10792. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10793. conftest$ac_exeext conftest.$ac_ext
  10794. LIBS=$ac_check_lib_save_LIBS
  10795. fi
  10796. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10797. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10798. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10799. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10800. else
  10801. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10802. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10803. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10804. $as_echo_n "(cached) " >&6
  10805. else
  10806. ac_check_lib_save_LIBS=$LIBS
  10807. LIBS="-ldld $LIBS"
  10808. cat >conftest.$ac_ext <<_ACEOF
  10809. /* confdefs.h. */
  10810. _ACEOF
  10811. cat confdefs.h >>conftest.$ac_ext
  10812. cat >>conftest.$ac_ext <<_ACEOF
  10813. /* end confdefs.h. */
  10814. /* Override any GCC internal prototype to avoid an error.
  10815. Use char because int might match the return type of a GCC
  10816. builtin and then its argument prototype would still apply. */
  10817. #ifdef __cplusplus
  10818. extern "C"
  10819. #endif
  10820. char dld_link ();
  10821. int
  10822. main ()
  10823. {
  10824. return dld_link ();
  10825. ;
  10826. return 0;
  10827. }
  10828. _ACEOF
  10829. rm -f conftest.$ac_objext conftest$ac_exeext
  10830. if { (ac_try="$ac_link"
  10831. case "(($ac_try" in
  10832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10833. *) ac_try_echo=$ac_try;;
  10834. esac
  10835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10836. $as_echo "$ac_try_echo") >&5
  10837. (eval "$ac_link") 2>conftest.er1
  10838. ac_status=$?
  10839. grep -v '^ *+' conftest.er1 >conftest.err
  10840. rm -f conftest.er1
  10841. cat conftest.err >&5
  10842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10843. (exit $ac_status); } && {
  10844. test -z "$ac_c_werror_flag" ||
  10845. test ! -s conftest.err
  10846. } && test -s conftest$ac_exeext && {
  10847. test "$cross_compiling" = yes ||
  10848. $as_test_x conftest$ac_exeext
  10849. }; then
  10850. ac_cv_lib_dld_dld_link=yes
  10851. else
  10852. $as_echo "$as_me: failed program was:" >&5
  10853. sed 's/^/| /' conftest.$ac_ext >&5
  10854. ac_cv_lib_dld_dld_link=no
  10855. fi
  10856. rm -rf conftest.dSYM
  10857. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10858. conftest$ac_exeext conftest.$ac_ext
  10859. LIBS=$ac_check_lib_save_LIBS
  10860. fi
  10861. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10862. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10863. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10864. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10865. fi
  10866. fi
  10867. fi
  10868. fi
  10869. fi
  10870. fi
  10871. ;;
  10872. esac
  10873. if test "x$lt_cv_dlopen" != xno; then
  10874. enable_dlopen=yes
  10875. else
  10876. enable_dlopen=no
  10877. fi
  10878. case $lt_cv_dlopen in
  10879. dlopen)
  10880. save_CPPFLAGS="$CPPFLAGS"
  10881. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10882. save_LDFLAGS="$LDFLAGS"
  10883. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10884. save_LIBS="$LIBS"
  10885. LIBS="$lt_cv_dlopen_libs $LIBS"
  10886. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10887. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10888. if test "${lt_cv_dlopen_self+set}" = set; then
  10889. $as_echo_n "(cached) " >&6
  10890. else
  10891. if test "$cross_compiling" = yes; then :
  10892. lt_cv_dlopen_self=cross
  10893. else
  10894. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10895. lt_status=$lt_dlunknown
  10896. cat > conftest.$ac_ext <<_LT_EOF
  10897. #line 12597 "configure"
  10898. #include "confdefs.h"
  10899. #if HAVE_DLFCN_H
  10900. #include <dlfcn.h>
  10901. #endif
  10902. #include <stdio.h>
  10903. #ifdef RTLD_GLOBAL
  10904. # define LT_DLGLOBAL RTLD_GLOBAL
  10905. #else
  10906. # ifdef DL_GLOBAL
  10907. # define LT_DLGLOBAL DL_GLOBAL
  10908. # else
  10909. # define LT_DLGLOBAL 0
  10910. # endif
  10911. #endif
  10912. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10913. find out it does not work in some platform. */
  10914. #ifndef LT_DLLAZY_OR_NOW
  10915. # ifdef RTLD_LAZY
  10916. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10917. # else
  10918. # ifdef DL_LAZY
  10919. # define LT_DLLAZY_OR_NOW DL_LAZY
  10920. # else
  10921. # ifdef RTLD_NOW
  10922. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10923. # else
  10924. # ifdef DL_NOW
  10925. # define LT_DLLAZY_OR_NOW DL_NOW
  10926. # else
  10927. # define LT_DLLAZY_OR_NOW 0
  10928. # endif
  10929. # endif
  10930. # endif
  10931. # endif
  10932. #endif
  10933. void fnord() { int i=42;}
  10934. int main ()
  10935. {
  10936. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10937. int status = $lt_dlunknown;
  10938. if (self)
  10939. {
  10940. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10941. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10942. /* dlclose (self); */
  10943. }
  10944. else
  10945. puts (dlerror ());
  10946. return status;
  10947. }
  10948. _LT_EOF
  10949. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10950. (eval $ac_link) 2>&5
  10951. ac_status=$?
  10952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10953. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10954. (./conftest; exit; ) >&5 2>/dev/null
  10955. lt_status=$?
  10956. case x$lt_status in
  10957. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10958. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10959. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10960. esac
  10961. else :
  10962. # compilation failed
  10963. lt_cv_dlopen_self=no
  10964. fi
  10965. fi
  10966. rm -fr conftest*
  10967. fi
  10968. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10969. $as_echo "$lt_cv_dlopen_self" >&6; }
  10970. if test "x$lt_cv_dlopen_self" = xyes; then
  10971. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10972. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10973. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10974. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10975. $as_echo_n "(cached) " >&6
  10976. else
  10977. if test "$cross_compiling" = yes; then :
  10978. lt_cv_dlopen_self_static=cross
  10979. else
  10980. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10981. lt_status=$lt_dlunknown
  10982. cat > conftest.$ac_ext <<_LT_EOF
  10983. #line 12693 "configure"
  10984. #include "confdefs.h"
  10985. #if HAVE_DLFCN_H
  10986. #include <dlfcn.h>
  10987. #endif
  10988. #include <stdio.h>
  10989. #ifdef RTLD_GLOBAL
  10990. # define LT_DLGLOBAL RTLD_GLOBAL
  10991. #else
  10992. # ifdef DL_GLOBAL
  10993. # define LT_DLGLOBAL DL_GLOBAL
  10994. # else
  10995. # define LT_DLGLOBAL 0
  10996. # endif
  10997. #endif
  10998. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10999. find out it does not work in some platform. */
  11000. #ifndef LT_DLLAZY_OR_NOW
  11001. # ifdef RTLD_LAZY
  11002. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11003. # else
  11004. # ifdef DL_LAZY
  11005. # define LT_DLLAZY_OR_NOW DL_LAZY
  11006. # else
  11007. # ifdef RTLD_NOW
  11008. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11009. # else
  11010. # ifdef DL_NOW
  11011. # define LT_DLLAZY_OR_NOW DL_NOW
  11012. # else
  11013. # define LT_DLLAZY_OR_NOW 0
  11014. # endif
  11015. # endif
  11016. # endif
  11017. # endif
  11018. #endif
  11019. void fnord() { int i=42;}
  11020. int main ()
  11021. {
  11022. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11023. int status = $lt_dlunknown;
  11024. if (self)
  11025. {
  11026. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11027. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11028. /* dlclose (self); */
  11029. }
  11030. else
  11031. puts (dlerror ());
  11032. return status;
  11033. }
  11034. _LT_EOF
  11035. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11036. (eval $ac_link) 2>&5
  11037. ac_status=$?
  11038. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11039. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11040. (./conftest; exit; ) >&5 2>/dev/null
  11041. lt_status=$?
  11042. case x$lt_status in
  11043. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11044. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11045. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11046. esac
  11047. else :
  11048. # compilation failed
  11049. lt_cv_dlopen_self_static=no
  11050. fi
  11051. fi
  11052. rm -fr conftest*
  11053. fi
  11054. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11055. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11056. fi
  11057. CPPFLAGS="$save_CPPFLAGS"
  11058. LDFLAGS="$save_LDFLAGS"
  11059. LIBS="$save_LIBS"
  11060. ;;
  11061. esac
  11062. case $lt_cv_dlopen_self in
  11063. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11064. *) enable_dlopen_self=unknown ;;
  11065. esac
  11066. case $lt_cv_dlopen_self_static in
  11067. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11068. *) enable_dlopen_self_static=unknown ;;
  11069. esac
  11070. fi
  11071. striplib=
  11072. old_striplib=
  11073. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11074. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11075. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11076. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11077. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11078. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11079. $as_echo "yes" >&6; }
  11080. else
  11081. # FIXME - insert some real tests, host_os isn't really good enough
  11082. case $host_os in
  11083. darwin*)
  11084. if test -n "$STRIP" ; then
  11085. striplib="$STRIP -x"
  11086. old_striplib="$STRIP -S"
  11087. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11088. $as_echo "yes" >&6; }
  11089. else
  11090. { $as_echo "$as_me:$LINENO: result: no" >&5
  11091. $as_echo "no" >&6; }
  11092. fi
  11093. ;;
  11094. *)
  11095. { $as_echo "$as_me:$LINENO: result: no" >&5
  11096. $as_echo "no" >&6; }
  11097. ;;
  11098. esac
  11099. fi
  11100. # Report which library types will actually be built
  11101. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11102. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11103. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11104. $as_echo "$can_build_shared" >&6; }
  11105. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11106. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11107. test "$can_build_shared" = "no" && enable_shared=no
  11108. # On AIX, shared libraries and static libraries use the same namespace, and
  11109. # are all built from PIC.
  11110. case $host_os in
  11111. aix3*)
  11112. test "$enable_shared" = yes && enable_static=no
  11113. if test -n "$RANLIB"; then
  11114. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11115. postinstall_cmds='$RANLIB $lib'
  11116. fi
  11117. ;;
  11118. aix[4-9]*)
  11119. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11120. test "$enable_shared" = yes && enable_static=no
  11121. fi
  11122. ;;
  11123. esac
  11124. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  11125. $as_echo "$enable_shared" >&6; }
  11126. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11127. $as_echo_n "checking whether to build static libraries... " >&6; }
  11128. # Make sure either enable_shared or enable_static is yes.
  11129. test "$enable_shared" = yes || enable_static=yes
  11130. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  11131. $as_echo "$enable_static" >&6; }
  11132. fi
  11133. ac_ext=c
  11134. ac_cpp='$CPP $CPPFLAGS'
  11135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11138. CC="$lt_save_CC"
  11139. ac_ext=cpp
  11140. ac_cpp='$CXXCPP $CPPFLAGS'
  11141. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11142. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11143. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11144. archive_cmds_need_lc_CXX=no
  11145. allow_undefined_flag_CXX=
  11146. always_export_symbols_CXX=no
  11147. archive_expsym_cmds_CXX=
  11148. compiler_needs_object_CXX=no
  11149. export_dynamic_flag_spec_CXX=
  11150. hardcode_direct_CXX=no
  11151. hardcode_direct_absolute_CXX=no
  11152. hardcode_libdir_flag_spec_CXX=
  11153. hardcode_libdir_flag_spec_ld_CXX=
  11154. hardcode_libdir_separator_CXX=
  11155. hardcode_minus_L_CXX=no
  11156. hardcode_shlibpath_var_CXX=unsupported
  11157. hardcode_automatic_CXX=no
  11158. inherit_rpath_CXX=no
  11159. module_cmds_CXX=
  11160. module_expsym_cmds_CXX=
  11161. link_all_deplibs_CXX=unknown
  11162. old_archive_cmds_CXX=$old_archive_cmds
  11163. no_undefined_flag_CXX=
  11164. whole_archive_flag_spec_CXX=
  11165. enable_shared_with_static_runtimes_CXX=no
  11166. # Source file extension for C++ test sources.
  11167. ac_ext=cpp
  11168. # Object file extension for compiled C++ test sources.
  11169. objext=o
  11170. objext_CXX=$objext
  11171. # No sense in running all these tests if we already determined that
  11172. # the CXX compiler isn't working. Some variables (like enable_shared)
  11173. # are currently assumed to apply to all compilers on this platform,
  11174. # and will be corrupted by setting them based on a non-working compiler.
  11175. if test "$_lt_caught_CXX_error" != yes; then
  11176. # Code to be used in simple compile tests
  11177. lt_simple_compile_test_code="int some_variable = 0;"
  11178. # Code to be used in simple link tests
  11179. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11180. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11181. # If no C compiler was specified, use CC.
  11182. LTCC=${LTCC-"$CC"}
  11183. # If no C compiler flags were specified, use CFLAGS.
  11184. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11185. # Allow CC to be a program name with arguments.
  11186. compiler=$CC
  11187. # save warnings/boilerplate of simple test code
  11188. ac_outfile=conftest.$ac_objext
  11189. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11190. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11191. _lt_compiler_boilerplate=`cat conftest.err`
  11192. $RM conftest*
  11193. ac_outfile=conftest.$ac_objext
  11194. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11195. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11196. _lt_linker_boilerplate=`cat conftest.err`
  11197. $RM -r conftest*
  11198. # Allow CC to be a program name with arguments.
  11199. lt_save_CC=$CC
  11200. lt_save_LD=$LD
  11201. lt_save_GCC=$GCC
  11202. GCC=$GXX
  11203. lt_save_with_gnu_ld=$with_gnu_ld
  11204. lt_save_path_LD=$lt_cv_path_LD
  11205. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11206. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11207. else
  11208. $as_unset lt_cv_prog_gnu_ld
  11209. fi
  11210. if test -n "${lt_cv_path_LDCXX+set}"; then
  11211. lt_cv_path_LD=$lt_cv_path_LDCXX
  11212. else
  11213. $as_unset lt_cv_path_LD
  11214. fi
  11215. test -z "${LDCXX+set}" || LD=$LDCXX
  11216. CC=${CXX-"c++"}
  11217. compiler=$CC
  11218. compiler_CXX=$CC
  11219. for cc_temp in $compiler""; do
  11220. case $cc_temp in
  11221. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11222. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11223. \-*) ;;
  11224. *) break;;
  11225. esac
  11226. done
  11227. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11228. if test -n "$compiler"; then
  11229. # We don't want -fno-exception when compiling C++ code, so set the
  11230. # no_builtin_flag separately
  11231. if test "$GXX" = yes; then
  11232. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11233. else
  11234. lt_prog_compiler_no_builtin_flag_CXX=
  11235. fi
  11236. if test "$GXX" = yes; then
  11237. # Set up default GNU C++ configuration
  11238. # Check whether --with-gnu-ld was given.
  11239. if test "${with_gnu_ld+set}" = set; then
  11240. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11241. else
  11242. with_gnu_ld=no
  11243. fi
  11244. ac_prog=ld
  11245. if test "$GCC" = yes; then
  11246. # Check if gcc -print-prog-name=ld gives a path.
  11247. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11248. $as_echo_n "checking for ld used by $CC... " >&6; }
  11249. case $host in
  11250. *-*-mingw*)
  11251. # gcc leaves a trailing carriage return which upsets mingw
  11252. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11253. *)
  11254. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11255. esac
  11256. case $ac_prog in
  11257. # Accept absolute paths.
  11258. [\\/]* | ?:[\\/]*)
  11259. re_direlt='/[^/][^/]*/\.\./'
  11260. # Canonicalize the pathname of ld
  11261. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11262. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11263. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11264. done
  11265. test -z "$LD" && LD="$ac_prog"
  11266. ;;
  11267. "")
  11268. # If it fails, then pretend we aren't using GCC.
  11269. ac_prog=ld
  11270. ;;
  11271. *)
  11272. # If it is relative, then search for the first ld in PATH.
  11273. with_gnu_ld=unknown
  11274. ;;
  11275. esac
  11276. elif test "$with_gnu_ld" = yes; then
  11277. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11278. $as_echo_n "checking for GNU ld... " >&6; }
  11279. else
  11280. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11281. $as_echo_n "checking for non-GNU ld... " >&6; }
  11282. fi
  11283. if test "${lt_cv_path_LD+set}" = set; then
  11284. $as_echo_n "(cached) " >&6
  11285. else
  11286. if test -z "$LD"; then
  11287. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11288. for ac_dir in $PATH; do
  11289. IFS="$lt_save_ifs"
  11290. test -z "$ac_dir" && ac_dir=.
  11291. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11292. lt_cv_path_LD="$ac_dir/$ac_prog"
  11293. # Check to see if the program is GNU ld. I'd rather use --version,
  11294. # but apparently some variants of GNU ld only accept -v.
  11295. # Break only if it was the GNU/non-GNU ld that we prefer.
  11296. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11297. *GNU* | *'with BFD'*)
  11298. test "$with_gnu_ld" != no && break
  11299. ;;
  11300. *)
  11301. test "$with_gnu_ld" != yes && break
  11302. ;;
  11303. esac
  11304. fi
  11305. done
  11306. IFS="$lt_save_ifs"
  11307. else
  11308. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11309. fi
  11310. fi
  11311. LD="$lt_cv_path_LD"
  11312. if test -n "$LD"; then
  11313. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11314. $as_echo "$LD" >&6; }
  11315. else
  11316. { $as_echo "$as_me:$LINENO: result: no" >&5
  11317. $as_echo "no" >&6; }
  11318. fi
  11319. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11320. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11321. { (exit 1); exit 1; }; }
  11322. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11323. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11324. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11325. $as_echo_n "(cached) " >&6
  11326. else
  11327. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11328. case `$LD -v 2>&1 </dev/null` in
  11329. *GNU* | *'with BFD'*)
  11330. lt_cv_prog_gnu_ld=yes
  11331. ;;
  11332. *)
  11333. lt_cv_prog_gnu_ld=no
  11334. ;;
  11335. esac
  11336. fi
  11337. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11338. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11339. with_gnu_ld=$lt_cv_prog_gnu_ld
  11340. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11341. # archiving commands below assume that GNU ld is being used.
  11342. if test "$with_gnu_ld" = yes; then
  11343. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11344. 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'
  11345. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11346. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11347. # If archive_cmds runs LD, not CC, wlarc should be empty
  11348. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11349. # investigate it a little bit more. (MM)
  11350. wlarc='${wl}'
  11351. # ancient GNU ld didn't support --whole-archive et. al.
  11352. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11353. $GREP 'no-whole-archive' > /dev/null; then
  11354. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11355. else
  11356. whole_archive_flag_spec_CXX=
  11357. fi
  11358. else
  11359. with_gnu_ld=no
  11360. wlarc=
  11361. # A generic and very simple default shared library creation
  11362. # command for GNU C++ for the case where it uses the native
  11363. # linker, instead of GNU ld. If possible, this setting should
  11364. # overridden to take advantage of the native linker features on
  11365. # the platform it is being used on.
  11366. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11367. fi
  11368. # Commands to make compiler produce verbose output that lists
  11369. # what "hidden" libraries, object files and flags are used when
  11370. # linking a shared library.
  11371. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11372. else
  11373. GXX=no
  11374. with_gnu_ld=no
  11375. wlarc=
  11376. fi
  11377. # PORTME: fill in a description of your system's C++ link characteristics
  11378. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11379. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11380. ld_shlibs_CXX=yes
  11381. case $host_os in
  11382. aix3*)
  11383. # FIXME: insert proper C++ library support
  11384. ld_shlibs_CXX=no
  11385. ;;
  11386. aix[4-9]*)
  11387. if test "$host_cpu" = ia64; then
  11388. # On IA64, the linker does run time linking by default, so we don't
  11389. # have to do anything special.
  11390. aix_use_runtimelinking=no
  11391. exp_sym_flag='-Bexport'
  11392. no_entry_flag=""
  11393. else
  11394. aix_use_runtimelinking=no
  11395. # Test if we are trying to use run time linking or normal
  11396. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11397. # need to do runtime linking.
  11398. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11399. for ld_flag in $LDFLAGS; do
  11400. case $ld_flag in
  11401. *-brtl*)
  11402. aix_use_runtimelinking=yes
  11403. break
  11404. ;;
  11405. esac
  11406. done
  11407. ;;
  11408. esac
  11409. exp_sym_flag='-bexport'
  11410. no_entry_flag='-bnoentry'
  11411. fi
  11412. # When large executables or shared objects are built, AIX ld can
  11413. # have problems creating the table of contents. If linking a library
  11414. # or program results in "error TOC overflow" add -mminimal-toc to
  11415. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11416. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11417. archive_cmds_CXX=''
  11418. hardcode_direct_CXX=yes
  11419. hardcode_direct_absolute_CXX=yes
  11420. hardcode_libdir_separator_CXX=':'
  11421. link_all_deplibs_CXX=yes
  11422. file_list_spec_CXX='${wl}-f,'
  11423. if test "$GXX" = yes; then
  11424. case $host_os in aix4.[012]|aix4.[012].*)
  11425. # We only want to do this on AIX 4.2 and lower, the check
  11426. # below for broken collect2 doesn't work under 4.3+
  11427. collect2name=`${CC} -print-prog-name=collect2`
  11428. if test -f "$collect2name" &&
  11429. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11430. then
  11431. # We have reworked collect2
  11432. :
  11433. else
  11434. # We have old collect2
  11435. hardcode_direct_CXX=unsupported
  11436. # It fails to find uninstalled libraries when the uninstalled
  11437. # path is not listed in the libpath. Setting hardcode_minus_L
  11438. # to unsupported forces relinking
  11439. hardcode_minus_L_CXX=yes
  11440. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11441. hardcode_libdir_separator_CXX=
  11442. fi
  11443. esac
  11444. shared_flag='-shared'
  11445. if test "$aix_use_runtimelinking" = yes; then
  11446. shared_flag="$shared_flag "'${wl}-G'
  11447. fi
  11448. else
  11449. # not using gcc
  11450. if test "$host_cpu" = ia64; then
  11451. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11452. # chokes on -Wl,-G. The following line is correct:
  11453. shared_flag='-G'
  11454. else
  11455. if test "$aix_use_runtimelinking" = yes; then
  11456. shared_flag='${wl}-G'
  11457. else
  11458. shared_flag='${wl}-bM:SRE'
  11459. fi
  11460. fi
  11461. fi
  11462. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11463. # It seems that -bexpall does not export symbols beginning with
  11464. # underscore (_), so it is better to generate a list of symbols to
  11465. # export.
  11466. always_export_symbols_CXX=yes
  11467. if test "$aix_use_runtimelinking" = yes; then
  11468. # Warning - without using the other runtime loading flags (-brtl),
  11469. # -berok will link without error, but may produce a broken library.
  11470. allow_undefined_flag_CXX='-berok'
  11471. # Determine the default libpath from the value encoded in an empty
  11472. # executable.
  11473. cat >conftest.$ac_ext <<_ACEOF
  11474. /* confdefs.h. */
  11475. _ACEOF
  11476. cat confdefs.h >>conftest.$ac_ext
  11477. cat >>conftest.$ac_ext <<_ACEOF
  11478. /* end confdefs.h. */
  11479. int
  11480. main ()
  11481. {
  11482. ;
  11483. return 0;
  11484. }
  11485. _ACEOF
  11486. rm -f conftest.$ac_objext conftest$ac_exeext
  11487. if { (ac_try="$ac_link"
  11488. case "(($ac_try" in
  11489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11490. *) ac_try_echo=$ac_try;;
  11491. esac
  11492. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11493. $as_echo "$ac_try_echo") >&5
  11494. (eval "$ac_link") 2>conftest.er1
  11495. ac_status=$?
  11496. grep -v '^ *+' conftest.er1 >conftest.err
  11497. rm -f conftest.er1
  11498. cat conftest.err >&5
  11499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11500. (exit $ac_status); } && {
  11501. test -z "$ac_cxx_werror_flag" ||
  11502. test ! -s conftest.err
  11503. } && test -s conftest$ac_exeext && {
  11504. test "$cross_compiling" = yes ||
  11505. $as_test_x conftest$ac_exeext
  11506. }; then
  11507. lt_aix_libpath_sed='
  11508. /Import File Strings/,/^$/ {
  11509. /^0/ {
  11510. s/^0 *\(.*\)$/\1/
  11511. p
  11512. }
  11513. }'
  11514. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11515. # Check for a 64-bit object if we didn't find anything.
  11516. if test -z "$aix_libpath"; then
  11517. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11518. fi
  11519. else
  11520. $as_echo "$as_me: failed program was:" >&5
  11521. sed 's/^/| /' conftest.$ac_ext >&5
  11522. fi
  11523. rm -rf conftest.dSYM
  11524. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11525. conftest$ac_exeext conftest.$ac_ext
  11526. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11527. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11528. 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"
  11529. else
  11530. if test "$host_cpu" = ia64; then
  11531. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11532. allow_undefined_flag_CXX="-z nodefs"
  11533. 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"
  11534. else
  11535. # Determine the default libpath from the value encoded in an
  11536. # empty executable.
  11537. cat >conftest.$ac_ext <<_ACEOF
  11538. /* confdefs.h. */
  11539. _ACEOF
  11540. cat confdefs.h >>conftest.$ac_ext
  11541. cat >>conftest.$ac_ext <<_ACEOF
  11542. /* end confdefs.h. */
  11543. int
  11544. main ()
  11545. {
  11546. ;
  11547. return 0;
  11548. }
  11549. _ACEOF
  11550. rm -f conftest.$ac_objext conftest$ac_exeext
  11551. if { (ac_try="$ac_link"
  11552. case "(($ac_try" in
  11553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11554. *) ac_try_echo=$ac_try;;
  11555. esac
  11556. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11557. $as_echo "$ac_try_echo") >&5
  11558. (eval "$ac_link") 2>conftest.er1
  11559. ac_status=$?
  11560. grep -v '^ *+' conftest.er1 >conftest.err
  11561. rm -f conftest.er1
  11562. cat conftest.err >&5
  11563. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11564. (exit $ac_status); } && {
  11565. test -z "$ac_cxx_werror_flag" ||
  11566. test ! -s conftest.err
  11567. } && test -s conftest$ac_exeext && {
  11568. test "$cross_compiling" = yes ||
  11569. $as_test_x conftest$ac_exeext
  11570. }; then
  11571. lt_aix_libpath_sed='
  11572. /Import File Strings/,/^$/ {
  11573. /^0/ {
  11574. s/^0 *\(.*\)$/\1/
  11575. p
  11576. }
  11577. }'
  11578. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11579. # Check for a 64-bit object if we didn't find anything.
  11580. if test -z "$aix_libpath"; then
  11581. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11582. fi
  11583. else
  11584. $as_echo "$as_me: failed program was:" >&5
  11585. sed 's/^/| /' conftest.$ac_ext >&5
  11586. fi
  11587. rm -rf conftest.dSYM
  11588. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11589. conftest$ac_exeext conftest.$ac_ext
  11590. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11591. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11592. # Warning - without using the other run time loading flags,
  11593. # -berok will link without error, but may produce a broken library.
  11594. no_undefined_flag_CXX=' ${wl}-bernotok'
  11595. allow_undefined_flag_CXX=' ${wl}-berok'
  11596. # Exported symbols can be pulled into shared objects from archives
  11597. whole_archive_flag_spec_CXX='$convenience'
  11598. archive_cmds_need_lc_CXX=yes
  11599. # This is similar to how AIX traditionally builds its shared
  11600. # libraries.
  11601. 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'
  11602. fi
  11603. fi
  11604. ;;
  11605. beos*)
  11606. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11607. allow_undefined_flag_CXX=unsupported
  11608. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11609. # support --undefined. This deserves some investigation. FIXME
  11610. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11611. else
  11612. ld_shlibs_CXX=no
  11613. fi
  11614. ;;
  11615. chorus*)
  11616. case $cc_basename in
  11617. *)
  11618. # FIXME: insert proper C++ library support
  11619. ld_shlibs_CXX=no
  11620. ;;
  11621. esac
  11622. ;;
  11623. cygwin* | mingw* | pw32* | cegcc*)
  11624. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11625. # as there is no search path for DLLs.
  11626. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11627. allow_undefined_flag_CXX=unsupported
  11628. always_export_symbols_CXX=no
  11629. enable_shared_with_static_runtimes_CXX=yes
  11630. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11631. 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'
  11632. # If the export-symbols file already is a .def file (1st line
  11633. # is EXPORTS), use it as is; otherwise, prepend...
  11634. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11635. cp $export_symbols $output_objdir/$soname.def;
  11636. else
  11637. echo EXPORTS > $output_objdir/$soname.def;
  11638. cat $export_symbols >> $output_objdir/$soname.def;
  11639. fi~
  11640. $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'
  11641. else
  11642. ld_shlibs_CXX=no
  11643. fi
  11644. ;;
  11645. darwin* | rhapsody*)
  11646. archive_cmds_need_lc_CXX=no
  11647. hardcode_direct_CXX=no
  11648. hardcode_automatic_CXX=yes
  11649. hardcode_shlibpath_var_CXX=unsupported
  11650. whole_archive_flag_spec_CXX=''
  11651. link_all_deplibs_CXX=yes
  11652. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11653. case $cc_basename in
  11654. ifort*) _lt_dar_can_shared=yes ;;
  11655. *) _lt_dar_can_shared=$GCC ;;
  11656. esac
  11657. if test "$_lt_dar_can_shared" = "yes"; then
  11658. output_verbose_link_cmd=echo
  11659. 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}"
  11660. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11661. 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}"
  11662. 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}"
  11663. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11664. 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}"
  11665. 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}"
  11666. fi
  11667. else
  11668. ld_shlibs_CXX=no
  11669. fi
  11670. ;;
  11671. dgux*)
  11672. case $cc_basename in
  11673. ec++*)
  11674. # FIXME: insert proper C++ library support
  11675. ld_shlibs_CXX=no
  11676. ;;
  11677. ghcx*)
  11678. # Green Hills C++ Compiler
  11679. # FIXME: insert proper C++ library support
  11680. ld_shlibs_CXX=no
  11681. ;;
  11682. *)
  11683. # FIXME: insert proper C++ library support
  11684. ld_shlibs_CXX=no
  11685. ;;
  11686. esac
  11687. ;;
  11688. freebsd[12]*)
  11689. # C++ shared libraries reported to be fairly broken before
  11690. # switch to ELF
  11691. ld_shlibs_CXX=no
  11692. ;;
  11693. freebsd-elf*)
  11694. archive_cmds_need_lc_CXX=no
  11695. ;;
  11696. freebsd* | dragonfly*)
  11697. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11698. # conventions
  11699. ld_shlibs_CXX=yes
  11700. ;;
  11701. gnu*)
  11702. ;;
  11703. hpux9*)
  11704. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11705. hardcode_libdir_separator_CXX=:
  11706. export_dynamic_flag_spec_CXX='${wl}-E'
  11707. hardcode_direct_CXX=yes
  11708. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11709. # but as the default
  11710. # location of the library.
  11711. case $cc_basename in
  11712. CC*)
  11713. # FIXME: insert proper C++ library support
  11714. ld_shlibs_CXX=no
  11715. ;;
  11716. aCC*)
  11717. 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'
  11718. # Commands to make compiler produce verbose output that lists
  11719. # what "hidden" libraries, object files and flags are used when
  11720. # linking a shared library.
  11721. #
  11722. # There doesn't appear to be a way to prevent this compiler from
  11723. # explicitly linking system object files so we need to strip them
  11724. # from the output so that they don't get included in the library
  11725. # dependencies.
  11726. 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'
  11727. ;;
  11728. *)
  11729. if test "$GXX" = yes; then
  11730. 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'
  11731. else
  11732. # FIXME: insert proper C++ library support
  11733. ld_shlibs_CXX=no
  11734. fi
  11735. ;;
  11736. esac
  11737. ;;
  11738. hpux10*|hpux11*)
  11739. if test $with_gnu_ld = no; then
  11740. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11741. hardcode_libdir_separator_CXX=:
  11742. case $host_cpu in
  11743. hppa*64*|ia64*)
  11744. ;;
  11745. *)
  11746. export_dynamic_flag_spec_CXX='${wl}-E'
  11747. ;;
  11748. esac
  11749. fi
  11750. case $host_cpu in
  11751. hppa*64*|ia64*)
  11752. hardcode_direct_CXX=no
  11753. hardcode_shlibpath_var_CXX=no
  11754. ;;
  11755. *)
  11756. hardcode_direct_CXX=yes
  11757. hardcode_direct_absolute_CXX=yes
  11758. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11759. # but as the default
  11760. # location of the library.
  11761. ;;
  11762. esac
  11763. case $cc_basename in
  11764. CC*)
  11765. # FIXME: insert proper C++ library support
  11766. ld_shlibs_CXX=no
  11767. ;;
  11768. aCC*)
  11769. case $host_cpu in
  11770. hppa*64*)
  11771. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11772. ;;
  11773. ia64*)
  11774. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11775. ;;
  11776. *)
  11777. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11778. ;;
  11779. esac
  11780. # Commands to make compiler produce verbose output that lists
  11781. # what "hidden" libraries, object files and flags are used when
  11782. # linking a shared library.
  11783. #
  11784. # There doesn't appear to be a way to prevent this compiler from
  11785. # explicitly linking system object files so we need to strip them
  11786. # from the output so that they don't get included in the library
  11787. # dependencies.
  11788. 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'
  11789. ;;
  11790. *)
  11791. if test "$GXX" = yes; then
  11792. if test $with_gnu_ld = no; then
  11793. case $host_cpu in
  11794. hppa*64*)
  11795. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11796. ;;
  11797. ia64*)
  11798. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11799. ;;
  11800. *)
  11801. 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'
  11802. ;;
  11803. esac
  11804. fi
  11805. else
  11806. # FIXME: insert proper C++ library support
  11807. ld_shlibs_CXX=no
  11808. fi
  11809. ;;
  11810. esac
  11811. ;;
  11812. interix[3-9]*)
  11813. hardcode_direct_CXX=no
  11814. hardcode_shlibpath_var_CXX=no
  11815. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11816. export_dynamic_flag_spec_CXX='${wl}-E'
  11817. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11818. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11819. # default) and relocated if they conflict, which is a slow very memory
  11820. # consuming and fragmenting process. To avoid this, we pick a random,
  11821. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11822. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11823. 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'
  11824. 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'
  11825. ;;
  11826. irix5* | irix6*)
  11827. case $cc_basename in
  11828. CC*)
  11829. # SGI C++
  11830. 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'
  11831. # Archives containing C++ object files must be created using
  11832. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11833. # necessary to make sure instantiated templates are included
  11834. # in the archive.
  11835. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11836. ;;
  11837. *)
  11838. if test "$GXX" = yes; then
  11839. if test "$with_gnu_ld" = no; then
  11840. 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'
  11841. else
  11842. 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'
  11843. fi
  11844. fi
  11845. link_all_deplibs_CXX=yes
  11846. ;;
  11847. esac
  11848. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11849. hardcode_libdir_separator_CXX=:
  11850. inherit_rpath_CXX=yes
  11851. ;;
  11852. linux* | k*bsd*-gnu)
  11853. case $cc_basename in
  11854. KCC*)
  11855. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11856. # KCC will only create a shared library if the output file
  11857. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11858. # to its proper name (with version) after linking.
  11859. 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'
  11860. 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'
  11861. # Commands to make compiler produce verbose output that lists
  11862. # what "hidden" libraries, object files and flags are used when
  11863. # linking a shared library.
  11864. #
  11865. # There doesn't appear to be a way to prevent this compiler from
  11866. # explicitly linking system object files so we need to strip them
  11867. # from the output so that they don't get included in the library
  11868. # dependencies.
  11869. 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'
  11870. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11871. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11872. # Archives containing C++ object files must be created using
  11873. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11874. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11875. ;;
  11876. icpc* | ecpc* )
  11877. # Intel C++
  11878. with_gnu_ld=yes
  11879. # version 8.0 and above of icpc choke on multiply defined symbols
  11880. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11881. # earlier do not add the objects themselves.
  11882. case `$CC -V 2>&1` in
  11883. *"Version 7."*)
  11884. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11885. 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'
  11886. ;;
  11887. *) # Version 8.0 or newer
  11888. tmp_idyn=
  11889. case $host_cpu in
  11890. ia64*) tmp_idyn=' -i_dynamic';;
  11891. esac
  11892. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11893. 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'
  11894. ;;
  11895. esac
  11896. archive_cmds_need_lc_CXX=no
  11897. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11898. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11899. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11900. ;;
  11901. pgCC* | pgcpp*)
  11902. # Portland Group C++ compiler
  11903. case `$CC -V` in
  11904. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11905. prelink_cmds_CXX='tpldir=Template.dir~
  11906. rm -rf $tpldir~
  11907. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11908. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11909. old_archive_cmds_CXX='tpldir=Template.dir~
  11910. rm -rf $tpldir~
  11911. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11912. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11913. $RANLIB $oldlib'
  11914. archive_cmds_CXX='tpldir=Template.dir~
  11915. rm -rf $tpldir~
  11916. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11917. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11918. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11919. rm -rf $tpldir~
  11920. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11921. $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'
  11922. ;;
  11923. *) # Version 6 will use weak symbols
  11924. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11925. 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'
  11926. ;;
  11927. esac
  11928. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11929. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11930. 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'
  11931. ;;
  11932. cxx*)
  11933. # Compaq C++
  11934. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11935. 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'
  11936. runpath_var=LD_RUN_PATH
  11937. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11938. hardcode_libdir_separator_CXX=:
  11939. # Commands to make compiler produce verbose output that lists
  11940. # what "hidden" libraries, object files and flags are used when
  11941. # linking a shared library.
  11942. #
  11943. # There doesn't appear to be a way to prevent this compiler from
  11944. # explicitly linking system object files so we need to strip them
  11945. # from the output so that they don't get included in the library
  11946. # dependencies.
  11947. 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'
  11948. ;;
  11949. xl*)
  11950. # IBM XL 8.0 on PPC, with GNU ld
  11951. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11952. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11953. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11954. if test "x$supports_anon_versioning" = xyes; then
  11955. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11956. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11957. echo "local: *; };" >> $output_objdir/$libname.ver~
  11958. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11959. fi
  11960. ;;
  11961. *)
  11962. case `$CC -V 2>&1 | sed 5q` in
  11963. *Sun\ C*)
  11964. # Sun C++ 5.9
  11965. no_undefined_flag_CXX=' -zdefs'
  11966. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11967. 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'
  11968. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11969. 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'
  11970. compiler_needs_object_CXX=yes
  11971. # Not sure whether something based on
  11972. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11973. # would be better.
  11974. output_verbose_link_cmd='echo'
  11975. # Archives containing C++ object files must be created using
  11976. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11977. # necessary to make sure instantiated templates are included
  11978. # in the archive.
  11979. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11980. ;;
  11981. esac
  11982. ;;
  11983. esac
  11984. ;;
  11985. lynxos*)
  11986. # FIXME: insert proper C++ library support
  11987. ld_shlibs_CXX=no
  11988. ;;
  11989. m88k*)
  11990. # FIXME: insert proper C++ library support
  11991. ld_shlibs_CXX=no
  11992. ;;
  11993. mvs*)
  11994. case $cc_basename in
  11995. cxx*)
  11996. # FIXME: insert proper C++ library support
  11997. ld_shlibs_CXX=no
  11998. ;;
  11999. *)
  12000. # FIXME: insert proper C++ library support
  12001. ld_shlibs_CXX=no
  12002. ;;
  12003. esac
  12004. ;;
  12005. netbsd*)
  12006. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12007. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12008. wlarc=
  12009. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12010. hardcode_direct_CXX=yes
  12011. hardcode_shlibpath_var_CXX=no
  12012. fi
  12013. # Workaround some broken pre-1.5 toolchains
  12014. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12015. ;;
  12016. *nto* | *qnx*)
  12017. ld_shlibs_CXX=yes
  12018. ;;
  12019. openbsd2*)
  12020. # C++ shared libraries are fairly broken
  12021. ld_shlibs_CXX=no
  12022. ;;
  12023. openbsd*)
  12024. if test -f /usr/libexec/ld.so; then
  12025. hardcode_direct_CXX=yes
  12026. hardcode_shlibpath_var_CXX=no
  12027. hardcode_direct_absolute_CXX=yes
  12028. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12029. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12030. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12031. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12032. export_dynamic_flag_spec_CXX='${wl}-E'
  12033. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12034. fi
  12035. output_verbose_link_cmd=echo
  12036. else
  12037. ld_shlibs_CXX=no
  12038. fi
  12039. ;;
  12040. osf3* | osf4* | osf5*)
  12041. case $cc_basename in
  12042. KCC*)
  12043. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12044. # KCC will only create a shared library if the output file
  12045. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12046. # to its proper name (with version) after linking.
  12047. 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'
  12048. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12049. hardcode_libdir_separator_CXX=:
  12050. # Archives containing C++ object files must be created using
  12051. # the KAI C++ compiler.
  12052. case $host in
  12053. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12054. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12055. esac
  12056. ;;
  12057. RCC*)
  12058. # Rational C++ 2.4.1
  12059. # FIXME: insert proper C++ library support
  12060. ld_shlibs_CXX=no
  12061. ;;
  12062. cxx*)
  12063. case $host in
  12064. osf3*)
  12065. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12066. 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'
  12067. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12068. ;;
  12069. *)
  12070. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12071. 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'
  12072. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12073. echo "-hidden">> $lib.exp~
  12074. $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~
  12075. $RM $lib.exp'
  12076. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12077. ;;
  12078. esac
  12079. hardcode_libdir_separator_CXX=:
  12080. # Commands to make compiler produce verbose output that lists
  12081. # what "hidden" libraries, object files and flags are used when
  12082. # linking a shared library.
  12083. #
  12084. # There doesn't appear to be a way to prevent this compiler from
  12085. # explicitly linking system object files so we need to strip them
  12086. # from the output so that they don't get included in the library
  12087. # dependencies.
  12088. 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'
  12089. ;;
  12090. *)
  12091. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12092. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12093. case $host in
  12094. osf3*)
  12095. 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'
  12096. ;;
  12097. *)
  12098. 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'
  12099. ;;
  12100. esac
  12101. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12102. hardcode_libdir_separator_CXX=:
  12103. # Commands to make compiler produce verbose output that lists
  12104. # what "hidden" libraries, object files and flags are used when
  12105. # linking a shared library.
  12106. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12107. else
  12108. # FIXME: insert proper C++ library support
  12109. ld_shlibs_CXX=no
  12110. fi
  12111. ;;
  12112. esac
  12113. ;;
  12114. psos*)
  12115. # FIXME: insert proper C++ library support
  12116. ld_shlibs_CXX=no
  12117. ;;
  12118. sunos4*)
  12119. case $cc_basename in
  12120. CC*)
  12121. # Sun C++ 4.x
  12122. # FIXME: insert proper C++ library support
  12123. ld_shlibs_CXX=no
  12124. ;;
  12125. lcc*)
  12126. # Lucid
  12127. # FIXME: insert proper C++ library support
  12128. ld_shlibs_CXX=no
  12129. ;;
  12130. *)
  12131. # FIXME: insert proper C++ library support
  12132. ld_shlibs_CXX=no
  12133. ;;
  12134. esac
  12135. ;;
  12136. solaris*)
  12137. case $cc_basename in
  12138. CC*)
  12139. # Sun C++ 4.2, 5.x and Centerline C++
  12140. archive_cmds_need_lc_CXX=yes
  12141. no_undefined_flag_CXX=' -zdefs'
  12142. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12143. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12144. $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'
  12145. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12146. hardcode_shlibpath_var_CXX=no
  12147. case $host_os in
  12148. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12149. *)
  12150. # The compiler driver will combine and reorder linker options,
  12151. # but understands `-z linker_flag'.
  12152. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12153. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12154. ;;
  12155. esac
  12156. link_all_deplibs_CXX=yes
  12157. output_verbose_link_cmd='echo'
  12158. # Archives containing C++ object files must be created using
  12159. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12160. # necessary to make sure instantiated templates are included
  12161. # in the archive.
  12162. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12163. ;;
  12164. gcx*)
  12165. # Green Hills C++ Compiler
  12166. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12167. # The C++ compiler must be used to create the archive.
  12168. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12169. ;;
  12170. *)
  12171. # GNU C++ compiler with Solaris linker
  12172. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12173. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12174. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12175. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12176. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12177. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12178. # Commands to make compiler produce verbose output that lists
  12179. # what "hidden" libraries, object files and flags are used when
  12180. # linking a shared library.
  12181. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12182. else
  12183. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12184. # platform.
  12185. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12186. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12187. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12188. # Commands to make compiler produce verbose output that lists
  12189. # what "hidden" libraries, object files and flags are used when
  12190. # linking a shared library.
  12191. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12192. fi
  12193. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12194. case $host_os in
  12195. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12196. *)
  12197. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12198. ;;
  12199. esac
  12200. fi
  12201. ;;
  12202. esac
  12203. ;;
  12204. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12205. no_undefined_flag_CXX='${wl}-z,text'
  12206. archive_cmds_need_lc_CXX=no
  12207. hardcode_shlibpath_var_CXX=no
  12208. runpath_var='LD_RUN_PATH'
  12209. case $cc_basename in
  12210. CC*)
  12211. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12212. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12213. ;;
  12214. *)
  12215. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12216. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12217. ;;
  12218. esac
  12219. ;;
  12220. sysv5* | sco3.2v5* | sco5v6*)
  12221. # Note: We can NOT use -z defs as we might desire, because we do not
  12222. # link with -lc, and that would cause any symbols used from libc to
  12223. # always be unresolved, which means just about no library would
  12224. # ever link correctly. If we're not using GNU ld we use -z text
  12225. # though, which does catch some bad symbols but isn't as heavy-handed
  12226. # as -z defs.
  12227. no_undefined_flag_CXX='${wl}-z,text'
  12228. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12229. archive_cmds_need_lc_CXX=no
  12230. hardcode_shlibpath_var_CXX=no
  12231. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12232. hardcode_libdir_separator_CXX=':'
  12233. link_all_deplibs_CXX=yes
  12234. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12235. runpath_var='LD_RUN_PATH'
  12236. case $cc_basename in
  12237. CC*)
  12238. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12239. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12240. ;;
  12241. *)
  12242. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12243. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12244. ;;
  12245. esac
  12246. ;;
  12247. tandem*)
  12248. case $cc_basename in
  12249. NCC*)
  12250. # NonStop-UX NCC 3.20
  12251. # FIXME: insert proper C++ library support
  12252. ld_shlibs_CXX=no
  12253. ;;
  12254. *)
  12255. # FIXME: insert proper C++ library support
  12256. ld_shlibs_CXX=no
  12257. ;;
  12258. esac
  12259. ;;
  12260. vxworks*)
  12261. # FIXME: insert proper C++ library support
  12262. ld_shlibs_CXX=no
  12263. ;;
  12264. *)
  12265. # FIXME: insert proper C++ library support
  12266. ld_shlibs_CXX=no
  12267. ;;
  12268. esac
  12269. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12270. $as_echo "$ld_shlibs_CXX" >&6; }
  12271. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12272. GCC_CXX="$GXX"
  12273. LD_CXX="$LD"
  12274. ## CAVEAT EMPTOR:
  12275. ## There is no encapsulation within the following macros, do not change
  12276. ## the running order or otherwise move them around unless you know exactly
  12277. ## what you are doing...
  12278. # Dependencies to place before and after the object being linked:
  12279. predep_objects_CXX=
  12280. postdep_objects_CXX=
  12281. predeps_CXX=
  12282. postdeps_CXX=
  12283. compiler_lib_search_path_CXX=
  12284. cat > conftest.$ac_ext <<_LT_EOF
  12285. class Foo
  12286. {
  12287. public:
  12288. Foo (void) { a = 0; }
  12289. private:
  12290. int a;
  12291. };
  12292. _LT_EOF
  12293. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12294. (eval $ac_compile) 2>&5
  12295. ac_status=$?
  12296. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12297. (exit $ac_status); }; then
  12298. # Parse the compiler output and extract the necessary
  12299. # objects, libraries and library flags.
  12300. # Sentinel used to keep track of whether or not we are before
  12301. # the conftest object file.
  12302. pre_test_object_deps_done=no
  12303. for p in `eval "$output_verbose_link_cmd"`; do
  12304. case $p in
  12305. -L* | -R* | -l*)
  12306. # Some compilers place space between "-{L,R}" and the path.
  12307. # Remove the space.
  12308. if test $p = "-L" ||
  12309. test $p = "-R"; then
  12310. prev=$p
  12311. continue
  12312. else
  12313. prev=
  12314. fi
  12315. if test "$pre_test_object_deps_done" = no; then
  12316. case $p in
  12317. -L* | -R*)
  12318. # Internal compiler library paths should come after those
  12319. # provided the user. The postdeps already come after the
  12320. # user supplied libs so there is no need to process them.
  12321. if test -z "$compiler_lib_search_path_CXX"; then
  12322. compiler_lib_search_path_CXX="${prev}${p}"
  12323. else
  12324. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12325. fi
  12326. ;;
  12327. # The "-l" case would never come before the object being
  12328. # linked, so don't bother handling this case.
  12329. esac
  12330. else
  12331. if test -z "$postdeps_CXX"; then
  12332. postdeps_CXX="${prev}${p}"
  12333. else
  12334. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12335. fi
  12336. fi
  12337. ;;
  12338. *.$objext)
  12339. # This assumes that the test object file only shows up
  12340. # once in the compiler output.
  12341. if test "$p" = "conftest.$objext"; then
  12342. pre_test_object_deps_done=yes
  12343. continue
  12344. fi
  12345. if test "$pre_test_object_deps_done" = no; then
  12346. if test -z "$predep_objects_CXX"; then
  12347. predep_objects_CXX="$p"
  12348. else
  12349. predep_objects_CXX="$predep_objects_CXX $p"
  12350. fi
  12351. else
  12352. if test -z "$postdep_objects_CXX"; then
  12353. postdep_objects_CXX="$p"
  12354. else
  12355. postdep_objects_CXX="$postdep_objects_CXX $p"
  12356. fi
  12357. fi
  12358. ;;
  12359. *) ;; # Ignore the rest.
  12360. esac
  12361. done
  12362. # Clean up.
  12363. rm -f a.out a.exe
  12364. else
  12365. echo "libtool.m4: error: problem compiling CXX test program"
  12366. fi
  12367. $RM -f confest.$objext
  12368. # PORTME: override above test on systems where it is broken
  12369. case $host_os in
  12370. interix[3-9]*)
  12371. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12372. # hack all around it, let's just trust "g++" to DTRT.
  12373. predep_objects_CXX=
  12374. postdep_objects_CXX=
  12375. postdeps_CXX=
  12376. ;;
  12377. linux*)
  12378. case `$CC -V 2>&1 | sed 5q` in
  12379. *Sun\ C*)
  12380. # Sun C++ 5.9
  12381. # The more standards-conforming stlport4 library is
  12382. # incompatible with the Cstd library. Avoid specifying
  12383. # it if it's in CXXFLAGS. Ignore libCrun as
  12384. # -library=stlport4 depends on it.
  12385. case " $CXX $CXXFLAGS " in
  12386. *" -library=stlport4 "*)
  12387. solaris_use_stlport4=yes
  12388. ;;
  12389. esac
  12390. if test "$solaris_use_stlport4" != yes; then
  12391. postdeps_CXX='-library=Cstd -library=Crun'
  12392. fi
  12393. ;;
  12394. esac
  12395. ;;
  12396. solaris*)
  12397. case $cc_basename in
  12398. CC*)
  12399. # The more standards-conforming stlport4 library is
  12400. # incompatible with the Cstd library. Avoid specifying
  12401. # it if it's in CXXFLAGS. Ignore libCrun as
  12402. # -library=stlport4 depends on it.
  12403. case " $CXX $CXXFLAGS " in
  12404. *" -library=stlport4 "*)
  12405. solaris_use_stlport4=yes
  12406. ;;
  12407. esac
  12408. # Adding this requires a known-good setup of shared libraries for
  12409. # Sun compiler versions before 5.6, else PIC objects from an old
  12410. # archive will be linked into the output, leading to subtle bugs.
  12411. if test "$solaris_use_stlport4" != yes; then
  12412. postdeps_CXX='-library=Cstd -library=Crun'
  12413. fi
  12414. ;;
  12415. esac
  12416. ;;
  12417. esac
  12418. case " $postdeps_CXX " in
  12419. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12420. esac
  12421. compiler_lib_search_dirs_CXX=
  12422. if test -n "${compiler_lib_search_path_CXX}"; then
  12423. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12424. fi
  12425. lt_prog_compiler_wl_CXX=
  12426. lt_prog_compiler_pic_CXX=
  12427. lt_prog_compiler_static_CXX=
  12428. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12429. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12430. # C++ specific cases for pic, static, wl, etc.
  12431. if test "$GXX" = yes; then
  12432. lt_prog_compiler_wl_CXX='-Wl,'
  12433. lt_prog_compiler_static_CXX='-static'
  12434. case $host_os in
  12435. aix*)
  12436. # All AIX code is PIC.
  12437. if test "$host_cpu" = ia64; then
  12438. # AIX 5 now supports IA64 processor
  12439. lt_prog_compiler_static_CXX='-Bstatic'
  12440. fi
  12441. ;;
  12442. amigaos*)
  12443. case $host_cpu in
  12444. powerpc)
  12445. # see comment about AmigaOS4 .so support
  12446. lt_prog_compiler_pic_CXX='-fPIC'
  12447. ;;
  12448. m68k)
  12449. # FIXME: we need at least 68020 code to build shared libraries, but
  12450. # adding the `-m68020' flag to GCC prevents building anything better,
  12451. # like `-m68040'.
  12452. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12453. ;;
  12454. esac
  12455. ;;
  12456. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12457. # PIC is the default for these OSes.
  12458. ;;
  12459. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12460. # This hack is so that the source file can tell whether it is being
  12461. # built for inclusion in a dll (and should export symbols for example).
  12462. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12463. # (--disable-auto-import) libraries
  12464. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12465. ;;
  12466. darwin* | rhapsody*)
  12467. # PIC is the default on this platform
  12468. # Common symbols not allowed in MH_DYLIB files
  12469. lt_prog_compiler_pic_CXX='-fno-common'
  12470. ;;
  12471. *djgpp*)
  12472. # DJGPP does not support shared libraries at all
  12473. lt_prog_compiler_pic_CXX=
  12474. ;;
  12475. interix[3-9]*)
  12476. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12477. # Instead, we relocate shared libraries at runtime.
  12478. ;;
  12479. sysv4*MP*)
  12480. if test -d /usr/nec; then
  12481. lt_prog_compiler_pic_CXX=-Kconform_pic
  12482. fi
  12483. ;;
  12484. hpux*)
  12485. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12486. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12487. # sets the default TLS model and affects inlining.
  12488. case $host_cpu in
  12489. hppa*64*)
  12490. ;;
  12491. *)
  12492. lt_prog_compiler_pic_CXX='-fPIC'
  12493. ;;
  12494. esac
  12495. ;;
  12496. *qnx* | *nto*)
  12497. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12498. # it will coredump.
  12499. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12500. ;;
  12501. *)
  12502. lt_prog_compiler_pic_CXX='-fPIC'
  12503. ;;
  12504. esac
  12505. else
  12506. case $host_os in
  12507. aix[4-9]*)
  12508. # All AIX code is PIC.
  12509. if test "$host_cpu" = ia64; then
  12510. # AIX 5 now supports IA64 processor
  12511. lt_prog_compiler_static_CXX='-Bstatic'
  12512. else
  12513. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12514. fi
  12515. ;;
  12516. chorus*)
  12517. case $cc_basename in
  12518. cxch68*)
  12519. # Green Hills C++ Compiler
  12520. # _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"
  12521. ;;
  12522. esac
  12523. ;;
  12524. dgux*)
  12525. case $cc_basename in
  12526. ec++*)
  12527. lt_prog_compiler_pic_CXX='-KPIC'
  12528. ;;
  12529. ghcx*)
  12530. # Green Hills C++ Compiler
  12531. lt_prog_compiler_pic_CXX='-pic'
  12532. ;;
  12533. *)
  12534. ;;
  12535. esac
  12536. ;;
  12537. freebsd* | dragonfly*)
  12538. # FreeBSD uses GNU C++
  12539. ;;
  12540. hpux9* | hpux10* | hpux11*)
  12541. case $cc_basename in
  12542. CC*)
  12543. lt_prog_compiler_wl_CXX='-Wl,'
  12544. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12545. if test "$host_cpu" != ia64; then
  12546. lt_prog_compiler_pic_CXX='+Z'
  12547. fi
  12548. ;;
  12549. aCC*)
  12550. lt_prog_compiler_wl_CXX='-Wl,'
  12551. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12552. case $host_cpu in
  12553. hppa*64*|ia64*)
  12554. # +Z the default
  12555. ;;
  12556. *)
  12557. lt_prog_compiler_pic_CXX='+Z'
  12558. ;;
  12559. esac
  12560. ;;
  12561. *)
  12562. ;;
  12563. esac
  12564. ;;
  12565. interix*)
  12566. # This is c89, which is MS Visual C++ (no shared libs)
  12567. # Anyone wants to do a port?
  12568. ;;
  12569. irix5* | irix6* | nonstopux*)
  12570. case $cc_basename in
  12571. CC*)
  12572. lt_prog_compiler_wl_CXX='-Wl,'
  12573. lt_prog_compiler_static_CXX='-non_shared'
  12574. # CC pic flag -KPIC is the default.
  12575. ;;
  12576. *)
  12577. ;;
  12578. esac
  12579. ;;
  12580. linux* | k*bsd*-gnu)
  12581. case $cc_basename in
  12582. KCC*)
  12583. # KAI C++ Compiler
  12584. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12585. lt_prog_compiler_pic_CXX='-fPIC'
  12586. ;;
  12587. ecpc* )
  12588. # old Intel C++ for x86_64 which still supported -KPIC.
  12589. lt_prog_compiler_wl_CXX='-Wl,'
  12590. lt_prog_compiler_pic_CXX='-KPIC'
  12591. lt_prog_compiler_static_CXX='-static'
  12592. ;;
  12593. icpc* )
  12594. # Intel C++, used to be incompatible with GCC.
  12595. # ICC 10 doesn't accept -KPIC any more.
  12596. lt_prog_compiler_wl_CXX='-Wl,'
  12597. lt_prog_compiler_pic_CXX='-fPIC'
  12598. lt_prog_compiler_static_CXX='-static'
  12599. ;;
  12600. pgCC* | pgcpp*)
  12601. # Portland Group C++ compiler
  12602. lt_prog_compiler_wl_CXX='-Wl,'
  12603. lt_prog_compiler_pic_CXX='-fpic'
  12604. lt_prog_compiler_static_CXX='-Bstatic'
  12605. ;;
  12606. cxx*)
  12607. # Compaq C++
  12608. # Make sure the PIC flag is empty. It appears that all Alpha
  12609. # Linux and Compaq Tru64 Unix objects are PIC.
  12610. lt_prog_compiler_pic_CXX=
  12611. lt_prog_compiler_static_CXX='-non_shared'
  12612. ;;
  12613. xlc* | xlC*)
  12614. # IBM XL 8.0 on PPC
  12615. lt_prog_compiler_wl_CXX='-Wl,'
  12616. lt_prog_compiler_pic_CXX='-qpic'
  12617. lt_prog_compiler_static_CXX='-qstaticlink'
  12618. ;;
  12619. *)
  12620. case `$CC -V 2>&1 | sed 5q` in
  12621. *Sun\ C*)
  12622. # Sun C++ 5.9
  12623. lt_prog_compiler_pic_CXX='-KPIC'
  12624. lt_prog_compiler_static_CXX='-Bstatic'
  12625. lt_prog_compiler_wl_CXX='-Qoption ld '
  12626. ;;
  12627. esac
  12628. ;;
  12629. esac
  12630. ;;
  12631. lynxos*)
  12632. ;;
  12633. m88k*)
  12634. ;;
  12635. mvs*)
  12636. case $cc_basename in
  12637. cxx*)
  12638. lt_prog_compiler_pic_CXX='-W c,exportall'
  12639. ;;
  12640. *)
  12641. ;;
  12642. esac
  12643. ;;
  12644. netbsd*)
  12645. ;;
  12646. *qnx* | *nto*)
  12647. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12648. # it will coredump.
  12649. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12650. ;;
  12651. osf3* | osf4* | osf5*)
  12652. case $cc_basename in
  12653. KCC*)
  12654. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12655. ;;
  12656. RCC*)
  12657. # Rational C++ 2.4.1
  12658. lt_prog_compiler_pic_CXX='-pic'
  12659. ;;
  12660. cxx*)
  12661. # Digital/Compaq C++
  12662. lt_prog_compiler_wl_CXX='-Wl,'
  12663. # Make sure the PIC flag is empty. It appears that all Alpha
  12664. # Linux and Compaq Tru64 Unix objects are PIC.
  12665. lt_prog_compiler_pic_CXX=
  12666. lt_prog_compiler_static_CXX='-non_shared'
  12667. ;;
  12668. *)
  12669. ;;
  12670. esac
  12671. ;;
  12672. psos*)
  12673. ;;
  12674. solaris*)
  12675. case $cc_basename in
  12676. CC*)
  12677. # Sun C++ 4.2, 5.x and Centerline C++
  12678. lt_prog_compiler_pic_CXX='-KPIC'
  12679. lt_prog_compiler_static_CXX='-Bstatic'
  12680. lt_prog_compiler_wl_CXX='-Qoption ld '
  12681. ;;
  12682. gcx*)
  12683. # Green Hills C++ Compiler
  12684. lt_prog_compiler_pic_CXX='-PIC'
  12685. ;;
  12686. *)
  12687. ;;
  12688. esac
  12689. ;;
  12690. sunos4*)
  12691. case $cc_basename in
  12692. CC*)
  12693. # Sun C++ 4.x
  12694. lt_prog_compiler_pic_CXX='-pic'
  12695. lt_prog_compiler_static_CXX='-Bstatic'
  12696. ;;
  12697. lcc*)
  12698. # Lucid
  12699. lt_prog_compiler_pic_CXX='-pic'
  12700. ;;
  12701. *)
  12702. ;;
  12703. esac
  12704. ;;
  12705. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12706. case $cc_basename in
  12707. CC*)
  12708. lt_prog_compiler_wl_CXX='-Wl,'
  12709. lt_prog_compiler_pic_CXX='-KPIC'
  12710. lt_prog_compiler_static_CXX='-Bstatic'
  12711. ;;
  12712. esac
  12713. ;;
  12714. tandem*)
  12715. case $cc_basename in
  12716. NCC*)
  12717. # NonStop-UX NCC 3.20
  12718. lt_prog_compiler_pic_CXX='-KPIC'
  12719. ;;
  12720. *)
  12721. ;;
  12722. esac
  12723. ;;
  12724. vxworks*)
  12725. ;;
  12726. *)
  12727. lt_prog_compiler_can_build_shared_CXX=no
  12728. ;;
  12729. esac
  12730. fi
  12731. case $host_os in
  12732. # For platforms which do not support PIC, -DPIC is meaningless:
  12733. *djgpp*)
  12734. lt_prog_compiler_pic_CXX=
  12735. ;;
  12736. *)
  12737. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12738. ;;
  12739. esac
  12740. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12741. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12742. #
  12743. # Check to make sure the PIC flag actually works.
  12744. #
  12745. if test -n "$lt_prog_compiler_pic_CXX"; then
  12746. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12747. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12748. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12749. $as_echo_n "(cached) " >&6
  12750. else
  12751. lt_cv_prog_compiler_pic_works_CXX=no
  12752. ac_outfile=conftest.$ac_objext
  12753. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12754. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12755. # Insert the option either (1) after the last *FLAGS variable, or
  12756. # (2) before a word containing "conftest.", or (3) at the end.
  12757. # Note that $ac_compile itself does not contain backslashes and begins
  12758. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12759. # The option is referenced via a variable to avoid confusing sed.
  12760. lt_compile=`echo "$ac_compile" | $SED \
  12761. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12762. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12763. -e 's:$: $lt_compiler_flag:'`
  12764. (eval echo "\"\$as_me:14713: $lt_compile\"" >&5)
  12765. (eval "$lt_compile" 2>conftest.err)
  12766. ac_status=$?
  12767. cat conftest.err >&5
  12768. echo "$as_me:14717: \$? = $ac_status" >&5
  12769. if (exit $ac_status) && test -s "$ac_outfile"; then
  12770. # The compiler can only warn and ignore the option if not recognized
  12771. # So say no if there are warnings other than the usual output.
  12772. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12773. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12774. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12775. lt_cv_prog_compiler_pic_works_CXX=yes
  12776. fi
  12777. fi
  12778. $RM conftest*
  12779. fi
  12780. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12781. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12782. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12783. case $lt_prog_compiler_pic_CXX in
  12784. "" | " "*) ;;
  12785. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12786. esac
  12787. else
  12788. lt_prog_compiler_pic_CXX=
  12789. lt_prog_compiler_can_build_shared_CXX=no
  12790. fi
  12791. fi
  12792. #
  12793. # Check to make sure the static flag actually works.
  12794. #
  12795. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12796. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12797. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12798. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12799. $as_echo_n "(cached) " >&6
  12800. else
  12801. lt_cv_prog_compiler_static_works_CXX=no
  12802. save_LDFLAGS="$LDFLAGS"
  12803. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12804. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12805. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12806. # The linker can only warn and ignore the option if not recognized
  12807. # So say no if there are warnings
  12808. if test -s conftest.err; then
  12809. # Append any errors to the config.log.
  12810. cat conftest.err 1>&5
  12811. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12812. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12813. if diff conftest.exp conftest.er2 >/dev/null; then
  12814. lt_cv_prog_compiler_static_works_CXX=yes
  12815. fi
  12816. else
  12817. lt_cv_prog_compiler_static_works_CXX=yes
  12818. fi
  12819. fi
  12820. $RM -r conftest*
  12821. LDFLAGS="$save_LDFLAGS"
  12822. fi
  12823. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12824. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12825. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12826. :
  12827. else
  12828. lt_prog_compiler_static_CXX=
  12829. fi
  12830. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12831. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12832. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12833. $as_echo_n "(cached) " >&6
  12834. else
  12835. lt_cv_prog_compiler_c_o_CXX=no
  12836. $RM -r conftest 2>/dev/null
  12837. mkdir conftest
  12838. cd conftest
  12839. mkdir out
  12840. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12841. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12842. # Insert the option either (1) after the last *FLAGS variable, or
  12843. # (2) before a word containing "conftest.", or (3) at the end.
  12844. # Note that $ac_compile itself does not contain backslashes and begins
  12845. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12846. lt_compile=`echo "$ac_compile" | $SED \
  12847. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12848. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12849. -e 's:$: $lt_compiler_flag:'`
  12850. (eval echo "\"\$as_me:14812: $lt_compile\"" >&5)
  12851. (eval "$lt_compile" 2>out/conftest.err)
  12852. ac_status=$?
  12853. cat out/conftest.err >&5
  12854. echo "$as_me:14816: \$? = $ac_status" >&5
  12855. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12856. then
  12857. # The compiler can only warn and ignore the option if not recognized
  12858. # So say no if there are warnings
  12859. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12860. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12861. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12862. lt_cv_prog_compiler_c_o_CXX=yes
  12863. fi
  12864. fi
  12865. chmod u+w . 2>&5
  12866. $RM conftest*
  12867. # SGI C++ compiler will create directory out/ii_files/ for
  12868. # template instantiation
  12869. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12870. $RM out/* && rmdir out
  12871. cd ..
  12872. $RM -r conftest
  12873. $RM conftest*
  12874. fi
  12875. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12876. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12877. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12878. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12879. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12880. $as_echo_n "(cached) " >&6
  12881. else
  12882. lt_cv_prog_compiler_c_o_CXX=no
  12883. $RM -r conftest 2>/dev/null
  12884. mkdir conftest
  12885. cd conftest
  12886. mkdir out
  12887. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12888. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12889. # Insert the option either (1) after the last *FLAGS variable, or
  12890. # (2) before a word containing "conftest.", or (3) at the end.
  12891. # Note that $ac_compile itself does not contain backslashes and begins
  12892. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12893. lt_compile=`echo "$ac_compile" | $SED \
  12894. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12895. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12896. -e 's:$: $lt_compiler_flag:'`
  12897. (eval echo "\"\$as_me:14864: $lt_compile\"" >&5)
  12898. (eval "$lt_compile" 2>out/conftest.err)
  12899. ac_status=$?
  12900. cat out/conftest.err >&5
  12901. echo "$as_me:14868: \$? = $ac_status" >&5
  12902. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12903. then
  12904. # The compiler can only warn and ignore the option if not recognized
  12905. # So say no if there are warnings
  12906. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12907. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12908. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12909. lt_cv_prog_compiler_c_o_CXX=yes
  12910. fi
  12911. fi
  12912. chmod u+w . 2>&5
  12913. $RM conftest*
  12914. # SGI C++ compiler will create directory out/ii_files/ for
  12915. # template instantiation
  12916. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12917. $RM out/* && rmdir out
  12918. cd ..
  12919. $RM -r conftest
  12920. $RM conftest*
  12921. fi
  12922. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12923. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12924. hard_links="nottested"
  12925. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12926. # do not overwrite the value of need_locks provided by the user
  12927. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12928. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12929. hard_links=yes
  12930. $RM conftest*
  12931. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12932. touch conftest.a
  12933. ln conftest.a conftest.b 2>&5 || hard_links=no
  12934. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12935. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12936. $as_echo "$hard_links" >&6; }
  12937. if test "$hard_links" = no; then
  12938. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12939. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12940. need_locks=warn
  12941. fi
  12942. else
  12943. need_locks=no
  12944. fi
  12945. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12946. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12947. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12948. case $host_os in
  12949. aix[4-9]*)
  12950. # If we're using GNU nm, then we don't want the "-C" option.
  12951. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12952. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12953. 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'
  12954. else
  12955. 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'
  12956. fi
  12957. ;;
  12958. pw32*)
  12959. export_symbols_cmds_CXX="$ltdll_cmds"
  12960. ;;
  12961. cygwin* | mingw* | cegcc*)
  12962. 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'
  12963. ;;
  12964. *)
  12965. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12966. ;;
  12967. esac
  12968. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12969. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12970. $as_echo "$ld_shlibs_CXX" >&6; }
  12971. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12972. with_gnu_ld_CXX=$with_gnu_ld
  12973. #
  12974. # Do we need to explicitly link libc?
  12975. #
  12976. case "x$archive_cmds_need_lc_CXX" in
  12977. x|xyes)
  12978. # Assume -lc should be added
  12979. archive_cmds_need_lc_CXX=yes
  12980. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12981. case $archive_cmds_CXX in
  12982. *'~'*)
  12983. # FIXME: we may have to deal with multi-command sequences.
  12984. ;;
  12985. '$CC '*)
  12986. # Test whether the compiler implicitly links with -lc since on some
  12987. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12988. # to ld, don't add -lc before -lgcc.
  12989. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12990. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12991. $RM conftest*
  12992. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12994. (eval $ac_compile) 2>&5
  12995. ac_status=$?
  12996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12997. (exit $ac_status); } 2>conftest.err; then
  12998. soname=conftest
  12999. lib=conftest
  13000. libobjs=conftest.$ac_objext
  13001. deplibs=
  13002. wl=$lt_prog_compiler_wl_CXX
  13003. pic_flag=$lt_prog_compiler_pic_CXX
  13004. compiler_flags=-v
  13005. linker_flags=-v
  13006. verstring=
  13007. output_objdir=.
  13008. libname=conftest
  13009. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13010. allow_undefined_flag_CXX=
  13011. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13012. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13013. ac_status=$?
  13014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13015. (exit $ac_status); }
  13016. then
  13017. archive_cmds_need_lc_CXX=no
  13018. else
  13019. archive_cmds_need_lc_CXX=yes
  13020. fi
  13021. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13022. else
  13023. cat conftest.err 1>&5
  13024. fi
  13025. $RM conftest*
  13026. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  13027. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  13028. ;;
  13029. esac
  13030. fi
  13031. ;;
  13032. esac
  13033. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13034. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13035. library_names_spec=
  13036. libname_spec='lib$name'
  13037. soname_spec=
  13038. shrext_cmds=".so"
  13039. postinstall_cmds=
  13040. postuninstall_cmds=
  13041. finish_cmds=
  13042. finish_eval=
  13043. shlibpath_var=
  13044. shlibpath_overrides_runpath=unknown
  13045. version_type=none
  13046. dynamic_linker="$host_os ld.so"
  13047. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13048. need_lib_prefix=unknown
  13049. hardcode_into_libs=no
  13050. # when you set need_version to no, make sure it does not cause -set_version
  13051. # flags to be left without arguments
  13052. need_version=unknown
  13053. case $host_os in
  13054. aix3*)
  13055. version_type=linux
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13057. shlibpath_var=LIBPATH
  13058. # AIX 3 has no versioning support, so we append a major version to the name.
  13059. soname_spec='${libname}${release}${shared_ext}$major'
  13060. ;;
  13061. aix[4-9]*)
  13062. version_type=linux
  13063. need_lib_prefix=no
  13064. need_version=no
  13065. hardcode_into_libs=yes
  13066. if test "$host_cpu" = ia64; then
  13067. # AIX 5 supports IA64
  13068. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13069. shlibpath_var=LD_LIBRARY_PATH
  13070. else
  13071. # With GCC up to 2.95.x, collect2 would create an import file
  13072. # for dependence libraries. The import file would start with
  13073. # the line `#! .'. This would cause the generated library to
  13074. # depend on `.', always an invalid library. This was fixed in
  13075. # development snapshots of GCC prior to 3.0.
  13076. case $host_os in
  13077. aix4 | aix4.[01] | aix4.[01].*)
  13078. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13079. echo ' yes '
  13080. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13081. :
  13082. else
  13083. can_build_shared=no
  13084. fi
  13085. ;;
  13086. esac
  13087. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13088. # soname into executable. Probably we can add versioning support to
  13089. # collect2, so additional links can be useful in future.
  13090. if test "$aix_use_runtimelinking" = yes; then
  13091. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13092. # instead of lib<name>.a to let people know that these are not
  13093. # typical AIX shared libraries.
  13094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13095. else
  13096. # We preserve .a as extension for shared libraries through AIX4.2
  13097. # and later when we are not doing run time linking.
  13098. library_names_spec='${libname}${release}.a $libname.a'
  13099. soname_spec='${libname}${release}${shared_ext}$major'
  13100. fi
  13101. shlibpath_var=LIBPATH
  13102. fi
  13103. ;;
  13104. amigaos*)
  13105. case $host_cpu in
  13106. powerpc)
  13107. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13108. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13110. ;;
  13111. m68k)
  13112. library_names_spec='$libname.ixlibrary $libname.a'
  13113. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13114. 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'
  13115. ;;
  13116. esac
  13117. ;;
  13118. beos*)
  13119. library_names_spec='${libname}${shared_ext}'
  13120. dynamic_linker="$host_os ld.so"
  13121. shlibpath_var=LIBRARY_PATH
  13122. ;;
  13123. bsdi[45]*)
  13124. version_type=linux
  13125. need_version=no
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13127. soname_spec='${libname}${release}${shared_ext}$major'
  13128. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13129. shlibpath_var=LD_LIBRARY_PATH
  13130. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13131. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13132. # the default ld.so.conf also contains /usr/contrib/lib and
  13133. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13134. # libtool to hard-code these into programs
  13135. ;;
  13136. cygwin* | mingw* | pw32* | cegcc*)
  13137. version_type=windows
  13138. shrext_cmds=".dll"
  13139. need_version=no
  13140. need_lib_prefix=no
  13141. case $GCC,$host_os in
  13142. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13143. library_names_spec='$libname.dll.a'
  13144. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13145. postinstall_cmds='base_file=`basename \${file}`~
  13146. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13147. dldir=$destdir/`dirname \$dlpath`~
  13148. test -d \$dldir || mkdir -p \$dldir~
  13149. $install_prog $dir/$dlname \$dldir/$dlname~
  13150. chmod a+x \$dldir/$dlname~
  13151. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13152. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13153. fi'
  13154. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13155. dlpath=$dir/\$dldll~
  13156. $RM \$dlpath'
  13157. shlibpath_overrides_runpath=yes
  13158. case $host_os in
  13159. cygwin*)
  13160. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13161. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13162. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13163. ;;
  13164. mingw* | cegcc*)
  13165. # MinGW DLLs use traditional 'lib' prefix
  13166. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13167. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13168. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13169. # It is most probably a Windows format PATH printed by
  13170. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13171. # path with ; separators, and with drive letters. We can handle the
  13172. # drive letters (cygwin fileutils understands them), so leave them,
  13173. # especially as we might pass files found there to a mingw objdump,
  13174. # which wouldn't understand a cygwinified path. Ahh.
  13175. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13176. else
  13177. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13178. fi
  13179. ;;
  13180. pw32*)
  13181. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13182. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13183. ;;
  13184. esac
  13185. ;;
  13186. *)
  13187. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13188. ;;
  13189. esac
  13190. dynamic_linker='Win32 ld.exe'
  13191. # FIXME: first we should search . and the directory the executable is in
  13192. shlibpath_var=PATH
  13193. ;;
  13194. darwin* | rhapsody*)
  13195. dynamic_linker="$host_os dyld"
  13196. version_type=darwin
  13197. need_lib_prefix=no
  13198. need_version=no
  13199. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13200. soname_spec='${libname}${release}${major}$shared_ext'
  13201. shlibpath_overrides_runpath=yes
  13202. shlibpath_var=DYLD_LIBRARY_PATH
  13203. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13204. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13205. ;;
  13206. dgux*)
  13207. version_type=linux
  13208. need_lib_prefix=no
  13209. need_version=no
  13210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13211. soname_spec='${libname}${release}${shared_ext}$major'
  13212. shlibpath_var=LD_LIBRARY_PATH
  13213. ;;
  13214. freebsd1*)
  13215. dynamic_linker=no
  13216. ;;
  13217. freebsd* | dragonfly*)
  13218. # DragonFly does not have aout. When/if they implement a new
  13219. # versioning mechanism, adjust this.
  13220. if test -x /usr/bin/objformat; then
  13221. objformat=`/usr/bin/objformat`
  13222. else
  13223. case $host_os in
  13224. freebsd[123]*) objformat=aout ;;
  13225. *) objformat=elf ;;
  13226. esac
  13227. fi
  13228. version_type=freebsd-$objformat
  13229. case $version_type in
  13230. freebsd-elf*)
  13231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13232. need_version=no
  13233. need_lib_prefix=no
  13234. ;;
  13235. freebsd-*)
  13236. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13237. need_version=yes
  13238. ;;
  13239. esac
  13240. shlibpath_var=LD_LIBRARY_PATH
  13241. case $host_os in
  13242. freebsd2*)
  13243. shlibpath_overrides_runpath=yes
  13244. ;;
  13245. freebsd3.[01]* | freebsdelf3.[01]*)
  13246. shlibpath_overrides_runpath=yes
  13247. hardcode_into_libs=yes
  13248. ;;
  13249. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13250. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13251. shlibpath_overrides_runpath=no
  13252. hardcode_into_libs=yes
  13253. ;;
  13254. *) # from 4.6 on, and DragonFly
  13255. shlibpath_overrides_runpath=yes
  13256. hardcode_into_libs=yes
  13257. ;;
  13258. esac
  13259. ;;
  13260. gnu*)
  13261. version_type=linux
  13262. need_lib_prefix=no
  13263. need_version=no
  13264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13265. soname_spec='${libname}${release}${shared_ext}$major'
  13266. shlibpath_var=LD_LIBRARY_PATH
  13267. hardcode_into_libs=yes
  13268. ;;
  13269. hpux9* | hpux10* | hpux11*)
  13270. # Give a soname corresponding to the major version so that dld.sl refuses to
  13271. # link against other versions.
  13272. version_type=sunos
  13273. need_lib_prefix=no
  13274. need_version=no
  13275. case $host_cpu in
  13276. ia64*)
  13277. shrext_cmds='.so'
  13278. hardcode_into_libs=yes
  13279. dynamic_linker="$host_os dld.so"
  13280. shlibpath_var=LD_LIBRARY_PATH
  13281. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13283. soname_spec='${libname}${release}${shared_ext}$major'
  13284. if test "X$HPUX_IA64_MODE" = X32; then
  13285. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13286. else
  13287. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13288. fi
  13289. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13290. ;;
  13291. hppa*64*)
  13292. shrext_cmds='.sl'
  13293. hardcode_into_libs=yes
  13294. dynamic_linker="$host_os dld.sl"
  13295. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13296. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13298. soname_spec='${libname}${release}${shared_ext}$major'
  13299. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13300. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13301. ;;
  13302. *)
  13303. shrext_cmds='.sl'
  13304. dynamic_linker="$host_os dld.sl"
  13305. shlibpath_var=SHLIB_PATH
  13306. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13308. soname_spec='${libname}${release}${shared_ext}$major'
  13309. ;;
  13310. esac
  13311. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13312. postinstall_cmds='chmod 555 $lib'
  13313. ;;
  13314. interix[3-9]*)
  13315. version_type=linux
  13316. need_lib_prefix=no
  13317. need_version=no
  13318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13319. soname_spec='${libname}${release}${shared_ext}$major'
  13320. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13321. shlibpath_var=LD_LIBRARY_PATH
  13322. shlibpath_overrides_runpath=no
  13323. hardcode_into_libs=yes
  13324. ;;
  13325. irix5* | irix6* | nonstopux*)
  13326. case $host_os in
  13327. nonstopux*) version_type=nonstopux ;;
  13328. *)
  13329. if test "$lt_cv_prog_gnu_ld" = yes; then
  13330. version_type=linux
  13331. else
  13332. version_type=irix
  13333. fi ;;
  13334. esac
  13335. need_lib_prefix=no
  13336. need_version=no
  13337. soname_spec='${libname}${release}${shared_ext}$major'
  13338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13339. case $host_os in
  13340. irix5* | nonstopux*)
  13341. libsuff= shlibsuff=
  13342. ;;
  13343. *)
  13344. case $LD in # libtool.m4 will add one of these switches to LD
  13345. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13346. libsuff= shlibsuff= libmagic=32-bit;;
  13347. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13348. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13349. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13350. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13351. *) libsuff= shlibsuff= libmagic=never-match;;
  13352. esac
  13353. ;;
  13354. esac
  13355. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13356. shlibpath_overrides_runpath=no
  13357. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13358. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13359. hardcode_into_libs=yes
  13360. ;;
  13361. # No shared lib support for Linux oldld, aout, or coff.
  13362. linux*oldld* | linux*aout* | linux*coff*)
  13363. dynamic_linker=no
  13364. ;;
  13365. # This must be Linux ELF.
  13366. linux* | k*bsd*-gnu)
  13367. version_type=linux
  13368. need_lib_prefix=no
  13369. need_version=no
  13370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13371. soname_spec='${libname}${release}${shared_ext}$major'
  13372. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13373. shlibpath_var=LD_LIBRARY_PATH
  13374. shlibpath_overrides_runpath=no
  13375. # Some binutils ld are patched to set DT_RUNPATH
  13376. save_LDFLAGS=$LDFLAGS
  13377. save_libdir=$libdir
  13378. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13379. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13380. cat >conftest.$ac_ext <<_ACEOF
  13381. /* confdefs.h. */
  13382. _ACEOF
  13383. cat confdefs.h >>conftest.$ac_ext
  13384. cat >>conftest.$ac_ext <<_ACEOF
  13385. /* end confdefs.h. */
  13386. int
  13387. main ()
  13388. {
  13389. ;
  13390. return 0;
  13391. }
  13392. _ACEOF
  13393. rm -f conftest.$ac_objext conftest$ac_exeext
  13394. if { (ac_try="$ac_link"
  13395. case "(($ac_try" in
  13396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13397. *) ac_try_echo=$ac_try;;
  13398. esac
  13399. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13400. $as_echo "$ac_try_echo") >&5
  13401. (eval "$ac_link") 2>conftest.er1
  13402. ac_status=$?
  13403. grep -v '^ *+' conftest.er1 >conftest.err
  13404. rm -f conftest.er1
  13405. cat conftest.err >&5
  13406. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13407. (exit $ac_status); } && {
  13408. test -z "$ac_cxx_werror_flag" ||
  13409. test ! -s conftest.err
  13410. } && test -s conftest$ac_exeext && {
  13411. test "$cross_compiling" = yes ||
  13412. $as_test_x conftest$ac_exeext
  13413. }; then
  13414. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  13415. shlibpath_overrides_runpath=yes
  13416. fi
  13417. else
  13418. $as_echo "$as_me: failed program was:" >&5
  13419. sed 's/^/| /' conftest.$ac_ext >&5
  13420. fi
  13421. rm -rf conftest.dSYM
  13422. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13423. conftest$ac_exeext conftest.$ac_ext
  13424. LDFLAGS=$save_LDFLAGS
  13425. libdir=$save_libdir
  13426. # This implies no fast_install, which is unacceptable.
  13427. # Some rework will be needed to allow for fast_install
  13428. # before this can be enabled.
  13429. hardcode_into_libs=yes
  13430. # Add ABI-specific directories to the system library path.
  13431. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13432. # Append ld.so.conf contents to the search path
  13433. if test -f /etc/ld.so.conf; then
  13434. 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' ' '`
  13435. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13436. fi
  13437. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13438. # powerpc, because MkLinux only supported shared libraries with the
  13439. # GNU dynamic linker. Since this was broken with cross compilers,
  13440. # most powerpc-linux boxes support dynamic linking these days and
  13441. # people can always --disable-shared, the test was removed, and we
  13442. # assume the GNU/Linux dynamic linker is in use.
  13443. dynamic_linker='GNU/Linux ld.so'
  13444. ;;
  13445. netbsd*)
  13446. version_type=sunos
  13447. need_lib_prefix=no
  13448. need_version=no
  13449. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13451. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13452. dynamic_linker='NetBSD (a.out) ld.so'
  13453. else
  13454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13455. soname_spec='${libname}${release}${shared_ext}$major'
  13456. dynamic_linker='NetBSD ld.elf_so'
  13457. fi
  13458. shlibpath_var=LD_LIBRARY_PATH
  13459. shlibpath_overrides_runpath=yes
  13460. hardcode_into_libs=yes
  13461. ;;
  13462. newsos6)
  13463. version_type=linux
  13464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13465. shlibpath_var=LD_LIBRARY_PATH
  13466. shlibpath_overrides_runpath=yes
  13467. ;;
  13468. *nto* | *qnx*)
  13469. version_type=qnx
  13470. need_lib_prefix=no
  13471. need_version=no
  13472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13473. soname_spec='${libname}${release}${shared_ext}$major'
  13474. shlibpath_var=LD_LIBRARY_PATH
  13475. shlibpath_overrides_runpath=no
  13476. hardcode_into_libs=yes
  13477. dynamic_linker='ldqnx.so'
  13478. ;;
  13479. openbsd*)
  13480. version_type=sunos
  13481. sys_lib_dlsearch_path_spec="/usr/lib"
  13482. need_lib_prefix=no
  13483. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13484. case $host_os in
  13485. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13486. *) need_version=no ;;
  13487. esac
  13488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13489. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13490. shlibpath_var=LD_LIBRARY_PATH
  13491. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13492. case $host_os in
  13493. openbsd2.[89] | openbsd2.[89].*)
  13494. shlibpath_overrides_runpath=no
  13495. ;;
  13496. *)
  13497. shlibpath_overrides_runpath=yes
  13498. ;;
  13499. esac
  13500. else
  13501. shlibpath_overrides_runpath=yes
  13502. fi
  13503. ;;
  13504. os2*)
  13505. libname_spec='$name'
  13506. shrext_cmds=".dll"
  13507. need_lib_prefix=no
  13508. library_names_spec='$libname${shared_ext} $libname.a'
  13509. dynamic_linker='OS/2 ld.exe'
  13510. shlibpath_var=LIBPATH
  13511. ;;
  13512. osf3* | osf4* | osf5*)
  13513. version_type=osf
  13514. need_lib_prefix=no
  13515. need_version=no
  13516. soname_spec='${libname}${release}${shared_ext}$major'
  13517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13518. shlibpath_var=LD_LIBRARY_PATH
  13519. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13520. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13521. ;;
  13522. rdos*)
  13523. dynamic_linker=no
  13524. ;;
  13525. solaris*)
  13526. version_type=linux
  13527. need_lib_prefix=no
  13528. need_version=no
  13529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13530. soname_spec='${libname}${release}${shared_ext}$major'
  13531. shlibpath_var=LD_LIBRARY_PATH
  13532. shlibpath_overrides_runpath=yes
  13533. hardcode_into_libs=yes
  13534. # ldd complains unless libraries are executable
  13535. postinstall_cmds='chmod +x $lib'
  13536. ;;
  13537. sunos4*)
  13538. version_type=sunos
  13539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13540. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13541. shlibpath_var=LD_LIBRARY_PATH
  13542. shlibpath_overrides_runpath=yes
  13543. if test "$with_gnu_ld" = yes; then
  13544. need_lib_prefix=no
  13545. fi
  13546. need_version=yes
  13547. ;;
  13548. sysv4 | sysv4.3*)
  13549. version_type=linux
  13550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13551. soname_spec='${libname}${release}${shared_ext}$major'
  13552. shlibpath_var=LD_LIBRARY_PATH
  13553. case $host_vendor in
  13554. sni)
  13555. shlibpath_overrides_runpath=no
  13556. need_lib_prefix=no
  13557. runpath_var=LD_RUN_PATH
  13558. ;;
  13559. siemens)
  13560. need_lib_prefix=no
  13561. ;;
  13562. motorola)
  13563. need_lib_prefix=no
  13564. need_version=no
  13565. shlibpath_overrides_runpath=no
  13566. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13567. ;;
  13568. esac
  13569. ;;
  13570. sysv4*MP*)
  13571. if test -d /usr/nec ;then
  13572. version_type=linux
  13573. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13574. soname_spec='$libname${shared_ext}.$major'
  13575. shlibpath_var=LD_LIBRARY_PATH
  13576. fi
  13577. ;;
  13578. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13579. version_type=freebsd-elf
  13580. need_lib_prefix=no
  13581. need_version=no
  13582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13583. soname_spec='${libname}${release}${shared_ext}$major'
  13584. shlibpath_var=LD_LIBRARY_PATH
  13585. shlibpath_overrides_runpath=yes
  13586. hardcode_into_libs=yes
  13587. if test "$with_gnu_ld" = yes; then
  13588. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13589. else
  13590. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13591. case $host_os in
  13592. sco3.2v5*)
  13593. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13594. ;;
  13595. esac
  13596. fi
  13597. sys_lib_dlsearch_path_spec='/usr/lib'
  13598. ;;
  13599. tpf*)
  13600. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13601. version_type=linux
  13602. need_lib_prefix=no
  13603. need_version=no
  13604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13605. shlibpath_var=LD_LIBRARY_PATH
  13606. shlibpath_overrides_runpath=no
  13607. hardcode_into_libs=yes
  13608. ;;
  13609. uts4*)
  13610. version_type=linux
  13611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13612. soname_spec='${libname}${release}${shared_ext}$major'
  13613. shlibpath_var=LD_LIBRARY_PATH
  13614. ;;
  13615. *)
  13616. dynamic_linker=no
  13617. ;;
  13618. esac
  13619. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13620. $as_echo "$dynamic_linker" >&6; }
  13621. test "$dynamic_linker" = no && can_build_shared=no
  13622. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13623. if test "$GCC" = yes; then
  13624. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13625. fi
  13626. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13627. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13628. fi
  13629. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13630. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13631. fi
  13632. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13633. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13634. hardcode_action_CXX=
  13635. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13636. test -n "$runpath_var_CXX" ||
  13637. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13638. # We can hardcode non-existent directories.
  13639. if test "$hardcode_direct_CXX" != no &&
  13640. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13641. # have to relink, otherwise we might link with an installed library
  13642. # when we should be linking with a yet-to-be-installed one
  13643. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13644. test "$hardcode_minus_L_CXX" != no; then
  13645. # Linking always hardcodes the temporary library directory.
  13646. hardcode_action_CXX=relink
  13647. else
  13648. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13649. hardcode_action_CXX=immediate
  13650. fi
  13651. else
  13652. # We cannot hardcode anything, or else we can only hardcode existing
  13653. # directories.
  13654. hardcode_action_CXX=unsupported
  13655. fi
  13656. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13657. $as_echo "$hardcode_action_CXX" >&6; }
  13658. if test "$hardcode_action_CXX" = relink ||
  13659. test "$inherit_rpath_CXX" = yes; then
  13660. # Fast installation is not supported
  13661. enable_fast_install=no
  13662. elif test "$shlibpath_overrides_runpath" = yes ||
  13663. test "$enable_shared" = no; then
  13664. # Fast installation is not necessary
  13665. enable_fast_install=needless
  13666. fi
  13667. fi # test -n "$compiler"
  13668. CC=$lt_save_CC
  13669. LDCXX=$LD
  13670. LD=$lt_save_LD
  13671. GCC=$lt_save_GCC
  13672. with_gnu_ld=$lt_save_with_gnu_ld
  13673. lt_cv_path_LDCXX=$lt_cv_path_LD
  13674. lt_cv_path_LD=$lt_save_path_LD
  13675. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13676. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13677. fi # test "$_lt_caught_CXX_error" != yes
  13678. ac_ext=c
  13679. ac_cpp='$CPP $CPPFLAGS'
  13680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13683. ac_config_commands="$ac_config_commands libtool"
  13684. # Only expand once:
  13685. # Checks for header files.
  13686. ac_header_dirent=no
  13687. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13688. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13689. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  13690. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13691. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13692. $as_echo_n "(cached) " >&6
  13693. else
  13694. cat >conftest.$ac_ext <<_ACEOF
  13695. /* confdefs.h. */
  13696. _ACEOF
  13697. cat confdefs.h >>conftest.$ac_ext
  13698. cat >>conftest.$ac_ext <<_ACEOF
  13699. /* end confdefs.h. */
  13700. #include <sys/types.h>
  13701. #include <$ac_hdr>
  13702. int
  13703. main ()
  13704. {
  13705. if ((DIR *) 0)
  13706. return 0;
  13707. ;
  13708. return 0;
  13709. }
  13710. _ACEOF
  13711. rm -f conftest.$ac_objext
  13712. if { (ac_try="$ac_compile"
  13713. case "(($ac_try" in
  13714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13715. *) ac_try_echo=$ac_try;;
  13716. esac
  13717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13718. $as_echo "$ac_try_echo") >&5
  13719. (eval "$ac_compile") 2>conftest.er1
  13720. ac_status=$?
  13721. grep -v '^ *+' conftest.er1 >conftest.err
  13722. rm -f conftest.er1
  13723. cat conftest.err >&5
  13724. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13725. (exit $ac_status); } && {
  13726. test -z "$ac_c_werror_flag" ||
  13727. test ! -s conftest.err
  13728. } && test -s conftest.$ac_objext; then
  13729. eval "$as_ac_Header=yes"
  13730. else
  13731. $as_echo "$as_me: failed program was:" >&5
  13732. sed 's/^/| /' conftest.$ac_ext >&5
  13733. eval "$as_ac_Header=no"
  13734. fi
  13735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13736. fi
  13737. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13738. $as_echo "$as_val"'`
  13739. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13740. $as_echo "$ac_res" >&6; }
  13741. as_val=`eval 'as_val=${'$as_ac_Header'}
  13742. $as_echo "$as_val"'`
  13743. if test "x$as_val" = x""yes; then
  13744. cat >>confdefs.h <<_ACEOF
  13745. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13746. _ACEOF
  13747. ac_header_dirent=$ac_hdr; break
  13748. fi
  13749. done
  13750. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13751. if test $ac_header_dirent = dirent.h; then
  13752. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13753. $as_echo_n "checking for library containing opendir... " >&6; }
  13754. if test "${ac_cv_search_opendir+set}" = set; then
  13755. $as_echo_n "(cached) " >&6
  13756. else
  13757. ac_func_search_save_LIBS=$LIBS
  13758. cat >conftest.$ac_ext <<_ACEOF
  13759. /* confdefs.h. */
  13760. _ACEOF
  13761. cat confdefs.h >>conftest.$ac_ext
  13762. cat >>conftest.$ac_ext <<_ACEOF
  13763. /* end confdefs.h. */
  13764. /* Override any GCC internal prototype to avoid an error.
  13765. Use char because int might match the return type of a GCC
  13766. builtin and then its argument prototype would still apply. */
  13767. #ifdef __cplusplus
  13768. extern "C"
  13769. #endif
  13770. char opendir ();
  13771. int
  13772. main ()
  13773. {
  13774. return opendir ();
  13775. ;
  13776. return 0;
  13777. }
  13778. _ACEOF
  13779. for ac_lib in '' dir; do
  13780. if test -z "$ac_lib"; then
  13781. ac_res="none required"
  13782. else
  13783. ac_res=-l$ac_lib
  13784. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13785. fi
  13786. rm -f conftest.$ac_objext conftest$ac_exeext
  13787. if { (ac_try="$ac_link"
  13788. case "(($ac_try" in
  13789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13790. *) ac_try_echo=$ac_try;;
  13791. esac
  13792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13793. $as_echo "$ac_try_echo") >&5
  13794. (eval "$ac_link") 2>conftest.er1
  13795. ac_status=$?
  13796. grep -v '^ *+' conftest.er1 >conftest.err
  13797. rm -f conftest.er1
  13798. cat conftest.err >&5
  13799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13800. (exit $ac_status); } && {
  13801. test -z "$ac_c_werror_flag" ||
  13802. test ! -s conftest.err
  13803. } && test -s conftest$ac_exeext && {
  13804. test "$cross_compiling" = yes ||
  13805. $as_test_x conftest$ac_exeext
  13806. }; then
  13807. ac_cv_search_opendir=$ac_res
  13808. else
  13809. $as_echo "$as_me: failed program was:" >&5
  13810. sed 's/^/| /' conftest.$ac_ext >&5
  13811. fi
  13812. rm -rf conftest.dSYM
  13813. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13814. conftest$ac_exeext
  13815. if test "${ac_cv_search_opendir+set}" = set; then
  13816. break
  13817. fi
  13818. done
  13819. if test "${ac_cv_search_opendir+set}" = set; then
  13820. :
  13821. else
  13822. ac_cv_search_opendir=no
  13823. fi
  13824. rm conftest.$ac_ext
  13825. LIBS=$ac_func_search_save_LIBS
  13826. fi
  13827. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13828. $as_echo "$ac_cv_search_opendir" >&6; }
  13829. ac_res=$ac_cv_search_opendir
  13830. if test "$ac_res" != no; then
  13831. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13832. fi
  13833. else
  13834. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13835. $as_echo_n "checking for library containing opendir... " >&6; }
  13836. if test "${ac_cv_search_opendir+set}" = set; then
  13837. $as_echo_n "(cached) " >&6
  13838. else
  13839. ac_func_search_save_LIBS=$LIBS
  13840. cat >conftest.$ac_ext <<_ACEOF
  13841. /* confdefs.h. */
  13842. _ACEOF
  13843. cat confdefs.h >>conftest.$ac_ext
  13844. cat >>conftest.$ac_ext <<_ACEOF
  13845. /* end confdefs.h. */
  13846. /* Override any GCC internal prototype to avoid an error.
  13847. Use char because int might match the return type of a GCC
  13848. builtin and then its argument prototype would still apply. */
  13849. #ifdef __cplusplus
  13850. extern "C"
  13851. #endif
  13852. char opendir ();
  13853. int
  13854. main ()
  13855. {
  13856. return opendir ();
  13857. ;
  13858. return 0;
  13859. }
  13860. _ACEOF
  13861. for ac_lib in '' x; do
  13862. if test -z "$ac_lib"; then
  13863. ac_res="none required"
  13864. else
  13865. ac_res=-l$ac_lib
  13866. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13867. fi
  13868. rm -f conftest.$ac_objext conftest$ac_exeext
  13869. if { (ac_try="$ac_link"
  13870. case "(($ac_try" in
  13871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13872. *) ac_try_echo=$ac_try;;
  13873. esac
  13874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13875. $as_echo "$ac_try_echo") >&5
  13876. (eval "$ac_link") 2>conftest.er1
  13877. ac_status=$?
  13878. grep -v '^ *+' conftest.er1 >conftest.err
  13879. rm -f conftest.er1
  13880. cat conftest.err >&5
  13881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13882. (exit $ac_status); } && {
  13883. test -z "$ac_c_werror_flag" ||
  13884. test ! -s conftest.err
  13885. } && test -s conftest$ac_exeext && {
  13886. test "$cross_compiling" = yes ||
  13887. $as_test_x conftest$ac_exeext
  13888. }; then
  13889. ac_cv_search_opendir=$ac_res
  13890. else
  13891. $as_echo "$as_me: failed program was:" >&5
  13892. sed 's/^/| /' conftest.$ac_ext >&5
  13893. fi
  13894. rm -rf conftest.dSYM
  13895. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13896. conftest$ac_exeext
  13897. if test "${ac_cv_search_opendir+set}" = set; then
  13898. break
  13899. fi
  13900. done
  13901. if test "${ac_cv_search_opendir+set}" = set; then
  13902. :
  13903. else
  13904. ac_cv_search_opendir=no
  13905. fi
  13906. rm conftest.$ac_ext
  13907. LIBS=$ac_func_search_save_LIBS
  13908. fi
  13909. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13910. $as_echo "$ac_cv_search_opendir" >&6; }
  13911. ac_res=$ac_cv_search_opendir
  13912. if test "$ac_res" != no; then
  13913. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13914. fi
  13915. fi
  13916. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  13917. $as_echo_n "checking for ANSI C header files... " >&6; }
  13918. if test "${ac_cv_header_stdc+set}" = set; then
  13919. $as_echo_n "(cached) " >&6
  13920. else
  13921. cat >conftest.$ac_ext <<_ACEOF
  13922. /* confdefs.h. */
  13923. _ACEOF
  13924. cat confdefs.h >>conftest.$ac_ext
  13925. cat >>conftest.$ac_ext <<_ACEOF
  13926. /* end confdefs.h. */
  13927. #include <stdlib.h>
  13928. #include <stdarg.h>
  13929. #include <string.h>
  13930. #include <float.h>
  13931. int
  13932. main ()
  13933. {
  13934. ;
  13935. return 0;
  13936. }
  13937. _ACEOF
  13938. rm -f conftest.$ac_objext
  13939. if { (ac_try="$ac_compile"
  13940. case "(($ac_try" in
  13941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13942. *) ac_try_echo=$ac_try;;
  13943. esac
  13944. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13945. $as_echo "$ac_try_echo") >&5
  13946. (eval "$ac_compile") 2>conftest.er1
  13947. ac_status=$?
  13948. grep -v '^ *+' conftest.er1 >conftest.err
  13949. rm -f conftest.er1
  13950. cat conftest.err >&5
  13951. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13952. (exit $ac_status); } && {
  13953. test -z "$ac_c_werror_flag" ||
  13954. test ! -s conftest.err
  13955. } && test -s conftest.$ac_objext; then
  13956. ac_cv_header_stdc=yes
  13957. else
  13958. $as_echo "$as_me: failed program was:" >&5
  13959. sed 's/^/| /' conftest.$ac_ext >&5
  13960. ac_cv_header_stdc=no
  13961. fi
  13962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13963. if test $ac_cv_header_stdc = yes; then
  13964. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13965. cat >conftest.$ac_ext <<_ACEOF
  13966. /* confdefs.h. */
  13967. _ACEOF
  13968. cat confdefs.h >>conftest.$ac_ext
  13969. cat >>conftest.$ac_ext <<_ACEOF
  13970. /* end confdefs.h. */
  13971. #include <string.h>
  13972. _ACEOF
  13973. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13974. $EGREP "memchr" >/dev/null 2>&1; then
  13975. :
  13976. else
  13977. ac_cv_header_stdc=no
  13978. fi
  13979. rm -f conftest*
  13980. fi
  13981. if test $ac_cv_header_stdc = yes; then
  13982. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13983. cat >conftest.$ac_ext <<_ACEOF
  13984. /* confdefs.h. */
  13985. _ACEOF
  13986. cat confdefs.h >>conftest.$ac_ext
  13987. cat >>conftest.$ac_ext <<_ACEOF
  13988. /* end confdefs.h. */
  13989. #include <stdlib.h>
  13990. _ACEOF
  13991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13992. $EGREP "free" >/dev/null 2>&1; then
  13993. :
  13994. else
  13995. ac_cv_header_stdc=no
  13996. fi
  13997. rm -f conftest*
  13998. fi
  13999. if test $ac_cv_header_stdc = yes; then
  14000. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14001. if test "$cross_compiling" = yes; then
  14002. :
  14003. else
  14004. cat >conftest.$ac_ext <<_ACEOF
  14005. /* confdefs.h. */
  14006. _ACEOF
  14007. cat confdefs.h >>conftest.$ac_ext
  14008. cat >>conftest.$ac_ext <<_ACEOF
  14009. /* end confdefs.h. */
  14010. #include <ctype.h>
  14011. #include <stdlib.h>
  14012. #if ((' ' & 0x0FF) == 0x020)
  14013. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14014. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14015. #else
  14016. # define ISLOWER(c) \
  14017. (('a' <= (c) && (c) <= 'i') \
  14018. || ('j' <= (c) && (c) <= 'r') \
  14019. || ('s' <= (c) && (c) <= 'z'))
  14020. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14021. #endif
  14022. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14023. int
  14024. main ()
  14025. {
  14026. int i;
  14027. for (i = 0; i < 256; i++)
  14028. if (XOR (islower (i), ISLOWER (i))
  14029. || toupper (i) != TOUPPER (i))
  14030. return 2;
  14031. return 0;
  14032. }
  14033. _ACEOF
  14034. rm -f conftest$ac_exeext
  14035. if { (ac_try="$ac_link"
  14036. case "(($ac_try" in
  14037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14038. *) ac_try_echo=$ac_try;;
  14039. esac
  14040. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14041. $as_echo "$ac_try_echo") >&5
  14042. (eval "$ac_link") 2>&5
  14043. ac_status=$?
  14044. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14045. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14046. { (case "(($ac_try" in
  14047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14048. *) ac_try_echo=$ac_try;;
  14049. esac
  14050. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14051. $as_echo "$ac_try_echo") >&5
  14052. (eval "$ac_try") 2>&5
  14053. ac_status=$?
  14054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14055. (exit $ac_status); }; }; then
  14056. :
  14057. else
  14058. $as_echo "$as_me: program exited with status $ac_status" >&5
  14059. $as_echo "$as_me: failed program was:" >&5
  14060. sed 's/^/| /' conftest.$ac_ext >&5
  14061. ( exit $ac_status )
  14062. ac_cv_header_stdc=no
  14063. fi
  14064. rm -rf conftest.dSYM
  14065. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14066. fi
  14067. fi
  14068. fi
  14069. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  14070. $as_echo "$ac_cv_header_stdc" >&6; }
  14071. if test $ac_cv_header_stdc = yes; then
  14072. cat >>confdefs.h <<\_ACEOF
  14073. #define STDC_HEADERS 1
  14074. _ACEOF
  14075. fi
  14076. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  14077. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  14078. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  14079. $as_echo_n "(cached) " >&6
  14080. else
  14081. cat >conftest.$ac_ext <<_ACEOF
  14082. /* confdefs.h. */
  14083. _ACEOF
  14084. cat confdefs.h >>conftest.$ac_ext
  14085. cat >>conftest.$ac_ext <<_ACEOF
  14086. /* end confdefs.h. */
  14087. #include <sys/types.h>
  14088. #include <sys/wait.h>
  14089. #ifndef WEXITSTATUS
  14090. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  14091. #endif
  14092. #ifndef WIFEXITED
  14093. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  14094. #endif
  14095. int
  14096. main ()
  14097. {
  14098. int s;
  14099. wait (&s);
  14100. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  14101. ;
  14102. return 0;
  14103. }
  14104. _ACEOF
  14105. rm -f conftest.$ac_objext
  14106. if { (ac_try="$ac_compile"
  14107. case "(($ac_try" in
  14108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14109. *) ac_try_echo=$ac_try;;
  14110. esac
  14111. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14112. $as_echo "$ac_try_echo") >&5
  14113. (eval "$ac_compile") 2>conftest.er1
  14114. ac_status=$?
  14115. grep -v '^ *+' conftest.er1 >conftest.err
  14116. rm -f conftest.er1
  14117. cat conftest.err >&5
  14118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14119. (exit $ac_status); } && {
  14120. test -z "$ac_c_werror_flag" ||
  14121. test ! -s conftest.err
  14122. } && test -s conftest.$ac_objext; then
  14123. ac_cv_header_sys_wait_h=yes
  14124. else
  14125. $as_echo "$as_me: failed program was:" >&5
  14126. sed 's/^/| /' conftest.$ac_ext >&5
  14127. ac_cv_header_sys_wait_h=no
  14128. fi
  14129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14130. fi
  14131. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  14132. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  14133. if test $ac_cv_header_sys_wait_h = yes; then
  14134. cat >>confdefs.h <<\_ACEOF
  14135. #define HAVE_SYS_WAIT_H 1
  14136. _ACEOF
  14137. fi
  14138. 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
  14139. do
  14140. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14141. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14142. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14143. $as_echo_n "checking for $ac_header... " >&6; }
  14144. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14145. $as_echo_n "(cached) " >&6
  14146. fi
  14147. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14148. $as_echo "$as_val"'`
  14149. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14150. $as_echo "$ac_res" >&6; }
  14151. else
  14152. # Is the header compilable?
  14153. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14154. $as_echo_n "checking $ac_header usability... " >&6; }
  14155. cat >conftest.$ac_ext <<_ACEOF
  14156. /* confdefs.h. */
  14157. _ACEOF
  14158. cat confdefs.h >>conftest.$ac_ext
  14159. cat >>conftest.$ac_ext <<_ACEOF
  14160. /* end confdefs.h. */
  14161. $ac_includes_default
  14162. #include <$ac_header>
  14163. _ACEOF
  14164. rm -f conftest.$ac_objext
  14165. if { (ac_try="$ac_compile"
  14166. case "(($ac_try" in
  14167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14168. *) ac_try_echo=$ac_try;;
  14169. esac
  14170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14171. $as_echo "$ac_try_echo") >&5
  14172. (eval "$ac_compile") 2>conftest.er1
  14173. ac_status=$?
  14174. grep -v '^ *+' conftest.er1 >conftest.err
  14175. rm -f conftest.er1
  14176. cat conftest.err >&5
  14177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14178. (exit $ac_status); } && {
  14179. test -z "$ac_c_werror_flag" ||
  14180. test ! -s conftest.err
  14181. } && test -s conftest.$ac_objext; then
  14182. ac_header_compiler=yes
  14183. else
  14184. $as_echo "$as_me: failed program was:" >&5
  14185. sed 's/^/| /' conftest.$ac_ext >&5
  14186. ac_header_compiler=no
  14187. fi
  14188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14189. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14190. $as_echo "$ac_header_compiler" >&6; }
  14191. # Is the header present?
  14192. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14193. $as_echo_n "checking $ac_header presence... " >&6; }
  14194. cat >conftest.$ac_ext <<_ACEOF
  14195. /* confdefs.h. */
  14196. _ACEOF
  14197. cat confdefs.h >>conftest.$ac_ext
  14198. cat >>conftest.$ac_ext <<_ACEOF
  14199. /* end confdefs.h. */
  14200. #include <$ac_header>
  14201. _ACEOF
  14202. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14203. case "(($ac_try" in
  14204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14205. *) ac_try_echo=$ac_try;;
  14206. esac
  14207. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14208. $as_echo "$ac_try_echo") >&5
  14209. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14210. ac_status=$?
  14211. grep -v '^ *+' conftest.er1 >conftest.err
  14212. rm -f conftest.er1
  14213. cat conftest.err >&5
  14214. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14215. (exit $ac_status); } >/dev/null && {
  14216. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14217. test ! -s conftest.err
  14218. }; then
  14219. ac_header_preproc=yes
  14220. else
  14221. $as_echo "$as_me: failed program was:" >&5
  14222. sed 's/^/| /' conftest.$ac_ext >&5
  14223. ac_header_preproc=no
  14224. fi
  14225. rm -f conftest.err conftest.$ac_ext
  14226. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14227. $as_echo "$ac_header_preproc" >&6; }
  14228. # So? What about this header?
  14229. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14230. yes:no: )
  14231. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14232. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14233. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14234. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14235. ac_header_preproc=yes
  14236. ;;
  14237. no:yes:* )
  14238. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14239. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14240. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14241. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14242. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14243. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14244. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14245. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14246. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14247. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14248. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14249. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14250. ( cat <<\_ASBOX
  14251. ## ------------------------------------------ ##
  14252. ## Report this to http://bugzilla.redhat.com/ ##
  14253. ## ------------------------------------------ ##
  14254. _ASBOX
  14255. ) | sed "s/^/$as_me: WARNING: /" >&2
  14256. ;;
  14257. esac
  14258. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14259. $as_echo_n "checking for $ac_header... " >&6; }
  14260. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14261. $as_echo_n "(cached) " >&6
  14262. else
  14263. eval "$as_ac_Header=\$ac_header_preproc"
  14264. fi
  14265. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14266. $as_echo "$as_val"'`
  14267. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14268. $as_echo "$ac_res" >&6; }
  14269. fi
  14270. as_val=`eval 'as_val=${'$as_ac_Header'}
  14271. $as_echo "$as_val"'`
  14272. if test "x$as_val" = x""yes; then
  14273. cat >>confdefs.h <<_ACEOF
  14274. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14275. _ACEOF
  14276. fi
  14277. done
  14278. # Checks for typedefs, structures, and compiler characteristics.
  14279. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  14280. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14281. if test "${ac_cv_header_stat_broken+set}" = set; then
  14282. $as_echo_n "(cached) " >&6
  14283. else
  14284. cat >conftest.$ac_ext <<_ACEOF
  14285. /* confdefs.h. */
  14286. _ACEOF
  14287. cat confdefs.h >>conftest.$ac_ext
  14288. cat >>conftest.$ac_ext <<_ACEOF
  14289. /* end confdefs.h. */
  14290. #include <sys/types.h>
  14291. #include <sys/stat.h>
  14292. #if defined S_ISBLK && defined S_IFDIR
  14293. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14294. #endif
  14295. #if defined S_ISBLK && defined S_IFCHR
  14296. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14297. #endif
  14298. #if defined S_ISLNK && defined S_IFREG
  14299. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14300. #endif
  14301. #if defined S_ISSOCK && defined S_IFREG
  14302. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14303. #endif
  14304. _ACEOF
  14305. rm -f conftest.$ac_objext
  14306. if { (ac_try="$ac_compile"
  14307. case "(($ac_try" in
  14308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14309. *) ac_try_echo=$ac_try;;
  14310. esac
  14311. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14312. $as_echo "$ac_try_echo") >&5
  14313. (eval "$ac_compile") 2>conftest.er1
  14314. ac_status=$?
  14315. grep -v '^ *+' conftest.er1 >conftest.err
  14316. rm -f conftest.er1
  14317. cat conftest.err >&5
  14318. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14319. (exit $ac_status); } && {
  14320. test -z "$ac_c_werror_flag" ||
  14321. test ! -s conftest.err
  14322. } && test -s conftest.$ac_objext; then
  14323. ac_cv_header_stat_broken=no
  14324. else
  14325. $as_echo "$as_me: failed program was:" >&5
  14326. sed 's/^/| /' conftest.$ac_ext >&5
  14327. ac_cv_header_stat_broken=yes
  14328. fi
  14329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14330. fi
  14331. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  14332. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14333. if test $ac_cv_header_stat_broken = yes; then
  14334. cat >>confdefs.h <<\_ACEOF
  14335. #define STAT_MACROS_BROKEN 1
  14336. _ACEOF
  14337. fi
  14338. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  14339. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14340. if test "${ac_cv_c_const+set}" = set; then
  14341. $as_echo_n "(cached) " >&6
  14342. else
  14343. cat >conftest.$ac_ext <<_ACEOF
  14344. /* confdefs.h. */
  14345. _ACEOF
  14346. cat confdefs.h >>conftest.$ac_ext
  14347. cat >>conftest.$ac_ext <<_ACEOF
  14348. /* end confdefs.h. */
  14349. int
  14350. main ()
  14351. {
  14352. /* FIXME: Include the comments suggested by Paul. */
  14353. #ifndef __cplusplus
  14354. /* Ultrix mips cc rejects this. */
  14355. typedef int charset[2];
  14356. const charset cs;
  14357. /* SunOS 4.1.1 cc rejects this. */
  14358. char const *const *pcpcc;
  14359. char **ppc;
  14360. /* NEC SVR4.0.2 mips cc rejects this. */
  14361. struct point {int x, y;};
  14362. static struct point const zero = {0,0};
  14363. /* AIX XL C 1.02.0.0 rejects this.
  14364. It does not let you subtract one const X* pointer from another in
  14365. an arm of an if-expression whose if-part is not a constant
  14366. expression */
  14367. const char *g = "string";
  14368. pcpcc = &g + (g ? g-g : 0);
  14369. /* HPUX 7.0 cc rejects these. */
  14370. ++pcpcc;
  14371. ppc = (char**) pcpcc;
  14372. pcpcc = (char const *const *) ppc;
  14373. { /* SCO 3.2v4 cc rejects this. */
  14374. char *t;
  14375. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14376. *t++ = 0;
  14377. if (s) return 0;
  14378. }
  14379. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14380. int x[] = {25, 17};
  14381. const int *foo = &x[0];
  14382. ++foo;
  14383. }
  14384. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14385. typedef const int *iptr;
  14386. iptr p = 0;
  14387. ++p;
  14388. }
  14389. { /* AIX XL C 1.02.0.0 rejects this saying
  14390. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14391. struct s { int j; const int *ap[3]; };
  14392. struct s *b; b->j = 5;
  14393. }
  14394. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14395. const int foo = 10;
  14396. if (!foo) return 0;
  14397. }
  14398. return !cs[0] && !zero.x;
  14399. #endif
  14400. ;
  14401. return 0;
  14402. }
  14403. _ACEOF
  14404. rm -f conftest.$ac_objext
  14405. if { (ac_try="$ac_compile"
  14406. case "(($ac_try" in
  14407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14408. *) ac_try_echo=$ac_try;;
  14409. esac
  14410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14411. $as_echo "$ac_try_echo") >&5
  14412. (eval "$ac_compile") 2>conftest.er1
  14413. ac_status=$?
  14414. grep -v '^ *+' conftest.er1 >conftest.err
  14415. rm -f conftest.er1
  14416. cat conftest.err >&5
  14417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14418. (exit $ac_status); } && {
  14419. test -z "$ac_c_werror_flag" ||
  14420. test ! -s conftest.err
  14421. } && test -s conftest.$ac_objext; then
  14422. ac_cv_c_const=yes
  14423. else
  14424. $as_echo "$as_me: failed program was:" >&5
  14425. sed 's/^/| /' conftest.$ac_ext >&5
  14426. ac_cv_c_const=no
  14427. fi
  14428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14429. fi
  14430. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  14431. $as_echo "$ac_cv_c_const" >&6; }
  14432. if test $ac_cv_c_const = no; then
  14433. cat >>confdefs.h <<\_ACEOF
  14434. #define const /**/
  14435. _ACEOF
  14436. fi
  14437. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  14438. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14439. if test "${ac_cv_header_stdbool_h+set}" = set; then
  14440. $as_echo_n "(cached) " >&6
  14441. else
  14442. cat >conftest.$ac_ext <<_ACEOF
  14443. /* confdefs.h. */
  14444. _ACEOF
  14445. cat confdefs.h >>conftest.$ac_ext
  14446. cat >>conftest.$ac_ext <<_ACEOF
  14447. /* end confdefs.h. */
  14448. #include <stdbool.h>
  14449. #ifndef bool
  14450. "error: bool is not defined"
  14451. #endif
  14452. #ifndef false
  14453. "error: false is not defined"
  14454. #endif
  14455. #if false
  14456. "error: false is not 0"
  14457. #endif
  14458. #ifndef true
  14459. "error: true is not defined"
  14460. #endif
  14461. #if true != 1
  14462. "error: true is not 1"
  14463. #endif
  14464. #ifndef __bool_true_false_are_defined
  14465. "error: __bool_true_false_are_defined is not defined"
  14466. #endif
  14467. struct s { _Bool s: 1; _Bool t; } s;
  14468. char a[true == 1 ? 1 : -1];
  14469. char b[false == 0 ? 1 : -1];
  14470. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14471. char d[(bool) 0.5 == true ? 1 : -1];
  14472. bool e = &s;
  14473. char f[(_Bool) 0.0 == false ? 1 : -1];
  14474. char g[true];
  14475. char h[sizeof (_Bool)];
  14476. char i[sizeof s.t];
  14477. enum { j = false, k = true, l = false * true, m = true * 256 };
  14478. /* The following fails for
  14479. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14480. _Bool n[m];
  14481. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14482. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14483. # if defined __xlc__ || defined __GNUC__
  14484. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  14485. reported by James Lemley on 2005-10-05; see
  14486. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  14487. This test is not quite right, since xlc is allowed to
  14488. reject this program, as the initializer for xlcbug is
  14489. not one of the forms that C requires support for.
  14490. However, doing the test right would require a runtime
  14491. test, and that would make cross-compilation harder.
  14492. Let us hope that IBM fixes the xlc bug, and also adds
  14493. support for this kind of constant expression. In the
  14494. meantime, this test will reject xlc, which is OK, since
  14495. our stdbool.h substitute should suffice. We also test
  14496. this with GCC, where it should work, to detect more
  14497. quickly whether someone messes up the test in the
  14498. future. */
  14499. char digs[] = "0123456789";
  14500. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  14501. # endif
  14502. /* Catch a bug in an HP-UX C compiler. See
  14503. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14504. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14505. */
  14506. _Bool q = true;
  14507. _Bool *pq = &q;
  14508. int
  14509. main ()
  14510. {
  14511. *pq |= q;
  14512. *pq |= ! q;
  14513. /* Refer to every declared value, to avoid compiler optimizations. */
  14514. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14515. + !m + !n + !o + !p + !q + !pq);
  14516. ;
  14517. return 0;
  14518. }
  14519. _ACEOF
  14520. rm -f conftest.$ac_objext
  14521. if { (ac_try="$ac_compile"
  14522. case "(($ac_try" in
  14523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14524. *) ac_try_echo=$ac_try;;
  14525. esac
  14526. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14527. $as_echo "$ac_try_echo") >&5
  14528. (eval "$ac_compile") 2>conftest.er1
  14529. ac_status=$?
  14530. grep -v '^ *+' conftest.er1 >conftest.err
  14531. rm -f conftest.er1
  14532. cat conftest.err >&5
  14533. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14534. (exit $ac_status); } && {
  14535. test -z "$ac_c_werror_flag" ||
  14536. test ! -s conftest.err
  14537. } && test -s conftest.$ac_objext; then
  14538. ac_cv_header_stdbool_h=yes
  14539. else
  14540. $as_echo "$as_me: failed program was:" >&5
  14541. sed 's/^/| /' conftest.$ac_ext >&5
  14542. ac_cv_header_stdbool_h=no
  14543. fi
  14544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14545. fi
  14546. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  14547. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14548. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  14549. $as_echo_n "checking for _Bool... " >&6; }
  14550. if test "${ac_cv_type__Bool+set}" = set; then
  14551. $as_echo_n "(cached) " >&6
  14552. else
  14553. ac_cv_type__Bool=no
  14554. cat >conftest.$ac_ext <<_ACEOF
  14555. /* confdefs.h. */
  14556. _ACEOF
  14557. cat confdefs.h >>conftest.$ac_ext
  14558. cat >>conftest.$ac_ext <<_ACEOF
  14559. /* end confdefs.h. */
  14560. $ac_includes_default
  14561. int
  14562. main ()
  14563. {
  14564. if (sizeof (_Bool))
  14565. return 0;
  14566. ;
  14567. return 0;
  14568. }
  14569. _ACEOF
  14570. rm -f conftest.$ac_objext
  14571. if { (ac_try="$ac_compile"
  14572. case "(($ac_try" in
  14573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14574. *) ac_try_echo=$ac_try;;
  14575. esac
  14576. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14577. $as_echo "$ac_try_echo") >&5
  14578. (eval "$ac_compile") 2>conftest.er1
  14579. ac_status=$?
  14580. grep -v '^ *+' conftest.er1 >conftest.err
  14581. rm -f conftest.er1
  14582. cat conftest.err >&5
  14583. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14584. (exit $ac_status); } && {
  14585. test -z "$ac_c_werror_flag" ||
  14586. test ! -s conftest.err
  14587. } && test -s conftest.$ac_objext; then
  14588. cat >conftest.$ac_ext <<_ACEOF
  14589. /* confdefs.h. */
  14590. _ACEOF
  14591. cat confdefs.h >>conftest.$ac_ext
  14592. cat >>conftest.$ac_ext <<_ACEOF
  14593. /* end confdefs.h. */
  14594. $ac_includes_default
  14595. int
  14596. main ()
  14597. {
  14598. if (sizeof ((_Bool)))
  14599. return 0;
  14600. ;
  14601. return 0;
  14602. }
  14603. _ACEOF
  14604. rm -f conftest.$ac_objext
  14605. if { (ac_try="$ac_compile"
  14606. case "(($ac_try" in
  14607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14608. *) ac_try_echo=$ac_try;;
  14609. esac
  14610. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14611. $as_echo "$ac_try_echo") >&5
  14612. (eval "$ac_compile") 2>conftest.er1
  14613. ac_status=$?
  14614. grep -v '^ *+' conftest.er1 >conftest.err
  14615. rm -f conftest.er1
  14616. cat conftest.err >&5
  14617. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14618. (exit $ac_status); } && {
  14619. test -z "$ac_c_werror_flag" ||
  14620. test ! -s conftest.err
  14621. } && test -s conftest.$ac_objext; then
  14622. :
  14623. else
  14624. $as_echo "$as_me: failed program was:" >&5
  14625. sed 's/^/| /' conftest.$ac_ext >&5
  14626. ac_cv_type__Bool=yes
  14627. fi
  14628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14629. else
  14630. $as_echo "$as_me: failed program was:" >&5
  14631. sed 's/^/| /' conftest.$ac_ext >&5
  14632. fi
  14633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14634. fi
  14635. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  14636. $as_echo "$ac_cv_type__Bool" >&6; }
  14637. if test "x$ac_cv_type__Bool" = x""yes; then
  14638. cat >>confdefs.h <<_ACEOF
  14639. #define HAVE__BOOL 1
  14640. _ACEOF
  14641. fi
  14642. if test $ac_cv_header_stdbool_h = yes; then
  14643. cat >>confdefs.h <<\_ACEOF
  14644. #define HAVE_STDBOOL_H 1
  14645. _ACEOF
  14646. fi
  14647. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  14648. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14649. if test "${ac_cv_type_uid_t+set}" = set; then
  14650. $as_echo_n "(cached) " >&6
  14651. else
  14652. cat >conftest.$ac_ext <<_ACEOF
  14653. /* confdefs.h. */
  14654. _ACEOF
  14655. cat confdefs.h >>conftest.$ac_ext
  14656. cat >>conftest.$ac_ext <<_ACEOF
  14657. /* end confdefs.h. */
  14658. #include <sys/types.h>
  14659. _ACEOF
  14660. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14661. $EGREP "uid_t" >/dev/null 2>&1; then
  14662. ac_cv_type_uid_t=yes
  14663. else
  14664. ac_cv_type_uid_t=no
  14665. fi
  14666. rm -f conftest*
  14667. fi
  14668. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  14669. $as_echo "$ac_cv_type_uid_t" >&6; }
  14670. if test $ac_cv_type_uid_t = no; then
  14671. cat >>confdefs.h <<\_ACEOF
  14672. #define uid_t int
  14673. _ACEOF
  14674. cat >>confdefs.h <<\_ACEOF
  14675. #define gid_t int
  14676. _ACEOF
  14677. fi
  14678. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  14679. $as_echo_n "checking for pid_t... " >&6; }
  14680. if test "${ac_cv_type_pid_t+set}" = set; then
  14681. $as_echo_n "(cached) " >&6
  14682. else
  14683. ac_cv_type_pid_t=no
  14684. cat >conftest.$ac_ext <<_ACEOF
  14685. /* confdefs.h. */
  14686. _ACEOF
  14687. cat confdefs.h >>conftest.$ac_ext
  14688. cat >>conftest.$ac_ext <<_ACEOF
  14689. /* end confdefs.h. */
  14690. $ac_includes_default
  14691. int
  14692. main ()
  14693. {
  14694. if (sizeof (pid_t))
  14695. return 0;
  14696. ;
  14697. return 0;
  14698. }
  14699. _ACEOF
  14700. rm -f conftest.$ac_objext
  14701. if { (ac_try="$ac_compile"
  14702. case "(($ac_try" in
  14703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14704. *) ac_try_echo=$ac_try;;
  14705. esac
  14706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14707. $as_echo "$ac_try_echo") >&5
  14708. (eval "$ac_compile") 2>conftest.er1
  14709. ac_status=$?
  14710. grep -v '^ *+' conftest.er1 >conftest.err
  14711. rm -f conftest.er1
  14712. cat conftest.err >&5
  14713. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14714. (exit $ac_status); } && {
  14715. test -z "$ac_c_werror_flag" ||
  14716. test ! -s conftest.err
  14717. } && test -s conftest.$ac_objext; then
  14718. cat >conftest.$ac_ext <<_ACEOF
  14719. /* confdefs.h. */
  14720. _ACEOF
  14721. cat confdefs.h >>conftest.$ac_ext
  14722. cat >>conftest.$ac_ext <<_ACEOF
  14723. /* end confdefs.h. */
  14724. $ac_includes_default
  14725. int
  14726. main ()
  14727. {
  14728. if (sizeof ((pid_t)))
  14729. return 0;
  14730. ;
  14731. return 0;
  14732. }
  14733. _ACEOF
  14734. rm -f conftest.$ac_objext
  14735. if { (ac_try="$ac_compile"
  14736. case "(($ac_try" in
  14737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14738. *) ac_try_echo=$ac_try;;
  14739. esac
  14740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14741. $as_echo "$ac_try_echo") >&5
  14742. (eval "$ac_compile") 2>conftest.er1
  14743. ac_status=$?
  14744. grep -v '^ *+' conftest.er1 >conftest.err
  14745. rm -f conftest.er1
  14746. cat conftest.err >&5
  14747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14748. (exit $ac_status); } && {
  14749. test -z "$ac_c_werror_flag" ||
  14750. test ! -s conftest.err
  14751. } && test -s conftest.$ac_objext; then
  14752. :
  14753. else
  14754. $as_echo "$as_me: failed program was:" >&5
  14755. sed 's/^/| /' conftest.$ac_ext >&5
  14756. ac_cv_type_pid_t=yes
  14757. fi
  14758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14759. else
  14760. $as_echo "$as_me: failed program was:" >&5
  14761. sed 's/^/| /' conftest.$ac_ext >&5
  14762. fi
  14763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14764. fi
  14765. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  14766. $as_echo "$ac_cv_type_pid_t" >&6; }
  14767. if test "x$ac_cv_type_pid_t" = x""yes; then
  14768. :
  14769. else
  14770. cat >>confdefs.h <<_ACEOF
  14771. #define pid_t int
  14772. _ACEOF
  14773. fi
  14774. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  14775. $as_echo_n "checking for size_t... " >&6; }
  14776. if test "${ac_cv_type_size_t+set}" = set; then
  14777. $as_echo_n "(cached) " >&6
  14778. else
  14779. ac_cv_type_size_t=no
  14780. cat >conftest.$ac_ext <<_ACEOF
  14781. /* confdefs.h. */
  14782. _ACEOF
  14783. cat confdefs.h >>conftest.$ac_ext
  14784. cat >>conftest.$ac_ext <<_ACEOF
  14785. /* end confdefs.h. */
  14786. $ac_includes_default
  14787. int
  14788. main ()
  14789. {
  14790. if (sizeof (size_t))
  14791. return 0;
  14792. ;
  14793. return 0;
  14794. }
  14795. _ACEOF
  14796. rm -f conftest.$ac_objext
  14797. if { (ac_try="$ac_compile"
  14798. case "(($ac_try" in
  14799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14800. *) ac_try_echo=$ac_try;;
  14801. esac
  14802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14803. $as_echo "$ac_try_echo") >&5
  14804. (eval "$ac_compile") 2>conftest.er1
  14805. ac_status=$?
  14806. grep -v '^ *+' conftest.er1 >conftest.err
  14807. rm -f conftest.er1
  14808. cat conftest.err >&5
  14809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14810. (exit $ac_status); } && {
  14811. test -z "$ac_c_werror_flag" ||
  14812. test ! -s conftest.err
  14813. } && test -s conftest.$ac_objext; then
  14814. cat >conftest.$ac_ext <<_ACEOF
  14815. /* confdefs.h. */
  14816. _ACEOF
  14817. cat confdefs.h >>conftest.$ac_ext
  14818. cat >>conftest.$ac_ext <<_ACEOF
  14819. /* end confdefs.h. */
  14820. $ac_includes_default
  14821. int
  14822. main ()
  14823. {
  14824. if (sizeof ((size_t)))
  14825. return 0;
  14826. ;
  14827. return 0;
  14828. }
  14829. _ACEOF
  14830. rm -f conftest.$ac_objext
  14831. if { (ac_try="$ac_compile"
  14832. case "(($ac_try" in
  14833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14834. *) ac_try_echo=$ac_try;;
  14835. esac
  14836. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14837. $as_echo "$ac_try_echo") >&5
  14838. (eval "$ac_compile") 2>conftest.er1
  14839. ac_status=$?
  14840. grep -v '^ *+' conftest.er1 >conftest.err
  14841. rm -f conftest.er1
  14842. cat conftest.err >&5
  14843. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14844. (exit $ac_status); } && {
  14845. test -z "$ac_c_werror_flag" ||
  14846. test ! -s conftest.err
  14847. } && test -s conftest.$ac_objext; then
  14848. :
  14849. else
  14850. $as_echo "$as_me: failed program was:" >&5
  14851. sed 's/^/| /' conftest.$ac_ext >&5
  14852. ac_cv_type_size_t=yes
  14853. fi
  14854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14855. else
  14856. $as_echo "$as_me: failed program was:" >&5
  14857. sed 's/^/| /' conftest.$ac_ext >&5
  14858. fi
  14859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14860. fi
  14861. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  14862. $as_echo "$ac_cv_type_size_t" >&6; }
  14863. if test "x$ac_cv_type_size_t" = x""yes; then
  14864. :
  14865. else
  14866. cat >>confdefs.h <<_ACEOF
  14867. #define size_t unsigned int
  14868. _ACEOF
  14869. fi
  14870. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  14871. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14872. if test "${ac_cv_header_time+set}" = set; then
  14873. $as_echo_n "(cached) " >&6
  14874. else
  14875. cat >conftest.$ac_ext <<_ACEOF
  14876. /* confdefs.h. */
  14877. _ACEOF
  14878. cat confdefs.h >>conftest.$ac_ext
  14879. cat >>conftest.$ac_ext <<_ACEOF
  14880. /* end confdefs.h. */
  14881. #include <sys/types.h>
  14882. #include <sys/time.h>
  14883. #include <time.h>
  14884. int
  14885. main ()
  14886. {
  14887. if ((struct tm *) 0)
  14888. return 0;
  14889. ;
  14890. return 0;
  14891. }
  14892. _ACEOF
  14893. rm -f conftest.$ac_objext
  14894. if { (ac_try="$ac_compile"
  14895. case "(($ac_try" in
  14896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14897. *) ac_try_echo=$ac_try;;
  14898. esac
  14899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14900. $as_echo "$ac_try_echo") >&5
  14901. (eval "$ac_compile") 2>conftest.er1
  14902. ac_status=$?
  14903. grep -v '^ *+' conftest.er1 >conftest.err
  14904. rm -f conftest.er1
  14905. cat conftest.err >&5
  14906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14907. (exit $ac_status); } && {
  14908. test -z "$ac_c_werror_flag" ||
  14909. test ! -s conftest.err
  14910. } && test -s conftest.$ac_objext; then
  14911. ac_cv_header_time=yes
  14912. else
  14913. $as_echo "$as_me: failed program was:" >&5
  14914. sed 's/^/| /' conftest.$ac_ext >&5
  14915. ac_cv_header_time=no
  14916. fi
  14917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14918. fi
  14919. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  14920. $as_echo "$ac_cv_header_time" >&6; }
  14921. if test $ac_cv_header_time = yes; then
  14922. cat >>confdefs.h <<\_ACEOF
  14923. #define TIME_WITH_SYS_TIME 1
  14924. _ACEOF
  14925. fi
  14926. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  14927. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14928. if test "${ac_cv_struct_tm+set}" = set; then
  14929. $as_echo_n "(cached) " >&6
  14930. else
  14931. cat >conftest.$ac_ext <<_ACEOF
  14932. /* confdefs.h. */
  14933. _ACEOF
  14934. cat confdefs.h >>conftest.$ac_ext
  14935. cat >>conftest.$ac_ext <<_ACEOF
  14936. /* end confdefs.h. */
  14937. #include <sys/types.h>
  14938. #include <time.h>
  14939. int
  14940. main ()
  14941. {
  14942. struct tm tm;
  14943. int *p = &tm.tm_sec;
  14944. return !p;
  14945. ;
  14946. return 0;
  14947. }
  14948. _ACEOF
  14949. rm -f conftest.$ac_objext
  14950. if { (ac_try="$ac_compile"
  14951. case "(($ac_try" in
  14952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14953. *) ac_try_echo=$ac_try;;
  14954. esac
  14955. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14956. $as_echo "$ac_try_echo") >&5
  14957. (eval "$ac_compile") 2>conftest.er1
  14958. ac_status=$?
  14959. grep -v '^ *+' conftest.er1 >conftest.err
  14960. rm -f conftest.er1
  14961. cat conftest.err >&5
  14962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14963. (exit $ac_status); } && {
  14964. test -z "$ac_c_werror_flag" ||
  14965. test ! -s conftest.err
  14966. } && test -s conftest.$ac_objext; then
  14967. ac_cv_struct_tm=time.h
  14968. else
  14969. $as_echo "$as_me: failed program was:" >&5
  14970. sed 's/^/| /' conftest.$ac_ext >&5
  14971. ac_cv_struct_tm=sys/time.h
  14972. fi
  14973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14974. fi
  14975. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  14976. $as_echo "$ac_cv_struct_tm" >&6; }
  14977. if test $ac_cv_struct_tm = sys/time.h; then
  14978. cat >>confdefs.h <<\_ACEOF
  14979. #define TM_IN_SYS_TIME 1
  14980. _ACEOF
  14981. fi
  14982. # Checks for library functions.
  14983. for ac_header in unistd.h
  14984. do
  14985. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14986. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14987. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14988. $as_echo_n "checking for $ac_header... " >&6; }
  14989. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14990. $as_echo_n "(cached) " >&6
  14991. fi
  14992. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14993. $as_echo "$as_val"'`
  14994. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14995. $as_echo "$ac_res" >&6; }
  14996. else
  14997. # Is the header compilable?
  14998. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14999. $as_echo_n "checking $ac_header usability... " >&6; }
  15000. cat >conftest.$ac_ext <<_ACEOF
  15001. /* confdefs.h. */
  15002. _ACEOF
  15003. cat confdefs.h >>conftest.$ac_ext
  15004. cat >>conftest.$ac_ext <<_ACEOF
  15005. /* end confdefs.h. */
  15006. $ac_includes_default
  15007. #include <$ac_header>
  15008. _ACEOF
  15009. rm -f conftest.$ac_objext
  15010. if { (ac_try="$ac_compile"
  15011. case "(($ac_try" in
  15012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15013. *) ac_try_echo=$ac_try;;
  15014. esac
  15015. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15016. $as_echo "$ac_try_echo") >&5
  15017. (eval "$ac_compile") 2>conftest.er1
  15018. ac_status=$?
  15019. grep -v '^ *+' conftest.er1 >conftest.err
  15020. rm -f conftest.er1
  15021. cat conftest.err >&5
  15022. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15023. (exit $ac_status); } && {
  15024. test -z "$ac_c_werror_flag" ||
  15025. test ! -s conftest.err
  15026. } && test -s conftest.$ac_objext; then
  15027. ac_header_compiler=yes
  15028. else
  15029. $as_echo "$as_me: failed program was:" >&5
  15030. sed 's/^/| /' conftest.$ac_ext >&5
  15031. ac_header_compiler=no
  15032. fi
  15033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15034. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15035. $as_echo "$ac_header_compiler" >&6; }
  15036. # Is the header present?
  15037. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15038. $as_echo_n "checking $ac_header presence... " >&6; }
  15039. cat >conftest.$ac_ext <<_ACEOF
  15040. /* confdefs.h. */
  15041. _ACEOF
  15042. cat confdefs.h >>conftest.$ac_ext
  15043. cat >>conftest.$ac_ext <<_ACEOF
  15044. /* end confdefs.h. */
  15045. #include <$ac_header>
  15046. _ACEOF
  15047. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15048. case "(($ac_try" in
  15049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15050. *) ac_try_echo=$ac_try;;
  15051. esac
  15052. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15053. $as_echo "$ac_try_echo") >&5
  15054. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15055. ac_status=$?
  15056. grep -v '^ *+' conftest.er1 >conftest.err
  15057. rm -f conftest.er1
  15058. cat conftest.err >&5
  15059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15060. (exit $ac_status); } >/dev/null && {
  15061. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15062. test ! -s conftest.err
  15063. }; then
  15064. ac_header_preproc=yes
  15065. else
  15066. $as_echo "$as_me: failed program was:" >&5
  15067. sed 's/^/| /' conftest.$ac_ext >&5
  15068. ac_header_preproc=no
  15069. fi
  15070. rm -f conftest.err conftest.$ac_ext
  15071. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15072. $as_echo "$ac_header_preproc" >&6; }
  15073. # So? What about this header?
  15074. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15075. yes:no: )
  15076. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15077. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15078. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15079. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15080. ac_header_preproc=yes
  15081. ;;
  15082. no:yes:* )
  15083. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15084. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15085. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15086. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15087. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15088. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15089. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15090. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15091. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15092. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15093. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15094. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15095. ( cat <<\_ASBOX
  15096. ## ------------------------------------------ ##
  15097. ## Report this to http://bugzilla.redhat.com/ ##
  15098. ## ------------------------------------------ ##
  15099. _ASBOX
  15100. ) | sed "s/^/$as_me: WARNING: /" >&2
  15101. ;;
  15102. esac
  15103. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15104. $as_echo_n "checking for $ac_header... " >&6; }
  15105. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15106. $as_echo_n "(cached) " >&6
  15107. else
  15108. eval "$as_ac_Header=\$ac_header_preproc"
  15109. fi
  15110. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15111. $as_echo "$as_val"'`
  15112. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15113. $as_echo "$ac_res" >&6; }
  15114. fi
  15115. as_val=`eval 'as_val=${'$as_ac_Header'}
  15116. $as_echo "$as_val"'`
  15117. if test "x$as_val" = x""yes; then
  15118. cat >>confdefs.h <<_ACEOF
  15119. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15120. _ACEOF
  15121. fi
  15122. done
  15123. { $as_echo "$as_me:$LINENO: checking for working chown" >&5
  15124. $as_echo_n "checking for working chown... " >&6; }
  15125. if test "${ac_cv_func_chown_works+set}" = set; then
  15126. $as_echo_n "(cached) " >&6
  15127. else
  15128. if test "$cross_compiling" = yes; then
  15129. ac_cv_func_chown_works=no
  15130. else
  15131. cat >conftest.$ac_ext <<_ACEOF
  15132. /* confdefs.h. */
  15133. _ACEOF
  15134. cat confdefs.h >>conftest.$ac_ext
  15135. cat >>conftest.$ac_ext <<_ACEOF
  15136. /* end confdefs.h. */
  15137. $ac_includes_default
  15138. #include <fcntl.h>
  15139. int
  15140. main ()
  15141. {
  15142. char *f = "conftest.chown";
  15143. struct stat before, after;
  15144. if (creat (f, 0600) < 0)
  15145. return 1;
  15146. if (stat (f, &before) < 0)
  15147. return 1;
  15148. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  15149. return 1;
  15150. if (stat (f, &after) < 0)
  15151. return 1;
  15152. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  15153. ;
  15154. return 0;
  15155. }
  15156. _ACEOF
  15157. rm -f conftest$ac_exeext
  15158. if { (ac_try="$ac_link"
  15159. case "(($ac_try" in
  15160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15161. *) ac_try_echo=$ac_try;;
  15162. esac
  15163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15164. $as_echo "$ac_try_echo") >&5
  15165. (eval "$ac_link") 2>&5
  15166. ac_status=$?
  15167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15168. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15169. { (case "(($ac_try" in
  15170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15171. *) ac_try_echo=$ac_try;;
  15172. esac
  15173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15174. $as_echo "$ac_try_echo") >&5
  15175. (eval "$ac_try") 2>&5
  15176. ac_status=$?
  15177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15178. (exit $ac_status); }; }; then
  15179. ac_cv_func_chown_works=yes
  15180. else
  15181. $as_echo "$as_me: program exited with status $ac_status" >&5
  15182. $as_echo "$as_me: failed program was:" >&5
  15183. sed 's/^/| /' conftest.$ac_ext >&5
  15184. ( exit $ac_status )
  15185. ac_cv_func_chown_works=no
  15186. fi
  15187. rm -rf conftest.dSYM
  15188. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15189. fi
  15190. rm -f conftest.chown
  15191. fi
  15192. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  15193. $as_echo "$ac_cv_func_chown_works" >&6; }
  15194. if test $ac_cv_func_chown_works = yes; then
  15195. cat >>confdefs.h <<\_ACEOF
  15196. #define HAVE_CHOWN 1
  15197. _ACEOF
  15198. fi
  15199. { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  15200. $as_echo_n "checking whether closedir returns void... " >&6; }
  15201. if test "${ac_cv_func_closedir_void+set}" = set; then
  15202. $as_echo_n "(cached) " >&6
  15203. else
  15204. if test "$cross_compiling" = yes; then
  15205. ac_cv_func_closedir_void=yes
  15206. else
  15207. cat >conftest.$ac_ext <<_ACEOF
  15208. /* confdefs.h. */
  15209. _ACEOF
  15210. cat confdefs.h >>conftest.$ac_ext
  15211. cat >>conftest.$ac_ext <<_ACEOF
  15212. /* end confdefs.h. */
  15213. $ac_includes_default
  15214. #include <$ac_header_dirent>
  15215. #ifndef __cplusplus
  15216. int closedir ();
  15217. #endif
  15218. int
  15219. main ()
  15220. {
  15221. return closedir (opendir (".")) != 0;
  15222. ;
  15223. return 0;
  15224. }
  15225. _ACEOF
  15226. rm -f conftest$ac_exeext
  15227. if { (ac_try="$ac_link"
  15228. case "(($ac_try" in
  15229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15230. *) ac_try_echo=$ac_try;;
  15231. esac
  15232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15233. $as_echo "$ac_try_echo") >&5
  15234. (eval "$ac_link") 2>&5
  15235. ac_status=$?
  15236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15237. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15238. { (case "(($ac_try" in
  15239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15240. *) ac_try_echo=$ac_try;;
  15241. esac
  15242. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15243. $as_echo "$ac_try_echo") >&5
  15244. (eval "$ac_try") 2>&5
  15245. ac_status=$?
  15246. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15247. (exit $ac_status); }; }; then
  15248. ac_cv_func_closedir_void=no
  15249. else
  15250. $as_echo "$as_me: program exited with status $ac_status" >&5
  15251. $as_echo "$as_me: failed program was:" >&5
  15252. sed 's/^/| /' conftest.$ac_ext >&5
  15253. ( exit $ac_status )
  15254. ac_cv_func_closedir_void=yes
  15255. fi
  15256. rm -rf conftest.dSYM
  15257. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15258. fi
  15259. fi
  15260. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  15261. $as_echo "$ac_cv_func_closedir_void" >&6; }
  15262. if test $ac_cv_func_closedir_void = yes; then
  15263. cat >>confdefs.h <<\_ACEOF
  15264. #define CLOSEDIR_VOID 1
  15265. _ACEOF
  15266. fi
  15267. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  15268. $as_echo_n "checking for error_at_line... " >&6; }
  15269. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15270. $as_echo_n "(cached) " >&6
  15271. else
  15272. cat >conftest.$ac_ext <<_ACEOF
  15273. /* confdefs.h. */
  15274. _ACEOF
  15275. cat confdefs.h >>conftest.$ac_ext
  15276. cat >>conftest.$ac_ext <<_ACEOF
  15277. /* end confdefs.h. */
  15278. #include <error.h>
  15279. int
  15280. main ()
  15281. {
  15282. error_at_line (0, 0, "", 0, "an error occurred");
  15283. ;
  15284. return 0;
  15285. }
  15286. _ACEOF
  15287. rm -f conftest.$ac_objext conftest$ac_exeext
  15288. if { (ac_try="$ac_link"
  15289. case "(($ac_try" in
  15290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15291. *) ac_try_echo=$ac_try;;
  15292. esac
  15293. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15294. $as_echo "$ac_try_echo") >&5
  15295. (eval "$ac_link") 2>conftest.er1
  15296. ac_status=$?
  15297. grep -v '^ *+' conftest.er1 >conftest.err
  15298. rm -f conftest.er1
  15299. cat conftest.err >&5
  15300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15301. (exit $ac_status); } && {
  15302. test -z "$ac_c_werror_flag" ||
  15303. test ! -s conftest.err
  15304. } && test -s conftest$ac_exeext && {
  15305. test "$cross_compiling" = yes ||
  15306. $as_test_x conftest$ac_exeext
  15307. }; then
  15308. ac_cv_lib_error_at_line=yes
  15309. else
  15310. $as_echo "$as_me: failed program was:" >&5
  15311. sed 's/^/| /' conftest.$ac_ext >&5
  15312. ac_cv_lib_error_at_line=no
  15313. fi
  15314. rm -rf conftest.dSYM
  15315. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15316. conftest$ac_exeext conftest.$ac_ext
  15317. fi
  15318. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15319. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  15320. if test $ac_cv_lib_error_at_line = no; then
  15321. case " $LIBOBJS " in
  15322. *" error.$ac_objext "* ) ;;
  15323. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15324. ;;
  15325. esac
  15326. fi
  15327. for ac_header in vfork.h
  15328. do
  15329. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15330. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15331. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15332. $as_echo_n "checking for $ac_header... " >&6; }
  15333. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15334. $as_echo_n "(cached) " >&6
  15335. fi
  15336. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15337. $as_echo "$as_val"'`
  15338. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15339. $as_echo "$ac_res" >&6; }
  15340. else
  15341. # Is the header compilable?
  15342. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15343. $as_echo_n "checking $ac_header usability... " >&6; }
  15344. cat >conftest.$ac_ext <<_ACEOF
  15345. /* confdefs.h. */
  15346. _ACEOF
  15347. cat confdefs.h >>conftest.$ac_ext
  15348. cat >>conftest.$ac_ext <<_ACEOF
  15349. /* end confdefs.h. */
  15350. $ac_includes_default
  15351. #include <$ac_header>
  15352. _ACEOF
  15353. rm -f conftest.$ac_objext
  15354. if { (ac_try="$ac_compile"
  15355. case "(($ac_try" in
  15356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15357. *) ac_try_echo=$ac_try;;
  15358. esac
  15359. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15360. $as_echo "$ac_try_echo") >&5
  15361. (eval "$ac_compile") 2>conftest.er1
  15362. ac_status=$?
  15363. grep -v '^ *+' conftest.er1 >conftest.err
  15364. rm -f conftest.er1
  15365. cat conftest.err >&5
  15366. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15367. (exit $ac_status); } && {
  15368. test -z "$ac_c_werror_flag" ||
  15369. test ! -s conftest.err
  15370. } && test -s conftest.$ac_objext; then
  15371. ac_header_compiler=yes
  15372. else
  15373. $as_echo "$as_me: failed program was:" >&5
  15374. sed 's/^/| /' conftest.$ac_ext >&5
  15375. ac_header_compiler=no
  15376. fi
  15377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15378. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15379. $as_echo "$ac_header_compiler" >&6; }
  15380. # Is the header present?
  15381. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15382. $as_echo_n "checking $ac_header presence... " >&6; }
  15383. cat >conftest.$ac_ext <<_ACEOF
  15384. /* confdefs.h. */
  15385. _ACEOF
  15386. cat confdefs.h >>conftest.$ac_ext
  15387. cat >>conftest.$ac_ext <<_ACEOF
  15388. /* end confdefs.h. */
  15389. #include <$ac_header>
  15390. _ACEOF
  15391. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15392. case "(($ac_try" in
  15393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15394. *) ac_try_echo=$ac_try;;
  15395. esac
  15396. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15397. $as_echo "$ac_try_echo") >&5
  15398. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15399. ac_status=$?
  15400. grep -v '^ *+' conftest.er1 >conftest.err
  15401. rm -f conftest.er1
  15402. cat conftest.err >&5
  15403. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15404. (exit $ac_status); } >/dev/null && {
  15405. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15406. test ! -s conftest.err
  15407. }; then
  15408. ac_header_preproc=yes
  15409. else
  15410. $as_echo "$as_me: failed program was:" >&5
  15411. sed 's/^/| /' conftest.$ac_ext >&5
  15412. ac_header_preproc=no
  15413. fi
  15414. rm -f conftest.err conftest.$ac_ext
  15415. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15416. $as_echo "$ac_header_preproc" >&6; }
  15417. # So? What about this header?
  15418. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15419. yes:no: )
  15420. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15421. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15422. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15423. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15424. ac_header_preproc=yes
  15425. ;;
  15426. no:yes:* )
  15427. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15428. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15429. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15430. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15431. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15432. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15433. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15434. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15435. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15436. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15437. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15438. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15439. ( cat <<\_ASBOX
  15440. ## ------------------------------------------ ##
  15441. ## Report this to http://bugzilla.redhat.com/ ##
  15442. ## ------------------------------------------ ##
  15443. _ASBOX
  15444. ) | sed "s/^/$as_me: WARNING: /" >&2
  15445. ;;
  15446. esac
  15447. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15448. $as_echo_n "checking for $ac_header... " >&6; }
  15449. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15450. $as_echo_n "(cached) " >&6
  15451. else
  15452. eval "$as_ac_Header=\$ac_header_preproc"
  15453. fi
  15454. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15455. $as_echo "$as_val"'`
  15456. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15457. $as_echo "$ac_res" >&6; }
  15458. fi
  15459. as_val=`eval 'as_val=${'$as_ac_Header'}
  15460. $as_echo "$as_val"'`
  15461. if test "x$as_val" = x""yes; then
  15462. cat >>confdefs.h <<_ACEOF
  15463. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15464. _ACEOF
  15465. fi
  15466. done
  15467. for ac_func in fork vfork
  15468. do
  15469. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15470. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15471. $as_echo_n "checking for $ac_func... " >&6; }
  15472. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15473. $as_echo_n "(cached) " >&6
  15474. else
  15475. cat >conftest.$ac_ext <<_ACEOF
  15476. /* confdefs.h. */
  15477. _ACEOF
  15478. cat confdefs.h >>conftest.$ac_ext
  15479. cat >>conftest.$ac_ext <<_ACEOF
  15480. /* end confdefs.h. */
  15481. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15482. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15483. #define $ac_func innocuous_$ac_func
  15484. /* System header to define __stub macros and hopefully few prototypes,
  15485. which can conflict with char $ac_func (); below.
  15486. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15487. <limits.h> exists even on freestanding compilers. */
  15488. #ifdef __STDC__
  15489. # include <limits.h>
  15490. #else
  15491. # include <assert.h>
  15492. #endif
  15493. #undef $ac_func
  15494. /* Override any GCC internal prototype to avoid an error.
  15495. Use char because int might match the return type of a GCC
  15496. builtin and then its argument prototype would still apply. */
  15497. #ifdef __cplusplus
  15498. extern "C"
  15499. #endif
  15500. char $ac_func ();
  15501. /* The GNU C library defines this for functions which it implements
  15502. to always fail with ENOSYS. Some functions are actually named
  15503. something starting with __ and the normal name is an alias. */
  15504. #if defined __stub_$ac_func || defined __stub___$ac_func
  15505. choke me
  15506. #endif
  15507. int
  15508. main ()
  15509. {
  15510. return $ac_func ();
  15511. ;
  15512. return 0;
  15513. }
  15514. _ACEOF
  15515. rm -f conftest.$ac_objext conftest$ac_exeext
  15516. if { (ac_try="$ac_link"
  15517. case "(($ac_try" in
  15518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15519. *) ac_try_echo=$ac_try;;
  15520. esac
  15521. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15522. $as_echo "$ac_try_echo") >&5
  15523. (eval "$ac_link") 2>conftest.er1
  15524. ac_status=$?
  15525. grep -v '^ *+' conftest.er1 >conftest.err
  15526. rm -f conftest.er1
  15527. cat conftest.err >&5
  15528. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15529. (exit $ac_status); } && {
  15530. test -z "$ac_c_werror_flag" ||
  15531. test ! -s conftest.err
  15532. } && test -s conftest$ac_exeext && {
  15533. test "$cross_compiling" = yes ||
  15534. $as_test_x conftest$ac_exeext
  15535. }; then
  15536. eval "$as_ac_var=yes"
  15537. else
  15538. $as_echo "$as_me: failed program was:" >&5
  15539. sed 's/^/| /' conftest.$ac_ext >&5
  15540. eval "$as_ac_var=no"
  15541. fi
  15542. rm -rf conftest.dSYM
  15543. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15544. conftest$ac_exeext conftest.$ac_ext
  15545. fi
  15546. ac_res=`eval 'as_val=${'$as_ac_var'}
  15547. $as_echo "$as_val"'`
  15548. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15549. $as_echo "$ac_res" >&6; }
  15550. as_val=`eval 'as_val=${'$as_ac_var'}
  15551. $as_echo "$as_val"'`
  15552. if test "x$as_val" = x""yes; then
  15553. cat >>confdefs.h <<_ACEOF
  15554. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15555. _ACEOF
  15556. fi
  15557. done
  15558. if test "x$ac_cv_func_fork" = xyes; then
  15559. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  15560. $as_echo_n "checking for working fork... " >&6; }
  15561. if test "${ac_cv_func_fork_works+set}" = set; then
  15562. $as_echo_n "(cached) " >&6
  15563. else
  15564. if test "$cross_compiling" = yes; then
  15565. ac_cv_func_fork_works=cross
  15566. else
  15567. cat >conftest.$ac_ext <<_ACEOF
  15568. /* confdefs.h. */
  15569. _ACEOF
  15570. cat confdefs.h >>conftest.$ac_ext
  15571. cat >>conftest.$ac_ext <<_ACEOF
  15572. /* end confdefs.h. */
  15573. $ac_includes_default
  15574. int
  15575. main ()
  15576. {
  15577. /* By Ruediger Kuhlmann. */
  15578. return fork () < 0;
  15579. ;
  15580. return 0;
  15581. }
  15582. _ACEOF
  15583. rm -f conftest$ac_exeext
  15584. if { (ac_try="$ac_link"
  15585. case "(($ac_try" in
  15586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15587. *) ac_try_echo=$ac_try;;
  15588. esac
  15589. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15590. $as_echo "$ac_try_echo") >&5
  15591. (eval "$ac_link") 2>&5
  15592. ac_status=$?
  15593. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15594. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15595. { (case "(($ac_try" in
  15596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15597. *) ac_try_echo=$ac_try;;
  15598. esac
  15599. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15600. $as_echo "$ac_try_echo") >&5
  15601. (eval "$ac_try") 2>&5
  15602. ac_status=$?
  15603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15604. (exit $ac_status); }; }; then
  15605. ac_cv_func_fork_works=yes
  15606. else
  15607. $as_echo "$as_me: program exited with status $ac_status" >&5
  15608. $as_echo "$as_me: failed program was:" >&5
  15609. sed 's/^/| /' conftest.$ac_ext >&5
  15610. ( exit $ac_status )
  15611. ac_cv_func_fork_works=no
  15612. fi
  15613. rm -rf conftest.dSYM
  15614. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15615. fi
  15616. fi
  15617. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  15618. $as_echo "$ac_cv_func_fork_works" >&6; }
  15619. else
  15620. ac_cv_func_fork_works=$ac_cv_func_fork
  15621. fi
  15622. if test "x$ac_cv_func_fork_works" = xcross; then
  15623. case $host in
  15624. *-*-amigaos* | *-*-msdosdjgpp*)
  15625. # Override, as these systems have only a dummy fork() stub
  15626. ac_cv_func_fork_works=no
  15627. ;;
  15628. *)
  15629. ac_cv_func_fork_works=yes
  15630. ;;
  15631. esac
  15632. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  15633. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  15634. fi
  15635. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15636. if test "x$ac_cv_func_vfork" = xyes; then
  15637. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  15638. $as_echo_n "checking for working vfork... " >&6; }
  15639. if test "${ac_cv_func_vfork_works+set}" = set; then
  15640. $as_echo_n "(cached) " >&6
  15641. else
  15642. if test "$cross_compiling" = yes; then
  15643. ac_cv_func_vfork_works=cross
  15644. else
  15645. cat >conftest.$ac_ext <<_ACEOF
  15646. /* confdefs.h. */
  15647. _ACEOF
  15648. cat confdefs.h >>conftest.$ac_ext
  15649. cat >>conftest.$ac_ext <<_ACEOF
  15650. /* end confdefs.h. */
  15651. /* Thanks to Paul Eggert for this test. */
  15652. $ac_includes_default
  15653. #include <sys/wait.h>
  15654. #ifdef HAVE_VFORK_H
  15655. # include <vfork.h>
  15656. #endif
  15657. /* On some sparc systems, changes by the child to local and incoming
  15658. argument registers are propagated back to the parent. The compiler
  15659. is told about this with #include <vfork.h>, but some compilers
  15660. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  15661. static variable whose address is put into a register that is
  15662. clobbered by the vfork. */
  15663. static void
  15664. #ifdef __cplusplus
  15665. sparc_address_test (int arg)
  15666. # else
  15667. sparc_address_test (arg) int arg;
  15668. #endif
  15669. {
  15670. static pid_t child;
  15671. if (!child) {
  15672. child = vfork ();
  15673. if (child < 0) {
  15674. perror ("vfork");
  15675. _exit(2);
  15676. }
  15677. if (!child) {
  15678. arg = getpid();
  15679. write(-1, "", 0);
  15680. _exit (arg);
  15681. }
  15682. }
  15683. }
  15684. int
  15685. main ()
  15686. {
  15687. pid_t parent = getpid ();
  15688. pid_t child;
  15689. sparc_address_test (0);
  15690. child = vfork ();
  15691. if (child == 0) {
  15692. /* Here is another test for sparc vfork register problems. This
  15693. test uses lots of local variables, at least as many local
  15694. variables as main has allocated so far including compiler
  15695. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  15696. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  15697. reuse the register of parent for one of the local variables,
  15698. since it will think that parent can't possibly be used any more
  15699. in this routine. Assigning to the local variable will thus
  15700. munge parent in the parent process. */
  15701. pid_t
  15702. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  15703. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  15704. /* Convince the compiler that p..p7 are live; otherwise, it might
  15705. use the same hardware register for all 8 local variables. */
  15706. if (p != p1 || p != p2 || p != p3 || p != p4
  15707. || p != p5 || p != p6 || p != p7)
  15708. _exit(1);
  15709. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  15710. from child file descriptors. If the child closes a descriptor
  15711. before it execs or exits, this munges the parent's descriptor
  15712. as well. Test for this by closing stdout in the child. */
  15713. _exit(close(fileno(stdout)) != 0);
  15714. } else {
  15715. int status;
  15716. struct stat st;
  15717. while (wait(&status) != child)
  15718. ;
  15719. return (
  15720. /* Was there some problem with vforking? */
  15721. child < 0
  15722. /* Did the child fail? (This shouldn't happen.) */
  15723. || status
  15724. /* Did the vfork/compiler bug occur? */
  15725. || parent != getpid()
  15726. /* Did the file descriptor bug occur? */
  15727. || fstat(fileno(stdout), &st) != 0
  15728. );
  15729. }
  15730. }
  15731. _ACEOF
  15732. rm -f conftest$ac_exeext
  15733. if { (ac_try="$ac_link"
  15734. case "(($ac_try" in
  15735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15736. *) ac_try_echo=$ac_try;;
  15737. esac
  15738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15739. $as_echo "$ac_try_echo") >&5
  15740. (eval "$ac_link") 2>&5
  15741. ac_status=$?
  15742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15743. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15744. { (case "(($ac_try" in
  15745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15746. *) ac_try_echo=$ac_try;;
  15747. esac
  15748. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15749. $as_echo "$ac_try_echo") >&5
  15750. (eval "$ac_try") 2>&5
  15751. ac_status=$?
  15752. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15753. (exit $ac_status); }; }; then
  15754. ac_cv_func_vfork_works=yes
  15755. else
  15756. $as_echo "$as_me: program exited with status $ac_status" >&5
  15757. $as_echo "$as_me: failed program was:" >&5
  15758. sed 's/^/| /' conftest.$ac_ext >&5
  15759. ( exit $ac_status )
  15760. ac_cv_func_vfork_works=no
  15761. fi
  15762. rm -rf conftest.dSYM
  15763. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15764. fi
  15765. fi
  15766. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  15767. $as_echo "$ac_cv_func_vfork_works" >&6; }
  15768. fi;
  15769. if test "x$ac_cv_func_fork_works" = xcross; then
  15770. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15771. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  15772. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  15773. fi
  15774. if test "x$ac_cv_func_vfork_works" = xyes; then
  15775. cat >>confdefs.h <<\_ACEOF
  15776. #define HAVE_WORKING_VFORK 1
  15777. _ACEOF
  15778. else
  15779. cat >>confdefs.h <<\_ACEOF
  15780. #define vfork fork
  15781. _ACEOF
  15782. fi
  15783. if test "x$ac_cv_func_fork_works" = xyes; then
  15784. cat >>confdefs.h <<\_ACEOF
  15785. #define HAVE_WORKING_FORK 1
  15786. _ACEOF
  15787. fi
  15788. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15789. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15790. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15791. $as_echo_n "(cached) " >&6
  15792. else
  15793. rm -f conftest.sym conftest.file
  15794. echo >conftest.file
  15795. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15796. if test "$cross_compiling" = yes; then
  15797. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15798. else
  15799. cat >conftest.$ac_ext <<_ACEOF
  15800. /* confdefs.h. */
  15801. _ACEOF
  15802. cat confdefs.h >>conftest.$ac_ext
  15803. cat >>conftest.$ac_ext <<_ACEOF
  15804. /* end confdefs.h. */
  15805. $ac_includes_default
  15806. int
  15807. main ()
  15808. {
  15809. struct stat sbuf;
  15810. /* Linux will dereference the symlink and fail.
  15811. That is better in the sense that it means we will not
  15812. have to compile and use the lstat wrapper. */
  15813. return lstat ("conftest.sym/", &sbuf) == 0;
  15814. ;
  15815. return 0;
  15816. }
  15817. _ACEOF
  15818. rm -f conftest$ac_exeext
  15819. if { (ac_try="$ac_link"
  15820. case "(($ac_try" in
  15821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15822. *) ac_try_echo=$ac_try;;
  15823. esac
  15824. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15825. $as_echo "$ac_try_echo") >&5
  15826. (eval "$ac_link") 2>&5
  15827. ac_status=$?
  15828. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15829. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15830. { (case "(($ac_try" in
  15831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15832. *) ac_try_echo=$ac_try;;
  15833. esac
  15834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15835. $as_echo "$ac_try_echo") >&5
  15836. (eval "$ac_try") 2>&5
  15837. ac_status=$?
  15838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15839. (exit $ac_status); }; }; then
  15840. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15841. else
  15842. $as_echo "$as_me: program exited with status $ac_status" >&5
  15843. $as_echo "$as_me: failed program was:" >&5
  15844. sed 's/^/| /' conftest.$ac_ext >&5
  15845. ( exit $ac_status )
  15846. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15847. fi
  15848. rm -rf conftest.dSYM
  15849. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15850. fi
  15851. else
  15852. # If the `ln -s' command failed, then we probably don't even
  15853. # have an lstat function.
  15854. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15855. fi
  15856. rm -f conftest.sym conftest.file
  15857. fi
  15858. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15859. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15860. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15861. cat >>confdefs.h <<_ACEOF
  15862. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15863. _ACEOF
  15864. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15865. case " $LIBOBJS " in
  15866. *" lstat.$ac_objext "* ) ;;
  15867. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15868. ;;
  15869. esac
  15870. fi
  15871. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  15872. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  15873. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  15874. $as_echo_n "(cached) " >&6
  15875. else
  15876. if test "$cross_compiling" = yes; then
  15877. ac_cv_func_lstat_empty_string_bug=yes
  15878. else
  15879. cat >conftest.$ac_ext <<_ACEOF
  15880. /* confdefs.h. */
  15881. _ACEOF
  15882. cat confdefs.h >>conftest.$ac_ext
  15883. cat >>conftest.$ac_ext <<_ACEOF
  15884. /* end confdefs.h. */
  15885. $ac_includes_default
  15886. int
  15887. main ()
  15888. {
  15889. struct stat sbuf;
  15890. return lstat ("", &sbuf) == 0;
  15891. ;
  15892. return 0;
  15893. }
  15894. _ACEOF
  15895. rm -f conftest$ac_exeext
  15896. if { (ac_try="$ac_link"
  15897. case "(($ac_try" in
  15898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15899. *) ac_try_echo=$ac_try;;
  15900. esac
  15901. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15902. $as_echo "$ac_try_echo") >&5
  15903. (eval "$ac_link") 2>&5
  15904. ac_status=$?
  15905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15906. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15907. { (case "(($ac_try" in
  15908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15909. *) ac_try_echo=$ac_try;;
  15910. esac
  15911. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15912. $as_echo "$ac_try_echo") >&5
  15913. (eval "$ac_try") 2>&5
  15914. ac_status=$?
  15915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15916. (exit $ac_status); }; }; then
  15917. ac_cv_func_lstat_empty_string_bug=no
  15918. else
  15919. $as_echo "$as_me: program exited with status $ac_status" >&5
  15920. $as_echo "$as_me: failed program was:" >&5
  15921. sed 's/^/| /' conftest.$ac_ext >&5
  15922. ( exit $ac_status )
  15923. ac_cv_func_lstat_empty_string_bug=yes
  15924. fi
  15925. rm -rf conftest.dSYM
  15926. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15927. fi
  15928. fi
  15929. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  15930. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  15931. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  15932. case " $LIBOBJS " in
  15933. *" lstat.$ac_objext "* ) ;;
  15934. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15935. ;;
  15936. esac
  15937. cat >>confdefs.h <<_ACEOF
  15938. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  15939. _ACEOF
  15940. fi
  15941. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15942. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15943. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15944. $as_echo_n "(cached) " >&6
  15945. else
  15946. rm -f conftest.sym conftest.file
  15947. echo >conftest.file
  15948. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15949. if test "$cross_compiling" = yes; then
  15950. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15951. else
  15952. cat >conftest.$ac_ext <<_ACEOF
  15953. /* confdefs.h. */
  15954. _ACEOF
  15955. cat confdefs.h >>conftest.$ac_ext
  15956. cat >>conftest.$ac_ext <<_ACEOF
  15957. /* end confdefs.h. */
  15958. $ac_includes_default
  15959. int
  15960. main ()
  15961. {
  15962. struct stat sbuf;
  15963. /* Linux will dereference the symlink and fail.
  15964. That is better in the sense that it means we will not
  15965. have to compile and use the lstat wrapper. */
  15966. return lstat ("conftest.sym/", &sbuf) == 0;
  15967. ;
  15968. return 0;
  15969. }
  15970. _ACEOF
  15971. rm -f conftest$ac_exeext
  15972. if { (ac_try="$ac_link"
  15973. case "(($ac_try" in
  15974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15975. *) ac_try_echo=$ac_try;;
  15976. esac
  15977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15978. $as_echo "$ac_try_echo") >&5
  15979. (eval "$ac_link") 2>&5
  15980. ac_status=$?
  15981. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15982. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15983. { (case "(($ac_try" in
  15984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15985. *) ac_try_echo=$ac_try;;
  15986. esac
  15987. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15988. $as_echo "$ac_try_echo") >&5
  15989. (eval "$ac_try") 2>&5
  15990. ac_status=$?
  15991. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15992. (exit $ac_status); }; }; then
  15993. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15994. else
  15995. $as_echo "$as_me: program exited with status $ac_status" >&5
  15996. $as_echo "$as_me: failed program was:" >&5
  15997. sed 's/^/| /' conftest.$ac_ext >&5
  15998. ( exit $ac_status )
  15999. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16000. fi
  16001. rm -rf conftest.dSYM
  16002. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16003. fi
  16004. else
  16005. # If the `ln -s' command failed, then we probably don't even
  16006. # have an lstat function.
  16007. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16008. fi
  16009. rm -f conftest.sym conftest.file
  16010. fi
  16011. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  16012. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  16013. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  16014. cat >>confdefs.h <<_ACEOF
  16015. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  16016. _ACEOF
  16017. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  16018. case " $LIBOBJS " in
  16019. *" lstat.$ac_objext "* ) ;;
  16020. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  16021. ;;
  16022. esac
  16023. fi
  16024. for ac_header in stdlib.h
  16025. do
  16026. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16027. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16028. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16029. $as_echo_n "checking for $ac_header... " >&6; }
  16030. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16031. $as_echo_n "(cached) " >&6
  16032. fi
  16033. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16034. $as_echo "$as_val"'`
  16035. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16036. $as_echo "$ac_res" >&6; }
  16037. else
  16038. # Is the header compilable?
  16039. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16040. $as_echo_n "checking $ac_header usability... " >&6; }
  16041. cat >conftest.$ac_ext <<_ACEOF
  16042. /* confdefs.h. */
  16043. _ACEOF
  16044. cat confdefs.h >>conftest.$ac_ext
  16045. cat >>conftest.$ac_ext <<_ACEOF
  16046. /* end confdefs.h. */
  16047. $ac_includes_default
  16048. #include <$ac_header>
  16049. _ACEOF
  16050. rm -f conftest.$ac_objext
  16051. if { (ac_try="$ac_compile"
  16052. case "(($ac_try" in
  16053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16054. *) ac_try_echo=$ac_try;;
  16055. esac
  16056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16057. $as_echo "$ac_try_echo") >&5
  16058. (eval "$ac_compile") 2>conftest.er1
  16059. ac_status=$?
  16060. grep -v '^ *+' conftest.er1 >conftest.err
  16061. rm -f conftest.er1
  16062. cat conftest.err >&5
  16063. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16064. (exit $ac_status); } && {
  16065. test -z "$ac_c_werror_flag" ||
  16066. test ! -s conftest.err
  16067. } && test -s conftest.$ac_objext; then
  16068. ac_header_compiler=yes
  16069. else
  16070. $as_echo "$as_me: failed program was:" >&5
  16071. sed 's/^/| /' conftest.$ac_ext >&5
  16072. ac_header_compiler=no
  16073. fi
  16074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16075. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16076. $as_echo "$ac_header_compiler" >&6; }
  16077. # Is the header present?
  16078. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16079. $as_echo_n "checking $ac_header presence... " >&6; }
  16080. cat >conftest.$ac_ext <<_ACEOF
  16081. /* confdefs.h. */
  16082. _ACEOF
  16083. cat confdefs.h >>conftest.$ac_ext
  16084. cat >>conftest.$ac_ext <<_ACEOF
  16085. /* end confdefs.h. */
  16086. #include <$ac_header>
  16087. _ACEOF
  16088. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16089. case "(($ac_try" in
  16090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16091. *) ac_try_echo=$ac_try;;
  16092. esac
  16093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16094. $as_echo "$ac_try_echo") >&5
  16095. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16096. ac_status=$?
  16097. grep -v '^ *+' conftest.er1 >conftest.err
  16098. rm -f conftest.er1
  16099. cat conftest.err >&5
  16100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16101. (exit $ac_status); } >/dev/null && {
  16102. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16103. test ! -s conftest.err
  16104. }; then
  16105. ac_header_preproc=yes
  16106. else
  16107. $as_echo "$as_me: failed program was:" >&5
  16108. sed 's/^/| /' conftest.$ac_ext >&5
  16109. ac_header_preproc=no
  16110. fi
  16111. rm -f conftest.err conftest.$ac_ext
  16112. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16113. $as_echo "$ac_header_preproc" >&6; }
  16114. # So? What about this header?
  16115. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16116. yes:no: )
  16117. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16118. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16119. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16120. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16121. ac_header_preproc=yes
  16122. ;;
  16123. no:yes:* )
  16124. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16125. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16126. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16127. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16128. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16129. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16130. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16131. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16132. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16133. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16134. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16135. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16136. ( cat <<\_ASBOX
  16137. ## ------------------------------------------ ##
  16138. ## Report this to http://bugzilla.redhat.com/ ##
  16139. ## ------------------------------------------ ##
  16140. _ASBOX
  16141. ) | sed "s/^/$as_me: WARNING: /" >&2
  16142. ;;
  16143. esac
  16144. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16145. $as_echo_n "checking for $ac_header... " >&6; }
  16146. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16147. $as_echo_n "(cached) " >&6
  16148. else
  16149. eval "$as_ac_Header=\$ac_header_preproc"
  16150. fi
  16151. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16152. $as_echo "$as_val"'`
  16153. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16154. $as_echo "$ac_res" >&6; }
  16155. fi
  16156. as_val=`eval 'as_val=${'$as_ac_Header'}
  16157. $as_echo "$as_val"'`
  16158. if test "x$as_val" = x""yes; then
  16159. cat >>confdefs.h <<_ACEOF
  16160. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16161. _ACEOF
  16162. fi
  16163. done
  16164. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16165. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  16166. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16167. $as_echo_n "(cached) " >&6
  16168. else
  16169. if test "$cross_compiling" = yes; then
  16170. ac_cv_func_malloc_0_nonnull=no
  16171. else
  16172. cat >conftest.$ac_ext <<_ACEOF
  16173. /* confdefs.h. */
  16174. _ACEOF
  16175. cat confdefs.h >>conftest.$ac_ext
  16176. cat >>conftest.$ac_ext <<_ACEOF
  16177. /* end confdefs.h. */
  16178. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16179. # include <stdlib.h>
  16180. #else
  16181. char *malloc ();
  16182. #endif
  16183. int
  16184. main ()
  16185. {
  16186. return ! malloc (0);
  16187. ;
  16188. return 0;
  16189. }
  16190. _ACEOF
  16191. rm -f conftest$ac_exeext
  16192. if { (ac_try="$ac_link"
  16193. case "(($ac_try" in
  16194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16195. *) ac_try_echo=$ac_try;;
  16196. esac
  16197. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16198. $as_echo "$ac_try_echo") >&5
  16199. (eval "$ac_link") 2>&5
  16200. ac_status=$?
  16201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16202. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16203. { (case "(($ac_try" in
  16204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16205. *) ac_try_echo=$ac_try;;
  16206. esac
  16207. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16208. $as_echo "$ac_try_echo") >&5
  16209. (eval "$ac_try") 2>&5
  16210. ac_status=$?
  16211. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16212. (exit $ac_status); }; }; then
  16213. ac_cv_func_malloc_0_nonnull=yes
  16214. else
  16215. $as_echo "$as_me: program exited with status $ac_status" >&5
  16216. $as_echo "$as_me: failed program was:" >&5
  16217. sed 's/^/| /' conftest.$ac_ext >&5
  16218. ( exit $ac_status )
  16219. ac_cv_func_malloc_0_nonnull=no
  16220. fi
  16221. rm -rf conftest.dSYM
  16222. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16223. fi
  16224. fi
  16225. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16226. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  16227. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16228. cat >>confdefs.h <<\_ACEOF
  16229. #define HAVE_MALLOC 1
  16230. _ACEOF
  16231. else
  16232. cat >>confdefs.h <<\_ACEOF
  16233. #define HAVE_MALLOC 0
  16234. _ACEOF
  16235. case " $LIBOBJS " in
  16236. *" malloc.$ac_objext "* ) ;;
  16237. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16238. ;;
  16239. esac
  16240. cat >>confdefs.h <<\_ACEOF
  16241. #define malloc rpl_malloc
  16242. _ACEOF
  16243. fi
  16244. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  16245. $as_echo_n "checking for working memcmp... " >&6; }
  16246. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16247. $as_echo_n "(cached) " >&6
  16248. else
  16249. if test "$cross_compiling" = yes; then
  16250. ac_cv_func_memcmp_working=no
  16251. else
  16252. cat >conftest.$ac_ext <<_ACEOF
  16253. /* confdefs.h. */
  16254. _ACEOF
  16255. cat confdefs.h >>conftest.$ac_ext
  16256. cat >>conftest.$ac_ext <<_ACEOF
  16257. /* end confdefs.h. */
  16258. $ac_includes_default
  16259. int
  16260. main ()
  16261. {
  16262. /* Some versions of memcmp are not 8-bit clean. */
  16263. char c0 = '\100', c1 = '\200', c2 = '\201';
  16264. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16265. return 1;
  16266. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16267. or more and with at least one buffer not starting on a 4-byte boundary.
  16268. William Lewis provided this test program. */
  16269. {
  16270. char foo[21];
  16271. char bar[21];
  16272. int i;
  16273. for (i = 0; i < 4; i++)
  16274. {
  16275. char *a = foo + i;
  16276. char *b = bar + i;
  16277. strcpy (a, "--------01111111");
  16278. strcpy (b, "--------10000000");
  16279. if (memcmp (a, b, 16) >= 0)
  16280. return 1;
  16281. }
  16282. return 0;
  16283. }
  16284. ;
  16285. return 0;
  16286. }
  16287. _ACEOF
  16288. rm -f conftest$ac_exeext
  16289. if { (ac_try="$ac_link"
  16290. case "(($ac_try" in
  16291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16292. *) ac_try_echo=$ac_try;;
  16293. esac
  16294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16295. $as_echo "$ac_try_echo") >&5
  16296. (eval "$ac_link") 2>&5
  16297. ac_status=$?
  16298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16299. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16300. { (case "(($ac_try" in
  16301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16302. *) ac_try_echo=$ac_try;;
  16303. esac
  16304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16305. $as_echo "$ac_try_echo") >&5
  16306. (eval "$ac_try") 2>&5
  16307. ac_status=$?
  16308. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16309. (exit $ac_status); }; }; then
  16310. ac_cv_func_memcmp_working=yes
  16311. else
  16312. $as_echo "$as_me: program exited with status $ac_status" >&5
  16313. $as_echo "$as_me: failed program was:" >&5
  16314. sed 's/^/| /' conftest.$ac_ext >&5
  16315. ( exit $ac_status )
  16316. ac_cv_func_memcmp_working=no
  16317. fi
  16318. rm -rf conftest.dSYM
  16319. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16320. fi
  16321. fi
  16322. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16323. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  16324. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16325. *" memcmp.$ac_objext "* ) ;;
  16326. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16327. ;;
  16328. esac
  16329. for ac_header in stdlib.h unistd.h
  16330. do
  16331. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16332. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16333. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16334. $as_echo_n "checking for $ac_header... " >&6; }
  16335. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16336. $as_echo_n "(cached) " >&6
  16337. fi
  16338. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16339. $as_echo "$as_val"'`
  16340. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16341. $as_echo "$ac_res" >&6; }
  16342. else
  16343. # Is the header compilable?
  16344. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16345. $as_echo_n "checking $ac_header usability... " >&6; }
  16346. cat >conftest.$ac_ext <<_ACEOF
  16347. /* confdefs.h. */
  16348. _ACEOF
  16349. cat confdefs.h >>conftest.$ac_ext
  16350. cat >>conftest.$ac_ext <<_ACEOF
  16351. /* end confdefs.h. */
  16352. $ac_includes_default
  16353. #include <$ac_header>
  16354. _ACEOF
  16355. rm -f conftest.$ac_objext
  16356. if { (ac_try="$ac_compile"
  16357. case "(($ac_try" in
  16358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16359. *) ac_try_echo=$ac_try;;
  16360. esac
  16361. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16362. $as_echo "$ac_try_echo") >&5
  16363. (eval "$ac_compile") 2>conftest.er1
  16364. ac_status=$?
  16365. grep -v '^ *+' conftest.er1 >conftest.err
  16366. rm -f conftest.er1
  16367. cat conftest.err >&5
  16368. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16369. (exit $ac_status); } && {
  16370. test -z "$ac_c_werror_flag" ||
  16371. test ! -s conftest.err
  16372. } && test -s conftest.$ac_objext; then
  16373. ac_header_compiler=yes
  16374. else
  16375. $as_echo "$as_me: failed program was:" >&5
  16376. sed 's/^/| /' conftest.$ac_ext >&5
  16377. ac_header_compiler=no
  16378. fi
  16379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16380. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16381. $as_echo "$ac_header_compiler" >&6; }
  16382. # Is the header present?
  16383. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16384. $as_echo_n "checking $ac_header presence... " >&6; }
  16385. cat >conftest.$ac_ext <<_ACEOF
  16386. /* confdefs.h. */
  16387. _ACEOF
  16388. cat confdefs.h >>conftest.$ac_ext
  16389. cat >>conftest.$ac_ext <<_ACEOF
  16390. /* end confdefs.h. */
  16391. #include <$ac_header>
  16392. _ACEOF
  16393. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16394. case "(($ac_try" in
  16395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16396. *) ac_try_echo=$ac_try;;
  16397. esac
  16398. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16399. $as_echo "$ac_try_echo") >&5
  16400. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16401. ac_status=$?
  16402. grep -v '^ *+' conftest.er1 >conftest.err
  16403. rm -f conftest.er1
  16404. cat conftest.err >&5
  16405. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16406. (exit $ac_status); } >/dev/null && {
  16407. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16408. test ! -s conftest.err
  16409. }; then
  16410. ac_header_preproc=yes
  16411. else
  16412. $as_echo "$as_me: failed program was:" >&5
  16413. sed 's/^/| /' conftest.$ac_ext >&5
  16414. ac_header_preproc=no
  16415. fi
  16416. rm -f conftest.err conftest.$ac_ext
  16417. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16418. $as_echo "$ac_header_preproc" >&6; }
  16419. # So? What about this header?
  16420. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16421. yes:no: )
  16422. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16423. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16424. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16425. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16426. ac_header_preproc=yes
  16427. ;;
  16428. no:yes:* )
  16429. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16430. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16431. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16432. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16433. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16434. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16435. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16436. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16437. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16438. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16439. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16440. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16441. ( cat <<\_ASBOX
  16442. ## ------------------------------------------ ##
  16443. ## Report this to http://bugzilla.redhat.com/ ##
  16444. ## ------------------------------------------ ##
  16445. _ASBOX
  16446. ) | sed "s/^/$as_me: WARNING: /" >&2
  16447. ;;
  16448. esac
  16449. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16450. $as_echo_n "checking for $ac_header... " >&6; }
  16451. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16452. $as_echo_n "(cached) " >&6
  16453. else
  16454. eval "$as_ac_Header=\$ac_header_preproc"
  16455. fi
  16456. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16457. $as_echo "$as_val"'`
  16458. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16459. $as_echo "$ac_res" >&6; }
  16460. fi
  16461. as_val=`eval 'as_val=${'$as_ac_Header'}
  16462. $as_echo "$as_val"'`
  16463. if test "x$as_val" = x""yes; then
  16464. cat >>confdefs.h <<_ACEOF
  16465. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16466. _ACEOF
  16467. fi
  16468. done
  16469. for ac_func in getpagesize
  16470. do
  16471. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16472. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16473. $as_echo_n "checking for $ac_func... " >&6; }
  16474. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16475. $as_echo_n "(cached) " >&6
  16476. else
  16477. cat >conftest.$ac_ext <<_ACEOF
  16478. /* confdefs.h. */
  16479. _ACEOF
  16480. cat confdefs.h >>conftest.$ac_ext
  16481. cat >>conftest.$ac_ext <<_ACEOF
  16482. /* end confdefs.h. */
  16483. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16484. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16485. #define $ac_func innocuous_$ac_func
  16486. /* System header to define __stub macros and hopefully few prototypes,
  16487. which can conflict with char $ac_func (); below.
  16488. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16489. <limits.h> exists even on freestanding compilers. */
  16490. #ifdef __STDC__
  16491. # include <limits.h>
  16492. #else
  16493. # include <assert.h>
  16494. #endif
  16495. #undef $ac_func
  16496. /* Override any GCC internal prototype to avoid an error.
  16497. Use char because int might match the return type of a GCC
  16498. builtin and then its argument prototype would still apply. */
  16499. #ifdef __cplusplus
  16500. extern "C"
  16501. #endif
  16502. char $ac_func ();
  16503. /* The GNU C library defines this for functions which it implements
  16504. to always fail with ENOSYS. Some functions are actually named
  16505. something starting with __ and the normal name is an alias. */
  16506. #if defined __stub_$ac_func || defined __stub___$ac_func
  16507. choke me
  16508. #endif
  16509. int
  16510. main ()
  16511. {
  16512. return $ac_func ();
  16513. ;
  16514. return 0;
  16515. }
  16516. _ACEOF
  16517. rm -f conftest.$ac_objext conftest$ac_exeext
  16518. if { (ac_try="$ac_link"
  16519. case "(($ac_try" in
  16520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16521. *) ac_try_echo=$ac_try;;
  16522. esac
  16523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16524. $as_echo "$ac_try_echo") >&5
  16525. (eval "$ac_link") 2>conftest.er1
  16526. ac_status=$?
  16527. grep -v '^ *+' conftest.er1 >conftest.err
  16528. rm -f conftest.er1
  16529. cat conftest.err >&5
  16530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16531. (exit $ac_status); } && {
  16532. test -z "$ac_c_werror_flag" ||
  16533. test ! -s conftest.err
  16534. } && test -s conftest$ac_exeext && {
  16535. test "$cross_compiling" = yes ||
  16536. $as_test_x conftest$ac_exeext
  16537. }; then
  16538. eval "$as_ac_var=yes"
  16539. else
  16540. $as_echo "$as_me: failed program was:" >&5
  16541. sed 's/^/| /' conftest.$ac_ext >&5
  16542. eval "$as_ac_var=no"
  16543. fi
  16544. rm -rf conftest.dSYM
  16545. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16546. conftest$ac_exeext conftest.$ac_ext
  16547. fi
  16548. ac_res=`eval 'as_val=${'$as_ac_var'}
  16549. $as_echo "$as_val"'`
  16550. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16551. $as_echo "$ac_res" >&6; }
  16552. as_val=`eval 'as_val=${'$as_ac_var'}
  16553. $as_echo "$as_val"'`
  16554. if test "x$as_val" = x""yes; then
  16555. cat >>confdefs.h <<_ACEOF
  16556. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16557. _ACEOF
  16558. fi
  16559. done
  16560. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  16561. $as_echo_n "checking for working mmap... " >&6; }
  16562. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16563. $as_echo_n "(cached) " >&6
  16564. else
  16565. if test "$cross_compiling" = yes; then
  16566. ac_cv_func_mmap_fixed_mapped=no
  16567. else
  16568. cat >conftest.$ac_ext <<_ACEOF
  16569. /* confdefs.h. */
  16570. _ACEOF
  16571. cat confdefs.h >>conftest.$ac_ext
  16572. cat >>conftest.$ac_ext <<_ACEOF
  16573. /* end confdefs.h. */
  16574. $ac_includes_default
  16575. /* malloc might have been renamed as rpl_malloc. */
  16576. #undef malloc
  16577. /* Thanks to Mike Haertel and Jim Avera for this test.
  16578. Here is a matrix of mmap possibilities:
  16579. mmap private not fixed
  16580. mmap private fixed at somewhere currently unmapped
  16581. mmap private fixed at somewhere already mapped
  16582. mmap shared not fixed
  16583. mmap shared fixed at somewhere currently unmapped
  16584. mmap shared fixed at somewhere already mapped
  16585. For private mappings, we should verify that changes cannot be read()
  16586. back from the file, nor mmap's back from the file at a different
  16587. address. (There have been systems where private was not correctly
  16588. implemented like the infamous i386 svr4.0, and systems where the
  16589. VM page cache was not coherent with the file system buffer cache
  16590. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16591. For shared mappings, we should conversely verify that changes get
  16592. propagated back to all the places they're supposed to be.
  16593. Grep wants private fixed already mapped.
  16594. The main things grep needs to know about mmap are:
  16595. * does it exist and is it safe to write into the mmap'd area
  16596. * how to use it (BSD variants) */
  16597. #include <fcntl.h>
  16598. #include <sys/mman.h>
  16599. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16600. char *malloc ();
  16601. #endif
  16602. /* This mess was copied from the GNU getpagesize.h. */
  16603. #ifndef HAVE_GETPAGESIZE
  16604. /* Assume that all systems that can run configure have sys/param.h. */
  16605. # ifndef HAVE_SYS_PARAM_H
  16606. # define HAVE_SYS_PARAM_H 1
  16607. # endif
  16608. # ifdef _SC_PAGESIZE
  16609. # define getpagesize() sysconf(_SC_PAGESIZE)
  16610. # else /* no _SC_PAGESIZE */
  16611. # ifdef HAVE_SYS_PARAM_H
  16612. # include <sys/param.h>
  16613. # ifdef EXEC_PAGESIZE
  16614. # define getpagesize() EXEC_PAGESIZE
  16615. # else /* no EXEC_PAGESIZE */
  16616. # ifdef NBPG
  16617. # define getpagesize() NBPG * CLSIZE
  16618. # ifndef CLSIZE
  16619. # define CLSIZE 1
  16620. # endif /* no CLSIZE */
  16621. # else /* no NBPG */
  16622. # ifdef NBPC
  16623. # define getpagesize() NBPC
  16624. # else /* no NBPC */
  16625. # ifdef PAGESIZE
  16626. # define getpagesize() PAGESIZE
  16627. # endif /* PAGESIZE */
  16628. # endif /* no NBPC */
  16629. # endif /* no NBPG */
  16630. # endif /* no EXEC_PAGESIZE */
  16631. # else /* no HAVE_SYS_PARAM_H */
  16632. # define getpagesize() 8192 /* punt totally */
  16633. # endif /* no HAVE_SYS_PARAM_H */
  16634. # endif /* no _SC_PAGESIZE */
  16635. #endif /* no HAVE_GETPAGESIZE */
  16636. int
  16637. main ()
  16638. {
  16639. char *data, *data2, *data3;
  16640. int i, pagesize;
  16641. int fd;
  16642. pagesize = getpagesize ();
  16643. /* First, make a file with some known garbage in it. */
  16644. data = (char *) malloc (pagesize);
  16645. if (!data)
  16646. return 1;
  16647. for (i = 0; i < pagesize; ++i)
  16648. *(data + i) = rand ();
  16649. umask (0);
  16650. fd = creat ("conftest.mmap", 0600);
  16651. if (fd < 0)
  16652. return 1;
  16653. if (write (fd, data, pagesize) != pagesize)
  16654. return 1;
  16655. close (fd);
  16656. /* Next, try to mmap the file at a fixed address which already has
  16657. something else allocated at it. If we can, also make sure that
  16658. we see the same garbage. */
  16659. fd = open ("conftest.mmap", O_RDWR);
  16660. if (fd < 0)
  16661. return 1;
  16662. data2 = (char *) malloc (2 * pagesize);
  16663. if (!data2)
  16664. return 1;
  16665. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16666. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16667. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16668. return 1;
  16669. for (i = 0; i < pagesize; ++i)
  16670. if (*(data + i) != *(data2 + i))
  16671. return 1;
  16672. /* Finally, make sure that changes to the mapped area do not
  16673. percolate back to the file as seen by read(). (This is a bug on
  16674. some variants of i386 svr4.0.) */
  16675. for (i = 0; i < pagesize; ++i)
  16676. *(data2 + i) = *(data2 + i) + 1;
  16677. data3 = (char *) malloc (pagesize);
  16678. if (!data3)
  16679. return 1;
  16680. if (read (fd, data3, pagesize) != pagesize)
  16681. return 1;
  16682. for (i = 0; i < pagesize; ++i)
  16683. if (*(data + i) != *(data3 + i))
  16684. return 1;
  16685. close (fd);
  16686. return 0;
  16687. }
  16688. _ACEOF
  16689. rm -f conftest$ac_exeext
  16690. if { (ac_try="$ac_link"
  16691. case "(($ac_try" in
  16692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16693. *) ac_try_echo=$ac_try;;
  16694. esac
  16695. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16696. $as_echo "$ac_try_echo") >&5
  16697. (eval "$ac_link") 2>&5
  16698. ac_status=$?
  16699. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16700. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16701. { (case "(($ac_try" in
  16702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16703. *) ac_try_echo=$ac_try;;
  16704. esac
  16705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16706. $as_echo "$ac_try_echo") >&5
  16707. (eval "$ac_try") 2>&5
  16708. ac_status=$?
  16709. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16710. (exit $ac_status); }; }; then
  16711. ac_cv_func_mmap_fixed_mapped=yes
  16712. else
  16713. $as_echo "$as_me: program exited with status $ac_status" >&5
  16714. $as_echo "$as_me: failed program was:" >&5
  16715. sed 's/^/| /' conftest.$ac_ext >&5
  16716. ( exit $ac_status )
  16717. ac_cv_func_mmap_fixed_mapped=no
  16718. fi
  16719. rm -rf conftest.dSYM
  16720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16721. fi
  16722. fi
  16723. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16724. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  16725. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16726. cat >>confdefs.h <<\_ACEOF
  16727. #define HAVE_MMAP 1
  16728. _ACEOF
  16729. fi
  16730. rm -f conftest.mmap
  16731. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  16732. $as_echo_n "checking return type of signal handlers... " >&6; }
  16733. if test "${ac_cv_type_signal+set}" = set; then
  16734. $as_echo_n "(cached) " >&6
  16735. else
  16736. cat >conftest.$ac_ext <<_ACEOF
  16737. /* confdefs.h. */
  16738. _ACEOF
  16739. cat confdefs.h >>conftest.$ac_ext
  16740. cat >>conftest.$ac_ext <<_ACEOF
  16741. /* end confdefs.h. */
  16742. #include <sys/types.h>
  16743. #include <signal.h>
  16744. int
  16745. main ()
  16746. {
  16747. return *(signal (0, 0)) (0) == 1;
  16748. ;
  16749. return 0;
  16750. }
  16751. _ACEOF
  16752. rm -f conftest.$ac_objext
  16753. if { (ac_try="$ac_compile"
  16754. case "(($ac_try" in
  16755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16756. *) ac_try_echo=$ac_try;;
  16757. esac
  16758. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16759. $as_echo "$ac_try_echo") >&5
  16760. (eval "$ac_compile") 2>conftest.er1
  16761. ac_status=$?
  16762. grep -v '^ *+' conftest.er1 >conftest.err
  16763. rm -f conftest.er1
  16764. cat conftest.err >&5
  16765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16766. (exit $ac_status); } && {
  16767. test -z "$ac_c_werror_flag" ||
  16768. test ! -s conftest.err
  16769. } && test -s conftest.$ac_objext; then
  16770. ac_cv_type_signal=int
  16771. else
  16772. $as_echo "$as_me: failed program was:" >&5
  16773. sed 's/^/| /' conftest.$ac_ext >&5
  16774. ac_cv_type_signal=void
  16775. fi
  16776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16777. fi
  16778. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  16779. $as_echo "$ac_cv_type_signal" >&6; }
  16780. cat >>confdefs.h <<_ACEOF
  16781. #define RETSIGTYPE $ac_cv_type_signal
  16782. _ACEOF
  16783. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  16784. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  16785. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  16786. $as_echo_n "(cached) " >&6
  16787. else
  16788. if test "$cross_compiling" = yes; then
  16789. ac_cv_func_stat_empty_string_bug=yes
  16790. else
  16791. cat >conftest.$ac_ext <<_ACEOF
  16792. /* confdefs.h. */
  16793. _ACEOF
  16794. cat confdefs.h >>conftest.$ac_ext
  16795. cat >>conftest.$ac_ext <<_ACEOF
  16796. /* end confdefs.h. */
  16797. $ac_includes_default
  16798. int
  16799. main ()
  16800. {
  16801. struct stat sbuf;
  16802. return stat ("", &sbuf) == 0;
  16803. ;
  16804. return 0;
  16805. }
  16806. _ACEOF
  16807. rm -f conftest$ac_exeext
  16808. if { (ac_try="$ac_link"
  16809. case "(($ac_try" in
  16810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16811. *) ac_try_echo=$ac_try;;
  16812. esac
  16813. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16814. $as_echo "$ac_try_echo") >&5
  16815. (eval "$ac_link") 2>&5
  16816. ac_status=$?
  16817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16818. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16819. { (case "(($ac_try" in
  16820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16821. *) ac_try_echo=$ac_try;;
  16822. esac
  16823. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16824. $as_echo "$ac_try_echo") >&5
  16825. (eval "$ac_try") 2>&5
  16826. ac_status=$?
  16827. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16828. (exit $ac_status); }; }; then
  16829. ac_cv_func_stat_empty_string_bug=no
  16830. else
  16831. $as_echo "$as_me: program exited with status $ac_status" >&5
  16832. $as_echo "$as_me: failed program was:" >&5
  16833. sed 's/^/| /' conftest.$ac_ext >&5
  16834. ( exit $ac_status )
  16835. ac_cv_func_stat_empty_string_bug=yes
  16836. fi
  16837. rm -rf conftest.dSYM
  16838. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16839. fi
  16840. fi
  16841. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  16842. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  16843. if test $ac_cv_func_stat_empty_string_bug = yes; then
  16844. case " $LIBOBJS " in
  16845. *" stat.$ac_objext "* ) ;;
  16846. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  16847. ;;
  16848. esac
  16849. cat >>confdefs.h <<_ACEOF
  16850. #define HAVE_STAT_EMPTY_STRING_BUG 1
  16851. _ACEOF
  16852. fi
  16853. { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  16854. $as_echo_n "checking whether strerror_r is declared... " >&6; }
  16855. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  16856. $as_echo_n "(cached) " >&6
  16857. else
  16858. cat >conftest.$ac_ext <<_ACEOF
  16859. /* confdefs.h. */
  16860. _ACEOF
  16861. cat confdefs.h >>conftest.$ac_ext
  16862. cat >>conftest.$ac_ext <<_ACEOF
  16863. /* end confdefs.h. */
  16864. $ac_includes_default
  16865. int
  16866. main ()
  16867. {
  16868. #ifndef strerror_r
  16869. (void) strerror_r;
  16870. #endif
  16871. ;
  16872. return 0;
  16873. }
  16874. _ACEOF
  16875. rm -f conftest.$ac_objext
  16876. if { (ac_try="$ac_compile"
  16877. case "(($ac_try" in
  16878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16879. *) ac_try_echo=$ac_try;;
  16880. esac
  16881. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16882. $as_echo "$ac_try_echo") >&5
  16883. (eval "$ac_compile") 2>conftest.er1
  16884. ac_status=$?
  16885. grep -v '^ *+' conftest.er1 >conftest.err
  16886. rm -f conftest.er1
  16887. cat conftest.err >&5
  16888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16889. (exit $ac_status); } && {
  16890. test -z "$ac_c_werror_flag" ||
  16891. test ! -s conftest.err
  16892. } && test -s conftest.$ac_objext; then
  16893. ac_cv_have_decl_strerror_r=yes
  16894. else
  16895. $as_echo "$as_me: failed program was:" >&5
  16896. sed 's/^/| /' conftest.$ac_ext >&5
  16897. ac_cv_have_decl_strerror_r=no
  16898. fi
  16899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16900. fi
  16901. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  16902. $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
  16903. if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
  16904. cat >>confdefs.h <<_ACEOF
  16905. #define HAVE_DECL_STRERROR_R 1
  16906. _ACEOF
  16907. else
  16908. cat >>confdefs.h <<_ACEOF
  16909. #define HAVE_DECL_STRERROR_R 0
  16910. _ACEOF
  16911. fi
  16912. for ac_func in strerror_r
  16913. do
  16914. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16915. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16916. $as_echo_n "checking for $ac_func... " >&6; }
  16917. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16918. $as_echo_n "(cached) " >&6
  16919. else
  16920. cat >conftest.$ac_ext <<_ACEOF
  16921. /* confdefs.h. */
  16922. _ACEOF
  16923. cat confdefs.h >>conftest.$ac_ext
  16924. cat >>conftest.$ac_ext <<_ACEOF
  16925. /* end confdefs.h. */
  16926. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16927. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16928. #define $ac_func innocuous_$ac_func
  16929. /* System header to define __stub macros and hopefully few prototypes,
  16930. which can conflict with char $ac_func (); below.
  16931. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16932. <limits.h> exists even on freestanding compilers. */
  16933. #ifdef __STDC__
  16934. # include <limits.h>
  16935. #else
  16936. # include <assert.h>
  16937. #endif
  16938. #undef $ac_func
  16939. /* Override any GCC internal prototype to avoid an error.
  16940. Use char because int might match the return type of a GCC
  16941. builtin and then its argument prototype would still apply. */
  16942. #ifdef __cplusplus
  16943. extern "C"
  16944. #endif
  16945. char $ac_func ();
  16946. /* The GNU C library defines this for functions which it implements
  16947. to always fail with ENOSYS. Some functions are actually named
  16948. something starting with __ and the normal name is an alias. */
  16949. #if defined __stub_$ac_func || defined __stub___$ac_func
  16950. choke me
  16951. #endif
  16952. int
  16953. main ()
  16954. {
  16955. return $ac_func ();
  16956. ;
  16957. return 0;
  16958. }
  16959. _ACEOF
  16960. rm -f conftest.$ac_objext conftest$ac_exeext
  16961. if { (ac_try="$ac_link"
  16962. case "(($ac_try" in
  16963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16964. *) ac_try_echo=$ac_try;;
  16965. esac
  16966. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16967. $as_echo "$ac_try_echo") >&5
  16968. (eval "$ac_link") 2>conftest.er1
  16969. ac_status=$?
  16970. grep -v '^ *+' conftest.er1 >conftest.err
  16971. rm -f conftest.er1
  16972. cat conftest.err >&5
  16973. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16974. (exit $ac_status); } && {
  16975. test -z "$ac_c_werror_flag" ||
  16976. test ! -s conftest.err
  16977. } && test -s conftest$ac_exeext && {
  16978. test "$cross_compiling" = yes ||
  16979. $as_test_x conftest$ac_exeext
  16980. }; then
  16981. eval "$as_ac_var=yes"
  16982. else
  16983. $as_echo "$as_me: failed program was:" >&5
  16984. sed 's/^/| /' conftest.$ac_ext >&5
  16985. eval "$as_ac_var=no"
  16986. fi
  16987. rm -rf conftest.dSYM
  16988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16989. conftest$ac_exeext conftest.$ac_ext
  16990. fi
  16991. ac_res=`eval 'as_val=${'$as_ac_var'}
  16992. $as_echo "$as_val"'`
  16993. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16994. $as_echo "$ac_res" >&6; }
  16995. as_val=`eval 'as_val=${'$as_ac_var'}
  16996. $as_echo "$as_val"'`
  16997. if test "x$as_val" = x""yes; then
  16998. cat >>confdefs.h <<_ACEOF
  16999. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17000. _ACEOF
  17001. fi
  17002. done
  17003. { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  17004. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  17005. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  17006. $as_echo_n "(cached) " >&6
  17007. else
  17008. ac_cv_func_strerror_r_char_p=no
  17009. if test $ac_cv_have_decl_strerror_r = yes; then
  17010. cat >conftest.$ac_ext <<_ACEOF
  17011. /* confdefs.h. */
  17012. _ACEOF
  17013. cat confdefs.h >>conftest.$ac_ext
  17014. cat >>conftest.$ac_ext <<_ACEOF
  17015. /* end confdefs.h. */
  17016. $ac_includes_default
  17017. int
  17018. main ()
  17019. {
  17020. char buf[100];
  17021. char x = *strerror_r (0, buf, sizeof buf);
  17022. char *p = strerror_r (0, buf, sizeof buf);
  17023. return !p || x;
  17024. ;
  17025. return 0;
  17026. }
  17027. _ACEOF
  17028. rm -f conftest.$ac_objext
  17029. if { (ac_try="$ac_compile"
  17030. case "(($ac_try" in
  17031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17032. *) ac_try_echo=$ac_try;;
  17033. esac
  17034. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17035. $as_echo "$ac_try_echo") >&5
  17036. (eval "$ac_compile") 2>conftest.er1
  17037. ac_status=$?
  17038. grep -v '^ *+' conftest.er1 >conftest.err
  17039. rm -f conftest.er1
  17040. cat conftest.err >&5
  17041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17042. (exit $ac_status); } && {
  17043. test -z "$ac_c_werror_flag" ||
  17044. test ! -s conftest.err
  17045. } && test -s conftest.$ac_objext; then
  17046. ac_cv_func_strerror_r_char_p=yes
  17047. else
  17048. $as_echo "$as_me: failed program was:" >&5
  17049. sed 's/^/| /' conftest.$ac_ext >&5
  17050. fi
  17051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17052. else
  17053. # strerror_r is not declared. Choose between
  17054. # systems that have relatively inaccessible declarations for the
  17055. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  17056. # former has a strerror_r that returns char*, while the latter
  17057. # has a strerror_r that returns `int'.
  17058. # This test should segfault on the DEC system.
  17059. if test "$cross_compiling" = yes; then
  17060. :
  17061. else
  17062. cat >conftest.$ac_ext <<_ACEOF
  17063. /* confdefs.h. */
  17064. _ACEOF
  17065. cat confdefs.h >>conftest.$ac_ext
  17066. cat >>conftest.$ac_ext <<_ACEOF
  17067. /* end confdefs.h. */
  17068. $ac_includes_default
  17069. extern char *strerror_r ();
  17070. int
  17071. main ()
  17072. {
  17073. char buf[100];
  17074. char x = *strerror_r (0, buf, sizeof buf);
  17075. return ! isalpha (x);
  17076. ;
  17077. return 0;
  17078. }
  17079. _ACEOF
  17080. rm -f conftest$ac_exeext
  17081. if { (ac_try="$ac_link"
  17082. case "(($ac_try" in
  17083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17084. *) ac_try_echo=$ac_try;;
  17085. esac
  17086. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17087. $as_echo "$ac_try_echo") >&5
  17088. (eval "$ac_link") 2>&5
  17089. ac_status=$?
  17090. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17091. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17092. { (case "(($ac_try" in
  17093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17094. *) ac_try_echo=$ac_try;;
  17095. esac
  17096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17097. $as_echo "$ac_try_echo") >&5
  17098. (eval "$ac_try") 2>&5
  17099. ac_status=$?
  17100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17101. (exit $ac_status); }; }; then
  17102. ac_cv_func_strerror_r_char_p=yes
  17103. else
  17104. $as_echo "$as_me: program exited with status $ac_status" >&5
  17105. $as_echo "$as_me: failed program was:" >&5
  17106. sed 's/^/| /' conftest.$ac_ext >&5
  17107. fi
  17108. rm -rf conftest.dSYM
  17109. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17110. fi
  17111. fi
  17112. fi
  17113. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  17114. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  17115. if test $ac_cv_func_strerror_r_char_p = yes; then
  17116. cat >>confdefs.h <<\_ACEOF
  17117. #define STRERROR_R_CHAR_P 1
  17118. _ACEOF
  17119. fi
  17120. for ac_func in strftime
  17121. do
  17122. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17123. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17124. $as_echo_n "checking for $ac_func... " >&6; }
  17125. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17126. $as_echo_n "(cached) " >&6
  17127. else
  17128. cat >conftest.$ac_ext <<_ACEOF
  17129. /* confdefs.h. */
  17130. _ACEOF
  17131. cat confdefs.h >>conftest.$ac_ext
  17132. cat >>conftest.$ac_ext <<_ACEOF
  17133. /* end confdefs.h. */
  17134. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17135. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17136. #define $ac_func innocuous_$ac_func
  17137. /* System header to define __stub macros and hopefully few prototypes,
  17138. which can conflict with char $ac_func (); below.
  17139. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17140. <limits.h> exists even on freestanding compilers. */
  17141. #ifdef __STDC__
  17142. # include <limits.h>
  17143. #else
  17144. # include <assert.h>
  17145. #endif
  17146. #undef $ac_func
  17147. /* Override any GCC internal prototype to avoid an error.
  17148. Use char because int might match the return type of a GCC
  17149. builtin and then its argument prototype would still apply. */
  17150. #ifdef __cplusplus
  17151. extern "C"
  17152. #endif
  17153. char $ac_func ();
  17154. /* The GNU C library defines this for functions which it implements
  17155. to always fail with ENOSYS. Some functions are actually named
  17156. something starting with __ and the normal name is an alias. */
  17157. #if defined __stub_$ac_func || defined __stub___$ac_func
  17158. choke me
  17159. #endif
  17160. int
  17161. main ()
  17162. {
  17163. return $ac_func ();
  17164. ;
  17165. return 0;
  17166. }
  17167. _ACEOF
  17168. rm -f conftest.$ac_objext conftest$ac_exeext
  17169. if { (ac_try="$ac_link"
  17170. case "(($ac_try" in
  17171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17172. *) ac_try_echo=$ac_try;;
  17173. esac
  17174. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17175. $as_echo "$ac_try_echo") >&5
  17176. (eval "$ac_link") 2>conftest.er1
  17177. ac_status=$?
  17178. grep -v '^ *+' conftest.er1 >conftest.err
  17179. rm -f conftest.er1
  17180. cat conftest.err >&5
  17181. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17182. (exit $ac_status); } && {
  17183. test -z "$ac_c_werror_flag" ||
  17184. test ! -s conftest.err
  17185. } && test -s conftest$ac_exeext && {
  17186. test "$cross_compiling" = yes ||
  17187. $as_test_x conftest$ac_exeext
  17188. }; then
  17189. eval "$as_ac_var=yes"
  17190. else
  17191. $as_echo "$as_me: failed program was:" >&5
  17192. sed 's/^/| /' conftest.$ac_ext >&5
  17193. eval "$as_ac_var=no"
  17194. fi
  17195. rm -rf conftest.dSYM
  17196. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17197. conftest$ac_exeext conftest.$ac_ext
  17198. fi
  17199. ac_res=`eval 'as_val=${'$as_ac_var'}
  17200. $as_echo "$as_val"'`
  17201. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17202. $as_echo "$ac_res" >&6; }
  17203. as_val=`eval 'as_val=${'$as_ac_var'}
  17204. $as_echo "$as_val"'`
  17205. if test "x$as_val" = x""yes; then
  17206. cat >>confdefs.h <<_ACEOF
  17207. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17208. _ACEOF
  17209. else
  17210. # strftime is in -lintl on SCO UNIX.
  17211. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17212. $as_echo_n "checking for strftime in -lintl... " >&6; }
  17213. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17214. $as_echo_n "(cached) " >&6
  17215. else
  17216. ac_check_lib_save_LIBS=$LIBS
  17217. LIBS="-lintl $LIBS"
  17218. cat >conftest.$ac_ext <<_ACEOF
  17219. /* confdefs.h. */
  17220. _ACEOF
  17221. cat confdefs.h >>conftest.$ac_ext
  17222. cat >>conftest.$ac_ext <<_ACEOF
  17223. /* end confdefs.h. */
  17224. /* Override any GCC internal prototype to avoid an error.
  17225. Use char because int might match the return type of a GCC
  17226. builtin and then its argument prototype would still apply. */
  17227. #ifdef __cplusplus
  17228. extern "C"
  17229. #endif
  17230. char strftime ();
  17231. int
  17232. main ()
  17233. {
  17234. return strftime ();
  17235. ;
  17236. return 0;
  17237. }
  17238. _ACEOF
  17239. rm -f conftest.$ac_objext conftest$ac_exeext
  17240. if { (ac_try="$ac_link"
  17241. case "(($ac_try" in
  17242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17243. *) ac_try_echo=$ac_try;;
  17244. esac
  17245. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17246. $as_echo "$ac_try_echo") >&5
  17247. (eval "$ac_link") 2>conftest.er1
  17248. ac_status=$?
  17249. grep -v '^ *+' conftest.er1 >conftest.err
  17250. rm -f conftest.er1
  17251. cat conftest.err >&5
  17252. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17253. (exit $ac_status); } && {
  17254. test -z "$ac_c_werror_flag" ||
  17255. test ! -s conftest.err
  17256. } && test -s conftest$ac_exeext && {
  17257. test "$cross_compiling" = yes ||
  17258. $as_test_x conftest$ac_exeext
  17259. }; then
  17260. ac_cv_lib_intl_strftime=yes
  17261. else
  17262. $as_echo "$as_me: failed program was:" >&5
  17263. sed 's/^/| /' conftest.$ac_ext >&5
  17264. ac_cv_lib_intl_strftime=no
  17265. fi
  17266. rm -rf conftest.dSYM
  17267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17268. conftest$ac_exeext conftest.$ac_ext
  17269. LIBS=$ac_check_lib_save_LIBS
  17270. fi
  17271. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17272. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  17273. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  17274. cat >>confdefs.h <<\_ACEOF
  17275. #define HAVE_STRFTIME 1
  17276. _ACEOF
  17277. LIBS="-lintl $LIBS"
  17278. fi
  17279. fi
  17280. done
  17281. for ac_func in vprintf
  17282. do
  17283. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17284. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17285. $as_echo_n "checking for $ac_func... " >&6; }
  17286. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17287. $as_echo_n "(cached) " >&6
  17288. else
  17289. cat >conftest.$ac_ext <<_ACEOF
  17290. /* confdefs.h. */
  17291. _ACEOF
  17292. cat confdefs.h >>conftest.$ac_ext
  17293. cat >>conftest.$ac_ext <<_ACEOF
  17294. /* end confdefs.h. */
  17295. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17296. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17297. #define $ac_func innocuous_$ac_func
  17298. /* System header to define __stub macros and hopefully few prototypes,
  17299. which can conflict with char $ac_func (); below.
  17300. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17301. <limits.h> exists even on freestanding compilers. */
  17302. #ifdef __STDC__
  17303. # include <limits.h>
  17304. #else
  17305. # include <assert.h>
  17306. #endif
  17307. #undef $ac_func
  17308. /* Override any GCC internal prototype to avoid an error.
  17309. Use char because int might match the return type of a GCC
  17310. builtin and then its argument prototype would still apply. */
  17311. #ifdef __cplusplus
  17312. extern "C"
  17313. #endif
  17314. char $ac_func ();
  17315. /* The GNU C library defines this for functions which it implements
  17316. to always fail with ENOSYS. Some functions are actually named
  17317. something starting with __ and the normal name is an alias. */
  17318. #if defined __stub_$ac_func || defined __stub___$ac_func
  17319. choke me
  17320. #endif
  17321. int
  17322. main ()
  17323. {
  17324. return $ac_func ();
  17325. ;
  17326. return 0;
  17327. }
  17328. _ACEOF
  17329. rm -f conftest.$ac_objext conftest$ac_exeext
  17330. if { (ac_try="$ac_link"
  17331. case "(($ac_try" in
  17332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17333. *) ac_try_echo=$ac_try;;
  17334. esac
  17335. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17336. $as_echo "$ac_try_echo") >&5
  17337. (eval "$ac_link") 2>conftest.er1
  17338. ac_status=$?
  17339. grep -v '^ *+' conftest.er1 >conftest.err
  17340. rm -f conftest.er1
  17341. cat conftest.err >&5
  17342. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17343. (exit $ac_status); } && {
  17344. test -z "$ac_c_werror_flag" ||
  17345. test ! -s conftest.err
  17346. } && test -s conftest$ac_exeext && {
  17347. test "$cross_compiling" = yes ||
  17348. $as_test_x conftest$ac_exeext
  17349. }; then
  17350. eval "$as_ac_var=yes"
  17351. else
  17352. $as_echo "$as_me: failed program was:" >&5
  17353. sed 's/^/| /' conftest.$ac_ext >&5
  17354. eval "$as_ac_var=no"
  17355. fi
  17356. rm -rf conftest.dSYM
  17357. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17358. conftest$ac_exeext conftest.$ac_ext
  17359. fi
  17360. ac_res=`eval 'as_val=${'$as_ac_var'}
  17361. $as_echo "$as_val"'`
  17362. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17363. $as_echo "$ac_res" >&6; }
  17364. as_val=`eval 'as_val=${'$as_ac_var'}
  17365. $as_echo "$as_val"'`
  17366. if test "x$as_val" = x""yes; then
  17367. cat >>confdefs.h <<_ACEOF
  17368. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17369. _ACEOF
  17370. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  17371. $as_echo_n "checking for _doprnt... " >&6; }
  17372. if test "${ac_cv_func__doprnt+set}" = set; then
  17373. $as_echo_n "(cached) " >&6
  17374. else
  17375. cat >conftest.$ac_ext <<_ACEOF
  17376. /* confdefs.h. */
  17377. _ACEOF
  17378. cat confdefs.h >>conftest.$ac_ext
  17379. cat >>conftest.$ac_ext <<_ACEOF
  17380. /* end confdefs.h. */
  17381. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17382. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17383. #define _doprnt innocuous__doprnt
  17384. /* System header to define __stub macros and hopefully few prototypes,
  17385. which can conflict with char _doprnt (); below.
  17386. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17387. <limits.h> exists even on freestanding compilers. */
  17388. #ifdef __STDC__
  17389. # include <limits.h>
  17390. #else
  17391. # include <assert.h>
  17392. #endif
  17393. #undef _doprnt
  17394. /* Override any GCC internal prototype to avoid an error.
  17395. Use char because int might match the return type of a GCC
  17396. builtin and then its argument prototype would still apply. */
  17397. #ifdef __cplusplus
  17398. extern "C"
  17399. #endif
  17400. char _doprnt ();
  17401. /* The GNU C library defines this for functions which it implements
  17402. to always fail with ENOSYS. Some functions are actually named
  17403. something starting with __ and the normal name is an alias. */
  17404. #if defined __stub__doprnt || defined __stub____doprnt
  17405. choke me
  17406. #endif
  17407. int
  17408. main ()
  17409. {
  17410. return _doprnt ();
  17411. ;
  17412. return 0;
  17413. }
  17414. _ACEOF
  17415. rm -f conftest.$ac_objext conftest$ac_exeext
  17416. if { (ac_try="$ac_link"
  17417. case "(($ac_try" in
  17418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17419. *) ac_try_echo=$ac_try;;
  17420. esac
  17421. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17422. $as_echo "$ac_try_echo") >&5
  17423. (eval "$ac_link") 2>conftest.er1
  17424. ac_status=$?
  17425. grep -v '^ *+' conftest.er1 >conftest.err
  17426. rm -f conftest.er1
  17427. cat conftest.err >&5
  17428. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17429. (exit $ac_status); } && {
  17430. test -z "$ac_c_werror_flag" ||
  17431. test ! -s conftest.err
  17432. } && test -s conftest$ac_exeext && {
  17433. test "$cross_compiling" = yes ||
  17434. $as_test_x conftest$ac_exeext
  17435. }; then
  17436. ac_cv_func__doprnt=yes
  17437. else
  17438. $as_echo "$as_me: failed program was:" >&5
  17439. sed 's/^/| /' conftest.$ac_ext >&5
  17440. ac_cv_func__doprnt=no
  17441. fi
  17442. rm -rf conftest.dSYM
  17443. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17444. conftest$ac_exeext conftest.$ac_ext
  17445. fi
  17446. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17447. $as_echo "$ac_cv_func__doprnt" >&6; }
  17448. if test "x$ac_cv_func__doprnt" = x""yes; then
  17449. cat >>confdefs.h <<\_ACEOF
  17450. #define HAVE_DOPRNT 1
  17451. _ACEOF
  17452. fi
  17453. fi
  17454. done
  17455. 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
  17456. do
  17457. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17458. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17459. $as_echo_n "checking for $ac_func... " >&6; }
  17460. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17461. $as_echo_n "(cached) " >&6
  17462. else
  17463. cat >conftest.$ac_ext <<_ACEOF
  17464. /* confdefs.h. */
  17465. _ACEOF
  17466. cat confdefs.h >>conftest.$ac_ext
  17467. cat >>conftest.$ac_ext <<_ACEOF
  17468. /* end confdefs.h. */
  17469. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17470. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17471. #define $ac_func innocuous_$ac_func
  17472. /* System header to define __stub macros and hopefully few prototypes,
  17473. which can conflict with char $ac_func (); below.
  17474. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17475. <limits.h> exists even on freestanding compilers. */
  17476. #ifdef __STDC__
  17477. # include <limits.h>
  17478. #else
  17479. # include <assert.h>
  17480. #endif
  17481. #undef $ac_func
  17482. /* Override any GCC internal prototype to avoid an error.
  17483. Use char because int might match the return type of a GCC
  17484. builtin and then its argument prototype would still apply. */
  17485. #ifdef __cplusplus
  17486. extern "C"
  17487. #endif
  17488. char $ac_func ();
  17489. /* The GNU C library defines this for functions which it implements
  17490. to always fail with ENOSYS. Some functions are actually named
  17491. something starting with __ and the normal name is an alias. */
  17492. #if defined __stub_$ac_func || defined __stub___$ac_func
  17493. choke me
  17494. #endif
  17495. int
  17496. main ()
  17497. {
  17498. return $ac_func ();
  17499. ;
  17500. return 0;
  17501. }
  17502. _ACEOF
  17503. rm -f conftest.$ac_objext conftest$ac_exeext
  17504. if { (ac_try="$ac_link"
  17505. case "(($ac_try" in
  17506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17507. *) ac_try_echo=$ac_try;;
  17508. esac
  17509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17510. $as_echo "$ac_try_echo") >&5
  17511. (eval "$ac_link") 2>conftest.er1
  17512. ac_status=$?
  17513. grep -v '^ *+' conftest.er1 >conftest.err
  17514. rm -f conftest.er1
  17515. cat conftest.err >&5
  17516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17517. (exit $ac_status); } && {
  17518. test -z "$ac_c_werror_flag" ||
  17519. test ! -s conftest.err
  17520. } && test -s conftest$ac_exeext && {
  17521. test "$cross_compiling" = yes ||
  17522. $as_test_x conftest$ac_exeext
  17523. }; then
  17524. eval "$as_ac_var=yes"
  17525. else
  17526. $as_echo "$as_me: failed program was:" >&5
  17527. sed 's/^/| /' conftest.$ac_ext >&5
  17528. eval "$as_ac_var=no"
  17529. fi
  17530. rm -rf conftest.dSYM
  17531. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17532. conftest$ac_exeext conftest.$ac_ext
  17533. fi
  17534. ac_res=`eval 'as_val=${'$as_ac_var'}
  17535. $as_echo "$as_val"'`
  17536. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17537. $as_echo "$ac_res" >&6; }
  17538. as_val=`eval 'as_val=${'$as_ac_var'}
  17539. $as_echo "$as_val"'`
  17540. if test "x$as_val" = x""yes; then
  17541. cat >>confdefs.h <<_ACEOF
  17542. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17543. _ACEOF
  17544. fi
  17545. done
  17546. { $as_echo "$as_me:$LINENO: checking for --enable-debug" >&5
  17547. $as_echo_n "checking for --enable-debug... " >&6; }
  17548. # Check whether --enable-debug was given.
  17549. if test "${enable_debug+set}" = set; then
  17550. enableval=$enable_debug;
  17551. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17552. $as_echo "yes" >&6; }
  17553. debug_defs="-DDEBUG -DMCC_DEBUG"
  17554. else
  17555. { $as_echo "$as_me:$LINENO: result: no" >&5
  17556. $as_echo "no" >&6; }
  17557. debug_defs=""
  17558. fi
  17559. # Used for legacy style packaging where we bundle all of the dependencies.
  17560. { $as_echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  17561. $as_echo_n "checking for --enable-bundle... " >&6; }
  17562. # Check whether --enable-bundle was given.
  17563. if test "${enable_bundle+set}" = set; then
  17564. enableval=$enable_bundle;
  17565. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17566. $as_echo "yes" >&6; }
  17567. bundle="1";
  17568. else
  17569. { $as_echo "$as_me:$LINENO: result: no" >&5
  17570. $as_echo "no" >&6; }
  17571. bundle="";
  17572. fi
  17573. if test "$bundle" = "1"; then
  17574. BUNDLE_TRUE=
  17575. BUNDLE_FALSE='#'
  17576. else
  17577. BUNDLE_TRUE='#'
  17578. BUNDLE_FALSE=
  17579. fi
  17580. # these enables are for optional or experimental features
  17581. if test -z "$enable_pam_passthru" ; then
  17582. enable_pam_passthru=yes # if not set on cmdline, set default
  17583. fi
  17584. { $as_echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  17585. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  17586. # Check whether --enable-pam-passthru was given.
  17587. if test "${enable_pam_passthru+set}" = set; then
  17588. enableval=$enable_pam_passthru;
  17589. fi
  17590. if test "$enable_pam_passthru" = yes ; then
  17591. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  17592. if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
  17593. { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
  17594. $as_echo_n "checking for security/pam_appl.h... " >&6; }
  17595. if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
  17596. $as_echo_n "(cached) " >&6
  17597. fi
  17598. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
  17599. $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
  17600. else
  17601. # Is the header compilable?
  17602. { $as_echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
  17603. $as_echo_n "checking security/pam_appl.h usability... " >&6; }
  17604. cat >conftest.$ac_ext <<_ACEOF
  17605. /* confdefs.h. */
  17606. _ACEOF
  17607. cat confdefs.h >>conftest.$ac_ext
  17608. cat >>conftest.$ac_ext <<_ACEOF
  17609. /* end confdefs.h. */
  17610. $ac_includes_default
  17611. #include <security/pam_appl.h>
  17612. _ACEOF
  17613. rm -f conftest.$ac_objext
  17614. if { (ac_try="$ac_compile"
  17615. case "(($ac_try" in
  17616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17617. *) ac_try_echo=$ac_try;;
  17618. esac
  17619. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17620. $as_echo "$ac_try_echo") >&5
  17621. (eval "$ac_compile") 2>conftest.er1
  17622. ac_status=$?
  17623. grep -v '^ *+' conftest.er1 >conftest.err
  17624. rm -f conftest.er1
  17625. cat conftest.err >&5
  17626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17627. (exit $ac_status); } && {
  17628. test -z "$ac_c_werror_flag" ||
  17629. test ! -s conftest.err
  17630. } && test -s conftest.$ac_objext; then
  17631. ac_header_compiler=yes
  17632. else
  17633. $as_echo "$as_me: failed program was:" >&5
  17634. sed 's/^/| /' conftest.$ac_ext >&5
  17635. ac_header_compiler=no
  17636. fi
  17637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17638. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17639. $as_echo "$ac_header_compiler" >&6; }
  17640. # Is the header present?
  17641. { $as_echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
  17642. $as_echo_n "checking security/pam_appl.h presence... " >&6; }
  17643. cat >conftest.$ac_ext <<_ACEOF
  17644. /* confdefs.h. */
  17645. _ACEOF
  17646. cat confdefs.h >>conftest.$ac_ext
  17647. cat >>conftest.$ac_ext <<_ACEOF
  17648. /* end confdefs.h. */
  17649. #include <security/pam_appl.h>
  17650. _ACEOF
  17651. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17652. case "(($ac_try" in
  17653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17654. *) ac_try_echo=$ac_try;;
  17655. esac
  17656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17657. $as_echo "$ac_try_echo") >&5
  17658. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17659. ac_status=$?
  17660. grep -v '^ *+' conftest.er1 >conftest.err
  17661. rm -f conftest.er1
  17662. cat conftest.err >&5
  17663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17664. (exit $ac_status); } >/dev/null && {
  17665. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17666. test ! -s conftest.err
  17667. }; then
  17668. ac_header_preproc=yes
  17669. else
  17670. $as_echo "$as_me: failed program was:" >&5
  17671. sed 's/^/| /' conftest.$ac_ext >&5
  17672. ac_header_preproc=no
  17673. fi
  17674. rm -f conftest.err conftest.$ac_ext
  17675. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17676. $as_echo "$ac_header_preproc" >&6; }
  17677. # So? What about this header?
  17678. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17679. yes:no: )
  17680. { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17681. $as_echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17682. { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
  17683. $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
  17684. ac_header_preproc=yes
  17685. ;;
  17686. no:yes:* )
  17687. { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
  17688. $as_echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
  17689. { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
  17690. $as_echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
  17691. { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
  17692. $as_echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
  17693. { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5
  17694. $as_echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17695. { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
  17696. $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
  17697. { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
  17698. $as_echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
  17699. ( cat <<\_ASBOX
  17700. ## ------------------------------------------ ##
  17701. ## Report this to http://bugzilla.redhat.com/ ##
  17702. ## ------------------------------------------ ##
  17703. _ASBOX
  17704. ) | sed "s/^/$as_me: WARNING: /" >&2
  17705. ;;
  17706. esac
  17707. { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
  17708. $as_echo_n "checking for security/pam_appl.h... " >&6; }
  17709. if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
  17710. $as_echo_n "(cached) " >&6
  17711. else
  17712. ac_cv_header_security_pam_appl_h=$ac_header_preproc
  17713. fi
  17714. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
  17715. $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
  17716. fi
  17717. if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then
  17718. :
  17719. else
  17720. { { $as_echo "$as_me:$LINENO: error: Missing header file security/pam_appl.h" >&5
  17721. $as_echo "$as_me: error: Missing header file security/pam_appl.h" >&2;}
  17722. { (exit 1); exit 1; }; }
  17723. fi
  17724. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17725. $as_echo "yes" >&6; }
  17726. cat >>confdefs.h <<\_ACEOF
  17727. #define ENABLE_PAM_PASSTHRU 1
  17728. _ACEOF
  17729. else
  17730. { $as_echo "$as_me:$LINENO: result: no" >&5
  17731. $as_echo "no" >&6; }
  17732. fi
  17733. if test "$enable_pam_passthru" = "yes"; then
  17734. enable_pam_passthru_TRUE=
  17735. enable_pam_passthru_FALSE='#'
  17736. else
  17737. enable_pam_passthru_TRUE='#'
  17738. enable_pam_passthru_FALSE=
  17739. fi
  17740. if test -z "$enable_dna" ; then
  17741. enable_dna=yes # if not set on cmdline, set default
  17742. fi
  17743. { $as_echo "$as_me:$LINENO: checking for --enable-dna" >&5
  17744. $as_echo_n "checking for --enable-dna... " >&6; }
  17745. # Check whether --enable-dna was given.
  17746. if test "${enable_dna+set}" = set; then
  17747. enableval=$enable_dna;
  17748. fi
  17749. if test "$enable_dna" = yes ; then
  17750. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17751. $as_echo "yes" >&6; }
  17752. cat >>confdefs.h <<\_ACEOF
  17753. #define ENABLE_DNA 1
  17754. _ACEOF
  17755. else
  17756. { $as_echo "$as_me:$LINENO: result: no" >&5
  17757. $as_echo "no" >&6; }
  17758. fi
  17759. if test "$enable_dna" = "yes"; then
  17760. enable_dna_TRUE=
  17761. enable_dna_FALSE='#'
  17762. else
  17763. enable_dna_TRUE='#'
  17764. enable_dna_FALSE=
  17765. fi
  17766. if test -z "$enable_ldapi" ; then
  17767. enable_ldapi=yes # if not set on cmdline, set default
  17768. fi
  17769. { $as_echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  17770. $as_echo_n "checking for --enable-ldapi... " >&6; }
  17771. # Check whether --enable-ldapi was given.
  17772. if test "${enable_ldapi+set}" = set; then
  17773. enableval=$enable_ldapi;
  17774. fi
  17775. if test "$enable_ldapi" = yes ; then
  17776. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17777. $as_echo "yes" >&6; }
  17778. cat >>confdefs.h <<\_ACEOF
  17779. #define ENABLE_LDAPI 1
  17780. _ACEOF
  17781. else
  17782. { $as_echo "$as_me:$LINENO: result: no" >&5
  17783. $as_echo "no" >&6; }
  17784. fi
  17785. if test "$enable_ldapi" = "yes"; then
  17786. enable_ldapi_TRUE=
  17787. enable_ldapi_FALSE='#'
  17788. else
  17789. enable_ldapi_TRUE='#'
  17790. enable_ldapi_FALSE=
  17791. fi
  17792. if test -z "$enable_autobind" ; then
  17793. enable_autobind=no # if not set on cmdline, set default
  17794. fi
  17795. { $as_echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  17796. $as_echo_n "checking for --enable-autobind... " >&6; }
  17797. # Check whether --enable-autobind was given.
  17798. if test "${enable_autobind+set}" = set; then
  17799. enableval=$enable_autobind;
  17800. fi
  17801. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  17802. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17803. $as_echo "yes" >&6; }
  17804. cat >>confdefs.h <<\_ACEOF
  17805. #define ENABLE_AUTOBIND 1
  17806. _ACEOF
  17807. else
  17808. { $as_echo "$as_me:$LINENO: result: no" >&5
  17809. $as_echo "no" >&6; }
  17810. fi
  17811. if test "$enable_autobind" = "yes"; then
  17812. enable_autobind_TRUE=
  17813. enable_autobind_FALSE='#'
  17814. else
  17815. enable_autobind_TRUE='#'
  17816. enable_autobind_FALSE=
  17817. fi
  17818. if test -z "$enable_auto_dn_suffix" ; then
  17819. enable_auto_dn_suffix=no # if not set on cmdline, set default
  17820. fi
  17821. { $as_echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  17822. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  17823. # Check whether --enable-autobind was given.
  17824. if test "${enable_autobind+set}" = set; then
  17825. enableval=$enable_autobind;
  17826. fi
  17827. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  17828. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17829. $as_echo "yes" >&6; }
  17830. cat >>confdefs.h <<\_ACEOF
  17831. #define ENABLE_AUTO_DN_SUFFIX 1
  17832. _ACEOF
  17833. else
  17834. { $as_echo "$as_me:$LINENO: result: no" >&5
  17835. $as_echo "no" >&6; }
  17836. fi
  17837. if test "$enable_auto_dn_suffix" = "yes"; then
  17838. enable_auto_dn_suffix_TRUE=
  17839. enable_auto_dn_suffix_FALSE='#'
  17840. else
  17841. enable_auto_dn_suffix_TRUE='#'
  17842. enable_auto_dn_suffix_FALSE=
  17843. fi
  17844. if test -z "$enable_bitwise" ; then
  17845. enable_bitwise=yes # if not set on cmdline, set default
  17846. fi
  17847. { $as_echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  17848. $as_echo_n "checking for --enable-bitwise... " >&6; }
  17849. # Check whether --enable-bitwise was given.
  17850. if test "${enable_bitwise+set}" = set; then
  17851. enableval=$enable_bitwise;
  17852. fi
  17853. if test "$enable_bitwise" = yes ; then
  17854. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17855. $as_echo "yes" >&6; }
  17856. cat >>confdefs.h <<\_ACEOF
  17857. #define ENABLE_BITWISE 1
  17858. _ACEOF
  17859. else
  17860. { $as_echo "$as_me:$LINENO: result: no" >&5
  17861. $as_echo "no" >&6; }
  17862. fi
  17863. if test "$enable_bitwise" = "yes"; then
  17864. enable_bitwise_TRUE=
  17865. enable_bitwise_FALSE='#'
  17866. else
  17867. enable_bitwise_TRUE='#'
  17868. enable_bitwise_FALSE=
  17869. fi
  17870. if test -z "$enable_presence" ; then
  17871. enable_presence=no # if not set on cmdline, set default
  17872. fi
  17873. { $as_echo "$as_me:$LINENO: checking for --enable-presence" >&5
  17874. $as_echo_n "checking for --enable-presence... " >&6; }
  17875. # Check whether --enable-presence was given.
  17876. if test "${enable_presence+set}" = set; then
  17877. enableval=$enable_presence;
  17878. fi
  17879. if test "$enable_presence" = yes ; then
  17880. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17881. $as_echo "yes" >&6; }
  17882. cat >>confdefs.h <<\_ACEOF
  17883. #define ENABLE_PRESENCE 1
  17884. _ACEOF
  17885. else
  17886. { $as_echo "$as_me:$LINENO: result: no" >&5
  17887. $as_echo "no" >&6; }
  17888. fi
  17889. if test "$enable_presence" = "yes"; then
  17890. enable_presence_TRUE=
  17891. enable_presence_FALSE='#'
  17892. else
  17893. enable_presence_TRUE='#'
  17894. enable_presence_FALSE=
  17895. fi
  17896. if test -z "$enable_acctpolicy" ; then
  17897. enable_acctpolicy=yes # if not set on cmdline, set default
  17898. fi
  17899. { $as_echo "$as_me:$LINENO: checking for --enable-acctpolicy" >&5
  17900. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  17901. # Check whether --enable-acctpolicy was given.
  17902. if test "${enable_acctpolicy+set}" = set; then
  17903. enableval=$enable_acctpolicy;
  17904. fi
  17905. if test "$enable_acctpolicy" = yes ; then
  17906. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17907. $as_echo "yes" >&6; }
  17908. cat >>confdefs.h <<\_ACEOF
  17909. #define ENABLE_ACCTPOLICY 1
  17910. _ACEOF
  17911. else
  17912. { $as_echo "$as_me:$LINENO: result: no" >&5
  17913. $as_echo "no" >&6; }
  17914. fi
  17915. if test "$enable_acctpolicy" = "yes"; then
  17916. enable_acctpolicy_TRUE=
  17917. enable_acctpolicy_FALSE='#'
  17918. else
  17919. enable_acctpolicy_TRUE='#'
  17920. enable_acctpolicy_FALSE=
  17921. fi
  17922. if test -z "$enable_posix_winsync" ; then
  17923. enable_posix_winsync=yes # if not set on cmdline, set default
  17924. fi
  17925. { $as_echo "$as_me:$LINENO: checking for --enable-posix-winsync" >&5
  17926. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  17927. # Check whether --enable-posix_winsync was given.
  17928. if test "${enable_posix_winsync+set}" = set; then
  17929. enableval=$enable_posix_winsync;
  17930. fi
  17931. if test "$enable_posix_winsync" = yes ; then
  17932. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17933. $as_echo "yes" >&6; }
  17934. cat >>confdefs.h <<\_ACEOF
  17935. #define ENABLE_POSIX_WINSYNC 1
  17936. _ACEOF
  17937. else
  17938. { $as_echo "$as_me:$LINENO: result: no" >&5
  17939. $as_echo "no" >&6; }
  17940. fi
  17941. if test "$enable_posix_winsync" = "yes"; then
  17942. enable_posix_winsync_TRUE=
  17943. enable_posix_winsync_FALSE='#'
  17944. else
  17945. enable_posix_winsync_TRUE='#'
  17946. enable_posix_winsync_FALSE=
  17947. fi
  17948. # the default prefix - override with --prefix or --with-fhs
  17949. # BEGIN COPYRIGHT BLOCK
  17950. # Copyright (C) 2006 Red Hat, Inc.
  17951. # All rights reserved.
  17952. #
  17953. # This program is free software; you can redistribute it and/or
  17954. # modify it under the terms of the GNU General Public License
  17955. # as published by the Free Software Foundation; either version 2
  17956. # of the License, or (at your option) any later version.
  17957. #
  17958. # This program is distributed in the hope that it will be useful,
  17959. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17960. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17961. # GNU General Public License for more details.
  17962. #
  17963. # You should have received a copy of the GNU General Public License
  17964. # along with this program; if not, write to the Free Software
  17965. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17966. #
  17967. # END COPYRIGHT BLOCK
  17968. { $as_echo "$as_me:$LINENO: checking for FHS..." >&5
  17969. $as_echo "$as_me: checking for FHS..." >&6;}
  17970. # check for --with-fhs
  17971. { $as_echo "$as_me:$LINENO: checking for --with-fhs" >&5
  17972. $as_echo_n "checking for --with-fhs... " >&6; }
  17973. # Check whether --with-fhs was given.
  17974. if test "${with_fhs+set}" = set; then
  17975. withval=$with_fhs;
  17976. with_fhs=yes
  17977. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17978. $as_echo "yes" >&6; }
  17979. else
  17980. { $as_echo "$as_me:$LINENO: result: no" >&5
  17981. $as_echo "no" >&6; }
  17982. fi
  17983. if test "$with_fhs" = "yes"; then
  17984. cat >>confdefs.h <<\_ACEOF
  17985. #define IS_FHS 1
  17986. _ACEOF
  17987. fi
  17988. # check for --with-fhs-opt
  17989. { $as_echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  17990. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  17991. # Check whether --with-fhs-opt was given.
  17992. if test "${with_fhs_opt+set}" = set; then
  17993. withval=$with_fhs_opt;
  17994. with_fhs_opt=yes
  17995. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17996. $as_echo "yes" >&6; }
  17997. else
  17998. { $as_echo "$as_me:$LINENO: result: no" >&5
  17999. $as_echo "no" >&6; }
  18000. fi
  18001. if test "$with_fhs_opt" = "yes"; then
  18002. cat >>confdefs.h <<\_ACEOF
  18003. #define IS_FHS_OPT 1
  18004. _ACEOF
  18005. fi
  18006. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  18007. { { $as_echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  18008. $as_echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  18009. { (exit 1); exit 1; }; }
  18010. fi
  18011. # installation paths - by default, we store everything
  18012. # under the prefix. The with-fhs option will use /usr,
  18013. # /etc, and /var. The with-fhs-opt option will use the
  18014. # prefix, but it's sysconfdir and localstatedir will be
  18015. # /etc/opt, and /var/opt.
  18016. if test "$with_fhs_opt" = "yes"; then
  18017. # Override sysconfdir and localstatedir if FHS optional
  18018. # package was requested.
  18019. sysconfdir='/etc/opt'
  18020. localstatedir='/var/opt'
  18021. # relative to datadir
  18022. sampledatadir=/data
  18023. # relative to datadir
  18024. scripttemplatedir=/script-templates
  18025. # relative to datadir
  18026. updatedir=/updates
  18027. # relative to libdir
  18028. serverdir=
  18029. # relative to includedir
  18030. serverincdir=
  18031. # relative to libdir
  18032. serverplugindir=/plugins
  18033. # relative to datadir
  18034. infdir=/inf
  18035. # relative to datadir
  18036. mibdir=/mibs
  18037. # location of property/resource files, relative to datadir
  18038. propertydir=/properties
  18039. # relative to libdir
  18040. perldir=/perl
  18041. else
  18042. if test "$with_fhs" = "yes"; then
  18043. ac_default_prefix=/usr
  18044. prefix=$ac_default_prefix
  18045. exec_prefix=$prefix
  18046. sysconfdir='/etc'
  18047. localstatedir='/var'
  18048. fi
  18049. # relative to datadir
  18050. sampledatadir=/$PACKAGE_NAME/data
  18051. # relative to datadir
  18052. scripttemplatedir=/$PACKAGE_NAME/script-templates
  18053. # relative to datadir
  18054. updatedir=/$PACKAGE_NAME/updates
  18055. # relative to libdir
  18056. serverdir=/$PACKAGE_NAME
  18057. # relative to includedir
  18058. serverincdir=/$PACKAGE_NAME
  18059. # relative to libdir
  18060. serverplugindir=/$PACKAGE_NAME/plugins
  18061. # relative to datadir
  18062. infdir=/$PACKAGE_NAME/inf
  18063. # relative to datadir
  18064. mibdir=/$PACKAGE_NAME/mibs
  18065. # location of property/resource files, relative to datadir
  18066. propertydir=/$PACKAGE_NAME/properties
  18067. # relative to libdir
  18068. perldir=/$PACKAGE_NAME/perl
  18069. fi
  18070. # if mandir is the default value, override it
  18071. # otherwise, the user must have set it - just use it
  18072. if test X"$mandir" = X'${prefix}/man' ; then
  18073. mandir='$(datadir)/man'
  18074. fi
  18075. # Shared paths for all layouts
  18076. # relative to sysconfdir
  18077. configdir=/$PACKAGE_NAME/config
  18078. # relative to sysconfdir
  18079. schemadir=/$PACKAGE_NAME/schema
  18080. # default user, group
  18081. defaultuser=nobody
  18082. defaultgroup=nobody
  18083. if test -z "$with_tmpfiles_d" ; then
  18084. if test -d $sysconfdir/tmpfiles.d ; then
  18085. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  18086. fi
  18087. fi
  18088. { $as_echo "$as_me:$LINENO: checking for --with-tmpfiles-d" >&5
  18089. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  18090. # Check whether --with-tmpfiles-d was given.
  18091. if test "${with_tmpfiles_d+set}" = set; then
  18092. withval=$with_tmpfiles_d;
  18093. fi
  18094. if test "$with_tmpfiles_d" = yes ; then
  18095. { { $as_echo "$as_me:$LINENO: error: You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" >&5
  18096. $as_echo "$as_me: error: You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" >&2;}
  18097. { (exit 1); exit 1; }; }
  18098. elif test "$with_tmpfiles_d" = no ; then
  18099. with_tmpfiles_d=
  18100. else
  18101. { $as_echo "$as_me:$LINENO: result: $with_tmpfiles_d" >&5
  18102. $as_echo "$with_tmpfiles_d" >&6; }
  18103. fi
  18104. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  18105. if test -n "$ac_tool_prefix"; then
  18106. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18107. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18108. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18109. $as_echo_n "checking for $ac_word... " >&6; }
  18110. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18111. $as_echo_n "(cached) " >&6
  18112. else
  18113. case $PKG_CONFIG in
  18114. [\\/]* | ?:[\\/]*)
  18115. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18116. ;;
  18117. *)
  18118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18119. for as_dir in $PATH
  18120. do
  18121. IFS=$as_save_IFS
  18122. test -z "$as_dir" && as_dir=.
  18123. for ac_exec_ext in '' $ac_executable_extensions; do
  18124. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18125. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18126. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18127. break 2
  18128. fi
  18129. done
  18130. done
  18131. IFS=$as_save_IFS
  18132. ;;
  18133. esac
  18134. fi
  18135. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18136. if test -n "$PKG_CONFIG"; then
  18137. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18138. $as_echo "$PKG_CONFIG" >&6; }
  18139. else
  18140. { $as_echo "$as_me:$LINENO: result: no" >&5
  18141. $as_echo "no" >&6; }
  18142. fi
  18143. fi
  18144. if test -z "$ac_cv_path_PKG_CONFIG"; then
  18145. ac_pt_PKG_CONFIG=$PKG_CONFIG
  18146. # Extract the first word of "pkg-config", so it can be a program name with args.
  18147. set dummy pkg-config; ac_word=$2
  18148. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18149. $as_echo_n "checking for $ac_word... " >&6; }
  18150. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  18151. $as_echo_n "(cached) " >&6
  18152. else
  18153. case $ac_pt_PKG_CONFIG in
  18154. [\\/]* | ?:[\\/]*)
  18155. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  18156. ;;
  18157. *)
  18158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18159. for as_dir in $PATH
  18160. do
  18161. IFS=$as_save_IFS
  18162. test -z "$as_dir" && as_dir=.
  18163. for ac_exec_ext in '' $ac_executable_extensions; do
  18164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18165. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18166. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18167. break 2
  18168. fi
  18169. done
  18170. done
  18171. IFS=$as_save_IFS
  18172. ;;
  18173. esac
  18174. fi
  18175. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  18176. if test -n "$ac_pt_PKG_CONFIG"; then
  18177. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  18178. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  18179. else
  18180. { $as_echo "$as_me:$LINENO: result: no" >&5
  18181. $as_echo "no" >&6; }
  18182. fi
  18183. if test "x$ac_pt_PKG_CONFIG" = x; then
  18184. PKG_CONFIG=""
  18185. else
  18186. case $cross_compiling:$ac_tool_warned in
  18187. yes:)
  18188. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  18189. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18190. ac_tool_warned=yes ;;
  18191. esac
  18192. PKG_CONFIG=$ac_pt_PKG_CONFIG
  18193. fi
  18194. else
  18195. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18196. fi
  18197. fi
  18198. if test -n "$PKG_CONFIG"; then
  18199. _pkg_min_version=0.9.0
  18200. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  18201. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  18202. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  18203. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18204. $as_echo "yes" >&6; }
  18205. else
  18206. { $as_echo "$as_me:$LINENO: result: no" >&5
  18207. $as_echo "no" >&6; }
  18208. PKG_CONFIG=""
  18209. fi
  18210. fi
  18211. if test -n "$PKG_CONFIG" ; then
  18212. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  18213. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  18214. fi
  18215. { $as_echo "$as_me:$LINENO: checking for --with-systemdsystemunitdir" >&5
  18216. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  18217. # Check whether --with-systemdsystemunitdir was given.
  18218. if test "${with_systemdsystemunitdir+set}" = set; then
  18219. withval=$with_systemdsystemunitdir;
  18220. fi
  18221. if test "$with_systemdsystemunitdir" = yes ; then
  18222. if test -n "$default_systemdsystemunitdir" ; then
  18223. with_systemdsystemunitdir=$default_systemdsystemunitdir
  18224. { $as_echo "$as_me:$LINENO: result: $with_systemdsystemunitdir" >&5
  18225. $as_echo "$with_systemdsystemunitdir" >&6; }
  18226. else
  18227. { { $as_echo "$as_me:$LINENO: error: You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" >&5
  18228. $as_echo "$as_me: error: You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" >&2;}
  18229. { (exit 1); exit 1; }; }
  18230. fi
  18231. elif test "$with_systemdsystemunitdir" = no ; then
  18232. with_systemdsystemunitdir=
  18233. else
  18234. { $as_echo "$as_me:$LINENO: result: $with_systemdsystemunitdir" >&5
  18235. $as_echo "$with_systemdsystemunitdir" >&6; }
  18236. fi
  18237. { $as_echo "$as_me:$LINENO: checking for --with-systemdsystemconfdir" >&5
  18238. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  18239. # Check whether --with-systemdsystemconfdir was given.
  18240. if test "${with_systemdsystemconfdir+set}" = set; then
  18241. withval=$with_systemdsystemconfdir;
  18242. fi
  18243. if test "$with_systemdsystemconfdir" = yes ; then
  18244. if test -n "$default_systemdsystemconfdir" ; then
  18245. with_systemdsystemconfdir=$default_systemdsystemconfdir
  18246. { $as_echo "$as_me:$LINENO: result: $with_systemdsystemconfdir" >&5
  18247. $as_echo "$with_systemdsystemconfdir" >&6; }
  18248. else
  18249. { { $as_echo "$as_me:$LINENO: error: You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" >&5
  18250. $as_echo "$as_me: error: You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" >&2;}
  18251. { (exit 1); exit 1; }; }
  18252. fi
  18253. elif test "$with_systemdsystemconfdir" = no ; then
  18254. with_systemdsystemconfdir=
  18255. else
  18256. { $as_echo "$as_me:$LINENO: result: $with_systemdsystemconfdir" >&5
  18257. $as_echo "$with_systemdsystemconfdir" >&6; }
  18258. fi
  18259. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  18260. if test -z "$with_systemdgroupname" ; then
  18261. with_systemdgroupname=$PACKAGE_NAME.target
  18262. fi
  18263. { $as_echo "$as_me:$LINENO: checking for --with-systemdgroupname" >&5
  18264. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  18265. # Check whether --with-systemdgroupname was given.
  18266. if test "${with_systemdgroupname+set}" = set; then
  18267. withval=$with_systemdgroupname;
  18268. fi
  18269. if test "$with_systemdgroupname" = yes ; then
  18270. { { $as_echo "$as_me:$LINENO: error: You must specify --with-systemdgroupname=name.of.group" >&5
  18271. $as_echo "$as_me: error: You must specify --with-systemdgroupname=name.of.group" >&2;}
  18272. { (exit 1); exit 1; }; }
  18273. elif test "$with_systemdgroupname" = no ; then
  18274. { { $as_echo "$as_me:$LINENO: error: You must specify --with-systemdgroupname=name.of.group" >&5
  18275. $as_echo "$as_me: error: You must specify --with-systemdgroupname=name.of.group" >&2;}
  18276. { (exit 1); exit 1; }; }
  18277. else
  18278. { $as_echo "$as_me:$LINENO: result: $with_systemdgroupname" >&5
  18279. $as_echo "$with_systemdgroupname" >&6; }
  18280. fi
  18281. fi
  18282. # check for --with-instconfigdir
  18283. { $as_echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  18284. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  18285. # Check whether --with-instconfigdir was given.
  18286. if test "${with_instconfigdir+set}" = set; then
  18287. withval=$with_instconfigdir;
  18288. if test $withval = yes ; then
  18289. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  18290. $as_echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  18291. { (exit 1); exit 1; }; }
  18292. fi
  18293. instconfigdir="$withval"
  18294. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  18295. $as_echo "$withval" >&6; }
  18296. else
  18297. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  18298. { $as_echo "$as_me:$LINENO: result: no" >&5
  18299. $as_echo "no" >&6; }
  18300. fi
  18301. # WINNT should be true if building on Windows system not using
  18302. # cygnus, mingw, or the like and using cmd.exe as the shell
  18303. if false; then
  18304. WINNT_TRUE=
  18305. WINNT_FALSE='#'
  18306. else
  18307. WINNT_TRUE='#'
  18308. WINNT_FALSE=
  18309. fi
  18310. # Deal with platform dependent defines
  18311. # initdir is the location for the SysV init scripts - very heavily platform
  18312. # dependent and not specified in fhs or lsb
  18313. # and not used if systemd is used
  18314. initdir='$(sysconfdir)/rc.d'
  18315. { $as_echo "$as_me:$LINENO: checking for --with-initddir" >&5
  18316. $as_echo_n "checking for --with-initddir... " >&6; }
  18317. # Check whether --with-initddir was given.
  18318. if test "${with_initddir+set}" = set; then
  18319. withval=$with_initddir;
  18320. if test "$withval" = yes -o "$withval" = no ; then
  18321. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-initddir" >&5
  18322. $as_echo "$as_me: error: Please specify a full path with --with-initddir" >&2;}
  18323. { (exit 1); exit 1; }; }
  18324. fi
  18325. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  18326. $as_echo "$withval" >&6; }
  18327. else
  18328. { $as_echo "$as_me:$LINENO: result: no" >&5
  18329. $as_echo "no" >&6; }
  18330. fi
  18331. # on most platforms, we will just use perl from PATH
  18332. # On some platforms, we cannot. Why not just use any old
  18333. # perl? Because of perldap. We use a perldap that is
  18334. # compiled to either 32bit or 64bit, so we must use a native
  18335. # perl binary compiled with the same bitsize. On Solaris
  18336. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  18337. # those with our 64 bit compiled product.
  18338. perlexec='/usr/bin/env perl'
  18339. # we use stty in perl scripts to disable password echo
  18340. # this doesn't work unless the full absolute path of the
  18341. # stty command is used e.g. system("stty -echo") does not
  18342. # work but system("/bin/stty -echo") does work
  18343. # since the path of stty may not be the same on all
  18344. # platforms, we set the default here to /bin/stty and
  18345. # allow that value to be overridden in the platform
  18346. # specific section below
  18347. sttyexec=/bin/stty
  18348. case $host in
  18349. *-*-linux*)
  18350. cat >>confdefs.h <<\_ACEOF
  18351. #define XP_UNIX 1
  18352. _ACEOF
  18353. cat >>confdefs.h <<\_ACEOF
  18354. #define Linux 1
  18355. _ACEOF
  18356. cat >>confdefs.h <<\_ACEOF
  18357. #define LINUX 1
  18358. _ACEOF
  18359. cat >>confdefs.h <<\_ACEOF
  18360. #define LINUX2_0 1
  18361. _ACEOF
  18362. cat >>confdefs.h <<\_ACEOF
  18363. #define LINUX2_2 1
  18364. _ACEOF
  18365. cat >>confdefs.h <<\_ACEOF
  18366. #define LINUX2_4 1
  18367. _ACEOF
  18368. cat >>confdefs.h <<\_ACEOF
  18369. #define _GNU_SOURCE 1
  18370. _ACEOF
  18371. platform="linux"
  18372. initdir='$(sysconfdir)/rc.d/init.d'
  18373. # do arch specific linux stuff here
  18374. case $host in
  18375. i*86-*-linux*)
  18376. cat >>confdefs.h <<\_ACEOF
  18377. #define CPU_x86 /**/
  18378. _ACEOF
  18379. cat >>confdefs.h <<\_ACEOF
  18380. #define ATOMIC_64BIT_OPERATIONS 1
  18381. _ACEOF
  18382. ;;
  18383. x86_64-*-linux*)
  18384. cat >>confdefs.h <<\_ACEOF
  18385. #define CPU_x86_64 /**/
  18386. _ACEOF
  18387. cat >>confdefs.h <<\_ACEOF
  18388. #define ATOMIC_64BIT_OPERATIONS 1
  18389. _ACEOF
  18390. ;;
  18391. esac
  18392. { $as_echo "$as_me:$LINENO: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  18393. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  18394. cat >conftest.$ac_ext <<_ACEOF
  18395. /* confdefs.h. */
  18396. _ACEOF
  18397. cat confdefs.h >>conftest.$ac_ext
  18398. cat >>conftest.$ac_ext <<_ACEOF
  18399. /* end confdefs.h. */
  18400. int
  18401. main ()
  18402. {
  18403. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  18404. ;
  18405. return 0;
  18406. }
  18407. _ACEOF
  18408. rm -f conftest.$ac_objext conftest$ac_exeext
  18409. if { (ac_try="$ac_link"
  18410. case "(($ac_try" in
  18411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18412. *) ac_try_echo=$ac_try;;
  18413. esac
  18414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18415. $as_echo "$ac_try_echo") >&5
  18416. (eval "$ac_link") 2>conftest.er1
  18417. ac_status=$?
  18418. grep -v '^ *+' conftest.er1 >conftest.err
  18419. rm -f conftest.er1
  18420. cat conftest.err >&5
  18421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18422. (exit $ac_status); } && {
  18423. test -z "$ac_c_werror_flag" ||
  18424. test ! -s conftest.err
  18425. } && test -s conftest$ac_exeext && {
  18426. test "$cross_compiling" = yes ||
  18427. $as_test_x conftest$ac_exeext
  18428. }; then
  18429. cat >>confdefs.h <<\_ACEOF
  18430. #define HAVE_64BIT_ATOMIC_CAS_FUNC 1
  18431. _ACEOF
  18432. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18433. $as_echo "yes" >&6; }
  18434. else
  18435. $as_echo "$as_me: failed program was:" >&5
  18436. sed 's/^/| /' conftest.$ac_ext >&5
  18437. { $as_echo "$as_me:$LINENO: result: no" >&5
  18438. $as_echo "no" >&6; }
  18439. fi
  18440. rm -rf conftest.dSYM
  18441. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18442. conftest$ac_exeext conftest.$ac_ext
  18443. { $as_echo "$as_me:$LINENO: checking for GCC provided 64-bit atomic ops functions ..." >&5
  18444. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  18445. cat >conftest.$ac_ext <<_ACEOF
  18446. /* confdefs.h. */
  18447. _ACEOF
  18448. cat confdefs.h >>conftest.$ac_ext
  18449. cat >>conftest.$ac_ext <<_ACEOF
  18450. /* end confdefs.h. */
  18451. int
  18452. main ()
  18453. {
  18454. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  18455. ;
  18456. return 0;
  18457. }
  18458. _ACEOF
  18459. rm -f conftest.$ac_objext conftest$ac_exeext
  18460. if { (ac_try="$ac_link"
  18461. case "(($ac_try" in
  18462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18463. *) ac_try_echo=$ac_try;;
  18464. esac
  18465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18466. $as_echo "$ac_try_echo") >&5
  18467. (eval "$ac_link") 2>conftest.er1
  18468. ac_status=$?
  18469. grep -v '^ *+' conftest.er1 >conftest.err
  18470. rm -f conftest.er1
  18471. cat conftest.err >&5
  18472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18473. (exit $ac_status); } && {
  18474. test -z "$ac_c_werror_flag" ||
  18475. test ! -s conftest.err
  18476. } && test -s conftest$ac_exeext && {
  18477. test "$cross_compiling" = yes ||
  18478. $as_test_x conftest$ac_exeext
  18479. }; then
  18480. cat >>confdefs.h <<\_ACEOF
  18481. #define HAVE_64BIT_ATOMIC_OP_FUNCS 1
  18482. _ACEOF
  18483. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18484. $as_echo "yes" >&6; }
  18485. else
  18486. $as_echo "$as_me: failed program was:" >&5
  18487. sed 's/^/| /' conftest.$ac_ext >&5
  18488. { $as_echo "$as_me:$LINENO: result: no" >&5
  18489. $as_echo "no" >&6; }
  18490. fi
  18491. rm -rf conftest.dSYM
  18492. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18493. conftest$ac_exeext conftest.$ac_ext
  18494. # some programs use the native thread library directly
  18495. THREADLIB=-lpthread
  18496. THREADLIB=$THREADLIB
  18497. LIBCRYPT=-lcrypt
  18498. LIBCRYPT=$LIBCRYPT
  18499. cat >>confdefs.h <<\_ACEOF
  18500. #define USE_POSIX_RWLOCKS 1
  18501. _ACEOF
  18502. ;;
  18503. ia64-hp-hpux*)
  18504. cat >>confdefs.h <<\_ACEOF
  18505. #define XP_UNIX 1
  18506. _ACEOF
  18507. cat >>confdefs.h <<\_ACEOF
  18508. #define hpux 1
  18509. _ACEOF
  18510. cat >>confdefs.h <<\_ACEOF
  18511. #define HPUX 1
  18512. _ACEOF
  18513. cat >>confdefs.h <<\_ACEOF
  18514. #define HPUX11 1
  18515. _ACEOF
  18516. cat >>confdefs.h <<\_ACEOF
  18517. #define HPUX11_23 1
  18518. _ACEOF
  18519. cat >>confdefs.h <<\_ACEOF
  18520. #define CPU_ia64 /**/
  18521. _ACEOF
  18522. cat >>confdefs.h <<\_ACEOF
  18523. #define OS_hpux 1
  18524. _ACEOF
  18525. cat >>confdefs.h <<\_ACEOF
  18526. #define _POSIX_C_SOURCE 199506L
  18527. _ACEOF
  18528. cat >>confdefs.h <<\_ACEOF
  18529. #define _HPUX_SOURCE 1
  18530. _ACEOF
  18531. cat >>confdefs.h <<\_ACEOF
  18532. #define _INCLUDE_STDC__SOURCE_199901 1
  18533. _ACEOF
  18534. # assume 64 bit
  18535. perlexec='/opt/perl_64/bin/perl'
  18536. platform="hpux"
  18537. initconfigdir="/$PACKAGE_NAME/config"
  18538. # HPUX doesn't use /etc for this
  18539. initdir=/init.d
  18540. ;;
  18541. hppa*-hp-hpux*)
  18542. cat >>confdefs.h <<\_ACEOF
  18543. #define XP_UNIX 1
  18544. _ACEOF
  18545. cat >>confdefs.h <<\_ACEOF
  18546. #define hpux 1
  18547. _ACEOF
  18548. cat >>confdefs.h <<\_ACEOF
  18549. #define HPUX 1
  18550. _ACEOF
  18551. cat >>confdefs.h <<\_ACEOF
  18552. #define HPUX11 1
  18553. _ACEOF
  18554. cat >>confdefs.h <<\_ACEOF
  18555. #define HPUX11_11 1
  18556. _ACEOF
  18557. cat >>confdefs.h <<\_ACEOF
  18558. #define CPU_hppa /**/
  18559. _ACEOF
  18560. cat >>confdefs.h <<\_ACEOF
  18561. #define OS_hpux 1
  18562. _ACEOF
  18563. cat >>confdefs.h <<\_ACEOF
  18564. #define _POSIX_C_SOURCE 199506L
  18565. _ACEOF
  18566. cat >>confdefs.h <<\_ACEOF
  18567. #define _HPUX_SOURCE 1
  18568. _ACEOF
  18569. cat >>confdefs.h <<\_ACEOF
  18570. #define _INCLUDE_STDC__SOURCE_199901 1
  18571. _ACEOF
  18572. cat >>confdefs.h <<\_ACEOF
  18573. #define ATOMIC_64BIT_OPERATIONS 1
  18574. _ACEOF
  18575. # assume 64 bit
  18576. initconfigdir="/$PACKAGE_NAME/config"
  18577. perlexec='/opt/perl_64/bin/perl'
  18578. platform="hpux"
  18579. # HPUX doesn't use /etc for this
  18580. initdir=/init.d
  18581. ;;
  18582. *-*-solaris*)
  18583. cat >>confdefs.h <<\_ACEOF
  18584. #define XP_UNIX 1
  18585. _ACEOF
  18586. cat >>confdefs.h <<\_ACEOF
  18587. #define SVR4 1
  18588. _ACEOF
  18589. cat >>confdefs.h <<\_ACEOF
  18590. #define __svr4 1
  18591. _ACEOF
  18592. cat >>confdefs.h <<\_ACEOF
  18593. #define __svr4__ 1
  18594. _ACEOF
  18595. cat >>confdefs.h <<\_ACEOF
  18596. #define _SVID_GETTOD 1
  18597. _ACEOF
  18598. cat >>confdefs.h <<\_ACEOF
  18599. #define SOLARIS 1
  18600. _ACEOF
  18601. cat >>confdefs.h <<\_ACEOF
  18602. #define OS_solaris 1
  18603. _ACEOF
  18604. cat >>confdefs.h <<\_ACEOF
  18605. #define sunos5 1
  18606. _ACEOF
  18607. cat >>confdefs.h <<\_ACEOF
  18608. #define OSVERSION 509
  18609. _ACEOF
  18610. cat >>confdefs.h <<\_ACEOF
  18611. #define _REENTRANT 1
  18612. _ACEOF
  18613. cat >>confdefs.h <<\_ACEOF
  18614. #define NO_DOMAINNAME 1
  18615. _ACEOF
  18616. LIBSOCKET=-lsocket
  18617. LIBSOCKET=$LIBSOCKET
  18618. LIBNSL=-lnsl
  18619. LIBNSL=$LIBNSL
  18620. LIBDL=-ldl
  18621. LIBDL=$LIBDL
  18622. LIBCSTD=-lCstd
  18623. LIBCSTD=$LIBCSTD
  18624. LIBCRUN=-lCrun
  18625. LIBCRUN=$LIBCRUN
  18626. platform="solaris"
  18627. initdir='$(sysconfdir)/init.d'
  18628. case $host in
  18629. i?86-*-solaris2.1[0-9]*)
  18630. cat >>confdefs.h <<\_ACEOF
  18631. #define HAVE_GETPEERUCRED 1
  18632. _ACEOF
  18633. ;;
  18634. sparc-*-solaris*)
  18635. cat >>confdefs.h <<\_ACEOF
  18636. #define ATOMIC_64BIT_OPERATIONS 1
  18637. _ACEOF
  18638. cat >>confdefs.h <<\_ACEOF
  18639. #define CPU_sparc /**/
  18640. _ACEOF
  18641. TARGET='SPARC'
  18642. ;;
  18643. esac
  18644. ;;
  18645. *)
  18646. platform=""
  18647. ;;
  18648. esac
  18649. # cmd line overrides default setting above
  18650. if test -n "$with_initddir" ; then
  18651. initdir="$with_initddir"
  18652. fi
  18653. # sysv init scripts not used when systemd is used
  18654. # set default initconfigdir if not already set
  18655. # value will be set so as to be relative to $(sysconfdir)
  18656. if test -z "$initconfigdir" ; then
  18657. if test -d /etc/sysconfig ; then
  18658. initconfigdir=/sysconfig
  18659. elif test -d /etc/default ; then
  18660. initconfigdir=/default
  18661. else
  18662. initconfigdir="/$PACKAGE_NAME/config"
  18663. fi
  18664. fi
  18665. if test "$platform" = "hpux"; then
  18666. HPUX_TRUE=
  18667. HPUX_FALSE='#'
  18668. else
  18669. HPUX_TRUE='#'
  18670. HPUX_FALSE=
  18671. fi
  18672. if test "$platform" = "solaris"; then
  18673. SOLARIS_TRUE=
  18674. SOLARIS_FALSE='#'
  18675. else
  18676. SOLARIS_TRUE='#'
  18677. SOLARIS_FALSE=
  18678. fi
  18679. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  18680. SYSTEMD_TRUE=
  18681. SYSTEMD_FALSE='#'
  18682. else
  18683. SYSTEMD_TRUE='#'
  18684. SYSTEMD_FALSE=
  18685. fi
  18686. # Check for library dependencies
  18687. # BEGIN COPYRIGHT BLOCK
  18688. # Copyright (C) 2007 Red Hat, Inc.
  18689. # All rights reserved.
  18690. #
  18691. # This program is free software; you can redistribute it and/or
  18692. # modify it under the terms of the GNU General Public License
  18693. # as published by the Free Software Foundation; either version 2
  18694. # of the License, or (at your option) any later version.
  18695. #
  18696. # This program is distributed in the hope that it will be useful,
  18697. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18698. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18699. # GNU General Public License for more details.
  18700. #
  18701. # You should have received a copy of the GNU General Public License
  18702. # along with this program; if not, write to the Free Software
  18703. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18704. #
  18705. # END COPYRIGHT BLOCK
  18706. { $as_echo "$as_me:$LINENO: checking for NSPR..." >&5
  18707. $as_echo "$as_me: checking for NSPR..." >&6;}
  18708. # check for --with-nspr
  18709. { $as_echo "$as_me:$LINENO: checking for --with-nspr" >&5
  18710. $as_echo_n "checking for --with-nspr... " >&6; }
  18711. # Check whether --with-nspr was given.
  18712. if test "${with_nspr+set}" = set; then
  18713. withval=$with_nspr;
  18714. if test "$withval" = "yes"
  18715. then
  18716. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18717. $as_echo "yes" >&6; }
  18718. elif test "$withval" = "no"
  18719. then
  18720. { $as_echo "$as_me:$LINENO: result: no" >&5
  18721. $as_echo "no" >&6; }
  18722. { { $as_echo "$as_me:$LINENO: error: NSPR is required." >&5
  18723. $as_echo "$as_me: error: NSPR is required." >&2;}
  18724. { (exit 1); exit 1; }; }
  18725. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  18726. then
  18727. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18728. $as_echo "using $withval" >&6; }
  18729. NSPRDIR=$withval
  18730. nspr_inc="-I$NSPRDIR/include"
  18731. nspr_lib="-L$NSPRDIR/lib"
  18732. nspr_libdir="$NSPRDIR/lib"
  18733. else
  18734. echo
  18735. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18736. $as_echo "$as_me: error: $withval not found" >&2;}
  18737. { (exit 1); exit 1; }; }
  18738. fi
  18739. else
  18740. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18741. $as_echo "yes" >&6; }
  18742. fi
  18743. # check for --with-nspr-inc
  18744. { $as_echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  18745. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  18746. # Check whether --with-nspr-inc was given.
  18747. if test "${with_nspr_inc+set}" = set; then
  18748. withval=$with_nspr_inc;
  18749. if test -e "$withval"/nspr.h
  18750. then
  18751. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18752. $as_echo "using $withval" >&6; }
  18753. nspr_inc="-I$withval"
  18754. else
  18755. echo
  18756. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18757. $as_echo "$as_me: error: $withval not found" >&2;}
  18758. { (exit 1); exit 1; }; }
  18759. fi
  18760. else
  18761. { $as_echo "$as_me:$LINENO: result: no" >&5
  18762. $as_echo "no" >&6; }
  18763. fi
  18764. # check for --with-nspr-lib
  18765. { $as_echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  18766. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  18767. # Check whether --with-nspr-lib was given.
  18768. if test "${with_nspr_lib+set}" = set; then
  18769. withval=$with_nspr_lib;
  18770. if test -d "$withval"
  18771. then
  18772. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18773. $as_echo "using $withval" >&6; }
  18774. nspr_lib="-L$withval"
  18775. nspr_libdir="$withval"
  18776. else
  18777. echo
  18778. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18779. $as_echo "$as_me: error: $withval not found" >&2;}
  18780. { (exit 1); exit 1; }; }
  18781. fi
  18782. else
  18783. { $as_echo "$as_me:$LINENO: result: no" >&5
  18784. $as_echo "no" >&6; }
  18785. fi
  18786. # if NSPR is not found yet, try pkg-config
  18787. # last resort
  18788. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  18789. # Extract the first word of "pkg-config", so it can be a program name with args.
  18790. set dummy pkg-config; ac_word=$2
  18791. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18792. $as_echo_n "checking for $ac_word... " >&6; }
  18793. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18794. $as_echo_n "(cached) " >&6
  18795. else
  18796. case $PKG_CONFIG in
  18797. [\\/]* | ?:[\\/]*)
  18798. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18799. ;;
  18800. *)
  18801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18802. for as_dir in $PATH
  18803. do
  18804. IFS=$as_save_IFS
  18805. test -z "$as_dir" && as_dir=.
  18806. for ac_exec_ext in '' $ac_executable_extensions; do
  18807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18808. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18809. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18810. break 2
  18811. fi
  18812. done
  18813. done
  18814. IFS=$as_save_IFS
  18815. ;;
  18816. esac
  18817. fi
  18818. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18819. if test -n "$PKG_CONFIG"; then
  18820. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18821. $as_echo "$PKG_CONFIG" >&6; }
  18822. else
  18823. { $as_echo "$as_me:$LINENO: result: no" >&5
  18824. $as_echo "no" >&6; }
  18825. fi
  18826. { $as_echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  18827. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  18828. if test -n "$PKG_CONFIG"; then
  18829. if $PKG_CONFIG --exists nspr; then
  18830. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  18831. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  18832. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  18833. { $as_echo "$as_me:$LINENO: result: using system NSPR" >&5
  18834. $as_echo "using system NSPR" >&6; }
  18835. elif $PKG_CONFIG --exists dirsec-nspr; then
  18836. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  18837. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  18838. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  18839. { $as_echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  18840. $as_echo "using system dirsec NSPR" >&6; }
  18841. else
  18842. { { $as_echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  18843. $as_echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  18844. { (exit 1); exit 1; }; }
  18845. fi
  18846. fi
  18847. fi
  18848. # BEGIN COPYRIGHT BLOCK
  18849. # Copyright (C) 2007 Red Hat, Inc.
  18850. # All rights reserved.
  18851. #
  18852. # This program is free software; you can redistribute it and/or
  18853. # modify it under the terms of the GNU General Public License
  18854. # as published by the Free Software Foundation; either version 2
  18855. # of the License, or (at your option) any later version.
  18856. #
  18857. # This program is distributed in the hope that it will be useful,
  18858. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18859. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18860. # GNU General Public License for more details.
  18861. #
  18862. # You should have received a copy of the GNU General Public License
  18863. # along with this program; if not, write to the Free Software
  18864. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18865. #
  18866. # END COPYRIGHT BLOCK
  18867. { $as_echo "$as_me:$LINENO: checking for NSS..." >&5
  18868. $as_echo "$as_me: checking for NSS..." >&6;}
  18869. # check for --with-nss
  18870. { $as_echo "$as_me:$LINENO: checking for --with-nss" >&5
  18871. $as_echo_n "checking for --with-nss... " >&6; }
  18872. # Check whether --with-nss was given.
  18873. if test "${with_nss+set}" = set; then
  18874. withval=$with_nss;
  18875. if test "$withval" = "yes"
  18876. then
  18877. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18878. $as_echo "yes" >&6; }
  18879. elif test "$withval" = "no"
  18880. then
  18881. { $as_echo "$as_me:$LINENO: result: no" >&5
  18882. $as_echo "no" >&6; }
  18883. { { $as_echo "$as_me:$LINENO: error: NSS is required." >&5
  18884. $as_echo "$as_me: error: NSS is required." >&2;}
  18885. { (exit 1); exit 1; }; }
  18886. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  18887. then
  18888. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18889. $as_echo "using $withval" >&6; }
  18890. NSSDIR=$withval
  18891. nss_inc="-I$NSSDIR/include"
  18892. nss_lib="-L$NSSDIR/lib"
  18893. nss_libdir="$NSSDIR/lib"
  18894. else
  18895. echo
  18896. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18897. $as_echo "$as_me: error: $withval not found" >&2;}
  18898. { (exit 1); exit 1; }; }
  18899. fi
  18900. else
  18901. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18902. $as_echo "yes" >&6; }
  18903. fi
  18904. # check for --with-nss-inc
  18905. { $as_echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  18906. $as_echo_n "checking for --with-nss-inc... " >&6; }
  18907. # Check whether --with-nss-inc was given.
  18908. if test "${with_nss_inc+set}" = set; then
  18909. withval=$with_nss_inc;
  18910. if test -e "$withval"/nss.h
  18911. then
  18912. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18913. $as_echo "using $withval" >&6; }
  18914. nss_inc="-I$withval"
  18915. else
  18916. echo
  18917. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18918. $as_echo "$as_me: error: $withval not found" >&2;}
  18919. { (exit 1); exit 1; }; }
  18920. fi
  18921. else
  18922. { $as_echo "$as_me:$LINENO: result: no" >&5
  18923. $as_echo "no" >&6; }
  18924. fi
  18925. # check for --with-nss-lib
  18926. { $as_echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  18927. $as_echo_n "checking for --with-nss-lib... " >&6; }
  18928. # Check whether --with-nss-lib was given.
  18929. if test "${with_nss_lib+set}" = set; then
  18930. withval=$with_nss_lib;
  18931. if test -d "$withval"
  18932. then
  18933. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18934. $as_echo "using $withval" >&6; }
  18935. nss_lib="-L$withval"
  18936. nss_libdir="$withval"
  18937. else
  18938. echo
  18939. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18940. $as_echo "$as_me: error: $withval not found" >&2;}
  18941. { (exit 1); exit 1; }; }
  18942. fi
  18943. else
  18944. { $as_echo "$as_me:$LINENO: result: no" >&5
  18945. $as_echo "no" >&6; }
  18946. fi
  18947. # if NSS is not found yet, try pkg-config
  18948. # last resort
  18949. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  18950. # Extract the first word of "pkg-config", so it can be a program name with args.
  18951. set dummy pkg-config; ac_word=$2
  18952. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18953. $as_echo_n "checking for $ac_word... " >&6; }
  18954. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18955. $as_echo_n "(cached) " >&6
  18956. else
  18957. case $PKG_CONFIG in
  18958. [\\/]* | ?:[\\/]*)
  18959. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18960. ;;
  18961. *)
  18962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18963. for as_dir in $PATH
  18964. do
  18965. IFS=$as_save_IFS
  18966. test -z "$as_dir" && as_dir=.
  18967. for ac_exec_ext in '' $ac_executable_extensions; do
  18968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18969. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18970. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18971. break 2
  18972. fi
  18973. done
  18974. done
  18975. IFS=$as_save_IFS
  18976. ;;
  18977. esac
  18978. fi
  18979. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18980. if test -n "$PKG_CONFIG"; then
  18981. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18982. $as_echo "$PKG_CONFIG" >&6; }
  18983. else
  18984. { $as_echo "$as_me:$LINENO: result: no" >&5
  18985. $as_echo "no" >&6; }
  18986. fi
  18987. { $as_echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  18988. $as_echo_n "checking for nss with pkg-config... " >&6; }
  18989. if test -n "$PKG_CONFIG"; then
  18990. if $PKG_CONFIG --exists nss; then
  18991. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  18992. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  18993. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  18994. { $as_echo "$as_me:$LINENO: result: using system NSS" >&5
  18995. $as_echo "using system NSS" >&6; }
  18996. elif $PKG_CONFIG --exists dirsec-nss; then
  18997. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  18998. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  18999. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  19000. { $as_echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  19001. $as_echo "using system dirsec NSS" >&6; }
  19002. else
  19003. { { $as_echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  19004. $as_echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  19005. { (exit 1); exit 1; }; }
  19006. fi
  19007. fi
  19008. fi
  19009. # BEGIN COPYRIGHT BLOCK
  19010. # Copyright (C) 2009 Red Hat, Inc.
  19011. # All rights reserved.
  19012. #
  19013. # This program is free software; you can redistribute it and/or
  19014. # modify it under the terms of the GNU General Public License
  19015. # as published by the Free Software Foundation; either version 2
  19016. # of the License, or (at your option) any later version.
  19017. #
  19018. # This program is distributed in the hope that it will be useful,
  19019. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19020. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19021. # GNU General Public License for more details.
  19022. #
  19023. # You should have received a copy of the GNU General Public License
  19024. # along with this program; if not, write to the Free Software
  19025. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19026. #
  19027. # END COPYRIGHT BLOCK
  19028. { $as_echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  19029. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  19030. # check for --with-openldap
  19031. { $as_echo "$as_me:$LINENO: checking for --with-openldap" >&5
  19032. $as_echo_n "checking for --with-openldap... " >&6; }
  19033. # Check whether --with-openldap was given.
  19034. if test "${with_openldap+set}" = set; then
  19035. withval=$with_openldap;
  19036. if test "$withval" = yes
  19037. then
  19038. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  19039. $as_echo "using system OpenLDAP" >&6; }
  19040. elif test "$withval" = no
  19041. then
  19042. { $as_echo "$as_me:$LINENO: result: no" >&5
  19043. $as_echo "no" >&6; }
  19044. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  19045. then
  19046. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19047. $as_echo "using $withval" >&6; }
  19048. OPENLDAPDIR=$withval
  19049. openldap_incdir="$OPENLDAPDIR/include"
  19050. openldap_inc="-I$openldap_incdir"
  19051. openldap_lib="-L$OPENLDAPDIR/lib"
  19052. openldap_libdir="$OPENLDAPDIR/lib"
  19053. openldap_bindir="$OPENLDAPDIR/bin"
  19054. with_openldap=yes
  19055. else
  19056. echo
  19057. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19058. $as_echo "$as_me: error: $withval not found" >&2;}
  19059. { (exit 1); exit 1; }; }
  19060. fi
  19061. else
  19062. { $as_echo "$as_me:$LINENO: result: no" >&5
  19063. $as_echo "no" >&6; }
  19064. fi
  19065. # check for --with-openldap-inc
  19066. { $as_echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  19067. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  19068. # Check whether --with-openldap-inc was given.
  19069. if test "${with_openldap_inc+set}" = set; then
  19070. withval=$with_openldap_inc;
  19071. if test -e "$withval"/ldap.h
  19072. then
  19073. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19074. $as_echo "using $withval" >&6; }
  19075. openldap_incdir="$withval"
  19076. openldap_inc="-I$withval"
  19077. with_openldap=yes
  19078. else
  19079. echo
  19080. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19081. $as_echo "$as_me: error: $withval not found" >&2;}
  19082. { (exit 1); exit 1; }; }
  19083. fi
  19084. else
  19085. { $as_echo "$as_me:$LINENO: result: no" >&5
  19086. $as_echo "no" >&6; }
  19087. fi
  19088. # check for --with-openldap-lib
  19089. { $as_echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  19090. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  19091. # Check whether --with-openldap-lib was given.
  19092. if test "${with_openldap_lib+set}" = set; then
  19093. withval=$with_openldap_lib;
  19094. if test -d "$withval"
  19095. then
  19096. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19097. $as_echo "using $withval" >&6; }
  19098. openldap_lib="-L$withval"
  19099. openldap_libdir="$withval"
  19100. with_openldap=yes
  19101. else
  19102. echo
  19103. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19104. $as_echo "$as_me: error: $withval not found" >&2;}
  19105. { (exit 1); exit 1; }; }
  19106. fi
  19107. else
  19108. { $as_echo "$as_me:$LINENO: result: no" >&5
  19109. $as_echo "no" >&6; }
  19110. fi
  19111. # check for --with-openldap-bin
  19112. { $as_echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  19113. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  19114. # Check whether --with-openldap-bin was given.
  19115. if test "${with_openldap_bin+set}" = set; then
  19116. withval=$with_openldap_bin;
  19117. if test -d "$withval"
  19118. then
  19119. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19120. $as_echo "using $withval" >&6; }
  19121. openldap_bindir="$withval"
  19122. with_openldap=yes
  19123. else
  19124. echo
  19125. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19126. $as_echo "$as_me: error: $withval not found" >&2;}
  19127. { (exit 1); exit 1; }; }
  19128. fi
  19129. else
  19130. { $as_echo "$as_me:$LINENO: result: no" >&5
  19131. $as_echo "no" >&6; }
  19132. fi
  19133. # if OPENLDAP is not found yet, try pkg-config
  19134. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  19135. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  19136. # Extract the first word of "pkg-config", so it can be a program name with args.
  19137. set dummy pkg-config; ac_word=$2
  19138. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19139. $as_echo_n "checking for $ac_word... " >&6; }
  19140. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  19141. $as_echo_n "(cached) " >&6
  19142. else
  19143. case $PKG_CONFIG in
  19144. [\\/]* | ?:[\\/]*)
  19145. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19146. ;;
  19147. *)
  19148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19149. for as_dir in $PATH
  19150. do
  19151. IFS=$as_save_IFS
  19152. test -z "$as_dir" && as_dir=.
  19153. for ac_exec_ext in '' $ac_executable_extensions; do
  19154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19155. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19156. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19157. break 2
  19158. fi
  19159. done
  19160. done
  19161. IFS=$as_save_IFS
  19162. ;;
  19163. esac
  19164. fi
  19165. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19166. if test -n "$PKG_CONFIG"; then
  19167. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  19168. $as_echo "$PKG_CONFIG" >&6; }
  19169. else
  19170. { $as_echo "$as_me:$LINENO: result: no" >&5
  19171. $as_echo "no" >&6; }
  19172. fi
  19173. { $as_echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  19174. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  19175. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  19176. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  19177. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  19178. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  19179. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  19180. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  19181. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  19182. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  19183. else
  19184. openldap_incdir="/usr/include"
  19185. openldap_inc="-I$openldap_incdir"
  19186. { $as_echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  19187. $as_echo "no OpenLDAP pkg-config files" >&6; }
  19188. fi
  19189. fi
  19190. fi
  19191. if test "$with_openldap" = yes ; then
  19192. save_cppflags="$CPPFLAGS"
  19193. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  19194. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  19195. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  19196. $as_echo_n "checking for ldap_features.h... " >&6; }
  19197. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  19198. $as_echo_n "(cached) " >&6
  19199. fi
  19200. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  19201. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  19202. else
  19203. # Is the header compilable?
  19204. { $as_echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  19205. $as_echo_n "checking ldap_features.h usability... " >&6; }
  19206. cat >conftest.$ac_ext <<_ACEOF
  19207. /* confdefs.h. */
  19208. _ACEOF
  19209. cat confdefs.h >>conftest.$ac_ext
  19210. cat >>conftest.$ac_ext <<_ACEOF
  19211. /* end confdefs.h. */
  19212. $ac_includes_default
  19213. #include <ldap_features.h>
  19214. _ACEOF
  19215. rm -f conftest.$ac_objext
  19216. if { (ac_try="$ac_compile"
  19217. case "(($ac_try" in
  19218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19219. *) ac_try_echo=$ac_try;;
  19220. esac
  19221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19222. $as_echo "$ac_try_echo") >&5
  19223. (eval "$ac_compile") 2>conftest.er1
  19224. ac_status=$?
  19225. grep -v '^ *+' conftest.er1 >conftest.err
  19226. rm -f conftest.er1
  19227. cat conftest.err >&5
  19228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19229. (exit $ac_status); } && {
  19230. test -z "$ac_c_werror_flag" ||
  19231. test ! -s conftest.err
  19232. } && test -s conftest.$ac_objext; then
  19233. ac_header_compiler=yes
  19234. else
  19235. $as_echo "$as_me: failed program was:" >&5
  19236. sed 's/^/| /' conftest.$ac_ext >&5
  19237. ac_header_compiler=no
  19238. fi
  19239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19240. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19241. $as_echo "$ac_header_compiler" >&6; }
  19242. # Is the header present?
  19243. { $as_echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  19244. $as_echo_n "checking ldap_features.h presence... " >&6; }
  19245. cat >conftest.$ac_ext <<_ACEOF
  19246. /* confdefs.h. */
  19247. _ACEOF
  19248. cat confdefs.h >>conftest.$ac_ext
  19249. cat >>conftest.$ac_ext <<_ACEOF
  19250. /* end confdefs.h. */
  19251. #include <ldap_features.h>
  19252. _ACEOF
  19253. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19254. case "(($ac_try" in
  19255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19256. *) ac_try_echo=$ac_try;;
  19257. esac
  19258. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19259. $as_echo "$ac_try_echo") >&5
  19260. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19261. ac_status=$?
  19262. grep -v '^ *+' conftest.er1 >conftest.err
  19263. rm -f conftest.er1
  19264. cat conftest.err >&5
  19265. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19266. (exit $ac_status); } >/dev/null && {
  19267. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19268. test ! -s conftest.err
  19269. }; then
  19270. ac_header_preproc=yes
  19271. else
  19272. $as_echo "$as_me: failed program was:" >&5
  19273. sed 's/^/| /' conftest.$ac_ext >&5
  19274. ac_header_preproc=no
  19275. fi
  19276. rm -f conftest.err conftest.$ac_ext
  19277. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19278. $as_echo "$ac_header_preproc" >&6; }
  19279. # So? What about this header?
  19280. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19281. yes:no: )
  19282. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19283. $as_echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19284. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  19285. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  19286. ac_header_preproc=yes
  19287. ;;
  19288. no:yes:* )
  19289. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  19290. $as_echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  19291. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  19292. $as_echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  19293. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  19294. $as_echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  19295. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  19296. $as_echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19297. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  19298. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  19299. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  19300. $as_echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  19301. ( cat <<\_ASBOX
  19302. ## ------------------------------------------ ##
  19303. ## Report this to http://bugzilla.redhat.com/ ##
  19304. ## ------------------------------------------ ##
  19305. _ASBOX
  19306. ) | sed "s/^/$as_me: WARNING: /" >&2
  19307. ;;
  19308. esac
  19309. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  19310. $as_echo_n "checking for ldap_features.h... " >&6; }
  19311. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  19312. $as_echo_n "(cached) " >&6
  19313. else
  19314. ac_cv_header_ldap_features_h=$ac_header_preproc
  19315. fi
  19316. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  19317. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  19318. fi
  19319. if test "x$ac_cv_header_ldap_features_h" = x""yes; then
  19320. :
  19321. else
  19322. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  19323. $as_echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  19324. { (exit 1); exit 1; }; }
  19325. fi
  19326. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  19327. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  19328. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  19329. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  19330. save_ldflags="$LDFLAGS"
  19331. LDFLAGS="$openldap_lib $LDFLAGS"
  19332. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  19333. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  19334. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  19335. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19336. $as_echo_n "(cached) " >&6
  19337. else
  19338. ac_check_lib_save_LIBS=$LIBS
  19339. LIBS="-lldap$ol_libver $LIBS"
  19340. cat >conftest.$ac_ext <<_ACEOF
  19341. /* confdefs.h. */
  19342. _ACEOF
  19343. cat confdefs.h >>conftest.$ac_ext
  19344. cat >>conftest.$ac_ext <<_ACEOF
  19345. /* end confdefs.h. */
  19346. /* Override any GCC internal prototype to avoid an error.
  19347. Use char because int might match the return type of a GCC
  19348. builtin and then its argument prototype would still apply. */
  19349. #ifdef __cplusplus
  19350. extern "C"
  19351. #endif
  19352. char ldap_initialize ();
  19353. int
  19354. main ()
  19355. {
  19356. return ldap_initialize ();
  19357. ;
  19358. return 0;
  19359. }
  19360. _ACEOF
  19361. rm -f conftest.$ac_objext conftest$ac_exeext
  19362. if { (ac_try="$ac_link"
  19363. case "(($ac_try" in
  19364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19365. *) ac_try_echo=$ac_try;;
  19366. esac
  19367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19368. $as_echo "$ac_try_echo") >&5
  19369. (eval "$ac_link") 2>conftest.er1
  19370. ac_status=$?
  19371. grep -v '^ *+' conftest.er1 >conftest.err
  19372. rm -f conftest.er1
  19373. cat conftest.err >&5
  19374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19375. (exit $ac_status); } && {
  19376. test -z "$ac_c_werror_flag" ||
  19377. test ! -s conftest.err
  19378. } && test -s conftest$ac_exeext && {
  19379. test "$cross_compiling" = yes ||
  19380. $as_test_x conftest$ac_exeext
  19381. }; then
  19382. eval "$as_ac_Lib=yes"
  19383. else
  19384. $as_echo "$as_me: failed program was:" >&5
  19385. sed 's/^/| /' conftest.$ac_ext >&5
  19386. eval "$as_ac_Lib=no"
  19387. fi
  19388. rm -rf conftest.dSYM
  19389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19390. conftest$ac_exeext conftest.$ac_ext
  19391. LIBS=$ac_check_lib_save_LIBS
  19392. fi
  19393. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19394. $as_echo "$as_val"'`
  19395. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19396. $as_echo "$ac_res" >&6; }
  19397. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19398. $as_echo "$as_val"'`
  19399. if test "x$as_val" = x""yes; then
  19400. have_ldap_lib=1
  19401. fi
  19402. if test -z "$have_ldap_lib" ; then
  19403. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  19404. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  19405. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  19406. $as_echo_n "(cached) " >&6
  19407. else
  19408. ac_check_lib_save_LIBS=$LIBS
  19409. LIBS="-lldap $LIBS"
  19410. cat >conftest.$ac_ext <<_ACEOF
  19411. /* confdefs.h. */
  19412. _ACEOF
  19413. cat confdefs.h >>conftest.$ac_ext
  19414. cat >>conftest.$ac_ext <<_ACEOF
  19415. /* end confdefs.h. */
  19416. /* Override any GCC internal prototype to avoid an error.
  19417. Use char because int might match the return type of a GCC
  19418. builtin and then its argument prototype would still apply. */
  19419. #ifdef __cplusplus
  19420. extern "C"
  19421. #endif
  19422. char ldap_initialize ();
  19423. int
  19424. main ()
  19425. {
  19426. return ldap_initialize ();
  19427. ;
  19428. return 0;
  19429. }
  19430. _ACEOF
  19431. rm -f conftest.$ac_objext conftest$ac_exeext
  19432. if { (ac_try="$ac_link"
  19433. case "(($ac_try" in
  19434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19435. *) ac_try_echo=$ac_try;;
  19436. esac
  19437. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19438. $as_echo "$ac_try_echo") >&5
  19439. (eval "$ac_link") 2>conftest.er1
  19440. ac_status=$?
  19441. grep -v '^ *+' conftest.er1 >conftest.err
  19442. rm -f conftest.er1
  19443. cat conftest.err >&5
  19444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19445. (exit $ac_status); } && {
  19446. test -z "$ac_c_werror_flag" ||
  19447. test ! -s conftest.err
  19448. } && test -s conftest$ac_exeext && {
  19449. test "$cross_compiling" = yes ||
  19450. $as_test_x conftest$ac_exeext
  19451. }; then
  19452. ac_cv_lib_ldap_ldap_initialize=yes
  19453. else
  19454. $as_echo "$as_me: failed program was:" >&5
  19455. sed 's/^/| /' conftest.$ac_ext >&5
  19456. ac_cv_lib_ldap_ldap_initialize=no
  19457. fi
  19458. rm -rf conftest.dSYM
  19459. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19460. conftest$ac_exeext conftest.$ac_ext
  19461. LIBS=$ac_check_lib_save_LIBS
  19462. fi
  19463. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  19464. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  19465. if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then
  19466. unset ol_libver
  19467. else
  19468. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  19469. $as_echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  19470. { (exit 1); exit 1; }; }
  19471. fi
  19472. fi
  19473. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  19474. { $as_echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  19475. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  19476. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19477. $as_echo_n "(cached) " >&6
  19478. else
  19479. ac_check_lib_save_LIBS=$LIBS
  19480. LIBS="-lldap$ol_libver $LIBS"
  19481. cat >conftest.$ac_ext <<_ACEOF
  19482. /* confdefs.h. */
  19483. _ACEOF
  19484. cat confdefs.h >>conftest.$ac_ext
  19485. cat >>conftest.$ac_ext <<_ACEOF
  19486. /* end confdefs.h. */
  19487. /* Override any GCC internal prototype to avoid an error.
  19488. Use char because int might match the return type of a GCC
  19489. builtin and then its argument prototype would still apply. */
  19490. #ifdef __cplusplus
  19491. extern "C"
  19492. #endif
  19493. char ldap_url_parse_ext ();
  19494. int
  19495. main ()
  19496. {
  19497. return ldap_url_parse_ext ();
  19498. ;
  19499. return 0;
  19500. }
  19501. _ACEOF
  19502. rm -f conftest.$ac_objext conftest$ac_exeext
  19503. if { (ac_try="$ac_link"
  19504. case "(($ac_try" in
  19505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19506. *) ac_try_echo=$ac_try;;
  19507. esac
  19508. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19509. $as_echo "$ac_try_echo") >&5
  19510. (eval "$ac_link") 2>conftest.er1
  19511. ac_status=$?
  19512. grep -v '^ *+' conftest.er1 >conftest.err
  19513. rm -f conftest.er1
  19514. cat conftest.err >&5
  19515. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19516. (exit $ac_status); } && {
  19517. test -z "$ac_c_werror_flag" ||
  19518. test ! -s conftest.err
  19519. } && test -s conftest$ac_exeext && {
  19520. test "$cross_compiling" = yes ||
  19521. $as_test_x conftest$ac_exeext
  19522. }; then
  19523. eval "$as_ac_Lib=yes"
  19524. else
  19525. $as_echo "$as_me: failed program was:" >&5
  19526. sed 's/^/| /' conftest.$ac_ext >&5
  19527. eval "$as_ac_Lib=no"
  19528. fi
  19529. rm -rf conftest.dSYM
  19530. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19531. conftest$ac_exeext conftest.$ac_ext
  19532. LIBS=$ac_check_lib_save_LIBS
  19533. fi
  19534. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19535. $as_echo "$as_val"'`
  19536. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19537. $as_echo "$ac_res" >&6; }
  19538. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19539. $as_echo "$as_val"'`
  19540. if test "x$as_val" = x""yes; then
  19541. cat >>confdefs.h <<\_ACEOF
  19542. #define HAVE_LDAP_URL_PARSE_EXT 1
  19543. _ACEOF
  19544. fi
  19545. ldap_lib_ldif=""
  19546. LDFLAGS="$LDFLAGS"
  19547. as_ac_Lib=`$as_echo "ac_cv_lib_ldif$ol_libver''__init" | $as_tr_sh`
  19548. { $as_echo "$as_me:$LINENO: checking for _init in -lldif$ol_libver" >&5
  19549. $as_echo_n "checking for _init in -lldif$ol_libver... " >&6; }
  19550. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19551. $as_echo_n "(cached) " >&6
  19552. else
  19553. ac_check_lib_save_LIBS=$LIBS
  19554. LIBS="-lldif$ol_libver $LIBS"
  19555. cat >conftest.$ac_ext <<_ACEOF
  19556. /* confdefs.h. */
  19557. _ACEOF
  19558. cat confdefs.h >>conftest.$ac_ext
  19559. cat >>conftest.$ac_ext <<_ACEOF
  19560. /* end confdefs.h. */
  19561. /* Override any GCC internal prototype to avoid an error.
  19562. Use char because int might match the return type of a GCC
  19563. builtin and then its argument prototype would still apply. */
  19564. #ifdef __cplusplus
  19565. extern "C"
  19566. #endif
  19567. char _init ();
  19568. int
  19569. main ()
  19570. {
  19571. return _init ();
  19572. ;
  19573. return 0;
  19574. }
  19575. _ACEOF
  19576. rm -f conftest.$ac_objext conftest$ac_exeext
  19577. if { (ac_try="$ac_link"
  19578. case "(($ac_try" in
  19579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19580. *) ac_try_echo=$ac_try;;
  19581. esac
  19582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19583. $as_echo "$ac_try_echo") >&5
  19584. (eval "$ac_link") 2>conftest.er1
  19585. ac_status=$?
  19586. grep -v '^ *+' conftest.er1 >conftest.err
  19587. rm -f conftest.er1
  19588. cat conftest.err >&5
  19589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19590. (exit $ac_status); } && {
  19591. test -z "$ac_c_werror_flag" ||
  19592. test ! -s conftest.err
  19593. } && test -s conftest$ac_exeext && {
  19594. test "$cross_compiling" = yes ||
  19595. $as_test_x conftest$ac_exeext
  19596. }; then
  19597. eval "$as_ac_Lib=yes"
  19598. else
  19599. $as_echo "$as_me: failed program was:" >&5
  19600. sed 's/^/| /' conftest.$ac_ext >&5
  19601. eval "$as_ac_Lib=no"
  19602. fi
  19603. rm -rf conftest.dSYM
  19604. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19605. conftest$ac_exeext conftest.$ac_ext
  19606. LIBS=$ac_check_lib_save_LIBS
  19607. fi
  19608. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19609. $as_echo "$as_val"'`
  19610. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19611. $as_echo "$ac_res" >&6; }
  19612. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19613. $as_echo "$as_val"'`
  19614. if test "x$as_val" = x""yes; then
  19615. ldap_lib_ldif=-lldif$ol_libver
  19616. else
  19617. ldap_lib_ldif=
  19618. fi
  19619. if test -z "$ldap_lib_ldif" ; then
  19620. { $as_echo "$as_me:$LINENO: checking for _init in -lldif" >&5
  19621. $as_echo_n "checking for _init in -lldif... " >&6; }
  19622. if test "${ac_cv_lib_ldif__init+set}" = set; then
  19623. $as_echo_n "(cached) " >&6
  19624. else
  19625. ac_check_lib_save_LIBS=$LIBS
  19626. LIBS="-lldif $LIBS"
  19627. cat >conftest.$ac_ext <<_ACEOF
  19628. /* confdefs.h. */
  19629. _ACEOF
  19630. cat confdefs.h >>conftest.$ac_ext
  19631. cat >>conftest.$ac_ext <<_ACEOF
  19632. /* end confdefs.h. */
  19633. /* Override any GCC internal prototype to avoid an error.
  19634. Use char because int might match the return type of a GCC
  19635. builtin and then its argument prototype would still apply. */
  19636. #ifdef __cplusplus
  19637. extern "C"
  19638. #endif
  19639. char _init ();
  19640. int
  19641. main ()
  19642. {
  19643. return _init ();
  19644. ;
  19645. return 0;
  19646. }
  19647. _ACEOF
  19648. rm -f conftest.$ac_objext conftest$ac_exeext
  19649. if { (ac_try="$ac_link"
  19650. case "(($ac_try" in
  19651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19652. *) ac_try_echo=$ac_try;;
  19653. esac
  19654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19655. $as_echo "$ac_try_echo") >&5
  19656. (eval "$ac_link") 2>conftest.er1
  19657. ac_status=$?
  19658. grep -v '^ *+' conftest.er1 >conftest.err
  19659. rm -f conftest.er1
  19660. cat conftest.err >&5
  19661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19662. (exit $ac_status); } && {
  19663. test -z "$ac_c_werror_flag" ||
  19664. test ! -s conftest.err
  19665. } && test -s conftest$ac_exeext && {
  19666. test "$cross_compiling" = yes ||
  19667. $as_test_x conftest$ac_exeext
  19668. }; then
  19669. ac_cv_lib_ldif__init=yes
  19670. else
  19671. $as_echo "$as_me: failed program was:" >&5
  19672. sed 's/^/| /' conftest.$ac_ext >&5
  19673. ac_cv_lib_ldif__init=no
  19674. fi
  19675. rm -rf conftest.dSYM
  19676. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19677. conftest$ac_exeext conftest.$ac_ext
  19678. LIBS=$ac_check_lib_save_LIBS
  19679. fi
  19680. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldif__init" >&5
  19681. $as_echo "$ac_cv_lib_ldif__init" >&6; }
  19682. if test "x$ac_cv_lib_ldif__init" = x""yes; then
  19683. ldap_lib_ldif=-lldif
  19684. else
  19685. ldap_lib_ldif=
  19686. fi
  19687. fi
  19688. LDFLAGS="$save_ldflags"
  19689. CPPFLAGS="$save_cppflags"
  19690. cat >>confdefs.h <<\_ACEOF
  19691. #define USE_OPENLDAP 1
  19692. _ACEOF
  19693. # where to find ldapsearch, et. al.
  19694. ldaptool_bindir=$openldap_bindir
  19695. # default options to pass to the tools
  19696. # use -x because all of our scripts use simple bind
  19697. ldaptool_opts=-x
  19698. # get plain output from ldapsearch - no version, no comments
  19699. plainldif_opts=-LLL
  19700. fi
  19701. # BEGIN COPYRIGHT BLOCK
  19702. # Copyright (C) 2007 Red Hat, Inc.
  19703. # All rights reserved.
  19704. #
  19705. # This program is free software; you can redistribute it and/or
  19706. # modify it under the terms of the GNU General Public License
  19707. # as published by the Free Software Foundation; either version 2
  19708. # of the License, or (at your option) any later version.
  19709. #
  19710. # This program is distributed in the hope that it will be useful,
  19711. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19712. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19713. # GNU General Public License for more details.
  19714. #
  19715. # You should have received a copy of the GNU General Public License
  19716. # along with this program; if not, write to the Free Software
  19717. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19718. #
  19719. # END COPYRIGHT BLOCK
  19720. { $as_echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  19721. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  19722. # check for --with-ldapsdk
  19723. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  19724. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  19725. # Check whether --with-ldapsdk was given.
  19726. if test "${with_ldapsdk+set}" = set; then
  19727. withval=$with_ldapsdk;
  19728. if test "$withval" = yes
  19729. then
  19730. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19731. $as_echo "yes" >&6; }
  19732. elif test "$withval" = no
  19733. then
  19734. { $as_echo "$as_me:$LINENO: result: no" >&5
  19735. $as_echo "no" >&6; }
  19736. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  19737. then
  19738. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19739. $as_echo "using $withval" >&6; }
  19740. LDAPSDKDIR=$withval
  19741. ldapsdk_inc="-I$LDAPSDKDIR/include"
  19742. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  19743. ldapsdk_libdir="$LDAPSDKDIR/lib"
  19744. ldapsdk_bindir="$LDAPSDKDIR/bin"
  19745. with_ldapsdk=yes
  19746. else
  19747. echo
  19748. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19749. $as_echo "$as_me: error: $withval not found" >&2;}
  19750. { (exit 1); exit 1; }; }
  19751. fi
  19752. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  19753. then
  19754. { { $as_echo "$as_me:$LINENO: error: Cannot use both LDAPSDK and OpenLDAP." >&5
  19755. $as_echo "$as_me: error: Cannot use both LDAPSDK and OpenLDAP." >&2;}
  19756. { (exit 1); exit 1; }; }
  19757. fi
  19758. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  19759. then
  19760. { { $as_echo "$as_me:$LINENO: error: Either LDAPSDK or OpenLDAP must be used." >&5
  19761. $as_echo "$as_me: error: Either LDAPSDK or OpenLDAP must be used." >&2;}
  19762. { (exit 1); exit 1; }; }
  19763. fi
  19764. else
  19765. if test "$with_openldap" = yes
  19766. then
  19767. { $as_echo "$as_me:$LINENO: result: no" >&5
  19768. $as_echo "no" >&6; }
  19769. else
  19770. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19771. $as_echo "yes" >&6; }
  19772. with_ldapsdk=yes
  19773. fi
  19774. fi
  19775. # check for --with-ldapsdk-inc
  19776. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  19777. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  19778. # Check whether --with-ldapsdk-inc was given.
  19779. if test "${with_ldapsdk_inc+set}" = set; then
  19780. withval=$with_ldapsdk_inc;
  19781. if test -e "$withval"/ldap.h
  19782. then
  19783. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19784. $as_echo "using $withval" >&6; }
  19785. ldapsdk_inc="-I$withval"
  19786. with_ldapsdk=yes
  19787. else
  19788. echo
  19789. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19790. $as_echo "$as_me: error: $withval not found" >&2;}
  19791. { (exit 1); exit 1; }; }
  19792. fi
  19793. else
  19794. { $as_echo "$as_me:$LINENO: result: no" >&5
  19795. $as_echo "no" >&6; }
  19796. fi
  19797. # check for --with-ldapsdk-lib
  19798. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  19799. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  19800. # Check whether --with-ldapsdk-lib was given.
  19801. if test "${with_ldapsdk_lib+set}" = set; then
  19802. withval=$with_ldapsdk_lib;
  19803. if test -d "$withval"
  19804. then
  19805. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19806. $as_echo "using $withval" >&6; }
  19807. ldapsdk_lib="-L$withval"
  19808. ldapsdk_libdir="$withval"
  19809. with_ldapsdk=yes
  19810. else
  19811. echo
  19812. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19813. $as_echo "$as_me: error: $withval not found" >&2;}
  19814. { (exit 1); exit 1; }; }
  19815. fi
  19816. else
  19817. { $as_echo "$as_me:$LINENO: result: no" >&5
  19818. $as_echo "no" >&6; }
  19819. fi
  19820. # check for --with-ldapsdk-bin
  19821. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  19822. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  19823. # Check whether --with-ldapsdk-bin was given.
  19824. if test "${with_ldapsdk_bin+set}" = set; then
  19825. withval=$with_ldapsdk_bin;
  19826. if test -d "$withval"
  19827. then
  19828. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19829. $as_echo "using $withval" >&6; }
  19830. ldapsdk_bindir="$withval"
  19831. with_ldapsdk=yes
  19832. else
  19833. echo
  19834. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19835. $as_echo "$as_me: error: $withval not found" >&2;}
  19836. { (exit 1); exit 1; }; }
  19837. fi
  19838. else
  19839. { $as_echo "$as_me:$LINENO: result: no" >&5
  19840. $as_echo "no" >&6; }
  19841. fi
  19842. # if LDAPSDK is not found yet, try pkg-config
  19843. # last resort
  19844. if test "$with_ldapsdk" = yes ; then
  19845. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  19846. # Extract the first word of "pkg-config", so it can be a program name with args.
  19847. set dummy pkg-config; ac_word=$2
  19848. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19849. $as_echo_n "checking for $ac_word... " >&6; }
  19850. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  19851. $as_echo_n "(cached) " >&6
  19852. else
  19853. case $PKG_CONFIG in
  19854. [\\/]* | ?:[\\/]*)
  19855. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19856. ;;
  19857. *)
  19858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19859. for as_dir in $PATH
  19860. do
  19861. IFS=$as_save_IFS
  19862. test -z "$as_dir" && as_dir=.
  19863. for ac_exec_ext in '' $ac_executable_extensions; do
  19864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19865. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19866. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19867. break 2
  19868. fi
  19869. done
  19870. done
  19871. IFS=$as_save_IFS
  19872. ;;
  19873. esac
  19874. fi
  19875. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19876. if test -n "$PKG_CONFIG"; then
  19877. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  19878. $as_echo "$PKG_CONFIG" >&6; }
  19879. else
  19880. { $as_echo "$as_me:$LINENO: result: no" >&5
  19881. $as_echo "no" >&6; }
  19882. fi
  19883. { $as_echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  19884. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  19885. if test -n "$PKG_CONFIG"; then
  19886. if $PKG_CONFIG --exists mozldap6; then
  19887. mozldappkg=mozldap6
  19888. elif $PKG_CONFIG --exists mozldap; then
  19889. mozldappkg=mozldap
  19890. else
  19891. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  19892. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  19893. { (exit 1); exit 1; }; }
  19894. fi
  19895. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  19896. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  19897. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  19898. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  19899. { $as_echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  19900. $as_echo "using system $mozldappkg" >&6; }
  19901. fi
  19902. fi
  19903. fi
  19904. if test "$with_ldapsdk" = yes ; then
  19905. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  19906. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  19907. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  19908. { (exit 1); exit 1; }; }
  19909. fi
  19910. if test -z "$ldapsdk_bindir" ; then
  19911. if -d $libdir/mozldap6 ; then
  19912. ldapsdk_bindir=$libdir/mozldap6
  19913. else
  19914. ldapsdk_bindir=$libdir/mozldap
  19915. fi
  19916. fi
  19917. save_cppflags="$CPPFLAGS"
  19918. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  19919. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  19920. $as_echo_n "checking for ldap.h... " >&6; }
  19921. if test "${ac_cv_header_ldap_h+set}" = set; then
  19922. $as_echo_n "(cached) " >&6
  19923. else
  19924. cat >conftest.$ac_ext <<_ACEOF
  19925. /* confdefs.h. */
  19926. _ACEOF
  19927. cat confdefs.h >>conftest.$ac_ext
  19928. cat >>conftest.$ac_ext <<_ACEOF
  19929. /* end confdefs.h. */
  19930. #include <ldap-standard.h>
  19931. #if LDAP_VENDOR_VERSION < 600
  19932. #error The LDAP C SDK version is not supported
  19933. #endif
  19934. #include <ldap.h>
  19935. _ACEOF
  19936. rm -f conftest.$ac_objext
  19937. if { (ac_try="$ac_compile"
  19938. case "(($ac_try" in
  19939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19940. *) ac_try_echo=$ac_try;;
  19941. esac
  19942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19943. $as_echo "$ac_try_echo") >&5
  19944. (eval "$ac_compile") 2>conftest.er1
  19945. ac_status=$?
  19946. grep -v '^ *+' conftest.er1 >conftest.err
  19947. rm -f conftest.er1
  19948. cat conftest.err >&5
  19949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19950. (exit $ac_status); } && {
  19951. test -z "$ac_c_werror_flag" ||
  19952. test ! -s conftest.err
  19953. } && test -s conftest.$ac_objext; then
  19954. ac_cv_header_ldap_h=yes
  19955. else
  19956. $as_echo "$as_me: failed program was:" >&5
  19957. sed 's/^/| /' conftest.$ac_ext >&5
  19958. ac_cv_header_ldap_h=no
  19959. fi
  19960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19961. fi
  19962. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  19963. $as_echo "$ac_cv_header_ldap_h" >&6; }
  19964. if test "x$ac_cv_header_ldap_h" = x""yes; then
  19965. isversion6=1
  19966. else
  19967. isversion6=
  19968. fi
  19969. CPPFLAGS="$save_cppflags"
  19970. if test -z "$isversion6" ; then
  19971. { { $as_echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  19972. $as_echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  19973. { (exit 1); exit 1; }; }
  19974. fi
  19975. cat >>confdefs.h <<\_ACEOF
  19976. #define USE_MOZLDAP 1
  19977. _ACEOF
  19978. cat >>confdefs.h <<\_ACEOF
  19979. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  19980. _ACEOF
  19981. # where to find ldapsearch, et. al.
  19982. ldaptool_bindir=$ldapsdk_bindir
  19983. # default options to pass to the tools
  19984. ldaptool_opts=
  19985. # get plain output from ldapsearch - no version
  19986. plainldif_opts=-1
  19987. fi
  19988. # BEGIN COPYRIGHT BLOCK
  19989. # Copyright (C) 2007 Red Hat, Inc.
  19990. # All rights reserved.
  19991. #
  19992. # This program is free software; you can redistribute it and/or
  19993. # modify it under the terms of the GNU General Public License
  19994. # as published by the Free Software Foundation; either version 2
  19995. # of the License, or (at your option) any later version.
  19996. #
  19997. # This program is distributed in the hope that it will be useful,
  19998. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19999. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20000. # GNU General Public License for more details.
  20001. #
  20002. # You should have received a copy of the GNU General Public License
  20003. # along with this program; if not, write to the Free Software
  20004. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20005. #
  20006. # END COPYRIGHT BLOCK
  20007. { $as_echo "$as_me:$LINENO: checking for db..." >&5
  20008. $as_echo "$as_me: checking for db..." >&6;}
  20009. { $as_echo "$as_me:$LINENO: checking for --with-db" >&5
  20010. $as_echo_n "checking for --with-db... " >&6; }
  20011. # Check whether --with-db was given.
  20012. if test "${with_db+set}" = set; then
  20013. withval=$with_db;
  20014. if test "$withval" = "yes"; then
  20015. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20016. $as_echo "yes" >&6; }
  20017. elif test "$withval" = "no"; then
  20018. { $as_echo "$as_me:$LINENO: result: no" >&5
  20019. $as_echo "no" >&6; }
  20020. { { $as_echo "$as_me:$LINENO: error: db is required." >&5
  20021. $as_echo "$as_me: error: db is required." >&2;}
  20022. { (exit 1); exit 1; }; }
  20023. elif test -d "$withval"/include -a -d "$withval"/lib; then
  20024. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20025. $as_echo "using $withval" >&6; }
  20026. DBDIR=$withval
  20027. db_lib="-L$DBDIR/lib"
  20028. db_libdir="$DBDIR/lib"
  20029. db_incdir="$DBDIR/include"
  20030. if ! test -e "$db_incdir/db.h" ; then
  20031. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  20032. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  20033. { (exit 1); exit 1; }; }
  20034. fi
  20035. db_inc="-I$db_incdir"
  20036. else
  20037. echo
  20038. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20039. $as_echo "$as_me: error: $withval not found" >&2;}
  20040. { (exit 1); exit 1; }; }
  20041. fi
  20042. else
  20043. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20044. $as_echo "yes" >&6; }
  20045. fi
  20046. # check for --with-db-inc
  20047. { $as_echo "$as_me:$LINENO: checking for --with-db-inc" >&5
  20048. $as_echo_n "checking for --with-db-inc... " >&6; }
  20049. # Check whether --with-db-inc was given.
  20050. if test "${with_db_inc+set}" = set; then
  20051. withval=$with_db_inc;
  20052. if test -e "$withval"/db.h
  20053. then
  20054. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20055. $as_echo "using $withval" >&6; }
  20056. db_incdir="$withval"
  20057. db_inc="-I$withval"
  20058. else
  20059. echo
  20060. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20061. $as_echo "$as_me: error: $withval not found" >&2;}
  20062. { (exit 1); exit 1; }; }
  20063. fi
  20064. else
  20065. { $as_echo "$as_me:$LINENO: result: no" >&5
  20066. $as_echo "no" >&6; }
  20067. fi
  20068. # check for --with-db-lib
  20069. { $as_echo "$as_me:$LINENO: checking for --with-db-lib" >&5
  20070. $as_echo_n "checking for --with-db-lib... " >&6; }
  20071. # Check whether --with-db-lib was given.
  20072. if test "${with_db_lib+set}" = set; then
  20073. withval=$with_db_lib;
  20074. if test -d "$withval"
  20075. then
  20076. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20077. $as_echo "using $withval" >&6; }
  20078. db_lib="-L$withval"
  20079. db_libdir="$withval"
  20080. else
  20081. echo
  20082. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20083. $as_echo "$as_me: error: $withval not found" >&2;}
  20084. { (exit 1); exit 1; }; }
  20085. fi
  20086. else
  20087. { $as_echo "$as_me:$LINENO: result: no" >&5
  20088. $as_echo "no" >&6; }
  20089. fi
  20090. if test -z "$db_inc"; then
  20091. { $as_echo "$as_me:$LINENO: checking for db.h" >&5
  20092. $as_echo_n "checking for db.h... " >&6; }
  20093. if test -f "/usr/include/db4/db.h"; then
  20094. { $as_echo "$as_me:$LINENO: result: using /usr/include/db4/db.h" >&5
  20095. $as_echo "using /usr/include/db4/db.h" >&6; }
  20096. db_incdir="/usr/include/db4"
  20097. db_inc="-I/usr/include/db4"
  20098. db_lib='-L$(libdir)'
  20099. db_libdir='$(libdir)'
  20100. elif test -f "/usr/include/libdb/db.h"; then
  20101. { $as_echo "$as_me:$LINENO: result: using /usr/include/libdb/db.h" >&5
  20102. $as_echo "using /usr/include/libdb/db.h" >&6; }
  20103. db_incdir="/usr/include/libdb"
  20104. db_inc="-I/usr/include/libdb"
  20105. db_lib='-L$(libdir)'
  20106. db_libdir='$(libdir)'
  20107. elif test -f "/usr/include/db.h"; then
  20108. { $as_echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  20109. $as_echo "using /usr/include/db.h" >&6; }
  20110. db_incdir="/usr/include"
  20111. db_inc="-I/usr/include"
  20112. db_lib='-L$(libdir)'
  20113. db_libdir='$(libdir)'
  20114. else
  20115. { $as_echo "$as_me:$LINENO: result: no" >&5
  20116. $as_echo "no" >&6; }
  20117. { { $as_echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  20118. $as_echo "$as_me: error: db not found, specify with --with-db." >&2;}
  20119. { (exit 1); exit 1; }; }
  20120. fi
  20121. fi
  20122. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  20123. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  20124. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  20125. db_libver=${db_ver_maj}.${db_ver_min}
  20126. save_ldflags="$LDFLAGS"
  20127. LDFLAGS="$db_lib $LDFLAGS"
  20128. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  20129. { $as_echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  20130. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  20131. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  20132. $as_echo_n "(cached) " >&6
  20133. else
  20134. ac_check_lib_save_LIBS=$LIBS
  20135. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  20136. cat >conftest.$ac_ext <<_ACEOF
  20137. /* confdefs.h. */
  20138. _ACEOF
  20139. cat confdefs.h >>conftest.$ac_ext
  20140. cat >>conftest.$ac_ext <<_ACEOF
  20141. /* end confdefs.h. */
  20142. /* Override any GCC internal prototype to avoid an error.
  20143. Use char because int might match the return type of a GCC
  20144. builtin and then its argument prototype would still apply. */
  20145. #ifdef __cplusplus
  20146. extern "C"
  20147. #endif
  20148. char db_create ();
  20149. int
  20150. main ()
  20151. {
  20152. return db_create ();
  20153. ;
  20154. return 0;
  20155. }
  20156. _ACEOF
  20157. rm -f conftest.$ac_objext conftest$ac_exeext
  20158. if { (ac_try="$ac_link"
  20159. case "(($ac_try" in
  20160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20161. *) ac_try_echo=$ac_try;;
  20162. esac
  20163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20164. $as_echo "$ac_try_echo") >&5
  20165. (eval "$ac_link") 2>conftest.er1
  20166. ac_status=$?
  20167. grep -v '^ *+' conftest.er1 >conftest.err
  20168. rm -f conftest.er1
  20169. cat conftest.err >&5
  20170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20171. (exit $ac_status); } && {
  20172. test -z "$ac_c_werror_flag" ||
  20173. test ! -s conftest.err
  20174. } && test -s conftest$ac_exeext && {
  20175. test "$cross_compiling" = yes ||
  20176. $as_test_x conftest$ac_exeext
  20177. }; then
  20178. eval "$as_ac_Lib=yes"
  20179. else
  20180. $as_echo "$as_me: failed program was:" >&5
  20181. sed 's/^/| /' conftest.$ac_ext >&5
  20182. eval "$as_ac_Lib=no"
  20183. fi
  20184. rm -rf conftest.dSYM
  20185. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20186. conftest$ac_exeext conftest.$ac_ext
  20187. LIBS=$ac_check_lib_save_LIBS
  20188. fi
  20189. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  20190. $as_echo "$as_val"'`
  20191. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20192. $as_echo "$ac_res" >&6; }
  20193. as_val=`eval 'as_val=${'$as_ac_Lib'}
  20194. $as_echo "$as_val"'`
  20195. if test "x$as_val" = x""yes; then
  20196. true
  20197. else
  20198. { { $as_echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  20199. $as_echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  20200. { (exit 1); exit 1; }; }
  20201. fi
  20202. LDFLAGS="$save_ldflags"
  20203. # if DB is not found yet, try pkg-config
  20204. # last resort
  20205. # Although the other db_* variables are correctly assigned at this point,
  20206. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  20207. if test -n "$PKG_CONFIG"; then
  20208. if $PKG_CONFIG --exists db; then
  20209. db_bindir=`$PKG_CONFIG --variable=bindir db`
  20210. else
  20211. db_bindir=/usr/bin
  20212. fi
  20213. else
  20214. db_bindir=/usr/bin
  20215. fi
  20216. # BEGIN COPYRIGHT BLOCK
  20217. # Copyright (C) 2007 Red Hat, Inc.
  20218. # All rights reserved.
  20219. #
  20220. # This program is free software; you can redistribute it and/or
  20221. # modify it under the terms of the GNU General Public License
  20222. # as published by the Free Software Foundation; either version 2
  20223. # of the License, or (at your option) any later version.
  20224. #
  20225. # This program is distributed in the hope that it will be useful,
  20226. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20227. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20228. # GNU General Public License for more details.
  20229. #
  20230. # You should have received a copy of the GNU General Public License
  20231. # along with this program; if not, write to the Free Software
  20232. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20233. #
  20234. # END COPYRIGHT BLOCK
  20235. # -*- tab-width: 4; -*-
  20236. # Configure paths for SASL
  20237. { $as_echo "$as_me:$LINENO: checking for SASL..." >&5
  20238. $as_echo "$as_me: checking for SASL..." >&6;}
  20239. { $as_echo "$as_me:$LINENO: checking for --with-sasl" >&5
  20240. $as_echo_n "checking for --with-sasl... " >&6; }
  20241. # Check whether --with-sasl was given.
  20242. if test "${with_sasl+set}" = set; then
  20243. withval=$with_sasl;
  20244. if test "$withval" = "yes"; then
  20245. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20246. $as_echo "yes" >&6; }
  20247. elif test "$withval" = "no"; then
  20248. { $as_echo "$as_me:$LINENO: result: no" >&5
  20249. $as_echo "no" >&6; }
  20250. { { $as_echo "$as_me:$LINENO: error: SASL is required." >&5
  20251. $as_echo "$as_me: error: SASL is required." >&2;}
  20252. { (exit 1); exit 1; }; }
  20253. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  20254. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20255. $as_echo "using $withval" >&6; }
  20256. if test -f "$withval/include/sasl/sasl.h"; then
  20257. sasl_inc="-I$withval/include/sasl"
  20258. elif test -f "$withval/include/sasl.h"; then
  20259. sasl_inc="-I$withval/include"
  20260. else
  20261. { { $as_echo "$as_me:$LINENO: error: sasl.h not found" >&5
  20262. $as_echo "$as_me: error: sasl.h not found" >&2;}
  20263. { (exit 1); exit 1; }; }
  20264. fi
  20265. sasl_lib="-L$withval/lib"
  20266. sasl_libdir="$withval/lib"
  20267. else
  20268. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20269. $as_echo "yes" >&6; }
  20270. { { $as_echo "$as_me:$LINENO: error: SASL not found in $withval" >&5
  20271. $as_echo "$as_me: error: SASL not found in $withval" >&2;}
  20272. { (exit 1); exit 1; }; }
  20273. fi
  20274. else
  20275. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20276. $as_echo "yes" >&6; }
  20277. fi
  20278. { $as_echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  20279. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  20280. # Check whether --with-sasl-inc was given.
  20281. if test "${with_sasl_inc+set}" = set; then
  20282. withval=$with_sasl_inc;
  20283. if test -f "$withval"/sasl.h; then
  20284. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20285. $as_echo "using $withval" >&6; }
  20286. sasl_inc="-I$withval"
  20287. else
  20288. echo
  20289. { { $as_echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  20290. $as_echo "$as_me: error: $withval/sasl.h not found" >&2;}
  20291. { (exit 1); exit 1; }; }
  20292. fi
  20293. else
  20294. { $as_echo "$as_me:$LINENO: result: no" >&5
  20295. $as_echo "no" >&6; }
  20296. fi
  20297. { $as_echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  20298. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  20299. # Check whether --with-sasl-lib was given.
  20300. if test "${with_sasl_lib+set}" = set; then
  20301. withval=$with_sasl_lib;
  20302. if test -d "$withval"; then
  20303. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20304. $as_echo "using $withval" >&6; }
  20305. sasl_lib="-L$withval"
  20306. sasl_libdir="$withval"
  20307. else
  20308. echo
  20309. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20310. $as_echo "$as_me: error: $withval not found" >&2;}
  20311. { (exit 1); exit 1; }; }
  20312. fi
  20313. else
  20314. { $as_echo "$as_me:$LINENO: result: no" >&5
  20315. $as_echo "no" >&6; }
  20316. fi
  20317. if test -z "$sasl_inc"; then
  20318. { $as_echo "$as_me:$LINENO: checking for sasl.h" >&5
  20319. $as_echo_n "checking for sasl.h... " >&6; }
  20320. if test -f /usr/include/sasl/sasl.h; then
  20321. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  20322. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  20323. sasl_inc="-I/usr/include/sasl"
  20324. elif test -f /usr/include/sasl.h; then
  20325. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  20326. $as_echo "using /usr/include/sasl.h" >&6; }
  20327. sasl_inc="-I/usr/include"
  20328. else
  20329. { $as_echo "$as_me:$LINENO: result: no" >&5
  20330. $as_echo "no" >&6; }
  20331. { { $as_echo "$as_me:$LINENO: error: SASL not found, specify with --with-sasl." >&5
  20332. $as_echo "$as_me: error: SASL not found, specify with --with-sasl." >&2;}
  20333. { (exit 1); exit 1; }; }
  20334. fi
  20335. fi
  20336. # BEGIN COPYRIGHT BLOCK
  20337. # Copyright (C) 2007 Red Hat, Inc.
  20338. # All rights reserved.
  20339. #
  20340. # This program is free software; you can redistribute it and/or
  20341. # modify it under the terms of the GNU General Public License
  20342. # as published by the Free Software Foundation; either version 2
  20343. # of the License, or (at your option) any later version.
  20344. #
  20345. # This program is distributed in the hope that it will be useful,
  20346. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20347. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20348. # GNU General Public License for more details.
  20349. #
  20350. # You should have received a copy of the GNU General Public License
  20351. # along with this program; if not, write to the Free Software
  20352. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20353. #
  20354. # END COPYRIGHT BLOCK
  20355. #
  20356. # Configure paths for SVRCORE
  20357. { $as_echo "$as_me:$LINENO: checking for SVRCORE..." >&5
  20358. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  20359. { $as_echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  20360. $as_echo_n "checking for --with-svrcore... " >&6; }
  20361. # Check whether --with-svrcore was given.
  20362. if test "${with_svrcore+set}" = set; then
  20363. withval=$with_svrcore;
  20364. if test "$withval" = "yes"; then
  20365. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20366. $as_echo "yes" >&6; }
  20367. elif test "$withval" = "no"; then
  20368. { $as_echo "$as_me:$LINENO: result: no" >&5
  20369. $as_echo "no" >&6; }
  20370. { { $as_echo "$as_me:$LINENO: error: SVRCORE is required." >&5
  20371. $as_echo "$as_me: error: SVRCORE is required." >&2;}
  20372. { (exit 1); exit 1; }; }
  20373. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  20374. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20375. $as_echo "using $withval" >&6; }
  20376. if test -f "$withval/include/svrcore.h"; then
  20377. svrcore_inc="-I$withval/include"
  20378. else
  20379. { { $as_echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  20380. $as_echo "$as_me: error: svrcore.h not found" >&2;}
  20381. { (exit 1); exit 1; }; }
  20382. fi
  20383. svrcore_lib="-L$withval/lib"
  20384. else
  20385. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20386. $as_echo "yes" >&6; }
  20387. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found in $withval" >&5
  20388. $as_echo "$as_me: error: SVRCORE not found in $withval" >&2;}
  20389. { (exit 1); exit 1; }; }
  20390. fi
  20391. else
  20392. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20393. $as_echo "yes" >&6; }
  20394. fi
  20395. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  20396. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  20397. # Check whether --with-svrcore-inc was given.
  20398. if test "${with_svrcore_inc+set}" = set; then
  20399. withval=$with_svrcore_inc;
  20400. if test -f "$withval"/svrcore.h; then
  20401. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20402. $as_echo "using $withval" >&6; }
  20403. svrcore_inc="-I$withval"
  20404. else
  20405. echo
  20406. { { $as_echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  20407. $as_echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  20408. { (exit 1); exit 1; }; }
  20409. fi
  20410. else
  20411. { $as_echo "$as_me:$LINENO: result: no" >&5
  20412. $as_echo "no" >&6; }
  20413. fi
  20414. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  20415. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  20416. # Check whether --with-svrcore-lib was given.
  20417. if test "${with_svrcore_lib+set}" = set; then
  20418. withval=$with_svrcore_lib;
  20419. if test -d "$withval"; then
  20420. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20421. $as_echo "using $withval" >&6; }
  20422. svrcore_lib="-L$withval"
  20423. else
  20424. echo
  20425. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20426. $as_echo "$as_me: error: $withval not found" >&2;}
  20427. { (exit 1); exit 1; }; }
  20428. fi
  20429. else
  20430. { $as_echo "$as_me:$LINENO: result: no" >&5
  20431. $as_echo "no" >&6; }
  20432. fi
  20433. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  20434. # Extract the first word of "pkg-config", so it can be a program name with args.
  20435. set dummy pkg-config; ac_word=$2
  20436. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20437. $as_echo_n "checking for $ac_word... " >&6; }
  20438. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  20439. $as_echo_n "(cached) " >&6
  20440. else
  20441. case $PKG_CONFIG in
  20442. [\\/]* | ?:[\\/]*)
  20443. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20444. ;;
  20445. *)
  20446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20447. for as_dir in $PATH
  20448. do
  20449. IFS=$as_save_IFS
  20450. test -z "$as_dir" && as_dir=.
  20451. for ac_exec_ext in '' $ac_executable_extensions; do
  20452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20453. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20454. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20455. break 2
  20456. fi
  20457. done
  20458. done
  20459. IFS=$as_save_IFS
  20460. ;;
  20461. esac
  20462. fi
  20463. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20464. if test -n "$PKG_CONFIG"; then
  20465. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  20466. $as_echo "$PKG_CONFIG" >&6; }
  20467. else
  20468. { $as_echo "$as_me:$LINENO: result: no" >&5
  20469. $as_echo "no" >&6; }
  20470. fi
  20471. { $as_echo "$as_me:$LINENO: checking for SVRCORE with pkg-config" >&5
  20472. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  20473. if test -n "$PKG_CONFIG"; then
  20474. if $PKG_CONFIG --exists svrcore; then
  20475. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  20476. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  20477. { $as_echo "$as_me:$LINENO: result: using system svrcore" >&5
  20478. $as_echo "using system svrcore" >&6; }
  20479. fi
  20480. fi
  20481. fi
  20482. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  20483. { $as_echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  20484. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  20485. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  20486. $as_echo_n "(cached) " >&6
  20487. else
  20488. ac_check_lib_save_LIBS=$LIBS
  20489. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  20490. cat >conftest.$ac_ext <<_ACEOF
  20491. /* confdefs.h. */
  20492. _ACEOF
  20493. cat confdefs.h >>conftest.$ac_ext
  20494. cat >>conftest.$ac_ext <<_ACEOF
  20495. /* end confdefs.h. */
  20496. /* Override any GCC internal prototype to avoid an error.
  20497. Use char because int might match the return type of a GCC
  20498. builtin and then its argument prototype would still apply. */
  20499. #ifdef __cplusplus
  20500. extern "C"
  20501. #endif
  20502. char SVRCORE_GetRegisteredPinObj ();
  20503. int
  20504. main ()
  20505. {
  20506. return SVRCORE_GetRegisteredPinObj ();
  20507. ;
  20508. return 0;
  20509. }
  20510. _ACEOF
  20511. rm -f conftest.$ac_objext conftest$ac_exeext
  20512. if { (ac_try="$ac_link"
  20513. case "(($ac_try" in
  20514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20515. *) ac_try_echo=$ac_try;;
  20516. esac
  20517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20518. $as_echo "$ac_try_echo") >&5
  20519. (eval "$ac_link") 2>conftest.er1
  20520. ac_status=$?
  20521. grep -v '^ *+' conftest.er1 >conftest.err
  20522. rm -f conftest.er1
  20523. cat conftest.err >&5
  20524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20525. (exit $ac_status); } && {
  20526. test -z "$ac_c_werror_flag" ||
  20527. test ! -s conftest.err
  20528. } && test -s conftest$ac_exeext && {
  20529. test "$cross_compiling" = yes ||
  20530. $as_test_x conftest$ac_exeext
  20531. }; then
  20532. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  20533. else
  20534. $as_echo "$as_me: failed program was:" >&5
  20535. sed 's/^/| /' conftest.$ac_ext >&5
  20536. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  20537. fi
  20538. rm -rf conftest.dSYM
  20539. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20540. conftest$ac_exeext conftest.$ac_ext
  20541. LIBS=$ac_check_lib_save_LIBS
  20542. fi
  20543. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  20544. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  20545. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = x""yes; then
  20546. havesvrcore=1
  20547. fi
  20548. if test -n "$havesvrcore" ; then
  20549. save_cppflags="$CPPFLAGS"
  20550. CPPFLAGS="$nss_inc $nspr_inc"
  20551. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20552. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  20553. $as_echo_n "checking for svrcore.h... " >&6; }
  20554. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20555. $as_echo_n "(cached) " >&6
  20556. fi
  20557. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  20558. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  20559. else
  20560. # Is the header compilable?
  20561. { $as_echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  20562. $as_echo_n "checking svrcore.h usability... " >&6; }
  20563. cat >conftest.$ac_ext <<_ACEOF
  20564. /* confdefs.h. */
  20565. _ACEOF
  20566. cat confdefs.h >>conftest.$ac_ext
  20567. cat >>conftest.$ac_ext <<_ACEOF
  20568. /* end confdefs.h. */
  20569. $ac_includes_default
  20570. #include <svrcore.h>
  20571. _ACEOF
  20572. rm -f conftest.$ac_objext
  20573. if { (ac_try="$ac_compile"
  20574. case "(($ac_try" in
  20575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20576. *) ac_try_echo=$ac_try;;
  20577. esac
  20578. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20579. $as_echo "$ac_try_echo") >&5
  20580. (eval "$ac_compile") 2>conftest.er1
  20581. ac_status=$?
  20582. grep -v '^ *+' conftest.er1 >conftest.err
  20583. rm -f conftest.er1
  20584. cat conftest.err >&5
  20585. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20586. (exit $ac_status); } && {
  20587. test -z "$ac_c_werror_flag" ||
  20588. test ! -s conftest.err
  20589. } && test -s conftest.$ac_objext; then
  20590. ac_header_compiler=yes
  20591. else
  20592. $as_echo "$as_me: failed program was:" >&5
  20593. sed 's/^/| /' conftest.$ac_ext >&5
  20594. ac_header_compiler=no
  20595. fi
  20596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20597. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20598. $as_echo "$ac_header_compiler" >&6; }
  20599. # Is the header present?
  20600. { $as_echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  20601. $as_echo_n "checking svrcore.h presence... " >&6; }
  20602. cat >conftest.$ac_ext <<_ACEOF
  20603. /* confdefs.h. */
  20604. _ACEOF
  20605. cat confdefs.h >>conftest.$ac_ext
  20606. cat >>conftest.$ac_ext <<_ACEOF
  20607. /* end confdefs.h. */
  20608. #include <svrcore.h>
  20609. _ACEOF
  20610. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20611. case "(($ac_try" in
  20612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20613. *) ac_try_echo=$ac_try;;
  20614. esac
  20615. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20616. $as_echo "$ac_try_echo") >&5
  20617. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20618. ac_status=$?
  20619. grep -v '^ *+' conftest.er1 >conftest.err
  20620. rm -f conftest.er1
  20621. cat conftest.err >&5
  20622. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20623. (exit $ac_status); } >/dev/null && {
  20624. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20625. test ! -s conftest.err
  20626. }; then
  20627. ac_header_preproc=yes
  20628. else
  20629. $as_echo "$as_me: failed program was:" >&5
  20630. sed 's/^/| /' conftest.$ac_ext >&5
  20631. ac_header_preproc=no
  20632. fi
  20633. rm -f conftest.err conftest.$ac_ext
  20634. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20635. $as_echo "$ac_header_preproc" >&6; }
  20636. # So? What about this header?
  20637. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20638. yes:no: )
  20639. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  20640. $as_echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20641. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  20642. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  20643. ac_header_preproc=yes
  20644. ;;
  20645. no:yes:* )
  20646. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  20647. $as_echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  20648. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  20649. $as_echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  20650. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  20651. $as_echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  20652. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  20653. $as_echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  20654. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  20655. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  20656. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  20657. $as_echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  20658. ( cat <<\_ASBOX
  20659. ## ------------------------------------------ ##
  20660. ## Report this to http://bugzilla.redhat.com/ ##
  20661. ## ------------------------------------------ ##
  20662. _ASBOX
  20663. ) | sed "s/^/$as_me: WARNING: /" >&2
  20664. ;;
  20665. esac
  20666. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  20667. $as_echo_n "checking for svrcore.h... " >&6; }
  20668. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20669. $as_echo_n "(cached) " >&6
  20670. else
  20671. ac_cv_header_svrcore_h=$ac_header_preproc
  20672. fi
  20673. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  20674. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  20675. fi
  20676. if test "x$ac_cv_header_svrcore_h" = x""yes; then
  20677. havesvrcore=1
  20678. else
  20679. havesvrcore=
  20680. fi
  20681. CPPFLAGS="$save_cppflags"
  20682. fi
  20683. if test -z "$havesvrcore" ; then
  20684. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  20685. $as_echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  20686. { (exit 1); exit 1; }; }
  20687. fi
  20688. fi
  20689. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  20690. if test -f /usr/include/svrcore.h; then
  20691. svrcore_inc="-I/usr/include"
  20692. svrcore_lib="-L/usr/lib"
  20693. else
  20694. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  20695. $as_echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  20696. { (exit 1); exit 1; }; }
  20697. fi
  20698. fi
  20699. # BEGIN COPYRIGHT BLOCK
  20700. # Copyright (C) 2006 Red Hat, Inc.
  20701. # All rights reserved.
  20702. #
  20703. # This program is free software; you can redistribute it and/or
  20704. # modify it under the terms of the GNU General Public License
  20705. # as published by the Free Software Foundation; either version 2
  20706. # of the License, or (at your option) any later version.
  20707. #
  20708. # This program is distributed in the hope that it will be useful,
  20709. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20710. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20711. # GNU General Public License for more details.
  20712. #
  20713. # You should have received a copy of the GNU General Public License
  20714. # along with this program; if not, write to the Free Software
  20715. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20716. #
  20717. # END COPYRIGHT BLOCK
  20718. { $as_echo "$as_me:$LINENO: checking for LIBICU..." >&5
  20719. $as_echo "$as_me: checking for LIBICU..." >&6;}
  20720. # check for --with-icu
  20721. { $as_echo "$as_me:$LINENO: checking for --with-icu" >&5
  20722. $as_echo_n "checking for --with-icu... " >&6; }
  20723. # Check whether --with-icu was given.
  20724. if test "${with_icu+set}" = set; then
  20725. withval=$with_icu;
  20726. if test "$withval" = "yes"
  20727. then
  20728. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20729. $as_echo "yes" >&6; }
  20730. elif test "$withval" = "no"
  20731. then
  20732. { $as_echo "$as_me:$LINENO: result: no" >&5
  20733. $as_echo "no" >&6; }
  20734. { { $as_echo "$as_me:$LINENO: error: ICU is required." >&5
  20735. $as_echo "$as_me: error: ICU is required." >&2;}
  20736. { (exit 1); exit 1; }; }
  20737. elif test -d "$withval"/lib
  20738. then
  20739. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20740. $as_echo "using $withval" >&6; }
  20741. ICUDIR=$withval
  20742. icu_lib="-L$ICUDIR/lib"
  20743. icu_inc="-I$withval/include"
  20744. icu_bin="$withval/bin"
  20745. else
  20746. echo
  20747. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20748. $as_echo "$as_me: error: $withval not found" >&2;}
  20749. { (exit 1); exit 1; }; }
  20750. fi
  20751. else
  20752. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20753. $as_echo "yes" >&6; }
  20754. fi
  20755. # check for --with-icu-inc
  20756. { $as_echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  20757. $as_echo_n "checking for --with-icu-inc... " >&6; }
  20758. # Check whether --with-icu-inc was given.
  20759. if test "${with_icu_inc+set}" = set; then
  20760. withval=$with_icu_inc;
  20761. if test -d "$withval"
  20762. then
  20763. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20764. $as_echo "using $withval" >&6; }
  20765. icu_inc="-I$withval"
  20766. else
  20767. echo
  20768. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20769. $as_echo "$as_me: error: $withval not found" >&2;}
  20770. { (exit 1); exit 1; }; }
  20771. fi
  20772. else
  20773. { $as_echo "$as_me:$LINENO: result: no" >&5
  20774. $as_echo "no" >&6; }
  20775. fi
  20776. # check for --with-icu-lib
  20777. { $as_echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  20778. $as_echo_n "checking for --with-icu-lib... " >&6; }
  20779. # Check whether --with-icu-lib was given.
  20780. if test "${with_icu_lib+set}" = set; then
  20781. withval=$with_icu_lib;
  20782. if test -d "$withval"
  20783. then
  20784. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20785. $as_echo "using $withval" >&6; }
  20786. icu_lib="-L$withval"
  20787. else
  20788. echo
  20789. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20790. $as_echo "$as_me: error: $withval not found" >&2;}
  20791. { (exit 1); exit 1; }; }
  20792. fi
  20793. else
  20794. { $as_echo "$as_me:$LINENO: result: no" >&5
  20795. $as_echo "no" >&6; }
  20796. fi
  20797. # check for --with-icu-bin
  20798. { $as_echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  20799. $as_echo_n "checking for --with-icu-bin... " >&6; }
  20800. # Check whether --with-icu-bin was given.
  20801. if test "${with_icu_bin+set}" = set; then
  20802. withval=$with_icu_bin;
  20803. if test -d "$withval"
  20804. then
  20805. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20806. $as_echo "using $withval" >&6; }
  20807. icu_bin="$withval"
  20808. else
  20809. echo
  20810. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20811. $as_echo "$as_me: error: $withval not found" >&2;}
  20812. { (exit 1); exit 1; }; }
  20813. fi
  20814. else
  20815. { $as_echo "$as_me:$LINENO: result: no" >&5
  20816. $as_echo "no" >&6; }
  20817. fi
  20818. # if ICU is not found yet, try pkg-config
  20819. # last resort
  20820. if test -z "$icu_lib"; then
  20821. # Extract the first word of "icu-config", so it can be a program name with args.
  20822. set dummy icu-config; ac_word=$2
  20823. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20824. $as_echo_n "checking for $ac_word... " >&6; }
  20825. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  20826. $as_echo_n "(cached) " >&6
  20827. else
  20828. case $ICU_CONFIG in
  20829. [\\/]* | ?:[\\/]*)
  20830. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  20831. ;;
  20832. *)
  20833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20834. for as_dir in $PATH
  20835. do
  20836. IFS=$as_save_IFS
  20837. test -z "$as_dir" && as_dir=.
  20838. for ac_exec_ext in '' $ac_executable_extensions; do
  20839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20840. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20841. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20842. break 2
  20843. fi
  20844. done
  20845. done
  20846. IFS=$as_save_IFS
  20847. ;;
  20848. esac
  20849. fi
  20850. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  20851. if test -n "$ICU_CONFIG"; then
  20852. { $as_echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  20853. $as_echo "$ICU_CONFIG" >&6; }
  20854. else
  20855. { $as_echo "$as_me:$LINENO: result: no" >&5
  20856. $as_echo "no" >&6; }
  20857. fi
  20858. { $as_echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  20859. $as_echo_n "checking for icu with icu-config... " >&6; }
  20860. if test -n "$ICU_CONFIG"; then
  20861. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  20862. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  20863. icu_bin=`$ICU_CONFIG --bindir`
  20864. { $as_echo "$as_me:$LINENO: result: using system ICU" >&5
  20865. $as_echo "using system ICU" >&6; }
  20866. else
  20867. { { $as_echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  20868. $as_echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  20869. { (exit 1); exit 1; }; }
  20870. fi
  20871. fi
  20872. # BEGIN COPYRIGHT BLOCK
  20873. # Copyright (C) 2006 Red Hat, Inc.
  20874. # All rights reserved.
  20875. #
  20876. # This program is free software; you can redistribute it and/or
  20877. # modify it under the terms of the GNU General Public License
  20878. # as published by the Free Software Foundation; either version 2
  20879. # of the License, or (at your option) any later version.
  20880. #
  20881. # This program is distributed in the hope that it will be useful,
  20882. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20883. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20884. # GNU General Public License for more details.
  20885. #
  20886. # You should have received a copy of the GNU General Public License
  20887. # along with this program; if not, write to the Free Software
  20888. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20889. #
  20890. # END COPYRIGHT BLOCK
  20891. { $as_echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  20892. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  20893. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  20894. $as_echo_n "checking for --with-netsnmp... " >&6; }
  20895. # Check whether --with-netsnmp was given.
  20896. if test "${with_netsnmp+set}" = set; then
  20897. withval=$with_netsnmp;
  20898. if test "$withval" = "yes"; then
  20899. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20900. $as_echo "yes" >&6; }
  20901. elif test "$withval" = "no"; then
  20902. { $as_echo "$as_me:$LINENO: result: no" >&5
  20903. $as_echo "no" >&6; }
  20904. { { $as_echo "$as_me:$LINENO: error: Net-SNMP is required." >&5
  20905. $as_echo "$as_me: error: Net-SNMP is required." >&2;}
  20906. { (exit 1); exit 1; }; }
  20907. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  20908. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20909. $as_echo "using $withval" >&6; }
  20910. NETSNMPDIR=$withval
  20911. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  20912. netsnmp_inc="-I$withval/include"
  20913. else
  20914. { { $as_echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  20915. $as_echo "$as_me: error: net-snmp-config.h not found" >&2;}
  20916. { (exit 1); exit 1; }; }
  20917. fi
  20918. netsnmp_lib="-L$withval/lib"
  20919. netsnmp_libdir="$withval/lib"
  20920. else
  20921. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20922. $as_echo "yes" >&6; }
  20923. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20924. $as_echo "$as_me: error: $withval not found" >&2;}
  20925. { (exit 1); exit 1; }; }
  20926. fi
  20927. else
  20928. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20929. $as_echo "yes" >&6; }
  20930. fi
  20931. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  20932. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  20933. # Check whether --with-netsnmp-inc was given.
  20934. if test "${with_netsnmp_inc+set}" = set; then
  20935. withval=$with_netsnmp_inc;
  20936. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  20937. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20938. $as_echo "using $withval" >&6; }
  20939. netsnmp_inc="-I$withval"
  20940. else
  20941. echo
  20942. { { $as_echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  20943. $as_echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  20944. { (exit 1); exit 1; }; }
  20945. fi
  20946. else
  20947. { $as_echo "$as_me:$LINENO: result: no" >&5
  20948. $as_echo "no" >&6; }
  20949. fi
  20950. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  20951. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  20952. # Check whether --with-netsnmp-lib was given.
  20953. if test "${with_netsnmp_lib+set}" = set; then
  20954. withval=$with_netsnmp_lib;
  20955. if test -d "$withval"
  20956. then
  20957. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20958. $as_echo "using $withval" >&6; }
  20959. netsnmp_lib="-L$withval"
  20960. netsnmp_libdir="$withval"
  20961. else
  20962. echo
  20963. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20964. $as_echo "$as_me: error: $withval not found" >&2;}
  20965. { (exit 1); exit 1; }; }
  20966. fi
  20967. else
  20968. { $as_echo "$as_me:$LINENO: result: no" >&5
  20969. $as_echo "no" >&6; }
  20970. fi
  20971. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  20972. { $as_echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  20973. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  20974. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  20975. { $as_echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  20976. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  20977. netsnmp_inc="-I/usr/include"
  20978. else
  20979. { $as_echo "$as_me:$LINENO: result: no" >&5
  20980. $as_echo "no" >&6; }
  20981. { { $as_echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  20982. $as_echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  20983. { (exit 1); exit 1; }; }
  20984. fi
  20985. fi
  20986. if test -n "$netsnmp_inc"; then
  20987. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  20988. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  20989. else
  20990. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  20991. set dummy net-snmp-config; ac_word=$2
  20992. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20993. $as_echo_n "checking for $ac_word... " >&6; }
  20994. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  20995. $as_echo_n "(cached) " >&6
  20996. else
  20997. case $NETSNMP_CONFIG in
  20998. [\\/]* | ?:[\\/]*)
  20999. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  21000. ;;
  21001. *)
  21002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21003. for as_dir in $PATH
  21004. do
  21005. IFS=$as_save_IFS
  21006. test -z "$as_dir" && as_dir=.
  21007. for ac_exec_ext in '' $ac_executable_extensions; do
  21008. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21009. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21010. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21011. break 2
  21012. fi
  21013. done
  21014. done
  21015. IFS=$as_save_IFS
  21016. ;;
  21017. esac
  21018. fi
  21019. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  21020. if test -n "$NETSNMP_CONFIG"; then
  21021. { $as_echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  21022. $as_echo "$NETSNMP_CONFIG" >&6; }
  21023. else
  21024. { $as_echo "$as_me:$LINENO: result: no" >&5
  21025. $as_echo "no" >&6; }
  21026. fi
  21027. fi
  21028. if test -n "$NETSNMP_CONFIG"; then
  21029. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  21030. else
  21031. { { $as_echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  21032. $as_echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  21033. { (exit 1); exit 1; }; }
  21034. fi
  21035. else
  21036. { { $as_echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  21037. $as_echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  21038. { (exit 1); exit 1; }; }
  21039. fi
  21040. # BEGIN COPYRIGHT BLOCK
  21041. # Copyright (C) 2008 Red Hat, Inc.
  21042. # All rights reserved.
  21043. #
  21044. # This program is free software; you can redistribute it and/or
  21045. # modify it under the terms of the GNU General Public License
  21046. # as published by the Free Software Foundation; either version 2
  21047. # of the License, or (at your option) any later version.
  21048. #
  21049. # This program is distributed in the hope that it will be useful,
  21050. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21051. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21052. # GNU General Public License for more details.
  21053. #
  21054. # You should have received a copy of the GNU General Public License
  21055. # along with this program; if not, write to the Free Software
  21056. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21057. #
  21058. # END COPYRIGHT BLOCK
  21059. # -*- tab-width: 4; -*-
  21060. # Configure paths for Kerberos
  21061. { $as_echo "$as_me:$LINENO: checking for Kerberos..." >&5
  21062. $as_echo "$as_me: checking for Kerberos..." >&6;}
  21063. if test -z "$with_kerberos" ; then
  21064. with_kerberos=yes # if not set on cmdline, set default
  21065. fi
  21066. { $as_echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  21067. $as_echo_n "checking for --with-kerberos... " >&6; }
  21068. # Check whether --with-kerberos was given.
  21069. if test "${with_kerberos+set}" = set; then
  21070. withval=$with_kerberos;
  21071. if test "x$withval" = "xyes"; then
  21072. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21073. $as_echo "yes" >&6; }
  21074. elif test "x$withval" = "xno"; then
  21075. { $as_echo "$as_me:$LINENO: result: no" >&5
  21076. $as_echo "no" >&6; }
  21077. with_kerberos=
  21078. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21079. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  21080. $as_echo "using $withval" >&6; }
  21081. kerberos_incdir="$withval/include"
  21082. kerberos_libdir="$withval/lib"
  21083. else
  21084. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21085. $as_echo "yes" >&6; }
  21086. { { $as_echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  21087. $as_echo "$as_me: error: kerberos not found in $withval" >&2;}
  21088. { (exit 1); exit 1; }; }
  21089. fi
  21090. else
  21091. { $as_echo "$as_me:$LINENO: result: no" >&5
  21092. $as_echo "no" >&6; }
  21093. with_kerberos=
  21094. fi
  21095. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  21096. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  21097. # Check whether --with-kerberos-inc was given.
  21098. if test "${with_kerberos_inc+set}" = set; then
  21099. withval=$with_kerberos_inc;
  21100. if test -f "$withval"/krb5.h; then
  21101. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  21102. $as_echo "using $withval" >&6; }
  21103. kerberos_incdir="$withval"
  21104. with_kerberos=yes # implies use of kerberos
  21105. else
  21106. echo
  21107. { { $as_echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  21108. $as_echo "$as_me: error: $withval/krb5.h not found" >&2;}
  21109. { (exit 1); exit 1; }; }
  21110. fi
  21111. else
  21112. { $as_echo "$as_me:$LINENO: result: no" >&5
  21113. $as_echo "no" >&6; }
  21114. fi
  21115. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  21116. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  21117. # Check whether --with-kerberos-lib was given.
  21118. if test "${with_kerberos_lib+set}" = set; then
  21119. withval=$with_kerberos_lib;
  21120. if test -d "$withval"; then
  21121. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  21122. $as_echo "using $withval" >&6; }
  21123. kerberos_libdir="$withval"
  21124. with_kerberos=yes # implies use of kerberos
  21125. else
  21126. echo
  21127. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  21128. $as_echo "$as_me: error: $withval not found" >&2;}
  21129. { (exit 1); exit 1; }; }
  21130. fi
  21131. else
  21132. { $as_echo "$as_me:$LINENO: result: no" >&5
  21133. $as_echo "no" >&6; }
  21134. fi
  21135. if test -n "$with_kerberos" ; then
  21136. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  21137. if test -z "$KRB5_CONFIG_BIN" ; then
  21138. # Extract the first word of "krb5-config", so it can be a program name with args.
  21139. set dummy krb5-config; ac_word=$2
  21140. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21141. $as_echo_n "checking for $ac_word... " >&6; }
  21142. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  21143. $as_echo_n "(cached) " >&6
  21144. else
  21145. case $KRB5_CONFIG_BIN in
  21146. [\\/]* | ?:[\\/]*)
  21147. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  21148. ;;
  21149. *)
  21150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21151. for as_dir in $PATH
  21152. do
  21153. IFS=$as_save_IFS
  21154. test -z "$as_dir" && as_dir=.
  21155. for ac_exec_ext in '' $ac_executable_extensions; do
  21156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21157. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  21158. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21159. break 2
  21160. fi
  21161. done
  21162. done
  21163. IFS=$as_save_IFS
  21164. ;;
  21165. esac
  21166. fi
  21167. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  21168. if test -n "$KRB5_CONFIG_BIN"; then
  21169. { $as_echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  21170. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  21171. else
  21172. { $as_echo "$as_me:$LINENO: result: no" >&5
  21173. $as_echo "no" >&6; }
  21174. fi
  21175. fi
  21176. if test -n "$KRB5_CONFIG_BIN" ; then
  21177. { $as_echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  21178. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  21179. if test -z "$kerberos_libdir" ; then
  21180. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  21181. fi
  21182. if test -z "$kerberos_incdir" ; then
  21183. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  21184. fi
  21185. if test -n "$kerberos_lib" ; then
  21186. { $as_echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  21187. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  21188. have_krb5=yes
  21189. fi
  21190. fi
  21191. fi
  21192. fi
  21193. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  21194. # save these in order to set them to use the check macros below
  21195. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  21196. save_CPPFLAGS="$CPPFLAGS"
  21197. if test -n "$kerberos_incdir" ; then
  21198. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  21199. fi
  21200. save_LDFLAGS="$LDFLAGS"
  21201. if test -n "$kerberos_libdir" ; then
  21202. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  21203. fi
  21204. krb5_impl=mit
  21205. for ac_header in heim_err.h
  21206. do
  21207. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21208. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21209. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21210. $as_echo_n "checking for $ac_header... " >&6; }
  21211. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21212. $as_echo_n "(cached) " >&6
  21213. fi
  21214. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21215. $as_echo "$as_val"'`
  21216. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21217. $as_echo "$ac_res" >&6; }
  21218. else
  21219. # Is the header compilable?
  21220. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21221. $as_echo_n "checking $ac_header usability... " >&6; }
  21222. cat >conftest.$ac_ext <<_ACEOF
  21223. /* confdefs.h. */
  21224. _ACEOF
  21225. cat confdefs.h >>conftest.$ac_ext
  21226. cat >>conftest.$ac_ext <<_ACEOF
  21227. /* end confdefs.h. */
  21228. $ac_includes_default
  21229. #include <$ac_header>
  21230. _ACEOF
  21231. rm -f conftest.$ac_objext
  21232. if { (ac_try="$ac_compile"
  21233. case "(($ac_try" in
  21234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21235. *) ac_try_echo=$ac_try;;
  21236. esac
  21237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21238. $as_echo "$ac_try_echo") >&5
  21239. (eval "$ac_compile") 2>conftest.er1
  21240. ac_status=$?
  21241. grep -v '^ *+' conftest.er1 >conftest.err
  21242. rm -f conftest.er1
  21243. cat conftest.err >&5
  21244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21245. (exit $ac_status); } && {
  21246. test -z "$ac_c_werror_flag" ||
  21247. test ! -s conftest.err
  21248. } && test -s conftest.$ac_objext; then
  21249. ac_header_compiler=yes
  21250. else
  21251. $as_echo "$as_me: failed program was:" >&5
  21252. sed 's/^/| /' conftest.$ac_ext >&5
  21253. ac_header_compiler=no
  21254. fi
  21255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21256. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21257. $as_echo "$ac_header_compiler" >&6; }
  21258. # Is the header present?
  21259. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21260. $as_echo_n "checking $ac_header presence... " >&6; }
  21261. cat >conftest.$ac_ext <<_ACEOF
  21262. /* confdefs.h. */
  21263. _ACEOF
  21264. cat confdefs.h >>conftest.$ac_ext
  21265. cat >>conftest.$ac_ext <<_ACEOF
  21266. /* end confdefs.h. */
  21267. #include <$ac_header>
  21268. _ACEOF
  21269. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21270. case "(($ac_try" in
  21271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21272. *) ac_try_echo=$ac_try;;
  21273. esac
  21274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21275. $as_echo "$ac_try_echo") >&5
  21276. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21277. ac_status=$?
  21278. grep -v '^ *+' conftest.er1 >conftest.err
  21279. rm -f conftest.er1
  21280. cat conftest.err >&5
  21281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21282. (exit $ac_status); } >/dev/null && {
  21283. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21284. test ! -s conftest.err
  21285. }; then
  21286. ac_header_preproc=yes
  21287. else
  21288. $as_echo "$as_me: failed program was:" >&5
  21289. sed 's/^/| /' conftest.$ac_ext >&5
  21290. ac_header_preproc=no
  21291. fi
  21292. rm -f conftest.err conftest.$ac_ext
  21293. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21294. $as_echo "$ac_header_preproc" >&6; }
  21295. # So? What about this header?
  21296. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21297. yes:no: )
  21298. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21299. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21300. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21301. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21302. ac_header_preproc=yes
  21303. ;;
  21304. no:yes:* )
  21305. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21306. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21307. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21308. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21309. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21310. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21311. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21312. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21313. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21314. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21315. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21316. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21317. ( cat <<\_ASBOX
  21318. ## ------------------------------------------ ##
  21319. ## Report this to http://bugzilla.redhat.com/ ##
  21320. ## ------------------------------------------ ##
  21321. _ASBOX
  21322. ) | sed "s/^/$as_me: WARNING: /" >&2
  21323. ;;
  21324. esac
  21325. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21326. $as_echo_n "checking for $ac_header... " >&6; }
  21327. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21328. $as_echo_n "(cached) " >&6
  21329. else
  21330. eval "$as_ac_Header=\$ac_header_preproc"
  21331. fi
  21332. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21333. $as_echo "$as_val"'`
  21334. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21335. $as_echo "$ac_res" >&6; }
  21336. fi
  21337. as_val=`eval 'as_val=${'$as_ac_Header'}
  21338. $as_echo "$as_val"'`
  21339. if test "x$as_val" = x""yes; then
  21340. cat >>confdefs.h <<_ACEOF
  21341. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21342. _ACEOF
  21343. fi
  21344. done
  21345. if test $ac_cv_header_heim_err_h = yes ; then
  21346. krb5_impl=heimdal
  21347. fi
  21348. if test "x$krb5_impl" = "xmit"; then
  21349. { $as_echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  21350. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  21351. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  21352. $as_echo_n "(cached) " >&6
  21353. else
  21354. ac_check_lib_save_LIBS=$LIBS
  21355. LIBS="-lk5crypto $LIBS"
  21356. cat >conftest.$ac_ext <<_ACEOF
  21357. /* confdefs.h. */
  21358. _ACEOF
  21359. cat confdefs.h >>conftest.$ac_ext
  21360. cat >>conftest.$ac_ext <<_ACEOF
  21361. /* end confdefs.h. */
  21362. int
  21363. main ()
  21364. {
  21365. return main ();
  21366. ;
  21367. return 0;
  21368. }
  21369. _ACEOF
  21370. rm -f conftest.$ac_objext conftest$ac_exeext
  21371. if { (ac_try="$ac_link"
  21372. case "(($ac_try" in
  21373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21374. *) ac_try_echo=$ac_try;;
  21375. esac
  21376. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21377. $as_echo "$ac_try_echo") >&5
  21378. (eval "$ac_link") 2>conftest.er1
  21379. ac_status=$?
  21380. grep -v '^ *+' conftest.er1 >conftest.err
  21381. rm -f conftest.er1
  21382. cat conftest.err >&5
  21383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21384. (exit $ac_status); } && {
  21385. test -z "$ac_c_werror_flag" ||
  21386. test ! -s conftest.err
  21387. } && test -s conftest$ac_exeext && {
  21388. test "$cross_compiling" = yes ||
  21389. $as_test_x conftest$ac_exeext
  21390. }; then
  21391. ac_cv_lib_k5crypto_main=yes
  21392. else
  21393. $as_echo "$as_me: failed program was:" >&5
  21394. sed 's/^/| /' conftest.$ac_ext >&5
  21395. ac_cv_lib_k5crypto_main=no
  21396. fi
  21397. rm -rf conftest.dSYM
  21398. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21399. conftest$ac_exeext conftest.$ac_ext
  21400. LIBS=$ac_check_lib_save_LIBS
  21401. fi
  21402. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  21403. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  21404. if test "x$ac_cv_lib_k5crypto_main" = x""yes; then
  21405. krb5crypto=k5crypto
  21406. else
  21407. krb5crypto=crypto
  21408. fi
  21409. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  21410. $as_echo_n "checking for main in -lkrb5... " >&6; }
  21411. if test "${ac_cv_lib_krb5_main+set}" = set; then
  21412. $as_echo_n "(cached) " >&6
  21413. else
  21414. ac_check_lib_save_LIBS=$LIBS
  21415. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  21416. cat >conftest.$ac_ext <<_ACEOF
  21417. /* confdefs.h. */
  21418. _ACEOF
  21419. cat confdefs.h >>conftest.$ac_ext
  21420. cat >>conftest.$ac_ext <<_ACEOF
  21421. /* end confdefs.h. */
  21422. int
  21423. main ()
  21424. {
  21425. return main ();
  21426. ;
  21427. return 0;
  21428. }
  21429. _ACEOF
  21430. rm -f conftest.$ac_objext conftest$ac_exeext
  21431. if { (ac_try="$ac_link"
  21432. case "(($ac_try" in
  21433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21434. *) ac_try_echo=$ac_try;;
  21435. esac
  21436. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21437. $as_echo "$ac_try_echo") >&5
  21438. (eval "$ac_link") 2>conftest.er1
  21439. ac_status=$?
  21440. grep -v '^ *+' conftest.er1 >conftest.err
  21441. rm -f conftest.er1
  21442. cat conftest.err >&5
  21443. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21444. (exit $ac_status); } && {
  21445. test -z "$ac_c_werror_flag" ||
  21446. test ! -s conftest.err
  21447. } && test -s conftest$ac_exeext && {
  21448. test "$cross_compiling" = yes ||
  21449. $as_test_x conftest$ac_exeext
  21450. }; then
  21451. ac_cv_lib_krb5_main=yes
  21452. else
  21453. $as_echo "$as_me: failed program was:" >&5
  21454. sed 's/^/| /' conftest.$ac_ext >&5
  21455. ac_cv_lib_krb5_main=no
  21456. fi
  21457. rm -rf conftest.dSYM
  21458. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21459. conftest$ac_exeext conftest.$ac_ext
  21460. LIBS=$ac_check_lib_save_LIBS
  21461. fi
  21462. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  21463. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  21464. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  21465. have_krb5=yes
  21466. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  21467. else
  21468. have_krb5=no
  21469. fi
  21470. elif test "x$krb5_impl" = "xheimdal"; then
  21471. { $as_echo "$as_me:$LINENO: checking for main in -ldes" >&5
  21472. $as_echo_n "checking for main in -ldes... " >&6; }
  21473. if test "${ac_cv_lib_des_main+set}" = set; then
  21474. $as_echo_n "(cached) " >&6
  21475. else
  21476. ac_check_lib_save_LIBS=$LIBS
  21477. LIBS="-ldes $LIBS"
  21478. cat >conftest.$ac_ext <<_ACEOF
  21479. /* confdefs.h. */
  21480. _ACEOF
  21481. cat confdefs.h >>conftest.$ac_ext
  21482. cat >>conftest.$ac_ext <<_ACEOF
  21483. /* end confdefs.h. */
  21484. int
  21485. main ()
  21486. {
  21487. return main ();
  21488. ;
  21489. return 0;
  21490. }
  21491. _ACEOF
  21492. rm -f conftest.$ac_objext conftest$ac_exeext
  21493. if { (ac_try="$ac_link"
  21494. case "(($ac_try" in
  21495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21496. *) ac_try_echo=$ac_try;;
  21497. esac
  21498. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21499. $as_echo "$ac_try_echo") >&5
  21500. (eval "$ac_link") 2>conftest.er1
  21501. ac_status=$?
  21502. grep -v '^ *+' conftest.er1 >conftest.err
  21503. rm -f conftest.er1
  21504. cat conftest.err >&5
  21505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21506. (exit $ac_status); } && {
  21507. test -z "$ac_c_werror_flag" ||
  21508. test ! -s conftest.err
  21509. } && test -s conftest$ac_exeext && {
  21510. test "$cross_compiling" = yes ||
  21511. $as_test_x conftest$ac_exeext
  21512. }; then
  21513. ac_cv_lib_des_main=yes
  21514. else
  21515. $as_echo "$as_me: failed program was:" >&5
  21516. sed 's/^/| /' conftest.$ac_ext >&5
  21517. ac_cv_lib_des_main=no
  21518. fi
  21519. rm -rf conftest.dSYM
  21520. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21521. conftest$ac_exeext conftest.$ac_ext
  21522. LIBS=$ac_check_lib_save_LIBS
  21523. fi
  21524. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  21525. $as_echo "$ac_cv_lib_des_main" >&6; }
  21526. if test "x$ac_cv_lib_des_main" = x""yes; then
  21527. krb5crypto=des
  21528. else
  21529. krb5crypto=crypto
  21530. fi
  21531. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  21532. $as_echo_n "checking for main in -lkrb5... " >&6; }
  21533. if test "${ac_cv_lib_krb5_main+set}" = set; then
  21534. $as_echo_n "(cached) " >&6
  21535. else
  21536. ac_check_lib_save_LIBS=$LIBS
  21537. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  21538. cat >conftest.$ac_ext <<_ACEOF
  21539. /* confdefs.h. */
  21540. _ACEOF
  21541. cat confdefs.h >>conftest.$ac_ext
  21542. cat >>conftest.$ac_ext <<_ACEOF
  21543. /* end confdefs.h. */
  21544. int
  21545. main ()
  21546. {
  21547. return main ();
  21548. ;
  21549. return 0;
  21550. }
  21551. _ACEOF
  21552. rm -f conftest.$ac_objext conftest$ac_exeext
  21553. if { (ac_try="$ac_link"
  21554. case "(($ac_try" in
  21555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21556. *) ac_try_echo=$ac_try;;
  21557. esac
  21558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21559. $as_echo "$ac_try_echo") >&5
  21560. (eval "$ac_link") 2>conftest.er1
  21561. ac_status=$?
  21562. grep -v '^ *+' conftest.er1 >conftest.err
  21563. rm -f conftest.er1
  21564. cat conftest.err >&5
  21565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21566. (exit $ac_status); } && {
  21567. test -z "$ac_c_werror_flag" ||
  21568. test ! -s conftest.err
  21569. } && test -s conftest$ac_exeext && {
  21570. test "$cross_compiling" = yes ||
  21571. $as_test_x conftest$ac_exeext
  21572. }; then
  21573. ac_cv_lib_krb5_main=yes
  21574. else
  21575. $as_echo "$as_me: failed program was:" >&5
  21576. sed 's/^/| /' conftest.$ac_ext >&5
  21577. ac_cv_lib_krb5_main=no
  21578. fi
  21579. rm -rf conftest.dSYM
  21580. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21581. conftest$ac_exeext conftest.$ac_ext
  21582. LIBS=$ac_check_lib_save_LIBS
  21583. fi
  21584. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  21585. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  21586. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  21587. have_krb5=yes
  21588. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  21589. else
  21590. have_krb5=no
  21591. fi
  21592. cat >>confdefs.h <<\_ACEOF
  21593. #define HAVE_HEIMDAL_KERBEROS 1
  21594. _ACEOF
  21595. else
  21596. have_krb5=no
  21597. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  21598. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  21599. fi
  21600. # reset to original values
  21601. CPPFLAGS="$save_CPPFLAGS"
  21602. LDFLAGS="$save_LDFLAGS"
  21603. if test -n "$kerberos_incdir" ; then
  21604. kerberos_inc="-I$kerberos_incdir"
  21605. fi
  21606. if test -n "$kerberos_libdir" ; then
  21607. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  21608. fi
  21609. fi
  21610. if test -n "$with_kerberos" ; then
  21611. if test "x$have_krb5" = "xyes" ; then
  21612. cat >>confdefs.h <<\_ACEOF
  21613. #define HAVE_KRB5 1
  21614. _ACEOF
  21615. else
  21616. { { $as_echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  21617. $as_echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  21618. { (exit 1); exit 1; }; }
  21619. fi
  21620. save_LIBS="$LIBS"
  21621. LIBS="$kerberos_lib"
  21622. save_CPPFLAGS="$CPPFLAGS"
  21623. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  21624. for ac_func in krb5_cc_new_unique
  21625. do
  21626. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21627. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  21628. $as_echo_n "checking for $ac_func... " >&6; }
  21629. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21630. $as_echo_n "(cached) " >&6
  21631. else
  21632. cat >conftest.$ac_ext <<_ACEOF
  21633. /* confdefs.h. */
  21634. _ACEOF
  21635. cat confdefs.h >>conftest.$ac_ext
  21636. cat >>conftest.$ac_ext <<_ACEOF
  21637. /* end confdefs.h. */
  21638. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21639. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21640. #define $ac_func innocuous_$ac_func
  21641. /* System header to define __stub macros and hopefully few prototypes,
  21642. which can conflict with char $ac_func (); below.
  21643. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21644. <limits.h> exists even on freestanding compilers. */
  21645. #ifdef __STDC__
  21646. # include <limits.h>
  21647. #else
  21648. # include <assert.h>
  21649. #endif
  21650. #undef $ac_func
  21651. /* Override any GCC internal prototype to avoid an error.
  21652. Use char because int might match the return type of a GCC
  21653. builtin and then its argument prototype would still apply. */
  21654. #ifdef __cplusplus
  21655. extern "C"
  21656. #endif
  21657. char $ac_func ();
  21658. /* The GNU C library defines this for functions which it implements
  21659. to always fail with ENOSYS. Some functions are actually named
  21660. something starting with __ and the normal name is an alias. */
  21661. #if defined __stub_$ac_func || defined __stub___$ac_func
  21662. choke me
  21663. #endif
  21664. int
  21665. main ()
  21666. {
  21667. return $ac_func ();
  21668. ;
  21669. return 0;
  21670. }
  21671. _ACEOF
  21672. rm -f conftest.$ac_objext conftest$ac_exeext
  21673. if { (ac_try="$ac_link"
  21674. case "(($ac_try" in
  21675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21676. *) ac_try_echo=$ac_try;;
  21677. esac
  21678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21679. $as_echo "$ac_try_echo") >&5
  21680. (eval "$ac_link") 2>conftest.er1
  21681. ac_status=$?
  21682. grep -v '^ *+' conftest.er1 >conftest.err
  21683. rm -f conftest.er1
  21684. cat conftest.err >&5
  21685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21686. (exit $ac_status); } && {
  21687. test -z "$ac_c_werror_flag" ||
  21688. test ! -s conftest.err
  21689. } && test -s conftest$ac_exeext && {
  21690. test "$cross_compiling" = yes ||
  21691. $as_test_x conftest$ac_exeext
  21692. }; then
  21693. eval "$as_ac_var=yes"
  21694. else
  21695. $as_echo "$as_me: failed program was:" >&5
  21696. sed 's/^/| /' conftest.$ac_ext >&5
  21697. eval "$as_ac_var=no"
  21698. fi
  21699. rm -rf conftest.dSYM
  21700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21701. conftest$ac_exeext conftest.$ac_ext
  21702. fi
  21703. ac_res=`eval 'as_val=${'$as_ac_var'}
  21704. $as_echo "$as_val"'`
  21705. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21706. $as_echo "$ac_res" >&6; }
  21707. as_val=`eval 'as_val=${'$as_ac_var'}
  21708. $as_echo "$as_val"'`
  21709. if test "x$as_val" = x""yes; then
  21710. cat >>confdefs.h <<_ACEOF
  21711. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21712. _ACEOF
  21713. fi
  21714. done
  21715. LIBS="$save_LIBS"
  21716. CPPFLAGS="$save_CPPFLAGS"
  21717. fi
  21718. # BEGIN COPYRIGHT BLOCK
  21719. # Copyright (C) 2007 Red Hat, Inc.
  21720. # All rights reserved.
  21721. #
  21722. # This program is free software; you can redistribute it and/or
  21723. # modify it under the terms of the GNU General Public License
  21724. # as published by the Free Software Foundation; either version 2
  21725. # of the License, or (at your option) any later version.
  21726. #
  21727. # This program is distributed in the hope that it will be useful,
  21728. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21729. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21730. # GNU General Public License for more details.
  21731. #
  21732. # You should have received a copy of the GNU General Public License
  21733. # along with this program; if not, write to the Free Software
  21734. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21735. #
  21736. # END COPYRIGHT BLOCK
  21737. { $as_echo "$as_me:$LINENO: checking for PCRE..." >&5
  21738. $as_echo "$as_me: checking for PCRE..." >&6;}
  21739. { $as_echo "$as_me:$LINENO: checking for --with-pcre" >&5
  21740. $as_echo_n "checking for --with-pcre... " >&6; }
  21741. # Check whether --with-pcre was given.
  21742. if test "${with_pcre+set}" = set; then
  21743. withval=$with_pcre;
  21744. if test "$withval" = "yes"; then
  21745. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21746. $as_echo "yes" >&6; }
  21747. elif test "$withval" = "no"; then
  21748. { $as_echo "$as_me:$LINENO: result: no" >&5
  21749. $as_echo "no" >&6; }
  21750. { { $as_echo "$as_me:$LINENO: error: PCRE is required." >&5
  21751. $as_echo "$as_me: error: PCRE is required." >&2;}
  21752. { (exit 1); exit 1; }; }
  21753. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21754. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  21755. $as_echo "using $withval" >&6; }
  21756. PCREDIR=$withval
  21757. pcre_lib="-L$PCREDIR/lib"
  21758. pcre_libdir="$PCREDIR/lib"
  21759. pcre_incdir="$PCREDIR/include"
  21760. if ! test -e "$pcre_incdir/pcre.h" ; then
  21761. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21762. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  21763. { (exit 1); exit 1; }; }
  21764. fi
  21765. pcre_inc="-I$pcre_incdir"
  21766. else
  21767. echo
  21768. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  21769. $as_echo "$as_me: error: $withval not found" >&2;}
  21770. { (exit 1); exit 1; }; }
  21771. fi
  21772. else
  21773. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21774. $as_echo "yes" >&6; }
  21775. fi
  21776. #
  21777. # if PCRE is not found yet, try pkg-config
  21778. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  21779. # Extract the first word of "pkg-config", so it can be a program name with args.
  21780. set dummy pkg-config; ac_word=$2
  21781. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21782. $as_echo_n "checking for $ac_word... " >&6; }
  21783. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21784. $as_echo_n "(cached) " >&6
  21785. else
  21786. case $PKG_CONFIG in
  21787. [\\/]* | ?:[\\/]*)
  21788. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21789. ;;
  21790. *)
  21791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21792. for as_dir in $PATH
  21793. do
  21794. IFS=$as_save_IFS
  21795. test -z "$as_dir" && as_dir=.
  21796. for ac_exec_ext in '' $ac_executable_extensions; do
  21797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21798. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21799. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21800. break 2
  21801. fi
  21802. done
  21803. done
  21804. IFS=$as_save_IFS
  21805. ;;
  21806. esac
  21807. fi
  21808. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21809. if test -n "$PKG_CONFIG"; then
  21810. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21811. $as_echo "$PKG_CONFIG" >&6; }
  21812. else
  21813. { $as_echo "$as_me:$LINENO: result: no" >&5
  21814. $as_echo "no" >&6; }
  21815. fi
  21816. { $as_echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  21817. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  21818. if test -n "$PKG_CONFIG"; then
  21819. if $PKG_CONFIG --exists pcre; then
  21820. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  21821. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  21822. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  21823. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  21824. $as_echo "using system PCRE" >&6; }
  21825. elif $PKG_CONFIG --exists libpcre; then
  21826. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  21827. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  21828. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  21829. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  21830. $as_echo "using system PCRE" >&6; }
  21831. else
  21832. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  21833. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  21834. { (exit 1); exit 1; }; }
  21835. fi
  21836. fi
  21837. fi
  21838. if test -z "$pcre_inc"; then
  21839. { $as_echo "$as_me:$LINENO: checking for pcre.h" >&5
  21840. $as_echo_n "checking for pcre.h... " >&6; }
  21841. if test -f "/usr/include/pcre/pcre.h"; then
  21842. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre/pcre.h" >&5
  21843. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  21844. pcre_incdir="/usr/include/pcre"
  21845. pcre_inc="-I/usr/include/pcre"
  21846. pcre_lib='-L$(libdir)'
  21847. pcre_libdir='$(libdir)'
  21848. elif test -f "/usr/include/pcre.h"; then
  21849. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  21850. $as_echo "using /usr/include/pcre.h" >&6; }
  21851. pcre_incdir="/usr/include"
  21852. pcre_inc="-I/usr/include"
  21853. pcre_lib='-L$(libdir)'
  21854. pcre_libdir='$(libdir)'
  21855. else
  21856. { $as_echo "$as_me:$LINENO: result: no" >&5
  21857. $as_echo "no" >&6; }
  21858. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  21859. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  21860. { (exit 1); exit 1; }; }
  21861. fi
  21862. fi
  21863. # BEGIN COPYRIGHT BLOCK
  21864. # Copyright (C) 2009 Red Hat, Inc.
  21865. # All rights reserved.
  21866. #
  21867. # This program is free software; you can redistribute it and/or
  21868. # modify it under the terms of the GNU General Public License
  21869. # as published by the Free Software Foundation; either version 2
  21870. # of the License, or (at your option) any later version.
  21871. #
  21872. # This program is distributed in the hope that it will be useful,
  21873. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21874. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21875. # GNU General Public License for more details.
  21876. #
  21877. # You should have received a copy of the GNU General Public License
  21878. # along with this program; if not, write to the Free Software
  21879. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21880. #
  21881. # END COPYRIGHT BLOCK
  21882. { $as_echo "$as_me:$LINENO: checking for SELinux..." >&5
  21883. $as_echo "$as_me: checking for SELinux..." >&6;}
  21884. # check for --with-selinux
  21885. { $as_echo "$as_me:$LINENO: checking for --with-selinux" >&5
  21886. $as_echo_n "checking for --with-selinux... " >&6; }
  21887. # Check whether --with-selinux was given.
  21888. if test "${with_selinux+set}" = set; then
  21889. withval=$with_selinux;
  21890. if test "$withval" = "no"; then
  21891. { $as_echo "$as_me:$LINENO: result: no" >&5
  21892. $as_echo "no" >&6; }
  21893. else
  21894. with_selinux=yes
  21895. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21896. $as_echo "yes" >&6; }
  21897. fi
  21898. else
  21899. { $as_echo "$as_me:$LINENO: result: no" >&5
  21900. $as_echo "no" >&6; }
  21901. fi
  21902. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  21903. # set sasl_path for wrapper scripts
  21904. if test -z "$sasl_libdir" ; then
  21905. sasl_path="$libdir/sasl2"
  21906. else
  21907. sasl_path="$sasl_libdir/sasl2"
  21908. fi
  21909. if test "$with_selinux" = "yes"; then
  21910. SELINUX_TRUE=
  21911. SELINUX_FALSE='#'
  21912. else
  21913. SELINUX_TRUE='#'
  21914. SELINUX_FALSE=
  21915. fi
  21916. if test "$with_openldap" = "yes"; then
  21917. OPENLDAP_TRUE=
  21918. OPENLDAP_FALSE='#'
  21919. else
  21920. OPENLDAP_TRUE='#'
  21921. OPENLDAP_FALSE=
  21922. fi
  21923. if test "$platform" = "solaris"; then
  21924. SOLARIS_TRUE=
  21925. SOLARIS_FALSE='#'
  21926. else
  21927. SOLARIS_TRUE='#'
  21928. SOLARIS_FALSE=
  21929. fi
  21930. if test "x$TARGET" = xSPARC; then
  21931. SPARC_TRUE=
  21932. SPARC_FALSE='#'
  21933. else
  21934. SPARC_TRUE='#'
  21935. SPARC_FALSE=
  21936. fi
  21937. # write out paths for binary components
  21938. cat >>confdefs.h <<\_ACEOF
  21939. #define LDAP_DEBUG 1
  21940. _ACEOF
  21941. cat >>confdefs.h <<\_ACEOF
  21942. #define LDAP_DONT_USE_SMARTHEAP 1
  21943. _ACEOF
  21944. # libtool on fedora/rhel contains some gcc-isms which cause problems
  21945. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  21946. # we remove them here
  21947. if test "$GCC" != yes ; then
  21948. { $as_echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  21949. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  21950. cp -p libtool libtool.orig
  21951. cp -p libtool libtool.tmp
  21952. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  21953. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  21954. # perl produced write-only code . . .
  21955. sed -e '/^gcc_dir/ d' \
  21956. -e '/^gcc_ver/ d' \
  21957. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  21958. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  21959. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  21960. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  21961. libtool > libtool.tmp
  21962. cp -p libtool.tmp libtool
  21963. rm -f libtool.tmp
  21964. fi
  21965. ac_config_files="$ac_config_files Makefile"
  21966. cat >confcache <<\_ACEOF
  21967. # This file is a shell script that caches the results of configure
  21968. # tests run on this system so they can be shared between configure
  21969. # scripts and configure runs, see configure's option --config-cache.
  21970. # It is not useful on other systems. If it contains results you don't
  21971. # want to keep, you may remove or edit it.
  21972. #
  21973. # config.status only pays attention to the cache file if you give it
  21974. # the --recheck option to rerun configure.
  21975. #
  21976. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21977. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21978. # following values.
  21979. _ACEOF
  21980. # The following way of writing the cache mishandles newlines in values,
  21981. # but we know of no workaround that is simple, portable, and efficient.
  21982. # So, we kill variables containing newlines.
  21983. # Ultrix sh set writes to stderr and can't be redirected directly,
  21984. # and sets the high bit in the cache file unless we assign to the vars.
  21985. (
  21986. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21987. eval ac_val=\$$ac_var
  21988. case $ac_val in #(
  21989. *${as_nl}*)
  21990. case $ac_var in #(
  21991. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  21992. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21993. esac
  21994. case $ac_var in #(
  21995. _ | IFS | as_nl) ;; #(
  21996. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21997. *) $as_unset $ac_var ;;
  21998. esac ;;
  21999. esac
  22000. done
  22001. (set) 2>&1 |
  22002. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22003. *${as_nl}ac_space=\ *)
  22004. # `set' does not quote correctly, so add quotes (double-quote
  22005. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22006. sed -n \
  22007. "s/'/'\\\\''/g;
  22008. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22009. ;; #(
  22010. *)
  22011. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22012. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22013. ;;
  22014. esac |
  22015. sort
  22016. ) |
  22017. sed '
  22018. /^ac_cv_env_/b end
  22019. t clear
  22020. :clear
  22021. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22022. t end
  22023. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22024. :end' >>confcache
  22025. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22026. if test -w "$cache_file"; then
  22027. test "x$cache_file" != "x/dev/null" &&
  22028. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  22029. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22030. cat confcache >$cache_file
  22031. else
  22032. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  22033. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22034. fi
  22035. fi
  22036. rm -f confcache
  22037. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22038. # Let make expand exec_prefix.
  22039. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22040. DEFS=-DHAVE_CONFIG_H
  22041. ac_libobjs=
  22042. ac_ltlibobjs=
  22043. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22044. # 1. Remove the extension, and $U if already installed.
  22045. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22046. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22047. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22048. # will be set to the directory where LIBOBJS objects are built.
  22049. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22050. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  22051. done
  22052. LIBOBJS=$ac_libobjs
  22053. LTLIBOBJS=$ac_ltlibobjs
  22054. if test -n "$EXEEXT"; then
  22055. am__EXEEXT_TRUE=
  22056. am__EXEEXT_FALSE='#'
  22057. else
  22058. am__EXEEXT_TRUE='#'
  22059. am__EXEEXT_FALSE=
  22060. fi
  22061. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22062. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  22063. Usually this means the macro was only invoked conditionally." >&5
  22064. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  22065. Usually this means the macro was only invoked conditionally." >&2;}
  22066. { (exit 1); exit 1; }; }
  22067. fi
  22068. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22069. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22070. Usually this means the macro was only invoked conditionally." >&5
  22071. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22072. Usually this means the macro was only invoked conditionally." >&2;}
  22073. { (exit 1); exit 1; }; }
  22074. fi
  22075. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22076. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22077. Usually this means the macro was only invoked conditionally." >&5
  22078. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22079. Usually this means the macro was only invoked conditionally." >&2;}
  22080. { (exit 1); exit 1; }; }
  22081. fi
  22082. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22083. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22084. Usually this means the macro was only invoked conditionally." >&5
  22085. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22086. Usually this means the macro was only invoked conditionally." >&2;}
  22087. { (exit 1); exit 1; }; }
  22088. fi
  22089. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  22090. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  22091. Usually this means the macro was only invoked conditionally." >&5
  22092. $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  22093. Usually this means the macro was only invoked conditionally." >&2;}
  22094. { (exit 1); exit 1; }; }
  22095. fi
  22096. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22097. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22098. Usually this means the macro was only invoked conditionally." >&5
  22099. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22100. Usually this means the macro was only invoked conditionally." >&2;}
  22101. { (exit 1); exit 1; }; }
  22102. fi
  22103. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  22104. { { $as_echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  22105. Usually this means the macro was only invoked conditionally." >&5
  22106. $as_echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  22107. Usually this means the macro was only invoked conditionally." >&2;}
  22108. { (exit 1); exit 1; }; }
  22109. fi
  22110. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  22111. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  22112. Usually this means the macro was only invoked conditionally." >&5
  22113. $as_echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  22114. Usually this means the macro was only invoked conditionally." >&2;}
  22115. { (exit 1); exit 1; }; }
  22116. fi
  22117. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  22118. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  22119. Usually this means the macro was only invoked conditionally." >&5
  22120. $as_echo "$as_me: error: conditional \"enable_dna\" was never defined.
  22121. Usually this means the macro was only invoked conditionally." >&2;}
  22122. { (exit 1); exit 1; }; }
  22123. fi
  22124. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  22125. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  22126. Usually this means the macro was only invoked conditionally." >&5
  22127. $as_echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  22128. Usually this means the macro was only invoked conditionally." >&2;}
  22129. { (exit 1); exit 1; }; }
  22130. fi
  22131. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  22132. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  22133. Usually this means the macro was only invoked conditionally." >&5
  22134. $as_echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  22135. Usually this means the macro was only invoked conditionally." >&2;}
  22136. { (exit 1); exit 1; }; }
  22137. fi
  22138. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  22139. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  22140. Usually this means the macro was only invoked conditionally." >&5
  22141. $as_echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  22142. Usually this means the macro was only invoked conditionally." >&2;}
  22143. { (exit 1); exit 1; }; }
  22144. fi
  22145. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  22146. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  22147. Usually this means the macro was only invoked conditionally." >&5
  22148. $as_echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  22149. Usually this means the macro was only invoked conditionally." >&2;}
  22150. { (exit 1); exit 1; }; }
  22151. fi
  22152. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  22153. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  22154. Usually this means the macro was only invoked conditionally." >&5
  22155. $as_echo "$as_me: error: conditional \"enable_presence\" was never defined.
  22156. Usually this means the macro was only invoked conditionally." >&2;}
  22157. { (exit 1); exit 1; }; }
  22158. fi
  22159. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  22160. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_acctpolicy\" was never defined.
  22161. Usually this means the macro was only invoked conditionally." >&5
  22162. $as_echo "$as_me: error: conditional \"enable_acctpolicy\" was never defined.
  22163. Usually this means the macro was only invoked conditionally." >&2;}
  22164. { (exit 1); exit 1; }; }
  22165. fi
  22166. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  22167. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_posix_winsync\" was never defined.
  22168. Usually this means the macro was only invoked conditionally." >&5
  22169. $as_echo "$as_me: error: conditional \"enable_posix_winsync\" was never defined.
  22170. Usually this means the macro was only invoked conditionally." >&2;}
  22171. { (exit 1); exit 1; }; }
  22172. fi
  22173. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  22174. { { $as_echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  22175. Usually this means the macro was only invoked conditionally." >&5
  22176. $as_echo "$as_me: error: conditional \"WINNT\" was never defined.
  22177. Usually this means the macro was only invoked conditionally." >&2;}
  22178. { (exit 1); exit 1; }; }
  22179. fi
  22180. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  22181. { { $as_echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  22182. Usually this means the macro was only invoked conditionally." >&5
  22183. $as_echo "$as_me: error: conditional \"HPUX\" was never defined.
  22184. Usually this means the macro was only invoked conditionally." >&2;}
  22185. { (exit 1); exit 1; }; }
  22186. fi
  22187. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  22188. { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  22189. Usually this means the macro was only invoked conditionally." >&5
  22190. $as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  22191. Usually this means the macro was only invoked conditionally." >&2;}
  22192. { (exit 1); exit 1; }; }
  22193. fi
  22194. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  22195. { { $as_echo "$as_me:$LINENO: error: conditional \"SYSTEMD\" was never defined.
  22196. Usually this means the macro was only invoked conditionally." >&5
  22197. $as_echo "$as_me: error: conditional \"SYSTEMD\" was never defined.
  22198. Usually this means the macro was only invoked conditionally." >&2;}
  22199. { (exit 1); exit 1; }; }
  22200. fi
  22201. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  22202. { { $as_echo "$as_me:$LINENO: error: conditional \"SELINUX\" was never defined.
  22203. Usually this means the macro was only invoked conditionally." >&5
  22204. $as_echo "$as_me: error: conditional \"SELINUX\" was never defined.
  22205. Usually this means the macro was only invoked conditionally." >&2;}
  22206. { (exit 1); exit 1; }; }
  22207. fi
  22208. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  22209. { { $as_echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  22210. Usually this means the macro was only invoked conditionally." >&5
  22211. $as_echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  22212. Usually this means the macro was only invoked conditionally." >&2;}
  22213. { (exit 1); exit 1; }; }
  22214. fi
  22215. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  22216. { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  22217. Usually this means the macro was only invoked conditionally." >&5
  22218. $as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  22219. Usually this means the macro was only invoked conditionally." >&2;}
  22220. { (exit 1); exit 1; }; }
  22221. fi
  22222. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  22223. { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
  22224. Usually this means the macro was only invoked conditionally." >&5
  22225. $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
  22226. Usually this means the macro was only invoked conditionally." >&2;}
  22227. { (exit 1); exit 1; }; }
  22228. fi
  22229. : ${CONFIG_STATUS=./config.status}
  22230. ac_write_fail=0
  22231. ac_clean_files_save=$ac_clean_files
  22232. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22233. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22234. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22235. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22236. #! $SHELL
  22237. # Generated by $as_me.
  22238. # Run this file to recreate the current configuration.
  22239. # Compiler output produced by configure, useful for debugging
  22240. # configure, is in config.log if it exists.
  22241. debug=false
  22242. ac_cs_recheck=false
  22243. ac_cs_silent=false
  22244. SHELL=\${CONFIG_SHELL-$SHELL}
  22245. _ACEOF
  22246. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22247. ## --------------------- ##
  22248. ## M4sh Initialization. ##
  22249. ## --------------------- ##
  22250. # Be more Bourne compatible
  22251. DUALCASE=1; export DUALCASE # for MKS sh
  22252. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22253. emulate sh
  22254. NULLCMD=:
  22255. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22256. # is contrary to our usage. Disable this feature.
  22257. alias -g '${1+"$@"}'='"$@"'
  22258. setopt NO_GLOB_SUBST
  22259. else
  22260. case `(set -o) 2>/dev/null` in
  22261. *posix*) set -o posix ;;
  22262. esac
  22263. fi
  22264. # PATH needs CR
  22265. # Avoid depending upon Character Ranges.
  22266. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22267. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22268. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22269. as_cr_digits='0123456789'
  22270. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22271. as_nl='
  22272. '
  22273. export as_nl
  22274. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22275. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22276. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22277. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22278. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22279. as_echo='printf %s\n'
  22280. as_echo_n='printf %s'
  22281. else
  22282. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22283. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22284. as_echo_n='/usr/ucb/echo -n'
  22285. else
  22286. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22287. as_echo_n_body='eval
  22288. arg=$1;
  22289. case $arg in
  22290. *"$as_nl"*)
  22291. expr "X$arg" : "X\\(.*\\)$as_nl";
  22292. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22293. esac;
  22294. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22295. '
  22296. export as_echo_n_body
  22297. as_echo_n='sh -c $as_echo_n_body as_echo'
  22298. fi
  22299. export as_echo_body
  22300. as_echo='sh -c $as_echo_body as_echo'
  22301. fi
  22302. # The user is always right.
  22303. if test "${PATH_SEPARATOR+set}" != set; then
  22304. PATH_SEPARATOR=:
  22305. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22306. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22307. PATH_SEPARATOR=';'
  22308. }
  22309. fi
  22310. # Support unset when possible.
  22311. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22312. as_unset=unset
  22313. else
  22314. as_unset=false
  22315. fi
  22316. # IFS
  22317. # We need space, tab and new line, in precisely that order. Quoting is
  22318. # there to prevent editors from complaining about space-tab.
  22319. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22320. # splitting by setting IFS to empty value.)
  22321. IFS=" "" $as_nl"
  22322. # Find who we are. Look in the path if we contain no directory separator.
  22323. case $0 in
  22324. *[\\/]* ) as_myself=$0 ;;
  22325. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22326. for as_dir in $PATH
  22327. do
  22328. IFS=$as_save_IFS
  22329. test -z "$as_dir" && as_dir=.
  22330. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22331. done
  22332. IFS=$as_save_IFS
  22333. ;;
  22334. esac
  22335. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22336. # in which case we are not to be found in the path.
  22337. if test "x$as_myself" = x; then
  22338. as_myself=$0
  22339. fi
  22340. if test ! -f "$as_myself"; then
  22341. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22342. { (exit 1); exit 1; }
  22343. fi
  22344. # Work around bugs in pre-3.0 UWIN ksh.
  22345. for as_var in ENV MAIL MAILPATH
  22346. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  22347. done
  22348. PS1='$ '
  22349. PS2='> '
  22350. PS4='+ '
  22351. # NLS nuisances.
  22352. LC_ALL=C
  22353. export LC_ALL
  22354. LANGUAGE=C
  22355. export LANGUAGE
  22356. # Required to use basename.
  22357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22359. as_expr=expr
  22360. else
  22361. as_expr=false
  22362. fi
  22363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22364. as_basename=basename
  22365. else
  22366. as_basename=false
  22367. fi
  22368. # Name of the executable.
  22369. as_me=`$as_basename -- "$0" ||
  22370. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22371. X"$0" : 'X\(//\)$' \| \
  22372. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22373. $as_echo X/"$0" |
  22374. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22375. s//\1/
  22376. q
  22377. }
  22378. /^X\/\(\/\/\)$/{
  22379. s//\1/
  22380. q
  22381. }
  22382. /^X\/\(\/\).*/{
  22383. s//\1/
  22384. q
  22385. }
  22386. s/.*/./; q'`
  22387. # CDPATH.
  22388. $as_unset CDPATH
  22389. as_lineno_1=$LINENO
  22390. as_lineno_2=$LINENO
  22391. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22392. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  22393. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22394. # uniformly replaced by the line number. The first 'sed' inserts a
  22395. # line-number line after each line using $LINENO; the second 'sed'
  22396. # does the real work. The second script uses 'N' to pair each
  22397. # line-number line with the line containing $LINENO, and appends
  22398. # trailing '-' during substitution so that $LINENO is not a special
  22399. # case at line end.
  22400. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22401. # scripts with optimization help from Paolo Bonzini. Blame Lee
  22402. # E. McMahon (1931-1989) for sed's syntax. :-)
  22403. sed -n '
  22404. p
  22405. /[$]LINENO/=
  22406. ' <$as_myself |
  22407. sed '
  22408. s/[$]LINENO.*/&-/
  22409. t lineno
  22410. b
  22411. :lineno
  22412. N
  22413. :loop
  22414. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  22415. t loop
  22416. s/-\n.*//
  22417. ' >$as_me.lineno &&
  22418. chmod +x "$as_me.lineno" ||
  22419. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  22420. { (exit 1); exit 1; }; }
  22421. # Don't try to exec as it changes $[0], causing all sort of problems
  22422. # (the dirname of $[0] is not the place where we might find the
  22423. # original and so on. Autoconf is especially sensitive to this).
  22424. . "./$as_me.lineno"
  22425. # Exit status is that of the last command.
  22426. exit
  22427. }
  22428. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22429. as_dirname=dirname
  22430. else
  22431. as_dirname=false
  22432. fi
  22433. ECHO_C= ECHO_N= ECHO_T=
  22434. case `echo -n x` in
  22435. -n*)
  22436. case `echo 'x\c'` in
  22437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22438. *) ECHO_C='\c';;
  22439. esac;;
  22440. *)
  22441. ECHO_N='-n';;
  22442. esac
  22443. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22444. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22445. as_expr=expr
  22446. else
  22447. as_expr=false
  22448. fi
  22449. rm -f conf$$ conf$$.exe conf$$.file
  22450. if test -d conf$$.dir; then
  22451. rm -f conf$$.dir/conf$$.file
  22452. else
  22453. rm -f conf$$.dir
  22454. mkdir conf$$.dir 2>/dev/null
  22455. fi
  22456. if (echo >conf$$.file) 2>/dev/null; then
  22457. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22458. as_ln_s='ln -s'
  22459. # ... but there are two gotchas:
  22460. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22461. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22462. # In both cases, we have to default to `cp -p'.
  22463. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22464. as_ln_s='cp -p'
  22465. elif ln conf$$.file conf$$ 2>/dev/null; then
  22466. as_ln_s=ln
  22467. else
  22468. as_ln_s='cp -p'
  22469. fi
  22470. else
  22471. as_ln_s='cp -p'
  22472. fi
  22473. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22474. rmdir conf$$.dir 2>/dev/null
  22475. if mkdir -p . 2>/dev/null; then
  22476. as_mkdir_p=:
  22477. else
  22478. test -d ./-p && rmdir ./-p
  22479. as_mkdir_p=false
  22480. fi
  22481. if test -x / >/dev/null 2>&1; then
  22482. as_test_x='test -x'
  22483. else
  22484. if ls -dL / >/dev/null 2>&1; then
  22485. as_ls_L_option=L
  22486. else
  22487. as_ls_L_option=
  22488. fi
  22489. as_test_x='
  22490. eval sh -c '\''
  22491. if test -d "$1"; then
  22492. test -d "$1/.";
  22493. else
  22494. case $1 in
  22495. -*)set "./$1";;
  22496. esac;
  22497. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  22498. ???[sx]*):;;*)false;;esac;fi
  22499. '\'' sh
  22500. '
  22501. fi
  22502. as_executable_p=$as_test_x
  22503. # Sed expression to map a string onto a valid CPP name.
  22504. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22505. # Sed expression to map a string onto a valid variable name.
  22506. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22507. exec 6>&1
  22508. # Save the log message, to keep $[0] and so on meaningful, and to
  22509. # report actual input values of CONFIG_FILES etc. instead of their
  22510. # values after options handling.
  22511. ac_log="
  22512. This file was extended by dirsrv $as_me 1.0, which was
  22513. generated by GNU Autoconf 2.63. Invocation command line was
  22514. CONFIG_FILES = $CONFIG_FILES
  22515. CONFIG_HEADERS = $CONFIG_HEADERS
  22516. CONFIG_LINKS = $CONFIG_LINKS
  22517. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22518. $ $0 $@
  22519. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22520. "
  22521. _ACEOF
  22522. case $ac_config_files in *"
  22523. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22524. esac
  22525. case $ac_config_headers in *"
  22526. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22527. esac
  22528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22529. # Files that config.status was made for.
  22530. config_files="$ac_config_files"
  22531. config_headers="$ac_config_headers"
  22532. config_commands="$ac_config_commands"
  22533. _ACEOF
  22534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22535. ac_cs_usage="\
  22536. \`$as_me' instantiates files from templates according to the
  22537. current configuration.
  22538. Usage: $0 [OPTION]... [FILE]...
  22539. -h, --help print this help, then exit
  22540. -V, --version print version number and configuration settings, then exit
  22541. -q, --quiet, --silent
  22542. do not print progress messages
  22543. -d, --debug don't remove temporary files
  22544. --recheck update $as_me by reconfiguring in the same conditions
  22545. --file=FILE[:TEMPLATE]
  22546. instantiate the configuration file FILE
  22547. --header=FILE[:TEMPLATE]
  22548. instantiate the configuration header FILE
  22549. Configuration files:
  22550. $config_files
  22551. Configuration headers:
  22552. $config_headers
  22553. Configuration commands:
  22554. $config_commands
  22555. Report bugs to <[email protected]>."
  22556. _ACEOF
  22557. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22558. ac_cs_version="\\
  22559. dirsrv config.status 1.0
  22560. configured by $0, generated by GNU Autoconf 2.63,
  22561. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  22562. Copyright (C) 2008 Free Software Foundation, Inc.
  22563. This config.status script is free software; the Free Software Foundation
  22564. gives unlimited permission to copy, distribute and modify it."
  22565. ac_pwd='$ac_pwd'
  22566. srcdir='$srcdir'
  22567. INSTALL='$INSTALL'
  22568. MKDIR_P='$MKDIR_P'
  22569. AWK='$AWK'
  22570. test -n "\$AWK" || AWK=awk
  22571. _ACEOF
  22572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22573. # The default lists apply if the user does not specify any file.
  22574. ac_need_defaults=:
  22575. while test $# != 0
  22576. do
  22577. case $1 in
  22578. --*=*)
  22579. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22580. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22581. ac_shift=:
  22582. ;;
  22583. *)
  22584. ac_option=$1
  22585. ac_optarg=$2
  22586. ac_shift=shift
  22587. ;;
  22588. esac
  22589. case $ac_option in
  22590. # Handling of the options.
  22591. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22592. ac_cs_recheck=: ;;
  22593. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22594. $as_echo "$ac_cs_version"; exit ;;
  22595. --debug | --debu | --deb | --de | --d | -d )
  22596. debug=: ;;
  22597. --file | --fil | --fi | --f )
  22598. $ac_shift
  22599. case $ac_optarg in
  22600. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22601. esac
  22602. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  22603. ac_need_defaults=false;;
  22604. --header | --heade | --head | --hea )
  22605. $ac_shift
  22606. case $ac_optarg in
  22607. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22608. esac
  22609. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  22610. ac_need_defaults=false;;
  22611. --he | --h)
  22612. # Conflict between --help and --header
  22613. { $as_echo "$as_me: error: ambiguous option: $1
  22614. Try \`$0 --help' for more information." >&2
  22615. { (exit 1); exit 1; }; };;
  22616. --help | --hel | -h )
  22617. $as_echo "$ac_cs_usage"; exit ;;
  22618. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22619. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22620. ac_cs_silent=: ;;
  22621. # This is an error.
  22622. -*) { $as_echo "$as_me: error: unrecognized option: $1
  22623. Try \`$0 --help' for more information." >&2
  22624. { (exit 1); exit 1; }; } ;;
  22625. *) ac_config_targets="$ac_config_targets $1"
  22626. ac_need_defaults=false ;;
  22627. esac
  22628. shift
  22629. done
  22630. ac_configure_extra_args=
  22631. if $ac_cs_silent; then
  22632. exec 6>/dev/null
  22633. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22634. fi
  22635. _ACEOF
  22636. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22637. if \$ac_cs_recheck; then
  22638. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22639. shift
  22640. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22641. CONFIG_SHELL='$SHELL'
  22642. export CONFIG_SHELL
  22643. exec "\$@"
  22644. fi
  22645. _ACEOF
  22646. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22647. exec 5>>config.log
  22648. {
  22649. echo
  22650. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22651. ## Running $as_me. ##
  22652. _ASBOX
  22653. $as_echo "$ac_log"
  22654. } >&5
  22655. _ACEOF
  22656. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22657. #
  22658. # INIT-COMMANDS
  22659. #
  22660. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22661. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22662. # if CDPATH is set.
  22663. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22664. sed_quote_subst='$sed_quote_subst'
  22665. double_quote_subst='$double_quote_subst'
  22666. delay_variable_subst='$delay_variable_subst'
  22667. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  22668. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  22669. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  22670. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  22671. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  22672. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  22673. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22674. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  22675. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  22676. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22677. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  22678. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  22679. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  22680. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  22681. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  22682. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22683. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22684. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  22685. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  22686. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  22687. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  22688. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  22689. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  22690. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  22691. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  22692. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  22693. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22694. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22695. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  22696. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  22697. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  22698. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  22699. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22700. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  22701. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  22702. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22703. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22704. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22705. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  22706. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22707. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  22708. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  22709. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  22710. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  22711. 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"`'
  22712. 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"`'
  22713. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  22714. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  22715. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  22716. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  22717. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22718. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  22719. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  22720. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  22721. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  22722. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  22723. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  22724. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  22725. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  22726. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  22727. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  22728. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  22729. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22730. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22731. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  22732. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  22733. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22734. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22735. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  22736. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22737. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22738. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22739. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22740. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22741. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22742. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22743. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22744. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22745. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22746. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22747. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  22748. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  22749. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  22750. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  22751. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22752. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  22753. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  22754. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  22755. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  22756. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  22757. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22758. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22759. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22760. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22761. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22762. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  22763. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22764. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  22765. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  22766. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22767. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22768. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  22769. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22770. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22771. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22772. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22773. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22774. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22775. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  22776. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  22777. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22778. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22779. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  22780. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  22781. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  22782. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  22783. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22784. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22785. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  22786. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22787. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22788. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  22789. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  22790. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  22791. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22792. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22793. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22794. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22795. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22796. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22797. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22798. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22799. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22800. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22801. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22802. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22803. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22804. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22805. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22806. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22807. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22808. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22809. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22810. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22811. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22812. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22813. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22814. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22815. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22816. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22817. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22818. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22819. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22820. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22821. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22822. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22823. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22824. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22825. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22826. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22827. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22828. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22829. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22830. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22831. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22832. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22833. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22834. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22835. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22836. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22837. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22838. LTCC='$LTCC'
  22839. LTCFLAGS='$LTCFLAGS'
  22840. compiler='$compiler_DEFAULT'
  22841. # Quote evaled strings.
  22842. for var in SED \
  22843. GREP \
  22844. EGREP \
  22845. FGREP \
  22846. LD \
  22847. NM \
  22848. LN_S \
  22849. lt_SP2NL \
  22850. lt_NL2SP \
  22851. reload_flag \
  22852. OBJDUMP \
  22853. deplibs_check_method \
  22854. file_magic_cmd \
  22855. AR \
  22856. AR_FLAGS \
  22857. STRIP \
  22858. RANLIB \
  22859. CC \
  22860. CFLAGS \
  22861. compiler \
  22862. lt_cv_sys_global_symbol_pipe \
  22863. lt_cv_sys_global_symbol_to_cdecl \
  22864. lt_cv_sys_global_symbol_to_c_name_address \
  22865. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22866. SHELL \
  22867. ECHO \
  22868. lt_prog_compiler_no_builtin_flag \
  22869. lt_prog_compiler_wl \
  22870. lt_prog_compiler_pic \
  22871. lt_prog_compiler_static \
  22872. lt_cv_prog_compiler_c_o \
  22873. need_locks \
  22874. DSYMUTIL \
  22875. NMEDIT \
  22876. LIPO \
  22877. OTOOL \
  22878. OTOOL64 \
  22879. shrext_cmds \
  22880. export_dynamic_flag_spec \
  22881. whole_archive_flag_spec \
  22882. compiler_needs_object \
  22883. with_gnu_ld \
  22884. allow_undefined_flag \
  22885. no_undefined_flag \
  22886. hardcode_libdir_flag_spec \
  22887. hardcode_libdir_flag_spec_ld \
  22888. hardcode_libdir_separator \
  22889. fix_srcfile_path \
  22890. exclude_expsyms \
  22891. include_expsyms \
  22892. file_list_spec \
  22893. variables_saved_for_relink \
  22894. libname_spec \
  22895. library_names_spec \
  22896. soname_spec \
  22897. finish_eval \
  22898. old_striplib \
  22899. striplib \
  22900. compiler_lib_search_dirs \
  22901. predep_objects \
  22902. postdep_objects \
  22903. predeps \
  22904. postdeps \
  22905. compiler_lib_search_path \
  22906. LD_CXX \
  22907. compiler_CXX \
  22908. lt_prog_compiler_no_builtin_flag_CXX \
  22909. lt_prog_compiler_wl_CXX \
  22910. lt_prog_compiler_pic_CXX \
  22911. lt_prog_compiler_static_CXX \
  22912. lt_cv_prog_compiler_c_o_CXX \
  22913. export_dynamic_flag_spec_CXX \
  22914. whole_archive_flag_spec_CXX \
  22915. compiler_needs_object_CXX \
  22916. with_gnu_ld_CXX \
  22917. allow_undefined_flag_CXX \
  22918. no_undefined_flag_CXX \
  22919. hardcode_libdir_flag_spec_CXX \
  22920. hardcode_libdir_flag_spec_ld_CXX \
  22921. hardcode_libdir_separator_CXX \
  22922. fix_srcfile_path_CXX \
  22923. exclude_expsyms_CXX \
  22924. include_expsyms_CXX \
  22925. file_list_spec_CXX \
  22926. compiler_lib_search_dirs_CXX \
  22927. predep_objects_CXX \
  22928. postdep_objects_CXX \
  22929. predeps_CXX \
  22930. postdeps_CXX \
  22931. compiler_lib_search_path_CXX; do
  22932. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22933. *[\\\\\\\`\\"\\\$]*)
  22934. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22935. ;;
  22936. *)
  22937. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22938. ;;
  22939. esac
  22940. done
  22941. # Double-quote double-evaled strings.
  22942. for var in reload_cmds \
  22943. old_postinstall_cmds \
  22944. old_postuninstall_cmds \
  22945. old_archive_cmds \
  22946. extract_expsyms_cmds \
  22947. old_archive_from_new_cmds \
  22948. old_archive_from_expsyms_cmds \
  22949. archive_cmds \
  22950. archive_expsym_cmds \
  22951. module_cmds \
  22952. module_expsym_cmds \
  22953. export_symbols_cmds \
  22954. prelink_cmds \
  22955. postinstall_cmds \
  22956. postuninstall_cmds \
  22957. finish_cmds \
  22958. sys_lib_search_path_spec \
  22959. sys_lib_dlsearch_path_spec \
  22960. old_archive_cmds_CXX \
  22961. old_archive_from_new_cmds_CXX \
  22962. old_archive_from_expsyms_cmds_CXX \
  22963. archive_cmds_CXX \
  22964. archive_expsym_cmds_CXX \
  22965. module_cmds_CXX \
  22966. module_expsym_cmds_CXX \
  22967. export_symbols_cmds_CXX \
  22968. prelink_cmds_CXX; do
  22969. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22970. *[\\\\\\\`\\"\\\$]*)
  22971. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22972. ;;
  22973. *)
  22974. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22975. ;;
  22976. esac
  22977. done
  22978. # Fix-up fallback echo if it was mangled by the above quoting rules.
  22979. case \$lt_ECHO in
  22980. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  22981. ;;
  22982. esac
  22983. ac_aux_dir='$ac_aux_dir'
  22984. xsi_shell='$xsi_shell'
  22985. lt_shell_append='$lt_shell_append'
  22986. # See if we are running on zsh, and set the options which allow our
  22987. # commands through without removal of \ escapes INIT.
  22988. if test -n "\${ZSH_VERSION+set}" ; then
  22989. setopt NO_GLOB_SUBST
  22990. fi
  22991. PACKAGE='$PACKAGE'
  22992. VERSION='$VERSION'
  22993. TIMESTAMP='$TIMESTAMP'
  22994. RM='$RM'
  22995. ofile='$ofile'
  22996. _ACEOF
  22997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22998. # Handling of arguments.
  22999. for ac_config_target in $ac_config_targets
  23000. do
  23001. case $ac_config_target in
  23002. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  23003. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23004. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23005. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23006. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  23007. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  23008. { (exit 1); exit 1; }; };;
  23009. esac
  23010. done
  23011. # If the user did not use the arguments to specify the items to instantiate,
  23012. # then the envvar interface is used. Set only those that are not.
  23013. # We use the long form for the default assignment because of an extremely
  23014. # bizarre bug on SunOS 4.1.3.
  23015. if $ac_need_defaults; then
  23016. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23017. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23018. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23019. fi
  23020. # Have a temporary directory for convenience. Make it in the build tree
  23021. # simply because there is no reason against having it here, and in addition,
  23022. # creating and moving files from /tmp can sometimes cause problems.
  23023. # Hook for its removal unless debugging.
  23024. # Note that there is a small window in which the directory will not be cleaned:
  23025. # after its creation but before its name has been assigned to `$tmp'.
  23026. $debug ||
  23027. {
  23028. tmp=
  23029. trap 'exit_status=$?
  23030. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  23031. ' 0
  23032. trap '{ (exit 1); exit 1; }' 1 2 13 15
  23033. }
  23034. # Create a (secure) tmp directory for tmp files.
  23035. {
  23036. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23037. test -n "$tmp" && test -d "$tmp"
  23038. } ||
  23039. {
  23040. tmp=./conf$$-$RANDOM
  23041. (umask 077 && mkdir "$tmp")
  23042. } ||
  23043. {
  23044. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  23045. { (exit 1); exit 1; }
  23046. }
  23047. # Set up the scripts for CONFIG_FILES section.
  23048. # No need to generate them if there are no CONFIG_FILES.
  23049. # This happens for instance with `./config.status config.h'.
  23050. if test -n "$CONFIG_FILES"; then
  23051. ac_cr=' '
  23052. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23053. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23054. ac_cs_awk_cr='\\r'
  23055. else
  23056. ac_cs_awk_cr=$ac_cr
  23057. fi
  23058. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  23059. _ACEOF
  23060. {
  23061. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23062. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23063. echo "_ACEOF"
  23064. } >conf$$subs.sh ||
  23065. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  23066. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  23067. { (exit 1); exit 1; }; }
  23068. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  23069. ac_delim='%!_!# '
  23070. for ac_last_try in false false false false false :; do
  23071. . ./conf$$subs.sh ||
  23072. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  23073. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  23074. { (exit 1); exit 1; }; }
  23075. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23076. if test $ac_delim_n = $ac_delim_num; then
  23077. break
  23078. elif $ac_last_try; then
  23079. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  23080. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  23081. { (exit 1); exit 1; }; }
  23082. else
  23083. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23084. fi
  23085. done
  23086. rm -f conf$$subs.sh
  23087. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23088. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  23089. _ACEOF
  23090. sed -n '
  23091. h
  23092. s/^/S["/; s/!.*/"]=/
  23093. p
  23094. g
  23095. s/^[^!]*!//
  23096. :repl
  23097. t repl
  23098. s/'"$ac_delim"'$//
  23099. t delim
  23100. :nl
  23101. h
  23102. s/\(.\{148\}\).*/\1/
  23103. t more1
  23104. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23105. p
  23106. n
  23107. b repl
  23108. :more1
  23109. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23110. p
  23111. g
  23112. s/.\{148\}//
  23113. t nl
  23114. :delim
  23115. h
  23116. s/\(.\{148\}\).*/\1/
  23117. t more2
  23118. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23119. p
  23120. b
  23121. :more2
  23122. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23123. p
  23124. g
  23125. s/.\{148\}//
  23126. t delim
  23127. ' <conf$$subs.awk | sed '
  23128. /^[^""]/{
  23129. N
  23130. s/\n//
  23131. }
  23132. ' >>$CONFIG_STATUS || ac_write_fail=1
  23133. rm -f conf$$subs.awk
  23134. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23135. _ACAWK
  23136. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  23137. for (key in S) S_is_set[key] = 1
  23138. FS = ""
  23139. }
  23140. {
  23141. line = $ 0
  23142. nfields = split(line, field, "@")
  23143. substed = 0
  23144. len = length(field[1])
  23145. for (i = 2; i < nfields; i++) {
  23146. key = field[i]
  23147. keylen = length(key)
  23148. if (S_is_set[key]) {
  23149. value = S[key]
  23150. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23151. len += length(value) + length(field[++i])
  23152. substed = 1
  23153. } else
  23154. len += 1 + keylen
  23155. }
  23156. print line
  23157. }
  23158. _ACAWK
  23159. _ACEOF
  23160. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23161. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23162. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23163. else
  23164. cat
  23165. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  23166. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  23167. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  23168. { (exit 1); exit 1; }; }
  23169. _ACEOF
  23170. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23171. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23172. # trailing colons and then remove the whole line if VPATH becomes empty
  23173. # (actually we leave an empty line to preserve line numbers).
  23174. if test "x$srcdir" = x.; then
  23175. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23176. s/:*\$(srcdir):*/:/
  23177. s/:*\${srcdir}:*/:/
  23178. s/:*@srcdir@:*/:/
  23179. s/^\([^=]*=[ ]*\):*/\1/
  23180. s/:*$//
  23181. s/^[^=]*=[ ]*$//
  23182. }'
  23183. fi
  23184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23185. fi # test -n "$CONFIG_FILES"
  23186. # Set up the scripts for CONFIG_HEADERS section.
  23187. # No need to generate them if there are no CONFIG_HEADERS.
  23188. # This happens for instance with `./config.status Makefile'.
  23189. if test -n "$CONFIG_HEADERS"; then
  23190. cat >"$tmp/defines.awk" <<\_ACAWK ||
  23191. BEGIN {
  23192. _ACEOF
  23193. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23194. # here-document in config.status, that substitutes the proper values into
  23195. # config.h.in to produce config.h.
  23196. # Create a delimiter string that does not exist in confdefs.h, to ease
  23197. # handling of long lines.
  23198. ac_delim='%!_!# '
  23199. for ac_last_try in false false :; do
  23200. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  23201. if test -z "$ac_t"; then
  23202. break
  23203. elif $ac_last_try; then
  23204. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  23205. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  23206. { (exit 1); exit 1; }; }
  23207. else
  23208. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23209. fi
  23210. done
  23211. # For the awk script, D is an array of macro values keyed by name,
  23212. # likewise P contains macro parameters if any. Preserve backslash
  23213. # newline sequences.
  23214. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23215. sed -n '
  23216. s/.\{148\}/&'"$ac_delim"'/g
  23217. t rset
  23218. :rset
  23219. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23220. t def
  23221. d
  23222. :def
  23223. s/\\$//
  23224. t bsnl
  23225. s/["\\]/\\&/g
  23226. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23227. D["\1"]=" \3"/p
  23228. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23229. d
  23230. :bsnl
  23231. s/["\\]/\\&/g
  23232. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23233. D["\1"]=" \3\\\\\\n"\\/p
  23234. t cont
  23235. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23236. t cont
  23237. d
  23238. :cont
  23239. n
  23240. s/.\{148\}/&'"$ac_delim"'/g
  23241. t clear
  23242. :clear
  23243. s/\\$//
  23244. t bsnlc
  23245. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23246. d
  23247. :bsnlc
  23248. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23249. b cont
  23250. ' <confdefs.h | sed '
  23251. s/'"$ac_delim"'/"\\\
  23252. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23253. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23254. for (key in D) D_is_set[key] = 1
  23255. FS = ""
  23256. }
  23257. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23258. line = \$ 0
  23259. split(line, arg, " ")
  23260. if (arg[1] == "#") {
  23261. defundef = arg[2]
  23262. mac1 = arg[3]
  23263. } else {
  23264. defundef = substr(arg[1], 2)
  23265. mac1 = arg[2]
  23266. }
  23267. split(mac1, mac2, "(") #)
  23268. macro = mac2[1]
  23269. prefix = substr(line, 1, index(line, defundef) - 1)
  23270. if (D_is_set[macro]) {
  23271. # Preserve the white space surrounding the "#".
  23272. print prefix "define", macro P[macro] D[macro]
  23273. next
  23274. } else {
  23275. # Replace #undef with comments. This is necessary, for example,
  23276. # in the case of _POSIX_SOURCE, which is predefined and required
  23277. # on some systems where configure will not decide to define it.
  23278. if (defundef == "undef") {
  23279. print "/*", prefix defundef, macro, "*/"
  23280. next
  23281. }
  23282. }
  23283. }
  23284. { print }
  23285. _ACAWK
  23286. _ACEOF
  23287. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23288. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  23289. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  23290. { (exit 1); exit 1; }; }
  23291. fi # test -n "$CONFIG_HEADERS"
  23292. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23293. shift
  23294. for ac_tag
  23295. do
  23296. case $ac_tag in
  23297. :[FHLC]) ac_mode=$ac_tag; continue;;
  23298. esac
  23299. case $ac_mode$ac_tag in
  23300. :[FHL]*:*);;
  23301. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  23302. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  23303. { (exit 1); exit 1; }; };;
  23304. :[FH]-) ac_tag=-:-;;
  23305. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23306. esac
  23307. ac_save_IFS=$IFS
  23308. IFS=:
  23309. set x $ac_tag
  23310. IFS=$ac_save_IFS
  23311. shift
  23312. ac_file=$1
  23313. shift
  23314. case $ac_mode in
  23315. :L) ac_source=$1;;
  23316. :[FH])
  23317. ac_file_inputs=
  23318. for ac_f
  23319. do
  23320. case $ac_f in
  23321. -) ac_f="$tmp/stdin";;
  23322. *) # Look for the file first in the build tree, then in the source tree
  23323. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23324. # because $ac_f cannot contain `:'.
  23325. test -f "$ac_f" ||
  23326. case $ac_f in
  23327. [\\/$]*) false;;
  23328. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23329. esac ||
  23330. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  23331. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  23332. { (exit 1); exit 1; }; };;
  23333. esac
  23334. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23335. ac_file_inputs="$ac_file_inputs '$ac_f'"
  23336. done
  23337. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23338. # use $as_me), people would be surprised to read:
  23339. # /* config.h. Generated by config.status. */
  23340. configure_input='Generated from '`
  23341. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23342. `' by configure.'
  23343. if test x"$ac_file" != x-; then
  23344. configure_input="$ac_file. $configure_input"
  23345. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  23346. $as_echo "$as_me: creating $ac_file" >&6;}
  23347. fi
  23348. # Neutralize special characters interpreted by sed in replacement strings.
  23349. case $configure_input in #(
  23350. *\&* | *\|* | *\\* )
  23351. ac_sed_conf_input=`$as_echo "$configure_input" |
  23352. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23353. *) ac_sed_conf_input=$configure_input;;
  23354. esac
  23355. case $ac_tag in
  23356. *:-:* | *:-) cat >"$tmp/stdin" \
  23357. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23358. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23359. { (exit 1); exit 1; }; } ;;
  23360. esac
  23361. ;;
  23362. esac
  23363. ac_dir=`$as_dirname -- "$ac_file" ||
  23364. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23365. X"$ac_file" : 'X\(//\)[^/]' \| \
  23366. X"$ac_file" : 'X\(//\)$' \| \
  23367. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23368. $as_echo X"$ac_file" |
  23369. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23370. s//\1/
  23371. q
  23372. }
  23373. /^X\(\/\/\)[^/].*/{
  23374. s//\1/
  23375. q
  23376. }
  23377. /^X\(\/\/\)$/{
  23378. s//\1/
  23379. q
  23380. }
  23381. /^X\(\/\).*/{
  23382. s//\1/
  23383. q
  23384. }
  23385. s/.*/./; q'`
  23386. { as_dir="$ac_dir"
  23387. case $as_dir in #(
  23388. -*) as_dir=./$as_dir;;
  23389. esac
  23390. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  23391. as_dirs=
  23392. while :; do
  23393. case $as_dir in #(
  23394. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23395. *) as_qdir=$as_dir;;
  23396. esac
  23397. as_dirs="'$as_qdir' $as_dirs"
  23398. as_dir=`$as_dirname -- "$as_dir" ||
  23399. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23400. X"$as_dir" : 'X\(//\)[^/]' \| \
  23401. X"$as_dir" : 'X\(//\)$' \| \
  23402. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23403. $as_echo X"$as_dir" |
  23404. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23405. s//\1/
  23406. q
  23407. }
  23408. /^X\(\/\/\)[^/].*/{
  23409. s//\1/
  23410. q
  23411. }
  23412. /^X\(\/\/\)$/{
  23413. s//\1/
  23414. q
  23415. }
  23416. /^X\(\/\).*/{
  23417. s//\1/
  23418. q
  23419. }
  23420. s/.*/./; q'`
  23421. test -d "$as_dir" && break
  23422. done
  23423. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23424. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  23425. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  23426. { (exit 1); exit 1; }; }; }
  23427. ac_builddir=.
  23428. case "$ac_dir" in
  23429. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23430. *)
  23431. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23432. # A ".." for each directory in $ac_dir_suffix.
  23433. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23434. case $ac_top_builddir_sub in
  23435. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23436. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23437. esac ;;
  23438. esac
  23439. ac_abs_top_builddir=$ac_pwd
  23440. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23441. # for backward compatibility:
  23442. ac_top_builddir=$ac_top_build_prefix
  23443. case $srcdir in
  23444. .) # We are building in place.
  23445. ac_srcdir=.
  23446. ac_top_srcdir=$ac_top_builddir_sub
  23447. ac_abs_top_srcdir=$ac_pwd ;;
  23448. [\\/]* | ?:[\\/]* ) # Absolute name.
  23449. ac_srcdir=$srcdir$ac_dir_suffix;
  23450. ac_top_srcdir=$srcdir
  23451. ac_abs_top_srcdir=$srcdir ;;
  23452. *) # Relative name.
  23453. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23454. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23455. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23456. esac
  23457. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23458. case $ac_mode in
  23459. :F)
  23460. #
  23461. # CONFIG_FILE
  23462. #
  23463. case $INSTALL in
  23464. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23465. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23466. esac
  23467. ac_MKDIR_P=$MKDIR_P
  23468. case $MKDIR_P in
  23469. [\\/$]* | ?:[\\/]* ) ;;
  23470. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23471. esac
  23472. _ACEOF
  23473. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23474. # If the template does not know about datarootdir, expand it.
  23475. # FIXME: This hack should be removed a few years after 2.60.
  23476. ac_datarootdir_hack=; ac_datarootdir_seen=
  23477. ac_sed_dataroot='
  23478. /datarootdir/ {
  23479. p
  23480. q
  23481. }
  23482. /@datadir@/p
  23483. /@docdir@/p
  23484. /@infodir@/p
  23485. /@localedir@/p
  23486. /@mandir@/p
  23487. '
  23488. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23489. *datarootdir*) ac_datarootdir_seen=yes;;
  23490. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23491. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23492. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23493. _ACEOF
  23494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23495. ac_datarootdir_hack='
  23496. s&@datadir@&$datadir&g
  23497. s&@docdir@&$docdir&g
  23498. s&@infodir@&$infodir&g
  23499. s&@localedir@&$localedir&g
  23500. s&@mandir@&$mandir&g
  23501. s&\\\${datarootdir}&$datarootdir&g' ;;
  23502. esac
  23503. _ACEOF
  23504. # Neutralize VPATH when `$srcdir' = `.'.
  23505. # Shell code in configure.ac might set extrasub.
  23506. # FIXME: do we really want to maintain this feature?
  23507. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23508. ac_sed_extra="$ac_vpsub
  23509. $extrasub
  23510. _ACEOF
  23511. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23512. :t
  23513. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23514. s|@configure_input@|$ac_sed_conf_input|;t t
  23515. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23516. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23517. s&@srcdir@&$ac_srcdir&;t t
  23518. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23519. s&@top_srcdir@&$ac_top_srcdir&;t t
  23520. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23521. s&@builddir@&$ac_builddir&;t t
  23522. s&@abs_builddir@&$ac_abs_builddir&;t t
  23523. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23524. s&@INSTALL@&$ac_INSTALL&;t t
  23525. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23526. $ac_datarootdir_hack
  23527. "
  23528. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  23529. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23530. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23531. { (exit 1); exit 1; }; }
  23532. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23533. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  23534. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  23535. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23536. which seems to be undefined. Please make sure it is defined." >&5
  23537. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23538. which seems to be undefined. Please make sure it is defined." >&2;}
  23539. rm -f "$tmp/stdin"
  23540. case $ac_file in
  23541. -) cat "$tmp/out" && rm -f "$tmp/out";;
  23542. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  23543. esac \
  23544. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23545. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23546. { (exit 1); exit 1; }; }
  23547. ;;
  23548. :H)
  23549. #
  23550. # CONFIG_HEADER
  23551. #
  23552. if test x"$ac_file" != x-; then
  23553. {
  23554. $as_echo "/* $configure_input */" \
  23555. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  23556. } >"$tmp/config.h" \
  23557. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23558. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23559. { (exit 1); exit 1; }; }
  23560. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  23561. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23562. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23563. else
  23564. rm -f "$ac_file"
  23565. mv "$tmp/config.h" "$ac_file" \
  23566. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23567. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23568. { (exit 1); exit 1; }; }
  23569. fi
  23570. else
  23571. $as_echo "/* $configure_input */" \
  23572. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  23573. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  23574. $as_echo "$as_me: error: could not create -" >&2;}
  23575. { (exit 1); exit 1; }; }
  23576. fi
  23577. # Compute "$ac_file"'s index in $config_headers.
  23578. _am_arg="$ac_file"
  23579. _am_stamp_count=1
  23580. for _am_header in $config_headers :; do
  23581. case $_am_header in
  23582. $_am_arg | $_am_arg:* )
  23583. break ;;
  23584. * )
  23585. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23586. esac
  23587. done
  23588. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23589. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23590. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23591. X"$_am_arg" : 'X\(//\)$' \| \
  23592. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23593. $as_echo X"$_am_arg" |
  23594. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23595. s//\1/
  23596. q
  23597. }
  23598. /^X\(\/\/\)[^/].*/{
  23599. s//\1/
  23600. q
  23601. }
  23602. /^X\(\/\/\)$/{
  23603. s//\1/
  23604. q
  23605. }
  23606. /^X\(\/\).*/{
  23607. s//\1/
  23608. q
  23609. }
  23610. s/.*/./; q'`/stamp-h$_am_stamp_count
  23611. ;;
  23612. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  23613. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23614. ;;
  23615. esac
  23616. case $ac_file$ac_mode in
  23617. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23618. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  23619. # are listed without --file. Let's play safe and only enable the eval
  23620. # if we detect the quoting.
  23621. case $CONFIG_FILES in
  23622. *\'*) eval set x "$CONFIG_FILES" ;;
  23623. *) set x $CONFIG_FILES ;;
  23624. esac
  23625. shift
  23626. for mf
  23627. do
  23628. # Strip MF so we end up with the name of the file.
  23629. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23630. # Check whether this is an Automake generated Makefile or not.
  23631. # We used to match only the files named `Makefile.in', but
  23632. # some people rename them; so instead we look at the file content.
  23633. # Grep'ing the first line is not enough: some people post-process
  23634. # each Makefile.in and add a new line on top of each file to say so.
  23635. # Grep'ing the whole file is not good either: AIX grep has a line
  23636. # limit of 2048, but all sed's we know have understand at least 4000.
  23637. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23638. dirpart=`$as_dirname -- "$mf" ||
  23639. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23640. X"$mf" : 'X\(//\)[^/]' \| \
  23641. X"$mf" : 'X\(//\)$' \| \
  23642. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23643. $as_echo X"$mf" |
  23644. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23645. s//\1/
  23646. q
  23647. }
  23648. /^X\(\/\/\)[^/].*/{
  23649. s//\1/
  23650. q
  23651. }
  23652. /^X\(\/\/\)$/{
  23653. s//\1/
  23654. q
  23655. }
  23656. /^X\(\/\).*/{
  23657. s//\1/
  23658. q
  23659. }
  23660. s/.*/./; q'`
  23661. else
  23662. continue
  23663. fi
  23664. # Extract the definition of DEPDIR, am__include, and am__quote
  23665. # from the Makefile without running `make'.
  23666. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23667. test -z "$DEPDIR" && continue
  23668. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23669. test -z "am__include" && continue
  23670. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23671. # When using ansi2knr, U may be empty or an underscore; expand it
  23672. U=`sed -n 's/^U = //p' < "$mf"`
  23673. # Find all dependency output files, they are included files with
  23674. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23675. # simplest approach to changing $(DEPDIR) to its actual value in the
  23676. # expansion.
  23677. for file in `sed -n "
  23678. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23679. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23680. # Make sure the directory exists.
  23681. test -f "$dirpart/$file" && continue
  23682. fdir=`$as_dirname -- "$file" ||
  23683. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23684. X"$file" : 'X\(//\)[^/]' \| \
  23685. X"$file" : 'X\(//\)$' \| \
  23686. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23687. $as_echo X"$file" |
  23688. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23689. s//\1/
  23690. q
  23691. }
  23692. /^X\(\/\/\)[^/].*/{
  23693. s//\1/
  23694. q
  23695. }
  23696. /^X\(\/\/\)$/{
  23697. s//\1/
  23698. q
  23699. }
  23700. /^X\(\/\).*/{
  23701. s//\1/
  23702. q
  23703. }
  23704. s/.*/./; q'`
  23705. { as_dir=$dirpart/$fdir
  23706. case $as_dir in #(
  23707. -*) as_dir=./$as_dir;;
  23708. esac
  23709. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  23710. as_dirs=
  23711. while :; do
  23712. case $as_dir in #(
  23713. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23714. *) as_qdir=$as_dir;;
  23715. esac
  23716. as_dirs="'$as_qdir' $as_dirs"
  23717. as_dir=`$as_dirname -- "$as_dir" ||
  23718. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23719. X"$as_dir" : 'X\(//\)[^/]' \| \
  23720. X"$as_dir" : 'X\(//\)$' \| \
  23721. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23722. $as_echo X"$as_dir" |
  23723. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23724. s//\1/
  23725. q
  23726. }
  23727. /^X\(\/\/\)[^/].*/{
  23728. s//\1/
  23729. q
  23730. }
  23731. /^X\(\/\/\)$/{
  23732. s//\1/
  23733. q
  23734. }
  23735. /^X\(\/\).*/{
  23736. s//\1/
  23737. q
  23738. }
  23739. s/.*/./; q'`
  23740. test -d "$as_dir" && break
  23741. done
  23742. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23743. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  23744. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  23745. { (exit 1); exit 1; }; }; }
  23746. # echo "creating $dirpart/$file"
  23747. echo '# dummy' > "$dirpart/$file"
  23748. done
  23749. done
  23750. }
  23751. ;;
  23752. "libtool":C)
  23753. # See if we are running on zsh, and set the options which allow our
  23754. # commands through without removal of \ escapes.
  23755. if test -n "${ZSH_VERSION+set}" ; then
  23756. setopt NO_GLOB_SUBST
  23757. fi
  23758. cfgfile="${ofile}T"
  23759. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23760. $RM "$cfgfile"
  23761. cat <<_LT_EOF >> "$cfgfile"
  23762. #! $SHELL
  23763. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23764. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23765. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23766. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23767. #
  23768. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23769. # 2006, 2007, 2008 Free Software Foundation, Inc.
  23770. # Written by Gordon Matzigkeit, 1996
  23771. #
  23772. # This file is part of GNU Libtool.
  23773. #
  23774. # GNU Libtool is free software; you can redistribute it and/or
  23775. # modify it under the terms of the GNU General Public License as
  23776. # published by the Free Software Foundation; either version 2 of
  23777. # the License, or (at your option) any later version.
  23778. #
  23779. # As a special exception to the GNU General Public License,
  23780. # if you distribute this file as part of a program or library that
  23781. # is built using GNU Libtool, you may include this file under the
  23782. # same distribution terms that you use for the rest of that program.
  23783. #
  23784. # GNU Libtool is distributed in the hope that it will be useful,
  23785. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23786. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23787. # GNU General Public License for more details.
  23788. #
  23789. # You should have received a copy of the GNU General Public License
  23790. # along with GNU Libtool; see the file COPYING. If not, a copy
  23791. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23792. # obtained by writing to the Free Software Foundation, Inc.,
  23793. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23794. # The names of the tagged configurations supported by this script.
  23795. available_tags="CXX "
  23796. # ### BEGIN LIBTOOL CONFIG
  23797. # Whether or not to build static libraries.
  23798. build_old_libs=$enable_static
  23799. # Which release of libtool.m4 was used?
  23800. macro_version=$macro_version
  23801. macro_revision=$macro_revision
  23802. # Whether or not to build shared libraries.
  23803. build_libtool_libs=$enable_shared
  23804. # What type of objects to build.
  23805. pic_mode=$pic_mode
  23806. # Whether or not to optimize for fast installation.
  23807. fast_install=$enable_fast_install
  23808. # The host system.
  23809. host_alias=$host_alias
  23810. host=$host
  23811. host_os=$host_os
  23812. # The build system.
  23813. build_alias=$build_alias
  23814. build=$build
  23815. build_os=$build_os
  23816. # A sed program that does not truncate output.
  23817. SED=$lt_SED
  23818. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23819. Xsed="\$SED -e 1s/^X//"
  23820. # A grep program that handles long lines.
  23821. GREP=$lt_GREP
  23822. # An ERE matcher.
  23823. EGREP=$lt_EGREP
  23824. # A literal string matcher.
  23825. FGREP=$lt_FGREP
  23826. # A BSD- or MS-compatible name lister.
  23827. NM=$lt_NM
  23828. # Whether we need soft or hard links.
  23829. LN_S=$lt_LN_S
  23830. # What is the maximum length of a command?
  23831. max_cmd_len=$max_cmd_len
  23832. # Object file suffix (normally "o").
  23833. objext=$ac_objext
  23834. # Executable file suffix (normally "").
  23835. exeext=$exeext
  23836. # whether the shell understands "unset".
  23837. lt_unset=$lt_unset
  23838. # turn spaces into newlines.
  23839. SP2NL=$lt_lt_SP2NL
  23840. # turn newlines into spaces.
  23841. NL2SP=$lt_lt_NL2SP
  23842. # How to create reloadable object files.
  23843. reload_flag=$lt_reload_flag
  23844. reload_cmds=$lt_reload_cmds
  23845. # An object symbol dumper.
  23846. OBJDUMP=$lt_OBJDUMP
  23847. # Method to check whether dependent libraries are shared objects.
  23848. deplibs_check_method=$lt_deplibs_check_method
  23849. # Command to use when deplibs_check_method == "file_magic".
  23850. file_magic_cmd=$lt_file_magic_cmd
  23851. # The archiver.
  23852. AR=$lt_AR
  23853. AR_FLAGS=$lt_AR_FLAGS
  23854. # A symbol stripping program.
  23855. STRIP=$lt_STRIP
  23856. # Commands used to install an old-style archive.
  23857. RANLIB=$lt_RANLIB
  23858. old_postinstall_cmds=$lt_old_postinstall_cmds
  23859. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23860. # A C compiler.
  23861. LTCC=$lt_CC
  23862. # LTCC compiler flags.
  23863. LTCFLAGS=$lt_CFLAGS
  23864. # Take the output of nm and produce a listing of raw symbols and C names.
  23865. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23866. # Transform the output of nm in a proper C declaration.
  23867. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23868. # Transform the output of nm in a C name address pair.
  23869. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23870. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23871. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23872. # The name of the directory that contains temporary libtool files.
  23873. objdir=$objdir
  23874. # Shell to use when invoking shell scripts.
  23875. SHELL=$lt_SHELL
  23876. # An echo program that does not interpret backslashes.
  23877. ECHO=$lt_ECHO
  23878. # Used to examine libraries when file_magic_cmd begins with "file".
  23879. MAGIC_CMD=$MAGIC_CMD
  23880. # Must we lock files when doing compilation?
  23881. need_locks=$lt_need_locks
  23882. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23883. DSYMUTIL=$lt_DSYMUTIL
  23884. # Tool to change global to local symbols on Mac OS X.
  23885. NMEDIT=$lt_NMEDIT
  23886. # Tool to manipulate fat objects and archives on Mac OS X.
  23887. LIPO=$lt_LIPO
  23888. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23889. OTOOL=$lt_OTOOL
  23890. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23891. OTOOL64=$lt_OTOOL64
  23892. # Old archive suffix (normally "a").
  23893. libext=$libext
  23894. # Shared library suffix (normally ".so").
  23895. shrext_cmds=$lt_shrext_cmds
  23896. # The commands to extract the exported symbol list from a shared archive.
  23897. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23898. # Variables whose values should be saved in libtool wrapper scripts and
  23899. # restored at link time.
  23900. variables_saved_for_relink=$lt_variables_saved_for_relink
  23901. # Do we need the "lib" prefix for modules?
  23902. need_lib_prefix=$need_lib_prefix
  23903. # Do we need a version for libraries?
  23904. need_version=$need_version
  23905. # Library versioning type.
  23906. version_type=$version_type
  23907. # Shared library runtime path variable.
  23908. runpath_var=$runpath_var
  23909. # Shared library path variable.
  23910. shlibpath_var=$shlibpath_var
  23911. # Is shlibpath searched before the hard-coded library search path?
  23912. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23913. # Format of library name prefix.
  23914. libname_spec=$lt_libname_spec
  23915. # List of archive names. First name is the real one, the rest are links.
  23916. # The last name is the one that the linker finds with -lNAME
  23917. library_names_spec=$lt_library_names_spec
  23918. # The coded name of the library, if different from the real name.
  23919. soname_spec=$lt_soname_spec
  23920. # Command to use after installation of a shared archive.
  23921. postinstall_cmds=$lt_postinstall_cmds
  23922. # Command to use after uninstallation of a shared archive.
  23923. postuninstall_cmds=$lt_postuninstall_cmds
  23924. # Commands used to finish a libtool library installation in a directory.
  23925. finish_cmds=$lt_finish_cmds
  23926. # As "finish_cmds", except a single script fragment to be evaled but
  23927. # not shown.
  23928. finish_eval=$lt_finish_eval
  23929. # Whether we should hardcode library paths into libraries.
  23930. hardcode_into_libs=$hardcode_into_libs
  23931. # Compile-time system search path for libraries.
  23932. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23933. # Run-time system search path for libraries.
  23934. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23935. # Whether dlopen is supported.
  23936. dlopen_support=$enable_dlopen
  23937. # Whether dlopen of programs is supported.
  23938. dlopen_self=$enable_dlopen_self
  23939. # Whether dlopen of statically linked programs is supported.
  23940. dlopen_self_static=$enable_dlopen_self_static
  23941. # Commands to strip libraries.
  23942. old_striplib=$lt_old_striplib
  23943. striplib=$lt_striplib
  23944. # The linker used to build libraries.
  23945. LD=$lt_LD
  23946. # Commands used to build an old-style archive.
  23947. old_archive_cmds=$lt_old_archive_cmds
  23948. # A language specific compiler.
  23949. CC=$lt_compiler
  23950. # Is the compiler the GNU compiler?
  23951. with_gcc=$GCC
  23952. # Compiler flag to turn off builtin functions.
  23953. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23954. # How to pass a linker flag through the compiler.
  23955. wl=$lt_lt_prog_compiler_wl
  23956. # Additional compiler flags for building library objects.
  23957. pic_flag=$lt_lt_prog_compiler_pic
  23958. # Compiler flag to prevent dynamic linking.
  23959. link_static_flag=$lt_lt_prog_compiler_static
  23960. # Does compiler simultaneously support -c and -o options?
  23961. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23962. # Whether or not to add -lc for building shared libraries.
  23963. build_libtool_need_lc=$archive_cmds_need_lc
  23964. # Whether or not to disallow shared libs when runtime libs are static.
  23965. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23966. # Compiler flag to allow reflexive dlopens.
  23967. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23968. # Compiler flag to generate shared objects directly from archives.
  23969. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23970. # Whether the compiler copes with passing no objects directly.
  23971. compiler_needs_object=$lt_compiler_needs_object
  23972. # Create an old-style archive from a shared archive.
  23973. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23974. # Create a temporary old-style archive to link instead of a shared archive.
  23975. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23976. # Commands used to build a shared archive.
  23977. archive_cmds=$lt_archive_cmds
  23978. archive_expsym_cmds=$lt_archive_expsym_cmds
  23979. # Commands used to build a loadable module if different from building
  23980. # a shared archive.
  23981. module_cmds=$lt_module_cmds
  23982. module_expsym_cmds=$lt_module_expsym_cmds
  23983. # Whether we are building with GNU ld or not.
  23984. with_gnu_ld=$lt_with_gnu_ld
  23985. # Flag that allows shared libraries with undefined symbols to be built.
  23986. allow_undefined_flag=$lt_allow_undefined_flag
  23987. # Flag that enforces no undefined symbols.
  23988. no_undefined_flag=$lt_no_undefined_flag
  23989. # Flag to hardcode \$libdir into a binary during linking.
  23990. # This must work even if \$libdir does not exist
  23991. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23992. # If ld is used when linking, flag to hardcode \$libdir into a binary
  23993. # during linking. This must work even if \$libdir does not exist.
  23994. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  23995. # Whether we need a single "-rpath" flag with a separated argument.
  23996. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23997. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23998. # DIR into the resulting binary.
  23999. hardcode_direct=$hardcode_direct
  24000. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24001. # DIR into the resulting binary and the resulting library dependency is
  24002. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24003. # library is relocated.
  24004. hardcode_direct_absolute=$hardcode_direct_absolute
  24005. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24006. # into the resulting binary.
  24007. hardcode_minus_L=$hardcode_minus_L
  24008. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24009. # into the resulting binary.
  24010. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24011. # Set to "yes" if building a shared library automatically hardcodes DIR
  24012. # into the library and all subsequent libraries and executables linked
  24013. # against it.
  24014. hardcode_automatic=$hardcode_automatic
  24015. # Set to yes if linker adds runtime paths of dependent libraries
  24016. # to runtime path list.
  24017. inherit_rpath=$inherit_rpath
  24018. # Whether libtool must link a program against all its dependency libraries.
  24019. link_all_deplibs=$link_all_deplibs
  24020. # Fix the shell variable \$srcfile for the compiler.
  24021. fix_srcfile_path=$lt_fix_srcfile_path
  24022. # Set to "yes" if exported symbols are required.
  24023. always_export_symbols=$always_export_symbols
  24024. # The commands to list exported symbols.
  24025. export_symbols_cmds=$lt_export_symbols_cmds
  24026. # Symbols that should not be listed in the preloaded symbols.
  24027. exclude_expsyms=$lt_exclude_expsyms
  24028. # Symbols that must always be exported.
  24029. include_expsyms=$lt_include_expsyms
  24030. # Commands necessary for linking programs (against libraries) with templates.
  24031. prelink_cmds=$lt_prelink_cmds
  24032. # Specify filename containing input files.
  24033. file_list_spec=$lt_file_list_spec
  24034. # How to hardcode a shared library path into an executable.
  24035. hardcode_action=$hardcode_action
  24036. # The directories searched by this compiler when creating a shared library.
  24037. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24038. # Dependencies to place before and after the objects being linked to
  24039. # create a shared library.
  24040. predep_objects=$lt_predep_objects
  24041. postdep_objects=$lt_postdep_objects
  24042. predeps=$lt_predeps
  24043. postdeps=$lt_postdeps
  24044. # The library search path used internally by the compiler when linking
  24045. # a shared library.
  24046. compiler_lib_search_path=$lt_compiler_lib_search_path
  24047. # ### END LIBTOOL CONFIG
  24048. _LT_EOF
  24049. case $host_os in
  24050. aix3*)
  24051. cat <<\_LT_EOF >> "$cfgfile"
  24052. # AIX sometimes has problems with the GCC collect2 program. For some
  24053. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24054. # vanish in a puff of smoke.
  24055. if test "X${COLLECT_NAMES+set}" != Xset; then
  24056. COLLECT_NAMES=
  24057. export COLLECT_NAMES
  24058. fi
  24059. _LT_EOF
  24060. ;;
  24061. esac
  24062. ltmain="$ac_aux_dir/ltmain.sh"
  24063. # We use sed instead of cat because bash on DJGPP gets confused if
  24064. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24065. # text mode, it properly converts lines to CR/LF. This bash problem
  24066. # is reportedly fixed, but why not run on old versions too?
  24067. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  24068. || (rm -f "$cfgfile"; exit 1)
  24069. case $xsi_shell in
  24070. yes)
  24071. cat << \_LT_EOF >> "$cfgfile"
  24072. # func_dirname file append nondir_replacement
  24073. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24074. # otherwise set result to NONDIR_REPLACEMENT.
  24075. func_dirname ()
  24076. {
  24077. case ${1} in
  24078. */*) func_dirname_result="${1%/*}${2}" ;;
  24079. * ) func_dirname_result="${3}" ;;
  24080. esac
  24081. }
  24082. # func_basename file
  24083. func_basename ()
  24084. {
  24085. func_basename_result="${1##*/}"
  24086. }
  24087. # func_dirname_and_basename file append nondir_replacement
  24088. # perform func_basename and func_dirname in a single function
  24089. # call:
  24090. # dirname: Compute the dirname of FILE. If nonempty,
  24091. # add APPEND to the result, otherwise set result
  24092. # to NONDIR_REPLACEMENT.
  24093. # value returned in "$func_dirname_result"
  24094. # basename: Compute filename of FILE.
  24095. # value retuned in "$func_basename_result"
  24096. # Implementation must be kept synchronized with func_dirname
  24097. # and func_basename. For efficiency, we do not delegate to
  24098. # those functions but instead duplicate the functionality here.
  24099. func_dirname_and_basename ()
  24100. {
  24101. case ${1} in
  24102. */*) func_dirname_result="${1%/*}${2}" ;;
  24103. * ) func_dirname_result="${3}" ;;
  24104. esac
  24105. func_basename_result="${1##*/}"
  24106. }
  24107. # func_stripname prefix suffix name
  24108. # strip PREFIX and SUFFIX off of NAME.
  24109. # PREFIX and SUFFIX must not contain globbing or regex special
  24110. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24111. # dot (in which case that matches only a dot).
  24112. func_stripname ()
  24113. {
  24114. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  24115. # positional parameters, so assign one to ordinary parameter first.
  24116. func_stripname_result=${3}
  24117. func_stripname_result=${func_stripname_result#"${1}"}
  24118. func_stripname_result=${func_stripname_result%"${2}"}
  24119. }
  24120. # func_opt_split
  24121. func_opt_split ()
  24122. {
  24123. func_opt_split_opt=${1%%=*}
  24124. func_opt_split_arg=${1#*=}
  24125. }
  24126. # func_lo2o object
  24127. func_lo2o ()
  24128. {
  24129. case ${1} in
  24130. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  24131. *) func_lo2o_result=${1} ;;
  24132. esac
  24133. }
  24134. # func_xform libobj-or-source
  24135. func_xform ()
  24136. {
  24137. func_xform_result=${1%.*}.lo
  24138. }
  24139. # func_arith arithmetic-term...
  24140. func_arith ()
  24141. {
  24142. func_arith_result=$(( $* ))
  24143. }
  24144. # func_len string
  24145. # STRING may not start with a hyphen.
  24146. func_len ()
  24147. {
  24148. func_len_result=${#1}
  24149. }
  24150. _LT_EOF
  24151. ;;
  24152. *) # Bourne compatible functions.
  24153. cat << \_LT_EOF >> "$cfgfile"
  24154. # func_dirname file append nondir_replacement
  24155. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24156. # otherwise set result to NONDIR_REPLACEMENT.
  24157. func_dirname ()
  24158. {
  24159. # Extract subdirectory from the argument.
  24160. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  24161. if test "X$func_dirname_result" = "X${1}"; then
  24162. func_dirname_result="${3}"
  24163. else
  24164. func_dirname_result="$func_dirname_result${2}"
  24165. fi
  24166. }
  24167. # func_basename file
  24168. func_basename ()
  24169. {
  24170. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  24171. }
  24172. # func_stripname prefix suffix name
  24173. # strip PREFIX and SUFFIX off of NAME.
  24174. # PREFIX and SUFFIX must not contain globbing or regex special
  24175. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24176. # dot (in which case that matches only a dot).
  24177. # func_strip_suffix prefix name
  24178. func_stripname ()
  24179. {
  24180. case ${2} in
  24181. .*) func_stripname_result=`$ECHO "X${3}" \
  24182. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  24183. *) func_stripname_result=`$ECHO "X${3}" \
  24184. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  24185. esac
  24186. }
  24187. # sed scripts:
  24188. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  24189. my_sed_long_arg='1s/^-[^=]*=//'
  24190. # func_opt_split
  24191. func_opt_split ()
  24192. {
  24193. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  24194. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  24195. }
  24196. # func_lo2o object
  24197. func_lo2o ()
  24198. {
  24199. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  24200. }
  24201. # func_xform libobj-or-source
  24202. func_xform ()
  24203. {
  24204. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  24205. }
  24206. # func_arith arithmetic-term...
  24207. func_arith ()
  24208. {
  24209. func_arith_result=`expr "$@"`
  24210. }
  24211. # func_len string
  24212. # STRING may not start with a hyphen.
  24213. func_len ()
  24214. {
  24215. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  24216. }
  24217. _LT_EOF
  24218. esac
  24219. case $lt_shell_append in
  24220. yes)
  24221. cat << \_LT_EOF >> "$cfgfile"
  24222. # func_append var value
  24223. # Append VALUE to the end of shell variable VAR.
  24224. func_append ()
  24225. {
  24226. eval "$1+=\$2"
  24227. }
  24228. _LT_EOF
  24229. ;;
  24230. *)
  24231. cat << \_LT_EOF >> "$cfgfile"
  24232. # func_append var value
  24233. # Append VALUE to the end of shell variable VAR.
  24234. func_append ()
  24235. {
  24236. eval "$1=\$$1\$2"
  24237. }
  24238. _LT_EOF
  24239. ;;
  24240. esac
  24241. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  24242. || (rm -f "$cfgfile"; exit 1)
  24243. mv -f "$cfgfile" "$ofile" ||
  24244. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24245. chmod +x "$ofile"
  24246. cat <<_LT_EOF >> "$ofile"
  24247. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24248. # The linker used to build libraries.
  24249. LD=$lt_LD_CXX
  24250. # Commands used to build an old-style archive.
  24251. old_archive_cmds=$lt_old_archive_cmds_CXX
  24252. # A language specific compiler.
  24253. CC=$lt_compiler_CXX
  24254. # Is the compiler the GNU compiler?
  24255. with_gcc=$GCC_CXX
  24256. # Compiler flag to turn off builtin functions.
  24257. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24258. # How to pass a linker flag through the compiler.
  24259. wl=$lt_lt_prog_compiler_wl_CXX
  24260. # Additional compiler flags for building library objects.
  24261. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24262. # Compiler flag to prevent dynamic linking.
  24263. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24264. # Does compiler simultaneously support -c and -o options?
  24265. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24266. # Whether or not to add -lc for building shared libraries.
  24267. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24268. # Whether or not to disallow shared libs when runtime libs are static.
  24269. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24270. # Compiler flag to allow reflexive dlopens.
  24271. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24272. # Compiler flag to generate shared objects directly from archives.
  24273. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24274. # Whether the compiler copes with passing no objects directly.
  24275. compiler_needs_object=$lt_compiler_needs_object_CXX
  24276. # Create an old-style archive from a shared archive.
  24277. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24278. # Create a temporary old-style archive to link instead of a shared archive.
  24279. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24280. # Commands used to build a shared archive.
  24281. archive_cmds=$lt_archive_cmds_CXX
  24282. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24283. # Commands used to build a loadable module if different from building
  24284. # a shared archive.
  24285. module_cmds=$lt_module_cmds_CXX
  24286. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24287. # Whether we are building with GNU ld or not.
  24288. with_gnu_ld=$lt_with_gnu_ld_CXX
  24289. # Flag that allows shared libraries with undefined symbols to be built.
  24290. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24291. # Flag that enforces no undefined symbols.
  24292. no_undefined_flag=$lt_no_undefined_flag_CXX
  24293. # Flag to hardcode \$libdir into a binary during linking.
  24294. # This must work even if \$libdir does not exist
  24295. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24296. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24297. # during linking. This must work even if \$libdir does not exist.
  24298. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  24299. # Whether we need a single "-rpath" flag with a separated argument.
  24300. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24301. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24302. # DIR into the resulting binary.
  24303. hardcode_direct=$hardcode_direct_CXX
  24304. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24305. # DIR into the resulting binary and the resulting library dependency is
  24306. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24307. # library is relocated.
  24308. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24309. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24310. # into the resulting binary.
  24311. hardcode_minus_L=$hardcode_minus_L_CXX
  24312. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24313. # into the resulting binary.
  24314. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24315. # Set to "yes" if building a shared library automatically hardcodes DIR
  24316. # into the library and all subsequent libraries and executables linked
  24317. # against it.
  24318. hardcode_automatic=$hardcode_automatic_CXX
  24319. # Set to yes if linker adds runtime paths of dependent libraries
  24320. # to runtime path list.
  24321. inherit_rpath=$inherit_rpath_CXX
  24322. # Whether libtool must link a program against all its dependency libraries.
  24323. link_all_deplibs=$link_all_deplibs_CXX
  24324. # Fix the shell variable \$srcfile for the compiler.
  24325. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  24326. # Set to "yes" if exported symbols are required.
  24327. always_export_symbols=$always_export_symbols_CXX
  24328. # The commands to list exported symbols.
  24329. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24330. # Symbols that should not be listed in the preloaded symbols.
  24331. exclude_expsyms=$lt_exclude_expsyms_CXX
  24332. # Symbols that must always be exported.
  24333. include_expsyms=$lt_include_expsyms_CXX
  24334. # Commands necessary for linking programs (against libraries) with templates.
  24335. prelink_cmds=$lt_prelink_cmds_CXX
  24336. # Specify filename containing input files.
  24337. file_list_spec=$lt_file_list_spec_CXX
  24338. # How to hardcode a shared library path into an executable.
  24339. hardcode_action=$hardcode_action_CXX
  24340. # The directories searched by this compiler when creating a shared library.
  24341. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24342. # Dependencies to place before and after the objects being linked to
  24343. # create a shared library.
  24344. predep_objects=$lt_predep_objects_CXX
  24345. postdep_objects=$lt_postdep_objects_CXX
  24346. predeps=$lt_predeps_CXX
  24347. postdeps=$lt_postdeps_CXX
  24348. # The library search path used internally by the compiler when linking
  24349. # a shared library.
  24350. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24351. # ### END LIBTOOL TAG CONFIG: CXX
  24352. _LT_EOF
  24353. ;;
  24354. esac
  24355. done # for ac_tag
  24356. { (exit 0); exit 0; }
  24357. _ACEOF
  24358. chmod +x $CONFIG_STATUS
  24359. ac_clean_files=$ac_clean_files_save
  24360. test $ac_write_fail = 0 ||
  24361. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  24362. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  24363. { (exit 1); exit 1; }; }
  24364. # configure is writing to config.log, and then calls config.status.
  24365. # config.status does its own redirection, appending to config.log.
  24366. # Unfortunately, on DOS this fails, as config.log is still kept open
  24367. # by configure, so config.status won't be able to write to it; its
  24368. # output is simply discarded. So we exec the FD to /dev/null,
  24369. # effectively closing config.log, so it can be properly (re)opened and
  24370. # appended to by config.status. When coming back to configure, we
  24371. # need to make the FD available again.
  24372. if test "$no_create" != yes; then
  24373. ac_cs_success=:
  24374. ac_config_status_args=
  24375. test "$silent" = yes &&
  24376. ac_config_status_args="$ac_config_status_args --quiet"
  24377. exec 5>/dev/null
  24378. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24379. exec 5>>config.log
  24380. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24381. # would make configure fail if this is the last instruction.
  24382. $ac_cs_success || { (exit 1); exit 1; }
  24383. fi
  24384. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24385. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24386. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24387. fi